1 2001-06-02 Joseph S. Myers <jsm28@cam.ac.uk>
3 * chill.texi: Move contents to just after title page.
5 2001-05-23 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7 * Make-lang.in (dvi): Use ch/chill.dvi not chill.dvi.
8 (ch/chill.dvi): Use TEXI2DVI instead of custom tex calls. Create
9 the dvi file in the ch directory.
11 2001-05-26 Zack Weinberg <zackw@stanford.edu>
13 * configure: Remove obsolete file.
15 2001-05-25 Sam TH <sam@uchicago.edu>
17 * ch-tree.h tasking.h: Fix header include guards.
19 2001-05-20 Joseph S. Myers <jsm28@cam.ac.uk>
21 * Make-lang.in (chill.dvi): Remove bogus dependencies. Don't cd
22 to ch; include both $(srcdir)/ch and $(srcdir) in TEXINPUTS.
23 Don't move chill.dvi after creating it. Fixes PR other/567 and
26 Fri Feb 23 15:28:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28 * decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
30 2001-02-15 Jim Meyering <meyering@lucent.com>
32 * Make-lang.in (CHILL.install-common): Depend on `installdirs'.
33 (CHILL.install-info): Likewise.
35 Sun Feb 4 15:52:44 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37 * convert.c (convert): Call abort instead of fatal.
38 * except.c (pop_handler, chill_check_no_handlers): Likewise.
39 * expr.c (chill_expand_expr): Likewise.
40 * parse.c (peek_token_, pushback_token, require): Likewise.
41 * grant.c (write_grant_file): Call fatal_io_error instead of
43 * lex.c (init_parse, same_file, yywrap): Likewise.
44 * lang.c (GNU_xref_begin, GNU_xref_end): Deleted.
45 * lex.c (convert_bitstring): Delete check for alloca failure.
47 2001-01-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
49 * ch-tree.h (integer_minus_one_node): Moved to top level gcc
52 * decl.c (integer_minus_one_node): Likewise.
53 (init_decl_processing): Don't set integer_minus_one_node.
55 2001-01-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
57 * Makefile.in: Remove all dependencies on defaults.h.
58 * decl.c: Don't include defaults.h.
61 2000-12-08 Joseph S. Myers <jsm28@cam.ac.uk>
63 * Make-lang.in (CHILL.info): Depend on info files in source
65 (ch/chill.info): Build info files in source directory.
66 (CHILL.install-info): Install info files from source directory.
68 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
70 * lex.c: Don't bother checking whether ISUPPER(c) before
71 calling TOLOWER(c). Don't bother checking whether isascii(c)
72 before testing ISSPACE(c); ISSPACE(c) includes '\n'.
74 2000-12-06 Rodney Brown <RodneyBrown@mynd.com>
76 * actions.h: Standarize copyright statement.
77 * except.c inout.c lang.c lex.c lex.h loop.c nloop.c: Likewise.
78 * parse.c tasking.c tasking.h timing.c xtypeck.c: Likewise.
80 2000-11-07 Joseph S. Myers <jsm28@cam.ac.uk>
82 * actions.c (check_missing_cases), typeck.c (build_chill_slice,
83 build_chill_cast): Use memset () instead of bzero ().
85 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk>
87 * Make-lang.in (CHILL.distdir): Remove.
89 2000-11-02 Geoffrey Keating <geoffk@cygnus.com>
91 * Make-lang.in: Remove 'CYGNUS LOCAL' markers.
92 * Makefile.in: Likewise.
93 * configure: Likewise.
95 2000-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
97 * Makefile.in ($(srcdir)/hash.h): Refer to GNU FTP site for
100 2000-10-05 Richard Henderson <rth@cygnus.com>
102 * decl.c (finish_chill_function): Don't init can_reach_end.
104 2000-09-10 Zack Weinberg <zack@wolery.cumb.org>
106 * decl.c, timing.c: Include defaults.h if not already included.
107 Don't define the *_TYPE_SIZE macros.
108 * Makefile.in: Update dependencies.
110 2000-08-29 Zack Weinberg <zack@wolery.cumb.org>
112 * inout.c (add_enum_to_list): Use DECL_NAME directly, don't get
113 its IDENTIFIER_POINTER and immediately call get_identifier on it.
114 * lex.c (yywrap): Constify a char *.
116 2000-08-24 Mark Mitchell <mark@codesourcery.com>
118 * Make-lang.in (cc1chill): Don't depend on c-iterate.o.
120 2000-08-21 Nix <nix@esperi.demon.co.uk>
122 * lang-specs.h: Do not process -o or run the assembler if
125 2000-08-07 Kazu Hirata <kazu@hxi.com>
127 * decl.c: Fix a comment typo.
129 2000-08-04 Zack Weinberg <zack@wolery.cumb.org>
131 * Make-lang.in (cc1chill): Depend on $(BACKEND), not stamp-objlist.
132 * Makefile.in (cc1chill): Link with $(BACKEND). Define BACKEND,
133 eliminate C_OBJS (was commented out), OBJS, OBJDEPS.
135 2000-07-31 Zack Weinberg <zack@wolery.cumb.org>
137 * lang-specs.h: Rename cpp to cpp0 and/or tradcpp to tradcpp0.
139 Mon Jul 31 07:58:31 2000 Casper Dik <Casper.Dik@holland.sun.com>
141 * Makefile.in: Remove naked "^L".
143 2000-07-13 Zack Weinberg <zack@wolery.cumb.org>
145 * lang-specs.h: Use the new named specs. Remove unnecessary braces.
147 2000-06-13 Jakub Jelinek <jakub@redhat.com>
149 * decl.c (init_decl_processing): Set TYPE_USER_ALIGN.
150 (layout_enum): Set DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
151 * typeck.c (layout_chill_range_type): Set TYPE_USER_ALIGN.
152 (apply_chill_field_layout): Set DECL_USER_ALIGN.
153 (layout_chill_struct_type): Set TYPE_USER_ALIGN.
155 Tue Jun 13 15:30:46 2000 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
157 * Make-lang.in (CHILL.install-common): Use $(INSTALL_SCRIPT), not
158 $(INSTALL_PROGRAM) for chill.install.
160 2000-06-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
162 * Makefile.in (EXPR_H): New dependency variable.
163 (actions.o, expr.o): Use EXPR_H.
164 (lang.o): Depend on RTL_H and EXPR_H.
166 * lang.c: Include rtl.h and expr.h.
167 (lang_get_alias_set): Mark parameter with ATTRIBUTE_UNUSED.
169 2000-06-04 Philipp Thomas <pthomas@suse.de>
171 * Makefile.in(INTLLIBS): New macro.
172 (LIBS): Add INTLLIBS.
174 * config-lang(outputs): Specify ch/Makefile.
176 Sat Jun 3 15:31:07 2000 Jeffrey A Law (law@cygnus.com)
178 * chill.texi (INFO-DIR-ENTRY): Fix chill entry.
180 2000-06-02 Richard Henderson <rth@cygnus.com>
182 * lang.c (lang_get_alias_set): New.
184 Sat May 27 11:24:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
186 * lang.c (deep_const_expr): Use first_rtl_op.
187 * satisfy.c (satisfy): Use TREE_CODE_LENGTH.
189 2000-05-18 Chris Demetriou <cgd@netbsd.org>
191 * Makefile.in (hash.h): Delete a redundant use of gawk and sed.
193 Wed May 17 17:27:44 2000 Andrew Cagney <cagney@b1.cygnus.com>
195 * decl.c (c_decode_option): Update -Wall unused flags by
197 (poplevel): Replace warn_unused with warn_unused_label.
199 2000-05-09 Zack Weinberg <zack@wolery.cumb.org>
201 * ch-tree.h: Update prototypes. Remove prototypes for
202 functions declared elsewhere.
203 * decl.c (define_label): Constify filename parameter.
204 * grant.c (globalize_decl, set_default_grant_file): Constify
205 local char * variables. Don't declare
206 first_global_object_name or asm_out_file.
207 * lang.c (chill_real_input_filename): Constify.
208 * lex.c (init_parse): Constify parameter and return value.
209 * parse.c: Don't declare input_filename.
210 (ch_expand_asm_operands): Constify filename parameter.
211 (parse_multi_dimension_case_action): Constify local char *.
212 * satisfy.c (safe_satisfy_decl): Constify local char *.
214 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
216 * ch-tree.h (init_function_start): Constify.
218 2000-04-18 Zack Weinberg <zack@wolery.cumb.org>
220 * ch/lex.c: Remove references to cccp.c.
222 2000-04-03 Zack Weinberg <zack@wolery.cumb.org>
224 * lang-specs.h: Pass -fno-show-column to the preprocessor.
226 Thu Mar 30 06:32:51 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
228 * expr.c (chill_expand_expr): Pass bit alignment to emit_block_move.
230 Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
232 * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT.
233 * typeck.c (expand_constant_to_buffer): Use int_byte_position.
234 (extract_constant_from_buffer): Likewise.
236 Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
238 * typeck.c (min_precision): New function.
239 (build_chill_slice): Use host_integerp and tree_low_cst.
240 (expand_constant_to_buffer): Likewise and also int_bit_position.
241 LO is unsigned HOST_WIDE_INT
242 (build_chill_array_ref_1): Make `i' be HOST_WIDE_INT; use tree_low_cst.
243 (extract_constant_from_buffer): Sizes are now HOST_WIDE_INT.
244 Use host_integerp and tree_low_cst.
245 (build_chill_bin_type): Use host_integerp and tree_low_cst.
246 (layout_chill_range_type): Use tree_int_cst_sgn, compare_tree_int,
247 tree_low_cst, and min_precision.
248 (apply_chill_array_layout): Cleanups for types of variables
249 and use tree_int_cst_sgn, compare_tree_int, and tree_low_cst.
250 (apply_chill_field_layout): Likewise.
252 2000-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
254 * grant.c (globalize_decl): Constify a char*.
256 Mon Mar 6 17:52:48 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
258 * actions.c (chill_convert_for_assignment): INDEX is unsigned
260 * ch-tree.h (DECL_NESTING_LEVEL): Use TREE_INT_CST_HIGH since unsigned.
261 * except.c (chill_handle_on_labels): ALTERNATIVE is unsigned.
262 Use compare_tree_int.
263 (expand_goto_except_cleanup): Likewise.
265 2000-03-01 Martin von Loewis <loewis@informatik.hu-berlin.de>
267 * decl.c (current_function_decl): Move to toplev.c.
269 Mon Feb 28 08:12:26 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
271 * ch-tree.h (DECL_ACTION_NESTING_LEVEL): Use new tree union name.
272 * decl.c (finish_struct): Don't clear DECL_FIELD_SIZE.
273 * typeck.c (make_chill_struct_type): Likewise.
274 (apply_decl_field_layout): General cleanup.
275 Set DECL_SIZE instead of DECL_FIELD_SIZE.
277 Sun Feb 27 16:40:33 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
279 * actions.c (chill_convert_for_assignment): Don't use size_binop
280 for things that aren't sizes.
281 (expand_varying_length_assignment): Likewise.
282 * convert.c (digest_array_tuple, convert): Likewise.
283 * typeck.c (build_chill_slice, smash_dummy_type): Likewise.
284 (build_chill_slice_with_range): Likewise.
285 (build_chill_slice_with_length): Likewise.
286 (build_array_from_set): Adjust types for size_binop.
287 * expr.c (build_concat_expr, build_chill_repetition_op): Likewise.
288 (build_chill_sizeof): Use TYPE_SIZE_UNIT.
289 * tree.c (build_string_type): Pass proper type to size_binop.
291 Sat Feb 19 18:43:13 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
293 * decl.c (layout_enum): Set DECL_SIZE_UNIT.
294 * satisfy.c (safe_satisfy_decl): Likewise.
296 2000-02-15 Jonathan Larmour <jlarmour@redhat.co.uk>
298 * lang-specs.h: Add new __GNUC_PATCHLEVEL__ define to default spec.
300 2000-02-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
302 * grant.c: Don't declare `version_string'.
304 2000-02-11 Nathan Sidwell <nathan@acm.org>
306 * decl.c (init_decl_processing): Remove duplicate decl of
309 2000-02-11 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
311 * expr.c (compare_records): Delete maximum_field_alignment declaration.
312 * inout.c (inout_init): Likewise.
313 (build_chill_gettextaccess): Likewise.
314 (build_enum_tables): Likewise.
316 * satisfy.c (satisfy): Likewise.
317 * tasking.c (build_tasking_struct): Likewise.
318 (build_tasking_message_type): Likewise.
319 * typeck.c (build_init_struct): Likewise.
321 * except.c (emit_setup_handler): Make save_maximum_field_alignment
322 unsigned int to match maximum_field_alignment.
323 * inout.c (inout_init): Likewise.
324 (build_chill_gettextaccess): Likewise.
325 (build_enum_tables): Likewise.
326 * tasking.c (build_tasking_struct): Likewise.
327 (build_tasking_message_type): Likewise.
328 * typeck.c (build_init_struct): Likewise.
330 2000-02-10 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
332 * except.c (maximum_field_alignment): Remove duplicate declaration.
334 2000-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
336 * All files: PROTO -> PARAMS.
338 2000-01-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
340 * lex.c: Include tm_p.h.
342 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
344 * actions.c (update_else_range_for_int_const): Initialize
345 variables `lowval' and `highval'.
346 (update_else_range_for_range): Likewise for `low_range_val' and
349 1999-12-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
351 * typeck.c (apply_chill_array_layout, apply_chill_field_layout):
352 Avoid the use of ANSI string concatenation.
354 * expr.c (chill_expand_case_expr): Likewise.
356 1999-11-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
358 * expr.c (build_chill_function_call): Don't call a variadic
359 function with a non-literal format string.
361 * grant.c (write_spec_module): Likewise.
363 * parse.c (require, expect): Likewise.
365 * tasking.c (get_struct_type_name, get_struct_debug_type_name,
366 get_tasking_code_name, get_struct_variable_name,
367 get_process_wrapper_name, build_start_process): Likewise.
369 * typeck.c (valid_array_index_p): Likewise.
371 Sun Oct 31 22:33:33 1999 Jeffrey A Law (law@cygnus.com)
373 * Makefile.in (convert.o, typeck.o): Depend on output.h
374 * convert.c: Include output.h.
375 * typeck.c: Include output.h.
376 (initializer_constant_valid_p): Delete fucntion.
377 * ch-tree.h (initializer_constant_valid_p): Delete prototype.
379 1999-10-26 Mark Mitchell <mark@codesourcery.com>
381 * ch-tree.h (remember_end_note): Remove prototype.
382 * decl.c (poplevel): Don't call remember_end_note.
384 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
386 * ch-tree.h (builtin_function): Don't declare.
387 * decl.c (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of
388 type int. All callers changed.
389 Set the builtin's DECL_BUILT_IN_CLASS.
391 1999-09-20 Nick Clifton <nickc@cygnus.com>
393 * lang.c (lang_decode_option): Extend comment.
395 1999-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397 * lex.c (maybe_downcase, getlc, handle_generic_pragma,
398 check_newline): Use uppercase ctype macro from system.h.
400 1999-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
402 * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
404 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
406 * ch-tree.h: Delete declarations for all tree nodes now moved to
409 * typeck.c: Likewise.
410 * decl.c: Delete their definitions.
411 (init_decl_processing): Call build_common_tree_nodes and
412 build_common_tree_nodes_2 instead of building their nodes here.
413 Use set_sizetype instead of assigning sizetype.
415 1999-09-08 Bruce Korb autogen@linuxbox.com
417 * Makefile.in: Give the gperf user a hint about why "gperf -F" fails.
419 Tue Sep 7 15:59:56 1999 Dave Brolley <brolley@cygnus.com>
421 * parse.h: Undefine DELAY if it's defined.
422 (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
423 Also, move them to their proper place alphabetically.
425 1999-09-04 Mark Mitchell <mark@codesourcery.com>
427 * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
428 * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
430 1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
432 * parse.c (language_string): Constify.
434 1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
436 * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
437 Remove hacks for stuff which now comes from libiberty.
439 1999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
441 * lang.c (chill_print_error_function): Constify a char*.
443 1999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
445 * Makefile.in (ch-version.c): Constify a char*.
447 * actions.c (id_cmp, warn_unhandled, adjust_return_value,
448 update_else_range_for_int_const, update_else_range_for_range,
449 update_else_range_for_range_expr, update_else_range_for_type,
450 compute_else_range, check_case_value,
451 chill_handle_case_label_range,
452 chill_handle_multi_case_label_range,
453 chill_handle_multi_case_else_label, chill_handle_multi_case_label,
454 chill_handle_multi_case_label_list print_missing_cases): Add
456 (build_exception_variant): Cast the function argument of qsort.
457 (build_rts_call, warn_unhandled, chill_convert_for_assignment,
458 adjust_return_value, chill_expand_result,
459 build_multi_case_selector_expression, print_missing_cases):
461 (print_missing_cases): Introduce an intermediary non-const ptr.
462 Add brackets and indent.
464 * ch-tree.h (maybe_building_objc_message_expr,
465 maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
466 (push_handler, pop_handler): Add prototypes.
467 (builtin_function, valid_array_index_p,
468 build_chill_exception_decl, build_rts_call,
469 chill_convert_for_assignment, display_int_cst,
470 build_chill_addr_expr, check_have_mode, get_identifier3,
471 build_chill_string, register_seize_path, get_unique_identifier,
472 add_taskstuff_to_list, gnuchill_version): Constify a char*.
473 (finish_chill_function): Add void prototype argument.
475 * convert.c (convert_to_reference, convert_to_boolean,
476 convert_to_char, base_type_size_in_bytes, remove_tree_element,
477 check_ps_range, digest_powerset_tuple, digest_structure_tuple,
478 digest_array_tuple, convert1): Add static prototypes.
479 (base_type_size_in_bytes): Hide unused function.
480 (display_int_cst, digest_array_tuple): Constify a char*.
482 * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
483 proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
484 build_implied_names, bind_sub_modules, layout_array_type,
485 do_based_decl, handle_one_level, label_value_cmp,
486 find_implied_types): Add static prototypes.
487 (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
489 (layout_chill_variants): Cast the function argument of qsort.
490 (start_chill_function, fix_identifier, init_decl_processing):
492 (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
493 Use xcalloc instead of xmalloc/bzero.
494 (builtin_function, build_chill_exception_decl,
495 finish_outer_function): Constify a char*.
497 * except.c (start_handler_array, finish_handler_array): Add static
500 * expr.c (chill_expand_expr, chill_expand_case_expr,
501 check_arglist_length, internal_build_compound_expr,
502 is_really_instance, invalid_operand, invalid_right_operand,
503 build_chill_abstime, build_allocate_memory_call,
504 build_allocate_global_memory_call, build_return_memory,
505 build_chill_duration, build_chill_floatcall,
506 build_allocate_getstack, build_chill_allocate,
507 build_chill_getstack, build_chill_terminate, build_chill_inttime,
508 build_chill_lower_or_upper, build_max_min,
509 build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
510 build_compare_set_expr, scalar_to_string, build_concat_expr,
511 build_compare_string_expr, compare_records, string_char_rep,
512 build_boring_bitstring): Add static prototypes.
513 (check_have_mode, chill_expand_expr, build_chill_floatcall,
514 build_allocate_getstack, build_max_min, build_chill_function_call,
515 expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
516 string_char_rep): Constify a char*.
518 * gperf (hash, in_word_set): Add prototypes.
520 * grant.c (newstring, strfree, append, prepend,
521 grant_use_seizefile, decode_layout, grant_array_type,
522 grant_array_type_selective, get_tag_value,
523 get_tag_value_selective, print_enumeral, print_enumeral_selective,
524 print_integer_type, find_enum_parent, print_integer_selective,
525 print_struct, print_struct_selective, print_proc_exceptions,
526 print_proc_tail, print_proc_tail_selective, find_in_decls,
527 in_ridpointers, grant_seized_identifier, globalize_decl,
528 grant_one_decl_selective, compare_memory_file, search_in_list,
529 really_grant_this): Add static prototypes.
530 (newstring, append, prepend, grant_use_seizefile,
531 print_integer_type, decode_constant, grant_one_decl_selective,
532 header_template): Constify a char *.
534 * inout.c (add_enum_to_list, build_chill_io_list_type,
535 build_io_types, declare_predefined_file, build_access_part,
536 textlocation_mode, check_assoc, assoc_call, check_transfer,
537 connect_process_optionals, connect_text, connect_access,
538 check_access, check_text, get_final_type_and_range,
539 process_io_list, check_format_string, get_max_size,
540 check_exprlist): Add static prototypes.
541 (declare_predefined_file, check_assoc, assoc_call, check_transfer,
542 check_access, check_text, process_io_list): Constify a char*.
544 * lang.c (deep_const_expr, chill_print_error_function): Add static
547 * lex.c (close_input_file, maybe_number, string_or_char): Constify
549 (ch_lex_init, skip_directive, same_file, getlc, yywrap,
550 yy_refill): Add static prototypes.
551 (build_chill_string, same_file, register_seize_path): Constify a
554 * lex.h (finish_chill_seizes): Remove unused prototypes.
556 * loop.c (build_temporary_variable, maybe_make_for_temp,
557 get_unique_identifier): Constify a char*.
559 * parse.c (ch_parse_init, check_end_label, end_function,
560 build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
561 forward_token_, require, check_token, expect, define__PROCNAME__):
562 Add static prototypes.
563 (build_prefix_clause, expect): Constify a char*.
564 (parse_expression, parse_primval, parse_untyped_expr,
565 parse_opt_untyped_expr, parse_opt_actions): Add void prototype
567 (parse_opt_name_string, parse_simple_name_string,
568 parse_name_string, parse_defining_occurrence, parse_name,
569 parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
570 parse_spec_module, parse_semi_colon,
571 parse_defining_occurrence_list, parse_mode_definition,
572 parse_mode_definition_statement, parse_synonym_definition,
573 parse_synonym_definition_statement, parse_on_exception_list,
574 parse_on_alternatives, parse_loc_declaration,
575 parse_declaration_statement, parse_optforbid, parse_postfix,
576 parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
577 parse_grant_statement, parse_seize_statement,
578 parse_param_name_list, parse_param_attr, parse_formpar,
579 parse_formparlist, parse_opt_result_spec, parse_opt_except,
580 parse_opt_recursive, parse_procedureattr, parse_proc_body,
581 parse_procedure_definition, parse_processpar,
582 parse_processparlist, parse_process_definition,
583 parse_signal_definition, parse_signal_definition_statement,
584 parse_then_clause, parse_opt_else_clause, parse_expr_list,
585 parse_range_list_clause, pushback_paren_expr, parse_case_label,
586 parse_case_label_list, parse_case_label_specification,
587 parse_single_dimension_case_action,
588 parse_multi_dimension_case_action, parse_case_action,
589 parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
590 parse_asm_action, parse_begin_end_block, parse_if_action,
591 parse_iteration, parse_delay_case_event_list,
592 parse_delay_case_action, parse_do_action, parse_receive_spec,
593 parse_receive_case_action, parse_send_action, parse_start_action,
594 parse_call, parse_tuple_fieldname_list, parse_tuple_element,
595 parse_opt_element_list, parse_tuple, parse_operand6,
596 parse_operand5, parse_operand4, parse_operand3, parse_operand2,
597 parse_operand1, parse_operand0, parse_case_expression,
598 parse_then_alternative, parse_else_alternative,
599 parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
600 parse_step, parse_opt_layout, parse_field_name_list,
601 parse_fixed_field, parse_variant_field_list,
602 parse_variant_alternative, parse_field, parse_structure_mode,
603 parse_opt_queue_size, parse_procedure_mode, parse_program,
604 parse_pass_1_2): Add static prototypes.
605 (parse_process_definition): Remove extra argument in function call.
606 (parse_range_list_clause): Likewise.
608 * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
609 satisfy_list, satisfy_list_values): Add static prototype.
610 (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
612 * tasking.c (make_process_struct): Remove unused prototype.
613 (validate_process_parameters, get_struct_variable_name,
614 decl_tasking_code_variable, get_struct_debug_type_name,
615 get_process_wrapper_name, build_tasking_enum,
616 build_tasking_message_type, build_receive_signal_case_label,
617 build_receive_buffer_case_label, build_receive_buffer_case_end,
618 build_receive_signal_case_end): Add static prototypes.
619 (struct_name, struct_debug_name, data_name, wrapper_name,
620 get_struct_type_name, get_struct_debug_type_name,
621 get_tasking_code_name, get_struct_variable_name,
622 get_process_wrapper_name): Constify a char*.
623 (validate_process_parameters, get_struct_variable_name,
624 decl_tasking_code_variable): Hide unused functions.
625 (build_start_process, add_taskstuff_to_list, build_queue_length):
628 * tree.c (make_powerset_type): Add static prototype.
629 (get_identifier3, build_alias_decl, decl_check_rename): Constify a
632 * typeck.c (extract_constant_from_buffer,
633 expand_constant_to_buffer, build_empty_string,
634 make_chill_pointer_type, make_chill_range_type,
635 apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
636 apply_chill_field_layout): Add static prototype.
637 (valid_array_index_p, extract_constant_from_buffer,
638 chill_expand_tuple): Constify a char*.
639 (layout_chill_struct_type): Cast the function argument of qsort.
641 1999-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
643 * actions.c (lang_identify): Constify a char*.
645 * lang.c (chill_print_error_function): Likewise.
646 (lang_init): Remove redundant prototype for `print_error_function'.
648 1999-07-25 Richard Henderson <rth@cygnus.com>
650 * decl.c (va_list_type_node): New.
652 1999-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
654 * Make-lang.in (CHILL.stage1): Depend on stage1-start.
655 (CHILL.stage2): Likewise for stage2-start.
656 (CHILL.stage3): Likewise for stage3-start.
657 (CHILL.stage4): Likewise for stage4-start.
659 Tue May 18 00:21:34 1999 Zack Weinberg <zack@rabi.phys.columbia.edu>
661 * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
664 1999-05-10 18:21 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
666 * lang-specs.h: Pass -$ to the preprocessor.
668 Tue May 4 14:52:53 1999 Dave Brolley <brolley@cygnus.com>
670 * actions.c (chill_expand_assignment): Use powersetlen to calculate the
671 length of an array of packed bits.
673 Tue Apr 20 23:37:01 1999 Nathan Sidwell <nathan@acm.org>
675 * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
678 Wed Apr 14 21:07:30 1999 Mumit Khan <khan@xraylith.wisc.edu>
680 * config-lang.in (compilers): Add exeext.
681 (stagestuff): Likewise.
683 Fri Apr 2 15:49:44 1999 Jeffrey A Law (law@cygnus.com)
685 * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
687 Wed Mar 31 10:44:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
689 * Makefile.in (hash.h): Generate using gperf language 'C', not
690 'KR-C', so gperf uses the `const' keyword on strings.
692 * gperf (resword): Const-ify a char*.
694 Sun Mar 28 00:30:36 1999 Jeffrey A Law (law@cygnus.com)
696 * Make-lang.in (CHILL.dvi): New target.
697 (CHILL.mostlyclean): Remove remnants of old runtime library structure.
699 1999-02-20 Craig Burley <craig@jcb-sc.com>
701 * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
702 target instead of the chill.texi file.
703 (ch/chill.info): New target, depends on the chill.texi source file.
704 Its command writes ch/chill.info instead of chill.info.
705 (CHILL.install-info): Install from ch/chill.info instead of
707 If any ch/chill.info* files exist, delete *all* chill.info* files
708 in $infodir first, not just the ones corresponding to the
709 files to be installed (just in case the docs get smaller).
711 Sun Jan 31 20:34:29 1999 Zack Weinberg <zack@rabi.columbia.edu>
713 * decl2.c: Don't define flag_no_ident here. Don't process
715 * ch-tree.h: Don't declare flag_no_ident here.
716 * lang-specs.h: Map -Qn to -fno-ident.
718 Tue Jan 19 23:24:36 1999 Jeffrey A Law (law@cygnus.com)
720 * Makefile.in (typeck.o): Depend on insn-codes.h.
721 * actions.c (chill_handle_multi_case_label): Initialize "expr".
722 * decl.c (poplevel): Initialize "block_previously_created".
723 * expr.c (chill_expand_expr): Initialize "size0" and "size1".
724 (fold_set_expr): Initialize "buffer1".
725 * inout.c (process_io_list): Initialize "to_assign".
726 (check_exprlist): Initialize "result".
727 * parse.c (expand_expr): Declare.
728 (parse_multi_dimension_case_action): Initialize "end_case_label".
729 * tasking.c (build_start_process): Initialize "struct_type_node".
730 * typeck.c (apply_chill_field_layout): Initialize "word".
731 (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
732 signed/unsigned comparison warning.
734 Mon Jan 18 11:55:06 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
736 * ch-tree.h: Remove conflicting prototypes for pedwarn,
737 warning_with_decl, and make_dcl_rtl.
739 Sun Jan 17 21:53:23 1999 Jeffrey A Law (law@cygnus.com)
741 * Makefile.in: Do not put ^Ls at the start of a line.
743 Wed Jan 6 02:53:38 1999 Jeffrey A Law (law@cygnus.com)
745 * Makefile.in: Add some missing $(exeext). Remove some obsolete
747 * Make-lang.in: Similarly.
749 Tue Nov 24 09:57:34 1998 Jeffrey A Law (law@cygnus.com)
751 * Makefile.in (lex.c): Do not depend on hash.h.
752 (lex.o): Depend on hash.h.
754 Mon Oct 19 12:13:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
756 * Makefile.in (lex.o): Depend on dwarfout.h.
758 * lang-specs.h: Add missing braces in initializer.
760 * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
762 Thu Oct 15 09:25:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
764 * expr.c (build_chill_card): Use &&, not &, when comparing truth
767 * parse.c (parse_spec_module): Remove unused variable
768 `module_name', but preserve function call from initialization.
769 (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
771 * inout.c (init_text_location): Remove unused variable `textlength'.
773 Wed Oct 14 22:19:48 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
775 * typeck.c (build_chill_cast): Fix typo in assignment statement.
777 * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
778 when printing a `tree'.
780 Fri Oct 9 13:01:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
782 * ch-tree.h (build_delay_case_end): Remove unused parameter.
783 (build_receive_case_end): Likewise.
784 (check_queue_size): Likewise.
786 * parse.c: Callers changed.
788 * satisfy.c: Likewise.
790 * tasking.c (build_receive_buffer_case_end): Remove unused
791 parameter `label_cnt'.
792 (build_receive_signal_case_end): Likewise.
793 (build_receive_case_end): Likewise.
794 (build_delay_case_end): Likewise.
795 (check_queue_size): Likewise for parameter `type'.
798 Thu Oct 8 05:57:41 1998 Jeffrey A Law (law@cygnus.com)
800 * typeck (type_for_mode): Only return TItype nodes when
801 HOST_BITS_PER_WIDE_INT is >= 64 bits.
802 (type_for_size): Similarly.
803 * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
804 when HOST_BITS_PER_WIDE_INT is >= 64 bits.
805 (init_decl_processing): Only create TItype nodes when
806 HOST_BITS_PER_WIDE_INT is >= 64 bits.
808 Wed Oct 7 12:19:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
810 * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
811 (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
813 Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
815 * lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
816 HANDLE_GENERIC_PRAGMAS.
817 (handle_generic_pragma): New function: Parse generic pragmas.
819 Wed Sep 30 20:22:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
821 * parse.c (emit_label): Fix return-type of prototype.
823 Wed Sep 30 19:41:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
825 * actions.c (chill_handle_multi_case_label): Always return a value
826 in function returning non-void.
828 * except.c: Include OS headers before any local ones.
830 * typeck.c (layout_chill_range_type): Change type of variable
831 `negprecision' to int.
832 (apply_chill_array_layout): Initialize variables `stepsize' and
834 (layout_chill_struct_type): Change type of variable `min_align' to
836 (smash_dummy_type): Change name of variable `main' to `main_tree'.
838 Wed Sep 30 19:24:41 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
840 * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
841 ensure enough bits for calculation.
843 * ch-tree.h (check_text_length): Remove unused parameter.
845 * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
846 function sprintf into the appropriate type for printing.
848 * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
850 (print_mode): Likewise.
851 (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
853 * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
854 the format specifier.
856 * inout.c (check_text_length): Remove unused parameter `type'.
857 (build_chill_associate): Initialize variables `arg1', `arg2',
858 `arg3', `arg4' and `arg5'.
859 (build_chill_modify): Likewise.
860 (scanformcont): Change type of variable `curr' to `unsigned char'.
862 * lex.c (maybe_downcase): Cast the argument of `tolower' to
865 * satisfy.c (satisfy): Remove unused parameter in call to
868 * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
869 as a `long' in call to function `error'.
870 (decl_tasking_code_variable): Likewise.
872 Wed Sep 30 19:03:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
874 * grant.c (decode_decl_selective): Cast switch's enum argument to
876 (really_grant_this): Add default case in switch.
878 * typeck.c (chill_resulting_class): Add default cases in switch.
879 Also add `break' statements after each case.
881 Tue Sep 29 21:37:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
883 * ch-tree.h (build_compare_expr): Change first argument's type
884 from `enum chill_tree_code' to `enum tree_code'.
885 (build_compare_discrete_expr): Likewise.
887 * expr.c (build_compare_set_expr): Likewise.
888 (build_compare_string_expr): Likewise.
889 (build_compare_expr): Likewise.
890 (build_compare_discrete_expr): Likewise. Also add default case in
892 (compare_int_csts): Add default case in switch statement.
894 Sun Sep 20 11:02:55 1998 Robert Lipe <robertl@dgii.com>
896 * except.c: Include system.h.
898 * Makefile.in (except.o): Depend on system.h.
900 Sun Sep 20 09:25:13 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
902 * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
903 lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
904 typeck.o): Depend on system.h and toplev.h.
905 (except.o): Depend on toplev.h.
906 (grant.o): Depend on system.h, toplev.h and output.h.
908 * actions.c: Include system.h and toplev.h. Remove redundant
910 (build_cause_exception): Add default case in switch.
911 (update_else_range_for_range): Add parentheses around && within ||.
912 (chill_handle_multi_case_label_list): Remove unused variable
914 (print_missing_cases): Reconcile format specifiers vs arguments in
917 * ch-tree.h: Don't include stdio.h. Wrap prototypes using FILE*
918 with macro BUFSIZ. Add missing prototypes.
920 * convert.c: Include system.h and toplev.h. Remove redundant
922 (convert): Remove unused variable `errstr'.
924 * decl.c: Include system.h and toplev.h. Remove redundant
926 (builtin_scope): Add missing initializers.
927 (clear_scope): Likewise.
928 (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
929 (copy_lang_decl): Likewise for parameter `node'.
930 (c_decode_option): Likewise for parameter `argc'.
931 (push_extern_function): Likewise for parameter `granting'.
932 (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
933 (pushdecl): Remove unused variable `t'.
934 (lookup_name_current_level): Make static and hide.
935 (lookup_name_for_seizing): Make static.
936 (finish_decl): Remove unused variable `type'.
937 (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
938 (complete_array_type): Mark parameters `type', `initial_value' and
939 `do_default' with ATTRIBUTE_UNUSED.
940 (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
941 (start_enum): Likewise.
942 (shadow_record_fields): Remove unused variables `type' and `parent'.
944 * except.c: Include toplev.h. Remove redundant prototypes.
946 * expr.c: Include system.h and toplev.h. Don't define NULL.
947 Remove redundant prototypes.
948 (internal_build_compound_expr): Mark parameter `first_p' with
950 (build_allocate_getstack): Remove unused variable `init'.
951 (build_chill_pred_or_succ): Likewise for variable `limit'.
952 (varying_to_slice): Likewise for variable `doamin' [sic].
953 (finish_chill_binary_op): Likewise for variables `code0' and
954 `code1'. Remove unused label `finish'. Add explicit braces to
955 avoid ambiguous `else'.
956 (build_chill_addr_expr): Remove extra parameter in call to `error'.
957 (build_chill_unary_op): Remove unused variables `class' and `type0'.
958 (powersetlen): Remove unused variables `domain' and `temp'.
960 * grant.c: Include system.h, toplev.h and output.h. Don't handle
961 strchr/strrchr. Remove redundant prototypes.
962 (decode_constant_selective): Remove unused variables `op' and `wrk'.
963 (push_granted): Mark parameters `name' and `decl' with
966 * inout.c: Include system.h and toplev.h. Remove redundant
968 (textlocation_mode): Use &&, not &, when comparing two truth
970 (scanformcont): Remove unused label `do_the_action'.
972 * lang.c: Include system.h and toplev.h. Remove redundant
974 (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
975 (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
976 (lang_print_xnode): Likewise for parameters `file', `node' and
978 (lang_decode_option): Explicitly declare `explicit_ignore_case'.
979 (incomplete_type_error): Mark parameters `value' and `type' with
982 * lex.c: Include system.h and toplev.h. Remove redundant
983 prototypes. Don't handle strchr/strrchr. Use CAPITALIZED
984 versions of ctype macros from system.h. Cast ctype arguments to
985 unsigned char when necessary.
986 (last_token, RETURN_TOKEN): Hide definition.
987 (push_back): Remove unused function.
988 (readstring): Change variable `i' to unsigned.
989 (yywrap): Remove unused variable `node'.
991 * loop.c: Include system.h and toplev.h. Remove redundant
993 (chill_unsigned_type): Hide prototype and definition.
994 (begin_loop_scope): Remove unused variable `firstp'.
995 (nonvalue_begin_loop_scope): Likewise.
997 * parse.c: Include system.h and toplev.h. Remove redundant
999 (quasi_signal): Hide.
1000 (PEEK_TOKEN): Change return type to `enum terminal'.
1001 (parse_mode_definition_statement): Remove unused variable `names'.
1002 (parse_formpar): Remove unused parameter `in_spec_module'. All
1004 (parse_formparlist): Likewise.
1005 (parse_processpar): Remove unused variable `parms'.
1006 (parse_definition): Add explicit braces to avoid ambiguous `else'.
1007 (parse_multi_dimension_case_action): Initialize variable
1008 `begin_test_label'. Remove unused variable `new_test'.
1009 (parse_case_action): Remove unused variable `caseaction_flag'.
1010 (parse_asm_clobbers): Remove unused variable `expr'.
1011 (parse_delay_case_action): Initialize variable `label_cnt'.
1012 (parse_action): Make function static.
1013 (parse_tuple_element): Remove unused variable `list'.
1014 (parse_primval): Add default case in switch.
1015 (parse_variant_alternative): Remove unused variables `x' and
1018 * satisfy.c: Include system.h and toplev.h. Remove redundant
1021 * tasking.c Include system.h and toplev.h. Remove redundant
1024 (get_struct_variable_name): Likewise.
1025 (validate_process_parameters): Mark parameter `parms' with
1027 (build_start_process): Initialize variable `tuple'.
1028 (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
1030 * timing.c: Include system.h and toplev.h.
1031 (build_after_timeout_start): Remove unused variable `goto_where'.
1033 * tree.c: Include system.h and toplev.h. Remove redundant
1036 * typeck.c: Include system.h and toplev.h. Remove redundant
1038 (extract_constant_from_buffer): Make function static. Add
1039 explicit braces to avoid ambiguous `else'.
1040 (expand_constant_to_buffer): Likewise.
1041 (build_chill_slice): remove unused variable `is_static'.
1042 (chill_compatible): Add explicit braces to avoid ambiguous `else'.
1043 (apply_chill_array_layout): Remove unused variable `offset'.
1044 (smash_dummy_type): Remove unused variable `save_lang_specific'.
1045 (initializer_constant_valid_p): Add default case in switch.
1047 Mon Sep 14 16:46:36 1998 Dave Brolley <brolley@cygnus.com>
1049 * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
1050 domain type of the array.
1052 * expr.c (build_chill_function_call): Remove redundant call to
1053 chill_convert_to_assignment
1055 Thu Sep 10 17:52:36 1998 Dave Brolley <brolley@cygnus.com>
1057 * actions.c (chill_convert_for_assignment): Make a copy of the result
1058 node before modifying it.
1060 Sat Sep 5 16:55:37 1998 John Carr <jfc@mit.edu>
1062 * Make-lang.in: Comment ^L characters. Sun make doesn't like them.
1064 Sat Sep 5 23:49:50 1998 Jeffrey A Law (law@cygnus.com)
1066 * Makefile.in (INCLUDES): Update after recent reorganization at the
1067 toplevel gcc directory.
1069 Sat Sep 5 22:25:51 1998 Richard Henderson <rth@cygnus.com>
1071 * Makefile.in: Update dependancies for top-level gcc files that moved.
1073 Sat Sep 5 02:21:08 1998 Jeffrey A Law (law@cygnus.com)
1075 * Makefile.in: Tweak to avoid building runtime. It's built
1078 Thu Sep 3 15:32:03 1998 Dave Brolley <brolley@cygnus.com>
1080 * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
1082 Wed Sep 02 09:25:29 1998 Nick Clifton <nickc@cygnus.com>
1084 * lex.c (check_newline): Change how HANDLE_PRAGMA is called.
1085 Generate warning messages if unknown pragmas are encountered.
1086 (pragma_getc): New function: retrieves characters from the
1087 input stream. Defined when HANDLE_PRAGMA is defined.
1088 (pragma_ungetc): New function: replaces characters back into the
1089 input stream. Defined when HANDLE_PRAGMA is defined.
1091 Mon Aug 31 15:35:16 1998 Dave Brolley <brolley@cygnus.com>
1093 * decl.c (layout_chill_variants): Calculate nlables properly.
1095 Mon Jul 27 17:21:01 1998 Dave Brolley <brolley@cygnus.com>
1097 * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
1100 Mon Jul 13 14:20:12 1998 Nick Clifton <nickc@cygnus.com>
1102 * lang-options.h: Format changed to match changes in gcc/toplev.c
1103 to implement a --help option.
1105 Wed Jul 8 02:58:35 1998 Jeffrey A Law (law@cygnus.com)
1107 * lang.c (lang_init_options): New function.
1109 Wed Jun 10 12:08:09 1998 Dave Brolley <brolley@cygnus.com>
1111 * lang-options.h: Remove -I.
1112 * ch-tree.h (c_decode_option): New argc/argv interface.
1113 * decl.c (c_decode_option): New argc/argv interface.
1114 * lang.c (lang_decode_option): New argc/argv interface.
1116 Wed May 27 10:33:41 1998 Dave Brolley <brolley@cygnus.com>
1118 * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
1119 chill_handle_multi_case_label_range were reversed.
1121 * Make-lang.in (chill): Use the correct gcc in the driver script.
1123 Thu May 21 14:40:44 1998 Dave Brolley <brolley@cygnus.com>
1125 * convert.c (digest_array_tuple): Move conversion to
1126 chill_convert_for_assignment.
1128 * actions.c (chill_convert_for_assignment): Allow conversion of array
1129 constructor to bitstring constructor for assignment to array of packed bits.
1131 Thu May 14 13:57:51 1998 Dave Brolley <brolley@cygnus.com>
1133 * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
1135 Wed May 13 14:07:51 1998 Dave Brolley <brolley@cygnus.com>
1137 * typeck.c (build_chill_slice): Adjust slice index to account for the
1138 lower bound of the array.
1140 * actions.c (chill_expand_assignment): Convert function arguments to the
1142 (chill_expand_assignment): Ditto.
1144 Mon May 11 16:20:57 1998 Dave Brolley <brolley@cygnus.com>
1146 * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
1147 of the array_type to the slice_type.
1148 (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
1151 * loop.c (build_loop_iterator): Disallow location enumeration for
1154 * convert.c (digest_array_tuple): Allow conversion of an array tuple
1155 to a bitstring for assignment to a packed array of bits.
1157 Mon May 4 16:28:58 1998 Dave Brolley <brolley@cygnus.com>
1159 * ch-tree.def (PACKED_ARRAY_REF): New tree code.
1160 * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
1161 (chill_location): Handle PACKED_ARRAY_REF.
1162 (apply_chill_array_layout): Allow PACK for arrays of single bits.
1163 * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
1164 (invalid_operand): Check PACKED_ARRAY_REF operands.
1165 * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
1167 Thu Apr 23 15:33:20 1998 Dave Brolley <brolley@cygnus.com>
1169 * typeck.c (apply_chill_field_layout): Only integral fields can be packed
1172 Tue Apr 21 14:30:10 1998 Jeffrey A Law (law@cygnus.com)
1174 * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
1175 (init_decl_processing): Handle TI types.
1176 * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
1177 (type_for_size): Handle TI types.
1178 (type_for_mode): Handle TI types.
1180 Mon Apr 20 13:12:26 1998 Dave Brolley <brolley@cygnus.com>
1182 * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
1185 * actions.c (chill_convert_for_assignment): Check that the rhs is not
1188 Tue Apr 14 13:17:44 1998 Dave Brolley <brolley@cygnus.com>
1190 * lex.c (init_parse): Now returns char* containing the filename.
1192 * typeck.c (get_type_precision): Declare.
1193 (apply_chill_field_layout): Use the minimum number of bits necessary to
1194 represent discrete types as the natural length of the field.
1196 Thu Apr 9 12:46:55 1998 Dave Brolley <brolley@cygnus.com>
1198 * lex.c (finput): Move definition here from toplev.c
1199 (init_parse): New function replaces init_lex.
1200 (init_parse): Add code to open source file.
1201 (finish_parse): New function.
1202 (close_input_file): File was being closed more than once.
1204 * lang.c (finput): Declare.
1205 * ch-tree.h (init_lex): Remove.
1208 Wed Apr 8 14:47:33 1998 Dave Brolley <brolley@cygnus.com>
1210 * actions.c (compute_else_range): Fix loop index error.
1211 (chill_handle_multi_case_label_range): Move error checking to
1212 chill_handle_multi_case_label.
1213 (chill_handle_multi_case_else_label): Convert ELSE range values to
1214 the type of the corrersponding CASE selector.
1216 Wed Apr 8 13:02:50 1998 Jeffrey A Law (law@cygnus.com)
1218 * actions.c (sizetype_tab): Do not declare.
1219 * lang.c (lang_print_xnode): New function.
1221 Mon Mar 23 14:43:06 1998 Dave Brolley <brolley@cygnus.com>
1223 * grant.c (decode_layout): New function.
1224 (grant_array_type): Call decode_layout to export layout information to
1226 (decode_decl): Ditto
1228 Fri Mar 20 16:06:41 1998 Dave Brolley <brolley@cygnus.com>
1230 * parse.c (parse_tuple_element): Call had arguments in wrong order.
1232 Thu Mar 19 13:42:33 1998 Dave Brolley <brolley@cygnus.com>
1234 * typeck.c (apply_chill_array_layout): Use
1235 TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
1238 Wed Mar 18 16:25:48 1998 Dave Brolley <brolley@cygnus.com>
1240 * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
1243 * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
1246 Tue Mar 17 14:16:08 1998 Dave Brolley <brolley@cygnus.com>
1248 * parse.c (gen_label_rtx): Declare before use.
1249 (emit_jump): Declare before use.
1250 (emit_label): Declare before use.
1251 (parse_case_label_list): Pass in CASE selector so we can mark it as having
1252 an (ELSE) label if necessary.
1253 (parse_case_label_specification): Pass in the CASE selector list so that
1254 the CASE selectors can be passed to parse_case_label_list.
1255 (parse_multi_dimension_case_action): Modify to generate branching code in
1257 (parse_case_expression): Compute (ELSE) range before generating CASE expression.
1258 (parse_variant_alternative): Remove error for (ELSE) specified.
1260 * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
1262 * decl.c (layout_chill_variants): Add code to check compatibility of ranges
1263 and discrete mode names.
1265 * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
1267 * actions.h (build_multi_case_selector_expression): Make it extern.
1268 (chill_handle_multi_dimension_case_label): Remove.
1269 (compute_else_ranges): New function.
1271 * actions.c (update_else_range_for_int_const): New function.
1272 (update_else_range_for_range): New function.
1273 (update_else_range_for_range_expr): New function.
1274 (update_else_range_for_type): New function.
1275 (compute_else_range): New function.
1276 (compute_else_ranges): New function.
1277 (chill_handle_multi_case_else_label): New function
1278 (chill_handle_multi_case_label_range): Don't generate tests for conditions
1279 which are always true or false.
1280 (chill_handle_multi_case_label): Ditto.
1281 (chill_handle_multi_case_label): Implement (ELSE) label support.
1282 (chill_handle_multi_case_label): First argument is now the selector tree not
1284 (chill_handle_multi_dimension_case_label): Removed.
1285 (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
1286 reversed on entry, so reverse it here.
1288 Tue Mar 10 15:02:26 1998 Dave Brolley <brolley@cygnus.com>
1290 * actions.c (chill_handle_multi_case_label_range): Add more error checking.
1291 (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
1292 (chill_handle_multi_case_label): Improve Error handling.
1294 Mon Mar 9 12:39:00 1998 Dave Brolley <brolley@cygnus.com>
1296 * actions.c (chill_handle_multi_case_label_range): Added.
1297 (chill_handle_multi_case_label): Add support for discrete ranges and
1300 * typeck.c (apply_chill_array_layout): Added more error checking.
1301 (apply_chill_field_layout): Added more error checking.
1303 Wed Mar 4 16:08:26 1998 Dave Brolley <brolley@cygnus.com>
1305 * convert.c (convert): Call build_simple_array_type with new argument.
1307 * ch-tree.h(build_simple_array_type): Add argument for array layout.
1309 * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
1310 (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
1311 (apply_chill_array_layout): New function to implement array layout.
1312 (layout_chill_array_type): Call apply_chill_array_layout and reset
1313 TYPE_ATTRIBUTES to NULL_TREE.
1314 (build_chill_array_type): Extend to handle one array layout per index mode.
1315 (smash_dummy_type): Call build_simple_array_type with new argument.
1317 * satisfy.c (satisfy): Call SATISFY on array layout tree.
1319 Wed Feb 25 14:36:41 1998 Dave Brolley <brolley@cygnus.com>
1321 * typeck.c (next_struct_offset): Added.
1322 (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
1323 or POS layout to a structure field.
1324 (layout_chill_struct_type): Add call to apply_chill_field_layout.
1326 * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
1327 in the field layout tree.
1329 * parse.c (pack_warn_printed): Remove.
1330 (nopack_warn_printed): Remove.
1331 (step_warn_printed): Remove.
1332 (pos_warn_printed): Remove.
1333 (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
1335 * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
1338 Thu Feb 19 17:33:06 1998 Dave Brolley <brolley@cygnus.com>
1340 * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
1341 (parse_opt_mode): Removed incorrect comment about association of array
1342 layouts with nested array elements.
1343 (parse_opt_mode): Allow for one layout per index mode specified.
1345 Wed Feb 18 23:48:57 1998 Richard Henderson <rth@cygnus.com>
1347 * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy.
1349 Wed Feb 18 17:35:05 1998 Dave Brolley <brolley@cygnus.com>
1351 * parse.c (parse_field): Get rid of warning for multiple case selectors.
1353 * decl.c (layout_chill_variants): Fix loop indexing error.
1355 Mon Feb 16 15:54:47 1998 Dave Brolley <brolley@cygnus.com>
1357 * parse.c (parse_case_expression): Remove code which checked for
1358 unimplemented (ELSE) label.
1359 (parse_case_expression): Add code to handle multi dimensional case
1362 * expr.c (check_case_selector_list): Fixed to return a list of the
1363 selectors which were checked.
1364 (chill_expand_case_expr): Remove "sorry" message for multi dimension
1366 (chill_expand_case_expr): Reverse order of case alternatives.
1367 (chill_expand_case_expr): Add "error" message for multiple case
1370 * actions.h (build_chill_multi_dimension_case_expr): Added.
1372 * actions.c (build_multi_case_selector_expression): Renamed from
1373 build_multi_case_expression.
1374 (chill_handle_multi_dimension_case_label): Call above function by its
1376 (build_chill_case_expr): Don't reverse the list elements here. It may
1378 (build_chill_multi_dimension_case_expr): New function implements multi
1379 dimensional case expression.
1381 Thu Feb 12 15:44:50 1998 Dave Brolley <brolley@cygnus.com>
1383 * parse.c (parse_case_action): Implement multi-dimension CASE action.
1384 (parse_multi_dimension_case_action): Added.
1385 (parse_single_dimension_case_action): Added based on code moved from
1388 * expr.c (check_case_selector_list): Added.
1390 * ch-tree.h (check_case_selector_list): Added.
1392 * actions.h (chill_handle_single_dimension_case_label): Added.
1393 (chill_handle_multi_dimension_case_label): Added.
1395 * actions.c (chill_handle_single_dimension_case_label): Added.
1396 (chill_handle_multi_case_label): Added.
1397 (chill_handle_multi_case_label_list): Added.
1398 (build_multi_case_expression): Added.
1399 (chill_handle_multi_dimension_case_label): Added
1401 Fri Feb 6 16:43:41 1998 Dave Brolley <brolley@cygnus.com>
1403 * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1405 Thu Feb 5 14:03:00 1998 Dave Brolley <brolley@cygnus.com>
1407 * decl.c (chill_tree_code_type): Change this to be an array of char like
1408 the tree_code_type in the rest of gcc.
1410 * ch-tree.def (chill_tree_code_type): See decl.c.
1412 Thu Jan 29 15:34:18 1998 Dave Brolley <brolley@cygnus.com>
1414 * tasking.c (error_with_decl): Correct prototype.
1415 (build_gen_ptype): Reverse arguments.
1417 * lang.c (chill_real_input_filename): Add definition.
1418 (chill_print_error_function): Correct second argument.
1419 (lang_init): Set chill_real_input_filename.
1421 * expr.c (NULL): Protect definition with #ifndef.
1423 * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1424 (init_decl_processing): Change last argument to 'sizeof(char)'.
1427 Tue Nov 25 10:44:19 1997 Nick Clifton <nickc@cygnus.com>
1429 * Make-lang.in (mostlyclean): Use && to separate commands, so that
1430 if the directory change fails, the rule will not loop.
1432 Mon Mar 3 12:08:19 1997 Fred Fish <fnf@cygnus.com>
1434 * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1435 spaces and use single tab character on some lines.
1438 Tue Nov 26 05:12:40 1996 Wilfried Moser <moser@rtl.cygnus.com>
1440 * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1441 that the buffer location gets evaluated only once, in
1442 build_receive_buffer_case_end.
1444 * typeck.c (build_chill_bin_type): Rework.
1445 (layout_chill_range_type): Process BIN mode.
1446 (build_chill_array_type): Remove checking of layout. This is done
1449 * parse.c (parse_on_exception_list): Don't allow ON name:.
1450 (parse_opt_layout): Parse POS and STEP and return a tree instead
1453 * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1455 * grant.c (print_integer_type): Take care of BIN.
1457 * expr.c (build_chill_descr): Make descr static if requested
1459 (build_chill_length): Process text mode name and text location as
1460 described in Z.200/1992.
1461 (build_compare_expr): Don't allow < <= > >= for composite modes.
1463 * decl.c (grok_chill_fixedfields): Remove checking of
1464 layout. This is done at the parser.
1466 * convert.c (digest_structure_tuple): Take care of wrong (probably
1467 array) tuple. Printing error may cause sigsegv.
1469 * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1470 build_chill_array_type (layout is passed now as a tree instead of
1473 Fri Nov 15 15:17:44 1996 Per Bothner <bothner@deneb.cygnus.com>
1475 * convert.c (display_int_cst): Check that val is INTEGER_CST.
1476 (digest_array_tuple): Some extra error checks (i.e. that indexes
1477 are constant). If dynamic mode, result is not constant.
1479 Mon Oct 28 12:48:06 1996 Jeffrey A Law (law@cygnus.com)
1481 * typeck.c (signed_or_unsigned_type): If the given type already
1482 as the correct signedness, then just return it.
1484 * typeck.c ({un,}signed_type): If can't do anything, call
1485 signed_or_unsigned_type.
1487 Fri Sep 6 02:50:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1489 * typeck.c (build_chill_cast): In case of rangecheck, take care of
1490 constant expression (when defining a SYN).
1492 Thu Sep 5 04:30:32 1996 Wilfried Moser <moser@rtl.cygnus.com>
1494 * parse.c (define__PROCNAME__): New function to define a SYNONYM
1495 __PROCNAME__ (__procname__) which is a character string containing
1496 the name of the current procedure. This is quit the same as
1498 (parse_proc_body): Add call to define__PROCNAME__.
1500 * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1501 modes on one side and procedures on the other side..
1503 Wed Jul 24 01:13:51 1996 Wilfried Moser <moser@rtl.cygnus.com>
1505 * typeck.c: Replace all local variables and arguments named `index'
1506 with `idx', `index' gets replaced by `strchr' which makes debugging
1508 (valid_array_index_p): New argument to indicate that we are processing
1509 LENGTH (varying string) on the lefthand side of an assignment. The
1510 index check is different in this case.
1511 (build_chill_cast): In case of expression conversion do an OVERFLOW
1512 check with the limits of the target mode.
1514 * ch-tree.h: New prototype for valid_array_index_p.
1516 * actions.c (expand_varying_length_assignment): Add new argument to
1517 call to valid_array_index_p to indicate we are processing
1518 LENGTH on the lefthand side of an assignment.
1520 * loop.c: Rename loop_stack to loopstack to avoid clashes with
1521 global variable ../stmt.c:loop_stack.
1523 Tue Jun 18 23:04:06 1996 Per Bothner <bothner@deneb.cygnus.com>
1525 * expr.c (resolve_component_ref): Set TREE_SIDE_EFFECTS properly.
1527 Mon Jun 10 15:01:51 1996 Per Bothner <bothner@deneb.cygnus.com>
1529 * typeck.c (build_chill_reference_type): Copy novelty for reference.
1530 * satisfy.c (satisfy): If REFERENCE_TYPE, copy novelty.
1532 Thu May 30 04:55:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1534 * typeck.c (valid_array_index_p): For varying character strings
1535 we must check if the index is less then the actual length instead
1538 Wed May 15 06:07:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
1540 * ch-tree.h: Add prototype for test_range.
1542 * inout.c (process_io_list): Fix duplicate function call if
1543 writetext argument is a function returning a varying string.
1545 Tue May 14 21:08:47 1996 Per Bothner <bothner@deneb.cygnus.com>
1547 Re-do string comparisons. Old way could re-use temporary
1548 (SAVE_EXPR created for an argumnet is variable) prematurely.
1549 * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR): New codes.
1550 * decl.c (init_decl_processing): Remove __eqstring, __gestring,
1551 __gtstring, __lestring, __ltstring, __nestring declarations.
1552 * expr.c (build_char_array_expr): Rename to build_compare_string_expr.
1553 Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1554 (chill_expand_expr): Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1555 (build_compare_expr): Use new build_char_array_expr name.
1557 Mon Apr 8 14:08:30 1996 Per Bothner <bothner@kalessin.cygnus.com>
1559 Cleanup of April 5 fix:
1560 * actions.c (test_range): New function.
1561 (check_range): Simplify to use test_range.
1562 * convert.c (digest_powerset_tuple): Move error message from here ...
1563 (check_ps_range): ... to here. Also, simplify to use test_range.
1565 Fri Apr 5 03:41:05 1996 Wilfried Moser <moser@rtl.cygnus.com>
1567 * convert.c (check_ps_range): New function to perform range check
1568 of powerset tuple elements. This is quite the same as check_range,
1569 however, the actions on rangefail are different.
1570 (digest_powerset_tuple): Call check_ps_range.
1572 * loop.c (build_loop_iterator): Chaeck if location enumeration
1573 is requested for BOOLS(n) and print an error message.
1575 Wed Mar 6 17:46:48 1996 Per Bothner <bothner@kalessin.cygnus.com>
1577 * parse.c (parse_primval): Emit error if !ignore (before: pass==2).
1579 Implement parameterised array and string modes (using LANG_TYPE).
1580 * parse.c (parse_opt_mode): Handle parameterized arrays and strings.
1581 * grant.c (decode_mode): Support extended use of LANG_TYPE.
1582 * satisfy.c (cycle_error_print): Ignore non-decls in chain.
1583 (safe_satisfy_decl): No error if non-decl (pointer type) in cycle.
1584 (satisfy): Return immediately if laid out non-pointer type.
1585 (satisfy case LANG_TYPE): Handle paramertised mode.
1586 (satisfy case POINTER_TYPE/REFERENCE_TYPE): Push type on chain;
1587 return immediately if already in chain.
1588 * typeck.c (smash_dummy_type): Handle parameterized modes and CHAR(N).
1589 Change return type (can now return error_mark_node).
1590 (build_readonly_type): Return return value from smash_dummy_type.
1591 * ch-tree.h: Change smash_dummy_type return type.
1593 Tue Mar 5 22:31:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1595 * typeck.c (build_chill_slice): Re-do index_type calculation.
1596 * typeck.c (layout_chill_range_type): Use compare_int_csts rather
1597 than tree_int_cst_lt to avoid signed/unsigned problems.
1599 * typeck.c (copy_novelty): Use copy_node rather than build_type_node.
1600 * typeck.c (smash_dummy_type): Use copy_novelty for NEWMODE of range.
1602 * decl.c (init_decl_processing): More portable sizetype initialization.
1604 * tree.c (build_string_type): Generalize to also create bitstrings.
1605 Return error_mark_node if an argument is an ERROR_MARK.
1606 (build_bitstring_type): Simplify - just call build_string_type.
1608 Tue Mar 5 03:48:32 1996 Wilfried Moser <moser@blues.cygnus.com>
1610 * actions.c (warn_unhandled): Add missing assignment.
1612 * loop.c (build_loop_iterator): In case of IN, check if
1613 expression has a mode, otherwise make an error.
1615 Mon Mar 4 23:12:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
1617 * convert.c (digest_powerset_tuple): Check tuple elements
1618 for compatibility; if compatible, call convert.
1620 Thu Feb 29 23:39:54 1996 Per Bothner <bothner@kalessin.cygnus.com>
1622 Simplify NOVELTY representation.
1623 * ch-tree.h (CH_NOVELTY): Re-implement as plain TYPE_CONTEXT.
1624 (CH_NOVELTY_FLAG): Removed. (Just use CH_NOVELTY.)
1625 * decl.c (push_modedef): Make copy even for SYNMODE.
1626 but not for internal typedefs (indicated by make_newmode==-1).
1627 * tasking.c: Call push_modedef with make_newmode==-1.
1628 * typeck.c (chill_novelty): Remove.
1629 (smash_dummy_type): Removed unused event/buffer stuff. Update.
1630 * grant.c (decode_decl), inout.c (build_io_types),
1631 expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1632 tasking.c (build_instance_type): Simplify using new CH_NOVELTY.
1634 Solidify READ mode handling.
1635 * decl.c (do_decl, push_syndecl, start_chill_function):
1636 Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1637 * typeck.c (build_chill_slice): Set TREE_READONLY appropriately.
1638 (build_chill_array_ref_1, build_chill_bitref): Likewise.
1639 (build_chill_cast): Set TREE_READONLY depending on result type (only).
1640 * convert (convert_from_reference, convert): Likewise.
1641 * expr.c (resolve_component_ref): Set TREE_READONLY appropriately.
1642 (build_chill_function_call): Error if OUT/INOUT arg is TREE_READONLY.
1643 * actions.c (chill_expand_assignment): Also error if TREE_READONLY.
1644 Use convert_from_reference.
1646 Thu Feb 29 11:14:09 1996 Per Bothner <bothner@kalessin.cygnus.com>
1648 * parse.c (parse_do_action): DO WITH expressions are evaluated in
1649 outer scope. Also call save_if_needed.
1650 * decl.c (shadow_record_fields); Fix and simplify.
1652 Tue Feb 27 22:19:40 1996 Per Bothner <bothner@cygnus.com>
1654 * convert.c (display_int_cst): Gereralize to wider range of ints.
1656 Thu Feb 22 06:12:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1658 * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1660 * decl.c (do_decl): In case of chill_varying_type_p, check if
1661 type of fixed part is error mark and do nothing in this case.
1663 * lex.c (convert_bitstring): Don't complain when length of
1664 bitstring is 0 (BOOLS(0) is a valid mode).
1666 * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1667 (domain) is error mark.
1669 * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1670 error_mark_node, just return.
1672 Tue Feb 20 00:01:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
1674 * parse.c (parse_variant_alternative): When checking for ELSE take
1675 care of tagless variants.
1677 Mon Feb 19 05:54:45 1996 Wilfried Moser <moser@rtl.cygnus.com>
1679 * parse.c (parse_case_action): Check if ELSE was specified
1680 in a case label list (this is only valid for array tuples).
1681 (parse_case_expression): Deto.
1682 (parse_variant_alternative): Deto.
1684 Tue Feb 13 17:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1686 * typeck.c (chill_location): Cleanup. Neither SLICE_EXPR nor
1687 BIT_FIELD_REF are referable, even if their base strings are.
1689 Fri Feb 9 02:25:33 1996 Wilfried Moser <moser@rtl.cygnus.com>
1691 * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1692 checking the expression.
1694 * convert.c (convert): Set TREE_CONSTANT when taking the
1695 address of a function.
1697 * decl.c (start_chill_function): Check if the mode is really
1698 a mode to avoid subsequent segfaults.
1700 * typeck.c (string_assignment_condition): Add checking of
1703 Thu Feb 8 01:37:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1705 * actions.c (build_cause_exception): Print warning of unhandled
1706 exception only once for each exception.
1708 Mon Feb 5 22:17:13 1996 Per Bothner <bothner@kalessin.cygnus.com>
1710 * tree.c (discrete_count), ch-tree.h: New function.
1711 * expr.c (build_concate_expr, build_chill_repetition_op,
1712 chill_expand_expr): Use discrete_count; make sure arguments
1713 to size_binop are sizetype.
1714 (powersetlen): Trvialize using discrete_count.
1716 * inout.c (process_io_list): Use new assign_temp function.
1717 * inout.c (build_enum_tables): Avoid taking address of array_ref,
1718 which sometimes gets optimized to a constant.
1720 * expr.c (finish_chill_unary_op): Call convert_to_class on argument.
1721 Remove some obsolete TREE_UNSIGNED stuff.
1722 * lex.c (convert_integer): Removed more TREE_UNSIGNED stuff.
1724 Thu Feb 1 15:11:20 1996 Doug Evans <dje@charmed.cygnus.com>
1726 * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1728 Wed Jan 31 17:13:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1730 * decl.c (char_array_type_node, wchar_array_type_node): Removed.
1731 (init_decl_processing): Remove array_domain_type; don't set
1732 char_array_type_node or wchar_array_type_node.
1733 * decl.c (init_decl_processing): Use fixup_unsigned_type to
1734 simplify code to create boolean_type_node and char_type_node.
1736 Mon Jan 29 14:20:10 1996 Doug Evans <dje@charmed.cygnus.com>
1738 * lex.c (check_newline): Pass character after `#pragma' to
1739 HANDLE_PRAGMA. Don't call get_directive_line if at end of line.
1741 Fri Jan 26 05:56:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1743 * expr.c (build_chill_function_call): Add check and error for
1744 actual argument is a TYPE_DECL.
1746 * parse.c (parse_set_mode): Print a warning if the set mode contains
1747 numbered and unnumbered set elements.
1749 Wed Jan 24 05:10:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1751 * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1753 * decl.c (layout_enum): Add check for negative values if
1754 enum is numbered and duplicate values in an enum.
1756 Mon Jan 15 06:21:52 1996 Wilfried Moser <moser@rtl.cygnus.com>
1758 * actions.c (chill_expand_assignment): Add check for lefthand side
1759 of an assignment is a location.
1761 * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1764 * expr.c (is_really_instance): New function to check if a datum
1765 is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1767 (build_chill_component_ref): call is_really_instance.
1769 Wed Jan 10 13:47:14 1996 Per Bothner <bothner@kalessin.cygnus.com>
1771 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): Removed; now in ../tree.h.
1773 Mon Jan 8 15:29:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1775 * expr.c (build_char_array_expr): Add save_if_needed's if varying.
1776 Also, remove unused len0 and len1.
1778 Mon Dec 11 17:36:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1780 * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1781 build_chill_getassociation, build_chill_getusage,
1782 build_chill_gettextrecord, build_chill_gettextaccess: Simplify
1783 - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1785 * parse.c (parse_action): Minor simplification.
1787 Thu Dec 7 00:02:47 1995 Wilfried Moser <moser@rtl.cygnus.com>
1789 * parse.c (parse_action): In case of CALL, do a check if there
1790 is really a function call.
1792 Tue Dec 5 05:06:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1794 * convert.c (display_int_cst): Fix printing of control sequence.
1796 Thu Nov 30 21:07:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
1798 * grant.c (decode_constant, decode_constant_selective): Make work
1799 for REAL_IS_NOT_DOUBLE case.
1801 * decl.c (CHILL_INT_IS_SHORT): New macro.
1802 (init_decl_processing): Use CHILL_INT_IS_SHORT.
1803 Change name of integer_type_node from _cint to long.
1805 Mon Nov 27 17:07:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
1807 * loop.c (top_loop_end_check): Check while condition *after*
1808 getting next powerset element.
1810 Mon Nov 27 05:29:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
1812 * parse.c (parse_receive_case_action): Fix typo in error message.
1814 * convert.c (display_int_cst): Format characters like strings in
1815 grant.c(decode_constant).
1817 * grant.c: Remove the old forbid stuff.
1819 * lex.c (readstring): Fix reading of '^^'.
1821 * parse.c (parse_procedure_mode): nreverse param_types.
1823 Thu Nov 23 05:39:57 1995 Wilfried Moser <moser@rtl.cygnus.com>
1825 * actions.c (chill_expand_assignment): Check for assigning to
1826 location with non-value mode.
1828 * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1829 Add new and change some prototypes.
1831 * decl.c (init_nonvalue_struct): New function to generate
1832 initialisation code for non-value structs.
1833 (init_nonvalue_array): New function to generate initialisation
1834 code for non-value array's.
1835 (do_decl): Call one of the above mentioned functions in case
1836 we have a mode with the non-value property.
1837 (start_chill_function): Print error message if a non-value mode
1838 gets returned without LOC and check for arguments of non-value
1839 modes only gets passed by LOC.
1841 * grant.c (print_proc_tail): Fix for procedure returning LOC.
1843 * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1844 association_type_node.
1845 (invalidate_access_recordmode): New function to set the
1846 record mode of an ACCESS to error_mark_node in case of
1847 record mode has the non-value property.
1848 (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1849 (build_access_mode, build_chill_gettextaccess): Deto.
1850 (check_exprlist): Correct processing of repetition factor.
1852 * lex.c (readstring): Correct processing of control
1853 sequences of the form '^([H | D | O | B]'xx)'.
1855 * loop.c: Cleanup iterator handling (done by Per).
1856 (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1857 functions for starting and ending a loop scope in case
1858 of initialising an array with non-value property.
1860 * parse.c (check_end_label): Remove '\n' from error message.
1861 (parse_loc_declaration): Print error in case of loc-identity
1862 declaration without initialisation or with keyword INIT.
1863 (parse_do_action): Clean up iterator handling (done by Per).
1865 * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1866 message in case of TYPE_DECL is a signal and the mode has the
1868 (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1869 the array type if the array element mode has the non-value
1871 (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1872 type if one of the fields have the non-value property. If the
1873 record is a buffer mode and the element mode of the buffer has
1874 the non-value-p., invalidate it (see
1875 tasking.c (invalidate_buffer_element_mode). Same for access modes.
1877 * tasking.c (build_signal_descriptor): If the signal type have
1878 the non-value property, do nothing.
1879 (build_receive_signal_case_label): Don't do an assignment if the
1880 signal type have the non-value property.
1881 (build_receive_buffer_case_label): Add check for buffer element
1883 (expand_send_buffer): Deto.
1884 (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1885 (invalidate_buffer_element_mode): New function to set type of
1886 buffer element mode to error_mark_node.
1887 (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1889 Wed Nov 15 13:26:20 1995 Jeffrey A Law (law@cygnus.com)
1891 * inout.c (intsize_of_charsexpr): Move declaration to top
1892 of file to avoid error from solaris2.5 cc.
1894 Thu Nov 9 02:50:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
1896 * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1897 mode, temporarily reset maximum_field_alignment to 0 before
1898 layouting it to be compatible with the runtime library.
1900 * inout.c (build_chill_gettextaccess): Deto.
1902 Mon Nov 6 04:12:06 1995 Wilfried Moser <moser@rtl.cygnus.com>
1904 * decl.c (do_decl): If type is READonly, add check if an
1905 ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1906 and print an error if this is true. Variables of this modes
1907 may not be declared READonly.
1908 Add check for mode is one of the above and an init value was
1909 given. This is also not allowed.
1910 Add initialisation of variables of the above modes during
1911 runtime. This influence the mechanism for detecting to
1912 build a constructor.
1913 (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1914 BUFFER, and EVENT mode must not be READonly.
1915 (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1916 TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1917 (declare_predefined_file): Move to inout.c.
1918 (init_decl_processing): Add definitions for new built-in's.
1919 (finish_outer_function): Build a constructor only if
1920 build_constructor is set.
1922 * except.c: On Linux native, setjmp is __setjmp.
1924 * expr.c (build_chill_component_ref): New function. It gets called
1925 from parse.c instead of build_component_ref. Functions checks if the
1926 user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1927 EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1928 (build_chill_floatcall): New function to resolve CHILL's floating
1929 point builtin calls (SIN, COS, TAN, etc.).
1930 (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1931 build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1932 GETSTACK, and TERMINATE built-in's.
1933 (build_generalized_call): Process new built-in's.
1935 * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1936 (decode_mode_selective): deto.
1938 * inout.c: Completely rewritten for implementing Chapter 7 of
1939 Z.200 (input and output).
1941 * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1944 * lex.h (enum rid): Add RID_ASSOCIATION.
1946 * parse.c: New flag build_constructor to indicate if a constructor
1947 should be generated at the end of compilation or not. See
1949 (parse_begin_end_block): Don't emit a line note.
1950 (parse_primval): Call build_chill_component_ref instead of
1951 build_component_ref.
1952 (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
1953 modes, USAGE modes, WHERE modes.
1955 * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
1956 ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
1957 (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
1959 * typeck.c (extract_constant_from_buffer): Fix thinko in case
1960 of ! BYTES_BIG_ENDIAN.
1961 (build_chill_cast): Implement representation conversion between
1963 (chill_similar): Add check of ACCESSes.
1964 (layout_chill_range_type): Check for real ranges and print
1967 * Make-lang.in: Change compiler version.
1968 chill also depends on Makefile.
1970 * chill.in: Process command line option -Xlinker like -Tdata.
1972 * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
1973 CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
1974 Add some prototypes.
1975 (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
1976 BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
1977 Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
1979 * gperf, hash.h: Remove definition of WHERE.
1981 Thu Oct 5 06:22:19 1995 Wilfried Moser <moser@rtl.cygnus.com>
1983 * grant.c (decode_constant_selective): Add some newlines
1984 to generated SPEC MODULE.
1986 Wed Oct 4 18:16:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1988 * decl.c (pop_chill_function_context): Remove some bogosity.
1990 Wed Oct 4 05:14:00 1995 Wilfried Moser <moser@rtl.cygnus.com>
1992 * grant.c (print_integer_selective): In case of a RANGE of
1993 a SET mode, try to find and grant the parent mode.
1994 (grant_seized_identifier): Dont write it out, if the identifier
1995 doesn't have a seize file (it may come from a SPEC MODULE
1996 defined in the compilation unit).
1998 Fri Sep 22 14:04:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
2000 * actions.c (check_non_null): Wrap expr in SAVE_EXPR if needed.
2002 Wed Sep 20 13:51:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
2004 * expr.c (force_addr_of): Optimize an INDIRECT_REF using
2005 convert_to_pointer rather than convert (which in case of
2006 a REFERENCE_TYPE would losingly call convert_from_reference).
2008 Wed Sep 20 04:03:58 1995 Wilfried Moser <moser@rtl.cygnus.com>
2010 * inout.c (build_chill_writetext): In case of character string:
2011 Add processing of a concatenation including varying character
2013 (intsize_of_charsexpr, get_max_size): New functions to determine
2014 the maximum size of varying character strings.
2016 * grant.c (decode_constant, decode_constant_selective): Add
2017 processing of COMPONENT_REF.
2019 * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
2020 for SYNONYM's with STRUCT mode.
2022 Mon Sep 18 17:25:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2024 * expr.c (force_addr_of): Optimize of value is INDIRECT_REF.
2025 * typeck.c (build_chill_slice): Call mark_addressable.
2027 Mon Sep 18 14:38:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
2029 * expr.c (chill_expand_expr): Make a copy before calling __psslice
2030 if the array is neither referable nor BLKmode.
2031 (build_set_expr): Renamed to ...
2032 (build_compare_set_expr): Allow one opperand to be boolean.
2033 (build_compare_expr): Check both operands for SET_EXPR,
2034 before checking for discrete types (for -fold-strings).
2036 Fri Sep 15 11:35:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
2038 * satisfy.c (safe_satisfy_decl): For a CONST_DECL, set TREE_TYPE
2039 to error_mark_node or error.
2041 Fri Sep 15 00:26:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
2043 * grant.c (decode_constant_selective): Add processing of
2044 TREE_OPERAND (val, 0).
2046 Wed Sep 13 14:24:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2048 * ch-tree.h (CH_IS_INSTANCE_MODE): Redefine to use CH_SIMILAR.
2049 * convert.c (convert): Use CH_IS_INSTANCE_MODE.
2050 * inout.c (build_chill_writetext): Likewise.
2051 * tasking.c (build_receive_case_start, build_delay_case_start): Ditto.
2052 * parse.c (parse_start_action): Remove redundant tests.
2053 * tasking.c (build_start_process): Also test that optset is instance.
2054 (build_copy_number, build_proc_type, expand_send_signal): Use
2055 CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
2056 * actions.c, convert.c (instance_type_node): Remove redundant
2059 Wed Sep 13 14:19:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
2061 * regression.awk2: Use \ line-continuation-markers
2062 to remove gratuitous gawk dependency.
2064 Mon Sep 11 17:26:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
2066 * typeck.c (build_chill_modify_expr): Use force_addr_of.
2067 (mark_addressable): Handle INDIRECT_REF of ADDR_EXPR.
2069 * typeck.c (check_case_value), ch-tree.h: Moved to ...
2070 * actions.c (check_case_value): ... here. Also check for
2071 compatibility with selector (which is passed as extra argument).
2072 (chill_handle_case_label_range): Take selector argument,
2073 and use it to call check_case_value.
2074 (chill_handle_case_label): Take extra selector argument.
2075 * ch-tree.h (chill_handle_case_labe): Add prototype.
2076 * except.c expr.c, parse.c: Remove chill_handle_case_label prototypes.
2077 * actions.c, except.c, expr.c, parse.c: Pass extra selector
2078 argument to function calls as needed.
2080 Mon Aug 28 02:47:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
2082 * grant.c (decode_constant_selective): Fix a bug in writing items
2085 Thu Aug 24 04:52:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
2087 * parse.c (parse_case_expression): Print warning only in
2090 * actions.c (print_missing_cases): Correct printing of
2093 Wed Aug 23 15:26:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2095 * parse.c (parse_case_label_list): Take extra parameter to
2096 indicate if we're parsing a tuple or a case-label-spec.
2097 If former, don't allow '(' EXPR ')' ',' but backup instead.
2098 (parse_case_label_specification, parse_tuple_element):
2099 Pass appropriate new argument to parse_case_label_list.
2101 Wed Aug 23 06:08:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
2103 * inout.c (build_chill_readtext): Add processing of BOOL's and
2106 * grant.c (decode_constant): Process nonprintable characters
2109 Fri Aug 11 15:26:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
2111 * except.c (initialize_exceptions): Name setjmp "setjmp" and not
2112 "__builtin_setjmp" (which is not recognized by expand_call).
2114 Wed Aug 9 23:35:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
2116 * loop.c (end_loop_scope): Need to call kept_level_p,
2117 in argument to poplevel.
2119 Wed Aug 9 05:48:30 1995 Wilfried Moser <moser@rtl.cygnus.com>
2121 * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
2122 file might be empty). Install chill.install instead.
2124 Tue Aug 8 21:46:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2126 * loop.c (end_loop_scope): Do poplevel *after* expand_end_bindings.
2128 Tue Aug 8 00:51:09 1995 Wilfried Moser <moser@rtl.cygnus.com>
2130 * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
2131 of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
2133 * decl.c (start_chill_function): Likewise ...
2135 Mon Aug 7 18:35:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2137 * tasking.c (build_process_wrapper): Also set DECL_ASSEMBLER_NAME
2138 of PARM_DECL, since otherwise dbxout_symbol_name may barf.
2140 Mon Jul 31 14:32:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
2142 * loop.c: Re-written implementation of powerset iteration.
2143 (declare_temps): iter_var is now integer index into bitstring,
2144 and powerset_temp just uses save_expr (normally needs no temp).
2145 (top_loop_end_check): Pass index to start searching (from iter_var)
2146 to library function, instead of dependning on latter to clear old bits.
2147 (increment_temps): UNless DOWN, increment iter_var.
2148 * decl.c (init_decl_processing): Declare new types for
2149 __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
2151 Mon Jul 31 12:47:28 1995 Per Bothner <bothner@cygnus.com>
2153 * convert.c (digest_array_tuple): Set TREE_STATIC if possible.
2155 Fri Jul 28 05:11:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
2157 * lex.c (readstring): Process integer literals starting with
2158 H', D', or B' within a control sequence.
2160 Thu Jul 27 23:08:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
2162 * parse.c (parse_do_action): Don't call push_action, but defer
2163 push_handler until begin_loop_scope.
2164 Call parse_opt_handler here, to move handler scope inside loop block.
2165 (parse_action): After do_action, nothing to do now.
2166 * loop.c (begin_loop_scope): Also call push_handler here.
2167 (declare_temps): Copy derived flag to user_var.
2168 (declare_temps): For POWERSET, always copy to temporary (even if
2169 constant), since the runtime clears bits from it.
2171 * expr.c (build_chill_sizeof): Use convert_to_class.
2172 * satisfy.c (safe_satisfy_decl): Cleanup handling of CONST_DECL -
2173 set proper value of CH_DECL_FLAG on both the decl and its value.
2175 * convert.c (digest_array_tuple); Slightly better errors.
2177 Wed Jul 26 22:13:39 1995 Per Bothner <bothner@cygnus.com>
2179 * expr.c (expand_packed_set): Also allocate the CONSTRUCTOR itself.
2180 (fold_set_expr): Simplify accordingly.
2181 (build_concat_expr): Constant fold bitstring CONCAT_EXPRs.
2183 Thu Jul 13 12:21:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
2185 * typeck.c (build_chill_slice): Use build1 instead of build.
2186 * typeck.c (xtract_constant_from_buffer): Pass correct precision
2189 * typeck.c (expand_constant_to_buffer): Handle RANGE_EXPR index.
2190 * convert.c (digest_array_tuple): Generate RANGE_EXPR as index
2191 for tuples with ranges.
2193 Thu Jun 29 23:41:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
2195 * typeck.c (build_chill_slice): Re-implement to use casts
2196 instead of build_chill_array_ref_1 (which doesn't always work).
2197 * convert.c (convert): Remove old bugs code.
2199 Tue Jun 27 05:00:04 1995 Wilfried Moser <moser@rtl.cygnus.com>
2201 * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
2202 expression so that a possible handler at the if action will
2204 (parse_proc_body): New argument to indicate if the function
2205 raises exceptions or not. In case the function will raise
2206 exception: start a handler, parse the function and generate
2207 code for reraising the exceptions (call chill_reraise_exceptions).
2209 * except.c (chill_reraise_exceptions): New function to generate
2210 code for reraising exceptions are specified at the function
2213 * ch-tree.h: Add prototype for chill_reraise_exceptions.
2215 * decl.c (build_chill_function_type): When the function (type)
2216 raise an exception, generate two new arguments (additional to the
2217 formal parameters), the filename and linenumber of the caller.
2218 (start_chill_function): likewise...
2220 * expr.c (build_chill_function_call): If the called function raises
2221 exceptions, give current filename and linnumber as aditional
2224 * actions.c (build_cause_exception): Handle case when function
2225 propagates the exception.
2227 * grant.c (print_proc_tail, print_proc_tail_selective): If the
2228 function(type) raises exceptions, don't process the last to
2229 parmeters of the formal argument list, they are compiler
2232 * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
2233 the exception lists are equal.
2235 Thu Jun 22 19:27:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
2237 * loop.c (flag_local_loop_counter): Change default to 1.
2238 (end_loop_scope): Set 'keep' parameter in poplevel call.
2239 (declare)_temps): Don't set IDENTIFIER_LOCAL_VALUE, since that
2240 is handled (correctly!) by pushdecl.
2241 (begin_loop_scope): Call pushlevel here,
2242 * parse.c (parse_do_action): Move pushlevel so only called for WITH.
2243 * decl.c (struct scope): Remove n_incomplete field and its uses.
2244 (pushdecl): Re-write to use proclaim_decl. Remove old C-isms.
2245 (init_decl_processing): Re-name integer_type_node as "_cint" to
2246 remove complaint from pushdecl about chill_integer_type_node as "int".
2248 Tue Jun 20 18:15:58 1995 Doug Evans <dje@canuck.cygnus.com>
2250 * Make-lang.in (chill-runtime): Restore patch to disable building of
2251 runtime libraries for cross compilers. This patch should remain
2252 until a build of a freshly checked out devo "just works".
2254 Mon Jun 19 06:01:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
2256 * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
2258 * decl.c (init_decl_processing): Remove builtin function
2259 __cause_exception. New builtin functions __cause_ex1 and
2262 * except.c (is_handled): Return 0 when no handler found,
2263 1, if the handler is in local scope and 2, if function
2264 may propagate the exception.
2266 * actions.c (build_cause_exception): New argument to
2267 indicate if a warning should be printed when
2268 causing an unhandled exception. Call is_handled here.
2270 * ch-tree.h: Change prototype for build_cause_exception.
2271 New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
2272 identifier already has been written to grant file.
2274 * grant.c (write_spec_module): If not GRANT ALL specified,
2275 write only this identifiers to grant file which are
2276 neccessary to form a prober grant file. This will shorten
2277 grant files and speed up compilation.
2278 (decode_constant_selective, decode_mode_selective,
2279 get_type_selective, decode_decl_selective,
2280 grant_array_type_selective, get_tag_value_selective,
2281 print_enumeral_selective, print_integer_selective,
2282 print_struct_selective, print_proc_tail_selective,
2283 grant_one_decl_selective): New functions.
2285 * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
2286 directives to grant file.
2288 * parse.c (parse_on_exception_list): Fis constructing of
2291 Wed Jun 14 15:21:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
2293 * typeck.c (valid_array_index_p): Check for syntax error, where
2294 index is a mode, rather than a value.
2296 * expr.c (build_chill_binary_op_1): Remove unused function.
2298 Sat Jun 10 11:36:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
2300 * except.c (is_handled): New function.
2301 Various fixes here and there to make it work.
2303 * parse.c (parse_param_name_list): Set DECL_ASSEMBLER_NAME.
2304 (Otherwise dbxout may crash.)
2306 * satisfy.c (satisfy case FUNCTION_TYPE): Check for non-type result.
2307 * decl.c (start_chill_function): If result type was error_mark,
2308 kludge type chill_os result_decl to avoid extra errors.
2309 * actions.c (chill_expand_result, chill_expand_return): If type of
2310 chill_result_decl is error_mark, do nothing.
2312 * typeck.c (chill_similar): Fix thinko in recent change.
2314 * config-lang.in (diff_exclude): Remove ch/lex.c - now it's a
2315 true source file, and is never longer generated with [f]lex.
2317 * regression.sh: Pass -s to make clean (to make it silent).
2318 Explicitly call gawk, instead of depending of '#!' to work.
2319 Add --objdir flags. Never send mail to bill.
2321 Thu Jun 8 15:08:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2323 * typeck.c (chill_similar): Add extra parameter. Use to to prevent
2325 (chill_equivalent, chill_l_equivalent): Also add new parameter.
2326 * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT): Modify to match.
2328 Tue Jun 6 17:14:49 1995 Per Bothner <bothner@kalessin.cygnus.com>
2330 * loop.c (declare_temps): If -flocal-loop-counter, make sure to
2331 pushdecl the new variable (created with decl_temp1).
2332 And fix the type of the local variable for powerset iteration.
2334 Tue Jun 6 15:07:19 1995 Per Bothner <bothner@cygnus.com>
2336 * typeck.c (mark_addressable): Handle ADDR_EXPR inside
2337 NOP_EXPR inside INDIRECT_EXPR. For TRUTH_ANDIF_EXPR,
2338 TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
2339 (which is used for range-checks and suchlike).
2341 Thu Jun 1 02:45:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
2343 * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
2344 GE_EXPR (don't do invert_truthvalue, just switch operands).
2346 Wed May 31 14:00:38 1995 Doug Evans <dje@canuck.cygnus.com>
2348 * lang-options.h: New file.
2349 * lang-specs.h: New file.
2351 Wed May 24 01:45:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
2353 * actions.c (assign_stack_temp): Remove unneeded declaration.
2355 Tue May 23 00:17:38 1995 Per Bothner <bothner@kalessin.cygnus.com>
2357 * parse.c (parse_on_exception_list): Return list of exception
2358 names in pass 1, not in pass 2. (Return non-NULL dummy if pass 2.)
2359 (parse_on_alternatives): Call chill_handle_on_labels even if ignoring.
2360 (parse_opt_handler): Likewise for chill_start_default_handler.
2361 * except.c (push_handler): Clear on_alt_list only if pass 1.
2362 (chill_handle_on_labels): Build on_alt_list in pass 1,
2363 retrieve it in pass 2.
2365 Fix so that decl_temp1 does not expand_decl_init, which calls
2366 free_temp_slots, which loses in the middle on an expression.
2367 * decl.c (finish_decl): Don't call expand_decl_init.
2368 (do-decl): Do initialization assignment even if stack variable.
2369 * parse.c (parse_loc_declaration): Call free_temp_slots.
2371 * decl.c (finish_decl), ch-tree.h: Remove last two always-NULL
2372 parameters. Cleanup never-used code.
2373 * decl.c, except.c: Update calls to finish_decl.
2375 * decl.c (case_else_node): Define new variable.
2376 (init_decl_processing): Initialize it.
2377 (make_chill_variants): If variant label is case_else_node (i.e. it
2378 is (ELSE):), treat that as an ELSE variant.
2379 * ch-tree.h (case_else_node): Declare case_else_node.
2380 * parse.c (parse_case_label): Use case_else_node.
2382 Mon May 22 10:18:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2384 * grant.c (print_proc_tail): Also call print_proc_exceptions.
2385 (decode_decl): Don't explicitly call print_proc_exceptions for
2387 (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2389 * actions.c (chill_convert_for_assignment): Use save_if_needed,
2390 instead of save_expr, in case value is a reference.
2392 * typeck.c (build_chill_slice): Fix old thinko (missing call to
2393 build_pointer_type).
2395 * actions.c (size_int): Remove unused and conflicting prototype.
2397 Wed May 17 16:23:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
2399 * actions.c (chill_convert_for_assignment): Call save_expr if
2400 range_checking (twice).
2402 Tue May 16 11:33:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
2404 * typeck.c (layout_chill_range_type): Re-organize error checking.
2405 Add extra parameter to indicate if non-constant bounds are allowed.
2406 If bounds are bad, set them to the min_value of the parent.
2407 * ch-tree.h (layout_chill_range_type): Update declaration.
2408 * satisfy.c (satisfy): Update call of layout_chill_range_type.
2409 * typeck.c (build_chill_range_type): Likewise.
2410 * tree.c (build_string_type): Likewise.
2412 Tue May 16 00:37:51 1995 Wilfried Moser <moser@rtl.cygnus.com>
2414 * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2416 Mon May 15 12:54:32 1995 Per Bothner <bothner@kalessin.cygnus.com>
2418 * satisfy.c (satisfy): Supress error message for REF <error_mark>.
2419 * decl.c (push_modedef): Check for TREE_CODE != ERROR_MARK, instead
2420 of against error_mark_node. (smash_dummy_type can copy error marks.)
2421 (finish_decl): Simplify C-derived check for incomplete type,
2422 and suppress if it is an ERROR_MARK.
2423 Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2425 Sun May 14 22:52:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
2427 * convert.c (convert): Handle array types with different modes.
2429 Thu May 11 15:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2431 * loop.c (build_loop_iterator): Handle the case of a non-local
2432 loop counter having reference type.
2434 Thu May 11 07:04:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
2436 * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2437 build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2438 to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2440 Mon May 8 15:27:16 1995 Per Bothner <bothner@kalessin.cygnus.com>
2442 * expr.c (build_chill_card): Do constant folding, if possible.
2443 (build_max_min): Do constant folding for MIN/MAX of powersets.
2445 Mon May 8 06:57:21 1995 Wilfried Moser <moser@rtl.cygnus.com>
2447 * expr.c (build_chill_sizeof): Add corect processing of a
2448 SIGNAL definition without data.
2450 Sat May 6 16:27:10 1995 Doug Evans <dje@canuck.cygnus.com>
2452 * Make-lang.in (maintainer-clean): Renamed from realclean.
2454 Tue May 2 06:16:23 1995 Wilfried Moser <moser@rtl.cygnus.com>
2456 * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2457 otherwise "handler stack" will get out of sync.
2459 Mon Apr 24 09:51:07 1995 Per Bothner <bothner@rtl.cygnus.com>
2461 Fixes to support module-level non-static temporary variables.
2462 * parse.c (parse_loc_declaration): If all_static_flag and not
2463 resursive, tell do_decls to make new decl static.
2464 * decl.c (do_decl): Don't use maybe_static function to force static.
2465 (do_decl): Don't let initialization count as "using" the variable.
2466 (maybe_static): Removed.
2467 (finish_decl): Call expand_decl and expand_decl_init if needed
2468 (as it will be for non-static temporaries).
2470 Fri Apr 21 21:02:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2472 * convert.c, expr,c typeck.c (expand_decl): Remove usused declaration.
2474 Fri Apr 21 02:27:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2476 * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2477 LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2478 GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2480 Thu Apr 20 15:29:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
2482 * parse.c (yytext, finput): Remove unused declarations.
2484 * parse.c (proc_action_level): New variable.
2485 (parse_proc_body): New function. Common code from
2486 parse_procedure_definition and parse_process_definition moved here.
2487 Save, set, and restore proc_action_level from action_nesting_level.
2488 (parse_action case RETURN): Pass proc_action_level to
2489 expand_goto_except_cleanup.
2491 Thu Apr 20 06:02:20 1995 Wilfried Moser <moser@rtl.cygnus.com>
2493 * grant.c (really_grant_this): Add processing of LABEL_DECL's
2496 Tue Apr 18 18:16:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
2498 * lex.c ( convert_bitstring): Use BYTES_BIG_ENDIAN rather
2499 than BITS_BIG_ENDIAN to layout bits within bitstring.
2500 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2503 Sun Apr 16 19:55:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
2505 * decl.c (finish_chill_function): If currently global_function_decl,
2506 don't set outer_function to global_function_decl.
2508 Wed Apr 12 22:45:06 1995 Per Bothner <bothner@kalessin.cygnus.com>
2510 * decl.c (start_chill_function): Normal functions are nested.
2511 (finish_chill_function): No longer takes a 'nested' parameter.
2512 Normal functions are nested.
2513 Never call permanent_allocation, since it does little good (all normal
2514 functions are nested), and trashes some things we need.
2515 (finish_outer_function): Update call to finish_chill_function.
2516 * grant.c (chill_finish_compile): Likewise.
2517 * tasking.c (build_process_wrapper): Likewise.
2518 * parse.c (end_function): Likewise.
2519 * ch-tree.h (finish_chill_function): Update declaration.
2521 * parse.c (parse_asm_clobbers): Re-enable.
2522 (expand_asm_operands): function.
2523 (parse_asm_action): Re-enable. Don't do anything in pass 1.
2525 * typeck.c (build_chill_slice): Do constant folding.
2526 Also, work around problem where expand_expr constant folds ARRAY_REF.
2527 (sort_constructor): Remove unused function.
2529 * expr.c (chill_expand_expr case CONCAT_EXPR): Make sure we
2530 emit_block_move if needed with correct size.
2532 * inout.c (build_chill_io_list_type): Simplify.
2534 * lex.c (check_newline): Uncomment some dwarf stuff,
2535 which needs get_directive_line, which we no longer have.
2537 Wed Apr 5 16:05:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
2539 * Makefile.in (C_OBJS, xcc1chill): Removed. We no longer
2540 link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2542 * expr.c (build_chill_component_ref): Renamed to build_component_ref.
2543 (chill_truthvalue_conversion): Renamed to truthvalue_conversion.
2544 * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2545 typeck.c: Update accordingly.
2546 * typeck.c (valid_array_index_p): We only need to save_expr (index)
2547 if we're range-checking.
2548 * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2549 mark_addressable, initializer_constant_valid_p, check_case_value,
2550 type_for_size, type_for_mode): New functions, copied from
2551 ../c-common.c and ../c-typeck.c.
2553 * lang.c (incomplete_type_error): New. (Was in c-common.o.)
2554 * decl.c (constant_expression_warning): New. (Was in c-common.o.)
2556 * lang.c (string_index_type_dummy): Remove definition from here.
2557 * tree.c (string_index_type_dummy): Define here instead.
2558 * lang.c (lang_init): Move init of string_index_type_dummy
2559 (which is too late) from here ...
2560 * decl.c (init_decl_processing): ... to here.
2562 * decl.c (signed_boolean_type_node): New variable.
2563 (init_decl_processing): Initialize it.
2565 * parse.c: Comment out ASM action support, for now.
2567 * loop.c (maybe_skip_loop): Make return void, not int.
2568 Use build_compare_discrete_expr.
2569 (increment_temps): Use chill_expand_assignment.
2571 Thu Mar 30 23:28:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
2573 * decl.c (do_decl): If default-initializing variable-length
2574 string to "" (or []), make it lifetime_bound.
2576 Thu Mar 30 02:51:59 1995 Wilfried Moser <moser@rtl.cygnus.com>
2578 * parse.h, hash.h, gperf: New compiler directives
2579 EMPTY_ON and EMPTY_OFF.
2581 * lex.c: New variables empty_checking and runtime_checking_flag.
2582 (ch_lex_init): Initialize empty_checking and range_checking
2583 when switching from pass 1 to 2.
2584 (read_directive): Add processing of EMPTY_OFF/ON.
2586 * expr.c (build_chill_indirect_ref): New argument do_empty_check
2587 to indicate if null pointer checking should be done or not.
2588 It's not always necessary to do a null pointer check.
2590 * decl.c (lookup_name): Add argument to call to
2591 build_chill_indirect_ref.
2592 (shadow_record_fields): ...
2593 * parse.c (parse_primval): ...
2594 * tasking.c (build_process_wrapper): ...
2595 (build_receive_buffer_case_label): ...
2597 * ch-tree.h: Change prototype of build_chill_indirect_ref.
2598 Add declaration of runtime_checking_flag and empty_checking.
2600 * actions.c (check_non_null): Do null pointer checking only
2601 when enabled (empty_checking != 0).
2603 Wed Mar 29 15:18:23 1995 Per Bothner <bothner@kalessin.cygnus.com>
2605 * actions.c (chill_expand_assignment): Add 'else' so we don't do
2606 regular assignment in addition to spacial assignment (e.g. for slices).
2608 * ch-tree.h (convert_to_discrete): Add declaration.
2609 * typeck.c (convert_to_discrete): New function.
2610 (valid_array_index_p): Use convert_to_discrete. Also simplify.
2611 (build_chill_slice): Say sorry if variable-length bitstring.
2612 (build_chill_slice_with_length): Re-do bounds check.
2613 * expr.c (check_case_selector): Re-write to use convert_to_discrete.
2614 (build_chill_num, build_chill_pred_or_succ): Use convert_to_discrete.
2616 * decl.c (do_decl): Don't do redundant chill_convert_for_assignment.
2618 Wed Mar 29 00:00:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
2620 * expr.c (build_chill_num): need_unsigned have to be set for
2621 characyer strings of length 1 too. Happens when compiling
2622 with -fold-strings and do NUM(a(i)).
2624 * parse.c (parse_loc_declaration): Print error message only
2626 (parse_mode): Likewise ...
2628 * tasking.c (build_tasking_message_type): Temporarily reset
2629 maximum_field_alignment to get proper aligned temp. variables
2630 gets passed to runtime system.
2632 Tue Mar 28 00:08:06 1995 Per Bothner <bothner@cygnus.com>
2634 * typeck.c (my_build_array-ref): Merged into build_chill_array_ref_1.
2635 But don't convert index to integer_type_node. And we don't need to
2636 check the we're given an array.
2637 * typeck.c (valid_array_index_p): If flag_old_strings, convert
2638 chars(1) to char and bools(1) to bool before index checking.
2640 Sun Mar 26 22:42:39 1995 Per Bothner <bothner@cygnus.com>
2642 * ch-tree.h (struct module): Added next module field.
2643 * decl.c (first_mdoule, next_module): New global variables.
2644 (switch_to_pass_2): Re-initialize next_module.
2645 (push_module): In pass 2, reuse the same module objects from pass 1.
2647 * decl.c (declare_predefined_file): Set DECL_IN_SYSTEM_HEADER.
2649 * typeck.c (valid_array_index_p): Do range check on original index,
2650 before we convert to domain type.
2652 Fri Mar 24 11:43:39 1995 Per Bothner <bothner@kalessin.cygnus.com>
2654 * parse.c (parse_fixed_field): New function.
2655 (parse_variant_field_list): New function replaces parse_simple_fields.
2656 (parse_variant_alternative, parse_field): Update to use new functions.
2657 (parse_field): Error message if neither CASE nor NAME.
2659 * actions.c (check_non_null): New function - checks for NULL pointers.
2660 * ch-tree.h (check_non_null): New declaration.
2661 * tasking.c (expand_send_signal): Call check_non_null.
2662 * expr.c (build_chill_indirect_ref, build_chill_function_call): Same.
2663 * lex.h (enum rid): Add RID_EMPTY.
2664 * lex.c (init_lex): Initialize ridpointers[RID_EMPTY].
2666 * lex.c (read_directive): Remove 2 calls of to_global_binding_level
2668 Wed Mar 22 16:36:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
2670 * tasking.c (tasking_list): Change to chain of TREE_VEcs, rather than
2671 chain of (nested) TREE_LIST nodes.
2672 (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2673 TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE): New macros.
2674 (tasking_setup, tasking_registry, add_taskstuff_to_list): Use them.
2676 * ch-tree.h (C_TYPE_FIELDS_READONLY): Rename to TYPE_FIELDS_READONLY.
2677 (TYPE_READONLY_PROPERTY): New macro, to match Z.200 concept.
2678 * typeck.c (build_chill_modify_expr): Don't check for read-only-ness,
2679 since it is redundant for chill_expand_assignment and breaks
2680 reach-bound initialization in do_decl.
2681 (my_build_array_ref): Simplify by using TYPE_READONLY_PROPERTY.
2682 (layout_chill_array_type): Set TYPE_FIELDS_READONLY if appropriate.
2683 * actions.c (chill_expand_assignment): Check TYPE_READONLY_PROPERTY
2684 instead of TREE_READONLY of the target's type.
2685 * expr.c (build_chill_function_call): Likewise.
2686 * inout.c (build_chill_readtext): Likewise.
2687 * decl.c (do_decl): Likewise, to check if init is required.
2689 * typeck.c (build_chill_bitref): Removed unused RANGE_EXPR hack.
2691 Wed Mar 22 07:52:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
2693 * tasking.c (build_start_process): Get a unique identifier for
2694 the start arguments.
2696 Tue Mar 21 07:36:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
2698 * expr.c (fold_set_expr): At label build_result: Add setting unused
2699 bits to 0. This is the same as the runtime library does.
2701 * parse.c (expect): Function returns now int, 0, if the expected
2702 token was not got, 1 when it was found.
2703 (parse_synonym_definition): In case of syntax error (missing =),
2704 set expr to NULL_TREE and mode to error_mark to avoid subsequent
2707 * chill.texi: Add chapter about differences to Z.200/1988.
2709 Mon Mar 20 18:01:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2711 * lang.c (chill_print_error_function): New function, to report
2712 module name if not inside a function.
2713 (lang_init): Set print_error_function to chill_print_error_function.
2715 * tasking.c (max_queue_size, buffer_element_mode): Cleanup
2716 to remove unreachable code.
2718 * grant.c (chill_finish_compile): Avoid doing a lookup_name
2719 to find init function (which got broken by recent nesting re-org).
2721 * decl.c (poplevel): Push and pop function context around
2722 call to output_inline_function (as done for C and C++).
2724 Thu Mar 16 17:56:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2726 * parse.c (parse_pass_1_2): If unknown top-level token, skip pass 2.
2728 Wed Mar 8 13:54:33 1995 Doug Evans <dje@canuck.cygnus.com>
2730 * Make-lang.in (chill-runtime): Temporarily disable building of
2731 runtime libraries for cross compilers.
2733 Mon Mar 6 23:36:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2735 * parse.c, decl.c: Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2737 * configure: Merge in tolerance for new flags (e.g. --x-libraries).
2739 Sat Mar 4 15:47:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2741 * expr.c (build_chill_arrow_expr): Error if pass == 1.
2743 Thu Mar 2 19:28:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2745 * decl.c (do_decl): Setting seen_action must be done in pass 1.
2746 (save_decl): Don't set DECL_CONTEXT to global_function_decl.
2747 (start_chill_function): Simplify due to above change.
2749 * parse.c (parse_case_label): Hack to distinguish (ELSE) from (*).
2750 * grant.c (decode_constant): Emit ELSE in case label.
2752 * parse.c (serious_errors): New global variable.
2753 * parse.c (to_global_binding_level): Set serious_errors.
2754 (parse_pass_1_2): Exit after pass 1 if serious_errors > 0.
2755 * lex.c (readstring): Recover from unterminstaed control sequence.
2757 Tue Feb 28 17:08:08 1995 Per Bothner <bothner@kalessin.cygnus.com>
2759 Re-write of module-level actions. No longer generate a module
2760 function for module-level actions. Instead, put them inside
2761 a new global dummy function. Nest everything logically inside it.
2763 * lex.h, grant.c (chill_module_name): Removed declaration.
2764 * grant.c (write_spec_module): Instead use current_module->name.
2765 * grant.c (chill_start_module_code, chill_finish_module_code):
2767 * grant.c (chill_finish_compile): Make rtl for global function.
2769 * actions,c (push_action): Don't call chill_start_module_code.
2770 * expr.c (build_chill_function_call, build_generalized_call):
2772 * parse.c (INIT_ACTION): Likewise.
2774 * parse.c (seen_action): New variable.
2775 * parse.c (end_function): Always call pop_chill_function_context.
2776 (parse_procedure_definition): Always call push_chill_function_context.
2777 (parse_modulion): Parse optional handler.
2778 (parse_modulion, parse_spec_module): Do find_granted_decls.
2779 (parse_action): Set seen_action if global and a real action.
2780 ([arse_program): Call start_outer_function and finish_outer_function.
2782 * ch-tree.h: Appropriate updates.
2784 * tasking.c (generate_tasking_code_variable): Make it lifetime-bound.
2785 (build_process_header): Always push_chill_function_context;
2786 we are now always nested.
2787 (build_process_wrapper): Always pop_chill_function_context.
2789 * tasking.c (build_start_process): Only expand_start_bindings and
2790 expand_end_bindings if pass 2.
2792 * decl.c (global_function_decl): New variable.
2793 (do_decl): Implement reach-bound initialization of static variables.
2794 (start_chill_function): Set DECL_CONTEXT to NULL if
2795 it would be global_function_decl (so as to not confuse gcc backend).
2796 (start_chill_function, finish_chill_function): If compiling
2797 global_function_decl in pass 2 and !seen_action, suppress it.
2798 (set_module_name): New function.
2799 (global_bindings_p): Re-defined to check against global_function_decl.
2800 (start_outer_function, finish_outer_function): New functions.
2802 Tue Feb 28 16:00:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
2804 * typeck.c (build_chill_modify_expr): Inline logic from
2805 chill_expand_array_assignment,
2806 * actions.c (chill_expand_array_assignment): Removed.
2807 (chill_expand_assignment): Remove call to removed function.
2809 * lex.c (reinit_parse_for_function): Removed empty unused function.
2810 * decl.c (start_chill_function): Don't call removed function.
2812 Tue Feb 28 00:29:51 1995 Per Bothner <bothner@cygnus.com>
2814 * configure: Merge in code for calculating host, build, and
2815 target and canon_{host,build,target} from ../configure.
2816 Fix calculation of mainsrcdir. Host canon_* variables
2817 to merge in build-make (as in ../configure).
2819 Sun Feb 26 18:59:02 1995 Per Bothner <bothner@kalessin.cygnus.com>
2821 * typeck.c (expand_constant_to_buffer): Use new function
2822 get_set_constructor_bytes.
2824 Tue Feb 21 01:41:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
2826 * inout.c (build_chill_writetext): Add processing of
2827 conditional expressions in argument list.
2829 * parse.c (parse_opt_name_string): Print error message only
2832 * chill.texi: Add chapter about compiler directives.
2834 Tue Feb 14 16:45:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2836 * decl.c (start_chill_function): Set FUNCTION_NEEDS_STATIC_CHAIN
2839 * decl.c (decl_temp1): Make lifetime_bound iff static.
2841 Fri Feb 3 04:30:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
2843 * grant.c (really_grant_this, search_in_list): New static
2844 functions to determine if a decl should be written to
2846 (write_spec_module): Add call to really_grant_this.
2848 Fri Jan 27 00:06:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2850 * actions.c (check_expression): Apply Per's patch.
2851 (chill_expand_result): New argument to indicate if we come
2852 from a RETURN or RESULT action. Change various error messages.
2854 * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2855 New argument for chill_expand_result.
2857 * chill.in: In case of -fgrant-only, clear library, libpath and
2858 startfile to avoid warnings from gcc.
2860 * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2862 * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2864 * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2865 and subsequent SEIZEs to grant file, if the seize file is
2868 * lex.c (read_directive): Process new compiler directive
2869 USE_SEIZE_FILE_RESTRICTED.
2870 (handle_use_seizefile_directive): Same as above.
2871 (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2872 if this seize file is used restricted.
2874 * parse.c (parse_action, case RETURN): Change RETURN expr action
2875 to RESULT expr; RETURN. This enables range checking and
2876 exception delivery in case of rangefail.
2878 Tue Jan 17 07:38:27 1995 Wilfried Moser <moser@rtl.cygnus.com>
2880 * decl.c (init_decl_processing): Add definition of
2881 library function __inbitstring (see expr.c).
2883 * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2884 __inpowerset fir POWERSET's and function __inbitstring for
2885 BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2886 in case of BITSTRING's we have to do one.
2887 (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2888 statement with no effect).
2890 Fri Jan 13 13:35:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2892 * actions.c (check_expression): Simplify result.
2894 * ch-tree.h (SET_CH_NOVELTY_NONNIL): New macro.
2895 * expr.c, timing.c, typeck.c: Use SET_CH_NOVELTY_NONNIL.
2897 * typeck.c (valid_array_index_p), ch-tree.h: Change interface
2898 to return modified index expression. Call error if out-of-range.
2899 * actions.c, typeck.c: Modify
2900 for new valid_array_index_p interface.
2902 * actions.c (build_chill_slice): Copy novelty of index type.
2904 Fri Jan 13 13:04:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
2906 * convert.c (digest_array_tuple): Allow mode name in array
2907 tuple label. Print error message instead of aborting.
2909 * parse.c (parse_body): Error message only if pass 1.
2911 * decl.c (check_identifier), ch-tree.h: Remove. Unused.
2913 Wed Jan 11 14:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
2915 * parse.c (parse_modulion): Undo yesterday's change (to allow
2916 an ON-handler to follow) until we re-implement module.
2918 Tue Jan 10 17:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
2920 * loop.c (declare_temps): Remove bogus prohibition against
2921 iterating over BOOL arrays.
2923 * parse.c (parse_semi_colon): Make it a pedwarn (instead of an
2924 error) if a semi-colon is missing before an END.
2925 (parse_action): Likewise.
2926 * parse.c (parse_modulion): Allow an ON-handler to follow.
2928 * parse.c (parse_set_mode): Use parse_expression to get
2929 values for number set elements.
2931 * expr.c (build_compare_expr): Make sure result has
2932 CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2933 (finish_chill_binary_op): Likewise for IN_EXPR.
2935 Tue Jan 10 04:46:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
2937 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2938 checking the argument.
2939 (chill_expand_assignment): Take care of a newmoded dst_offset
2940 when calling __pscpy and a newmoded from_pos when calling
2943 * expr.c (chill_expand_expr): When calling __psslice take care
2944 of a newmoded min_value.
2946 * parse.c (parse_name_string): Print error message only in
2949 Tue Jan 3 19:56:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
2951 * typeck.c (build_chill_array_ref_1): Use varying_to_slice
2952 instead of building a VRAY_ARRAY_REF node.
2953 * ch-tree.def (VARY_ARRAY_REF): Removed.
2954 * actions.c (chill_expand_assignment): Will never call
2955 expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
2956 (expand_assignment_to_varying_array): Removed.
2957 * convert.c (convert): Remove unneeded VARY_ARRAY_REF support.
2958 * expr.c (chill_expand_expr): Likewise.
2960 Tue Jan 3 19:50:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
2962 * parse.c (parse_iteration): Set step_value to NULL if missing.
2963 * loop.c (ITER_TYPE): Remove DO_RANGE.
2964 (build_loop_iterator): Implement old DO_RANGE in terms of DO_STEP.
2965 (begin_loop_scope): Don't return on error.
2966 (build_loop_iterator): Calculate loop variable type using
2967 resulting classes (as in Z200), rather than precision.
2969 * loop.c (initialzie_iter_var, bottom_loop_end_check): For DO_STEP,
2970 make iter_var one less to avoid overflow.
2971 * loop.c (build_loop_iterator): If !flag_local_loop_counter,
2972 declare a new variable if needed, as allowed by Z200 (1984).
2974 * ch-tree.h (ch_class): Add typedef.
2976 * typeck.c (chill_resulting_class): New function.
2977 (chill_root_resulting_class): Remove.
2978 * ch-tree.h (CH_RESULTING_CLASS): New macro.
2979 (CH_ROOT_RESULTING_CLASS): Re-implement using CH_RESULTING_CLASS.
2981 Tue Jan 3 19:36:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
2983 * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
2984 Change interface to take IDENTIFIER tree node, rather char char*.
2985 (check_expression): Change (simplify) callers appropriately.
2986 * parse.c (parse_action), typeck.c (valid_array_index_p): Likewise.
2987 * lex.h (enum rid): Add RID_ASSERTFAIL.
2988 * lex.c (init_lex): Enter RID_ASSERTFAIL.
2989 * parse.c (parse_action case ASSERT): Fix thinko TRUTH_ANDIF_EXPR
2990 to TRUTH_ORIF_EXPR. Use RID_ASSERTFAIL.
2992 * typeck.c (discrete_type_p): Re-implement using INTEGRAL_TYPE_P.
2994 Tue Jan 3 19:20:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2996 Move checking for modeless tuples in invalid contexts from parser
2997 to semantic function check_have_mode (for better error recovery):
2998 * expr.c (check_have_mode), ch-tree.h: New function.
2999 * satisfy.c (safe_satisfy_decl): Use check_have_mode.
3000 * expr.c (build_compare_expr, finish_chill_binary_op,
3001 finish_chill_unary_op): Likewise.
3002 * parse.c (parse_primval): Don't complain about mode-less tuple here.
3004 Tue Jan 3 17:36:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
3006 * expr.c (varying_to_slice): Support varying arrays whose
3007 lower bound is non-zero.
3009 * parse.c (parse_body): Allow (with warning) definition to
3012 * expr.c (check_case_selector), ch-tree.h: New function.
3013 (chill_expand_case_expr): Use it.
3014 * parse.c (parse_case_action): Likewise.
3016 Fri Dec 23 00:47:54 1994 Wilfried Moser <moser@rtl.cygnus.com>
3018 * actions.c (chill_expand_return): Change error message.
3020 * ch-tree.h: Change prototypes of do_decl and do_decls.
3022 * convert.c (convert): Add missing initialisation of
3023 variable orig_e_constant.
3025 * decl.c: Change all calls to do_decl.
3026 (maybe_static): New function to process the ALL_STATIC_ON/OFF
3027 compiler directives.
3028 (do_decls): New argument.
3029 (do_decl): New argument and process reachbound and lifetime
3030 bound initialisation.
3032 * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
3035 * grant.c: Change all calls to do_decl.
3037 * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
3040 * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
3043 * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
3045 * tasking.c: Change all calls to do_decl.
3047 Mon Dec 19 23:13:58 1994 Wilfried Moser <moser@rtl.cygnus.com>
3049 * parse.c (parse_procedure_definition): Save chill_at_module_level
3050 flag, set ot to 0 and restore it at the end of function.
3051 A sequence BEGIN x: PROC () RETURN; END x; END; at module level
3052 have produced an error.
3054 * expr.c (build_chill_repetition_op): Fix typo in error message.
3056 Tue Dec 13 12:26:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
3058 * actions.c (expand_assignment_to_varying_array): Fix thinko:
3059 build_chill_array_ref -> build_chill_array_ref_1.
3061 Sun Dec 11 23:04:27 1994 Per Bothner <bothner@rtl.cygnus.com>
3063 * actions.c (chill_expand_assignment): Simplify the lhs if it is
3064 a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
3066 Thu Dec 8 13:45:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
3068 * loop.c, ch-tree.h (build_loop_iterator): Fix to return void.
3069 If start_exp is ERROR_MARK, return.
3070 * expr.c (build_generalized_call): More robust on syntax errors.
3072 Tue Dec 6 02:33:23 1994 Wilfried Moser <moser@rtl.cygnus.com>
3074 * inout.c (build_chill_readtext): In case of reading a SET mode
3075 pass ignore_case flag to runtime library.
3077 Tue Nov 29 14:41:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
3079 * parse.c (parse_receive_case_action): Print error only if pass==1.
3080 * decl.c (push_scope_decls): Use error_with_file_and_line
3081 to get correct line number of SEIZE.
3083 Mon Nov 28 16:59:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
3085 * expr.c (resolve_component_ref): Call fold on result.
3087 * expr.c (resolve_component_ref): Use check_expression.
3088 * actions.c (chill_convert_for_assignment): Likewise.
3089 * actions.c (cond_exception), ch-tree.h: Removed.
3090 * actions.c (check_expression): First part of COMPOUND_EXPR
3091 should be boolean_type_node; void_type_node loses in SAVE_EXPRs.
3093 * actions.c (chill_convert_for_assignment):
3094 Check string_assignment_condition for varying strings too.
3096 * typeck.c (build_chill_cast): If the types have different sizes,
3097 don't allow nondiscrete->discrete conversion, and only allow
3098 discrete->nondiscrete if input expression is constant.
3100 * typeck.c (chill_similar): Don't use losing array_type_nelts.
3102 * ch-tree.h (ELSE_VARIANT_NAME): New.
3103 * convert.c, decl.c, grant.c: Use ELSE_VARIANT_NAME.
3104 * decl.c (handle_one_level): Recurse on ELSE_VARIANT_NAME too.
3106 Reduce dependencies on ../c-typeck.c:
3107 * expr.c: Fix c_expand_start_case -> expand_start_case.
3108 Fix c_expand_expr_stmt -> expand_expr_stmt.
3109 (build_chill_indirect_ref): Call convert instead of build_c_cast.
3110 * loop.c (bottom_loop_end_check): Don't use build_modify_statement.
3111 * expr.c, except.c, typeck.c: Don't call default_conversion.
3112 * typeck.c (string_assignment_condition): Fix build_component_ref ->
3113 build_chill_component_ref.
3114 * decl.c: Fix build_indirect_ref -> build_chill_indirect_ref (twice).
3115 * decl.c: Don't set unused constructor_no_implicit (from c-typeck.c).
3116 * decl.c: Don't call declare_function_name.
3118 * parse.c: Don't always keep a valid token in terminal_buffer[0].
3119 The extra look-ahead may have made the parser faster, but caused
3120 some problems synchronizing with the lexer. Specifically:
3121 (PEEK_TOKEN): Now calls an optimized variant of peek_token_(0).
3122 (next_token_): Don't call peek_token_. Renamed to forward_token_.
3123 (NEXT_TOKEN): Renamed to FORWARD_TOKEN.
3124 (parse_program): Don't call yylex yet.
3126 * parse.c (parse_action): Re-do case ASSERT.
3127 Fix c_expand_expr_stmt -> expand_expr_stmt.
3129 * lex.l: Re-written to not use [f]lex, and renamed to ...
3130 * lex.c: ... new lexer.
3131 * Makefile.in, Make-lang.in: Remove [f]lex crud.
3133 * lex.h (enum rid), lex.c (init_lex): Added RID_ELSE.
3135 Tue Nov 22 15:19:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
3137 * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
3139 Fri Nov 18 14:27:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
3141 * parse.c (parse_structure_node): Simpler, and more robust.
3143 Wed Nov 16 14:40:52 1994 Ian Lance Taylor (ian@cygnus.com)
3145 * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
3146 not at compile time.
3147 * typeck.c (expand_constant_to_buffer): Likewise.
3148 extract_constant_from_buffer): Likewise.
3150 Tue Nov 15 14:41:53 1994 Per Bothner <bothner@kalessin.cygnus.com>
3152 * convert.c (convert): Call build_chill_range_type rather than
3153 build_index_2_type (which has obstack and canonicalization problems).
3154 * expr.c (build_chill_pred_or_succ): Convert expr to root class
3156 * loop.c (declare_temps): If location iterated over is not
3157 a location, make a temporary variable for it.
3159 Mon Nov 14 16:33:47 1994 Per Bothner <bothner@kalessin.cygnus.com>
3161 * typeck.c, ch-tree.h (chill_equivalent): Change to return
3162 a tree (a Boolean expression). Also, add some missing tests.
3163 * ch-tree.h (CH_EQUIVALENT): Modify accordingly.
3165 * expr.c (chill_expand_expr case CONCAT_EXPR): When the 2nd operand
3166 is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
3167 Also, replace MEM (which is not a mode) by Pmode.
3169 * ch-tree.h, typeck.c (chill_comptypes): Removed.
3170 * convert.c (convert): Remove calls to chill_comptypes.
3172 Fri Nov 11 13:06:29 1994 Wilfried Moser (moser@rtl.cygnus.com)
3174 * grant.c (write_grant_file): Call pfatal_with_name instead
3175 of abort when something goes wrong when opening or writing
3177 unlink grant file if something goes wrong during writing
3180 * Make-lang.in (CHILL_SRCS): Add timing.c
3182 * ch-tree.h: Add prototype for chill_tasking_type_node.
3183 * lex.l (equal_number): Use chill_tasking_type_node instead of
3184 integer_type_node for converting the result.
3185 Print error messages in pass 2, in pass 1 no error will be
3187 * tasking.c: New variable chill_tasking_type_node for all
3188 generated tasking related variables.
3189 Use chill_tasking_type_node instead of chill_unsigned_type_node.
3191 * expr.c (chill_expand_expr): Apply Per's change.
3193 * expr.c (build_chill_sizeof): In case of error just
3194 return error_makr_node.
3195 Set CH_DERIVED_FLAG at the result.
3197 * timing.c (build_after_timeout_start): Clear the the timeout
3198 level to know if we are in the action part of AFTER statement
3199 or in the TIMEOUT part.
3201 * typeck.c (build_chill_slice_with_length): Convert the class
3202 of the result to class of first value in expression.
3204 * inout.c (build_chill_writetext, build_chill_readtext): Use stack
3205 temporary variables for the iolist so that they can get reused in
3206 subsequent calls. Emit code immediately instead of building a
3209 Fri Nov 4 12:00:54 1994 Per Bothner <bothner@kalessin.cygnus.com>
3211 * expr.c (build_chill_function_call): Don't set TREE_TYPE
3212 of assignment to void_type_node - it confuses save_expr.
3213 * decl.c (init_decl_processing): Removed unused code.
3214 * parse.c: Changes to avoid warnings.
3216 * grant.c (chill_finish_module_code): Minor simplification.
3217 * lex.l (readstring): Set *len to 1 on error.
3219 Thu Nov 3 01:05:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
3221 * grant.c (decode_decl): Add granting of BASED declarations.
3223 Wed Nov 2 12:14:31 1994 Per Bothner <bothner@kalessin.cygnus.com>
3225 * expr.c (build_chill_lower_or_upper): Take more care to
3226 ensure result has the right class.
3227 (build_chill_pred_or_succ): Be more careful to get the right
3228 resulting class, and check bounds using *root* mode.
3230 * typeck.c (build_chill_slice_with_range): Check that array
3231 really is an array or string.
3232 (build_chill_slice_with_length): Likewise.
3234 * typeck.c (extract_constant_from_buffer): Fix calculation of
3235 SET_TYPE size. (Cannot depend on 1-byte TYPE_PRECISION field.)
3237 Wed Nov 2 05:33:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
3239 * Make-lang.in: Change version of compiler.
3241 * ch-tree.h: Add new prototypes.
3243 * decl.c (init_decl_processing): Remove timing related
3244 initialisations. Add call to timing_init.
3246 * parse.c (parse_action): Process AFTER action.
3248 * tasking.c (build_receive_case_start,
3249 build_receive_signal_case_label, build_receive_buffer_case_label,
3250 build_delay_case_start, build_delay_action, expand_send_buffer):
3251 Add processing of timesupervision.
3252 (tasking_init): Change definitions of runtime functions.
3254 * timing.c (timing_init): New function for initialisation of
3255 timing related stuff.
3256 (build_cycle_start, build_cycle_end): Changed due to
3257 implementation of timesupervision.
3258 (build_after_start, build_after_timeout_start, build_after_end):
3259 Implement the AFTER action.
3260 (build_timeout_preface, build_timesupervised_call): New functions
3261 to handle timesupervision in case of blocking system calls (i.e.
3262 SEND buffer action, RECEIVE CASE action etc.).
3264 Thu Oct 27 12:50:24 1994 Per Bothner <bothner@kalessin.cygnus.com>
3266 * expr.c (build_chill_repetition_op): Fix repeating all-zero
3267 bitstring with orig_len!=1. Also, call build_boring_bitstring
3268 if original string was all ones, using one range. Also:
3269 Cannot use one-bit TYPE_PRECISION to get bitstring length.
3271 Tue Oct 25 14:11:07 1994 Per Bothner <bothner@kalessin.cygnus.com>
3273 * convert.c (convert): When converting BOOL constant to
3274 bit-string, bit_one_node and bit_zero_node were switched.
3275 * actions.c (chill_expand_assignment): Use force_addr_of,
3276 not build_chill_addr_expr - latter yields bogus error.
3278 Fri Oct 21 14:26:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
3280 * expr.c (build_chill_indirect_ref): Check for POINTER_TYPE (only)
3281 after converting from REFERENCE_TYPE.
3282 * expr.c (build_compare_expr): Convert to common mode *after*
3283 we've checked compatibility.
3285 Fri Oct 21 02:29:15 1994 Wilfried Moser (moser@rtl.cygnus.com)
3287 * lex.l (check_newline): Use getc instead of getlc to read
3288 the filename in a # line name directive to avoid possibly
3289 downcaseing of a filename.
3291 Thu Oct 20 05:37:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
3293 * expr.c (build_chill_indirect_ref): Add check for really
3294 dereferencing a pointer.
3296 * convert.c (convert): Take care of TREE_CONSTANT of a
3297 SYNONYM having mode ARRAY () VARYING something.
3299 Mon Oct 17 02:30:38 1994 Wilfried Moser (moser@rtl.cygnus.com)
3301 * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
3302 boolean_true_node and boolean_false_node. TRUE and FALSE have
3303 the BOOL derived class.
3305 * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
3306 of NUM. NUM delivers the INT derived class.
3308 * grant.c (write_spec_module): Add writing of
3309 <> USE_SEIZE_FILE "x.grt" <>
3311 to generated grant file.
3313 Thu Oct 13 14:45:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3315 * convert.c (convert_from_reference): Make non-static.
3316 * ch-tree.h (convert_from_reference): Add prototype.
3317 * parse.c (parse_name): If the decl is a REFERENCE_TYPE, just
3318 call convert_from_reference - and not a full-scale convert.
3320 * convert.c (convert): Only call digest_array_tuple if ARRAY_TYPE.
3321 * typeck.c (chill_expand_tuple): Print error if type is
3322 neither array, struct, or powerset.
3324 * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
3325 UNDEFINED_EXPR): Call preserve_temp_slots for temp targets.
3326 If target is not MEM, make temp (even if not REG) to simplify
3327 - and don't copy original target to temp target first. (Not needed.)
3329 * lang.c (maybe_objc_comptypes): Just return -1.
3331 Wed Oct 12 12:24:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
3333 * tasking.c (tasking_setup): Fix breakage from previous check-in.
3335 Tue Oct 11 16:00:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
3337 * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
3338 timing.c, typeck.c: Change build1 (ADDR_EXPR, ptr_type_node, XX)
3339 to force_addr_of (XX). Add call to mark_addressable where needed
3340 for other calls to build 1 (ADDR_EXPR, TYPE, XX).
3342 Thu Oct 6 06:36:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3344 * inout.c (build_chill_writetext): Remove processing
3347 Tue Oct 4 14:08:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
3349 * convert.c (convert): If flag_old_strings, support converting
3350 CHARS(1) and BOOLS(1) to INT.
3352 Fri Sep 30 01:44:51 1994 Wilfried Moser (moser@rtl.cygnus.com)
3354 * inout.c (build_chill_readtext): Add check for item is
3355 referable and not READonly. Add processing of BITSTRINGs.
3357 Mon Sep 26 16:19:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
3359 * expr.c (build_chill_descr): Add missing call to mark_addressable.
3360 * loop.c (toop_loop_end_check): Replace build1 (ADDR_EXPR ...)
3361 with call to force_addr_of (which calls mark_addressable).
3362 * expr.c (build_chill_descr, build_chill_inttime): Likewise.
3363 * inout.c (build_chill_writetext): Likewise.
3365 Mon Sep 26 05:19:21 1994 Wilfried Moser (moser@rtl.cygnus.com)
3367 * grant.c (print_struct): Move printing of VARYING from
3369 * grant.c (grant_array_type): ... to here.
3371 Mon Sep 26 00:09:08 1994 Per Bothner (bothner@kalessin.cygnus.com)
3373 * ch-tree.h (force_addr_of): New prototype.
3374 * expr.c (force_addr_of): Call mark_addressable. Make non-static.
3375 * inout.c (build_chill_writetext): Use force_addr_of.
3377 Sun Sep 25 23:41:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
3379 * except.c (push_handler), actions.h: Removed unused parameter.
3380 * actions.c (push_action): Remove unused paramater.
3381 * parse.c, actions.c: Remove no-longer-used parameter to
3382 calls to push_handler and push_action.
3384 * decl.c (push_extern_process): Only build types in pass 1.
3385 * tasking.c (build_process_header): Only build types in pass 1.
3386 * tasking.c (build_start_process): Do pushdecl/popdecl etc
3387 even after an error (to maintain consistency between passes).
3389 * convert.c (convert_to_boolean): Allow any integral input type.
3391 Sat Sep 24 22:47:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3393 * typeck.c (extract_constant_from_buffer): Add (somewhat kludgey)
3394 support for UNION_TYPE. (Patch from Wilfried.)
3395 Also, reverse RECORD_TYPE constructor list.
3397 Fri Sep 23 19:06:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
3399 * expr.c (build_concat_expr): Fix calculation of result_size.
3401 Wed Sep 21 00:54:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
3403 Give up on trying to use the cleanup mechanism in stmt.c to
3404 make sure the exception handler get unlinked on goto/exit/return.
3405 Instead, do it ourselves. (Much simpler.)
3406 * except.c, ch-tree.h (action_nesting_level): New global.
3407 * ch-tree.h (DECL_ACTION_NESTING_LEVEL): New macro.
3408 * decl.c (define_label): Set DECL_ACTION_NESTING_LEVEL.
3409 * except.c (expand_goto_except_cleanup): New function.
3410 (cleanup_chain): New variable.
3411 (push_handler, pop_handler): Adjust action_nesting_level.
3412 (emit_setup_handler): Push cleanup.
3413 (chill_finish_on): Pop cleanup.
3414 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3415 Call expand_goto_except_cleanup.
3416 * parse.c (parse_action): Before RETURN, call
3417 expand_goto_except_cleanup.
3419 Mon Sep 19 00:59:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3421 * lex.l (equal_number): Make sure converted synonym
3422 is on permanent obstack.
3423 * typeck.c (extract_constant_from_buffer): Fix INTEGER_TYPE
3424 loop to traverse in big-endian order.
3426 Sat Sep 17 20:48:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
3428 * typeck.c (build_chill_cast): Call mark_addressable.
3429 * expr.c (build_chill_function_call): Call mark_addressable.
3431 Thu Sep 15 23:47:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
3433 * typeck.c (expand_constant_to_buffer): Fix an endian-ness
3434 problem for INTEGER_CST.
3435 (extract_constant_from_buffer): Likewise.
3437 Thu Sep 15 22:59:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3439 * decl.c (pushlevel): Do different things depending on
3441 * decl.c, parse.c, tasking.c: Change argument to to pushlevel to 1.
3442 * actions.c (push_action): Take new parameter.
3443 * except.c (push_handler): Likewise.
3444 * parse.c: Change calls to push_action and push_handler.
3445 * loop.c (begin_loop_scope): Always call expand_start_bindings.
3446 * loop.c (end_loop_scope): Always call expand_end_bindings.
3447 * except.c (emit_setup_handler): Add a cleanup to
3448 unlink from exception stack if we return/exit/goto from here.
3449 * loop.c (begin_loop_scope): Move pushlevel from here ...
3450 * parse.c (parse_do_action): ... to here.
3452 Clean up do-decl interface (for decl_temp1).
3453 * parse.c (parse_loc_declaration): If global_bindings_p (),
3455 * decl.c (do_decl): Don't test global_bindings_p ().
3457 * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3459 (struct scope::keep, scope::keep_if_subblocks): Likewise.
3460 (keep_next_level): Likewise.
3461 (kept_level_p, pushlevel, poplevel): Simplify.
3463 * decl.c (init_decl_processing): Don't call init_iterators.
3464 * Makefile.in (C_OBJS): Don't get ../c-iterator.o - not needed.
3466 Thu Sep 15 05:54:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3468 * lex.l (readstring): Add processing of control sequence
3469 in character string literals. The granting mechanism writes
3470 this to grant files.
3472 Tue Sep 13 06:19:42 1994 Wilfried Moser (moser@rtl.cygnus.com)
3474 * expr.c (compare_records): In case of -fpack do always
3475 a memcmp instead of comparing each field of the
3476 structure. If the structure is a variant structure,
3479 Mon Sep 12 13:15:09 1994 Per Bothner (bothner@cygnus.com)
3481 * grant.c (write_spec_module): Add cast, to avoid PCC warning.
3482 * grant.c (header_template): Don't use ANSI-specific string
3483 literal concatenation.
3485 Fri Sep 9 01:53:30 1994 Wilfried Moser (moser@rtl.cygnus.com)
3487 * tasking.c (get_process_wrapper_name): New function.
3488 (add_taskstuff_to_list): Add a new argument, which is
3489 the entrypoint of a process.
3490 (build_process_header): Change PROCESS arguments to be
3491 like arguments of a function. There will be a wrapper
3492 which is the real entry point for a PROCESS. This wrapper
3493 is automatically build after a PROCESS definition and gets
3494 as argument a pointer to a structure looking like the
3495 arguments of the PROCESS. This wrapper will call the
3496 PROCESS (see build_process_wrapper).
3497 (build_process_wrapper): New function (see above).
3498 (build_start_process): Change processing of arguments.
3499 (tasking_setup): Add processing of a different entry point
3500 in case of PROCESSes.
3502 * parse.c (parse_process_definition): Add call to
3503 build_process_wrapper.
3504 * parse.c (end_function): Remove the poplevel() call.
3505 build_process_header no longer makes the corresponding
3508 * grant.c (print_proc_tail): Remove special processing
3509 of PROCESSes, they look now like normal functions.
3511 * decl.c (init_decl_processing): Add declaration of memcmp
3514 * ch-tree.h: Add new prototype for build_process_wrapper,
3515 change prototypes for add_taskstuff_to_list and
3516 build_process_header.
3518 * grant.c (write_spec_module): Write GNUCHILL and gcc
3519 version into grant file.
3521 * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3522 GNUCHILL_VERSION to ch/Makefile.
3523 * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3525 * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3526 will get generated every time a new Makefile will get
3528 * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3531 * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3532 to the compiler to avoid generation of an object file.
3534 Thu Sep 8 12:07:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
3536 * convert.c (display_int_cst), ch-tree.h: New function.
3537 * convert.c (digest_array_tuple): Use digest_int_cst to
3538 provide better error messages. Return error_mark_node on error.
3539 * grant.c (decode_const): Simplify by using digest_int_cst.
3540 * grant.c (format_character, find_assoc): Removed.
3542 * decl.c (do_decl): Add missing TREE_CHAIN.
3544 * decl.c (finish_incomplete_decl): Removed.
3545 (init_decl_processing): Don't set incomplete_decl_finalize_hook.
3546 (finish_decl): Remove old C-specific code to deduce size of
3547 array from initialization.
3548 (complete_array_type): Just make it abort.
3550 * except.c (finish_handler_array): Avoid calling C-specific kludge
3551 complete_array_type.
3553 * convert.c (digest_constructor): Rename, and re-write to:
3554 (digest_array_tuple, convert): No longer use the code in
3555 ../c-typeck.c; use a Chill-only implementation (sigh).
3557 * typeck.c (chill_expand_tuple): Remove unneeded call to
3558 complete_array_type.
3560 * expr.c (fold_set_expr), grant.c (decode_constant),
3561 typeck.c (expand_constant_to_buffer): Update name of called
3562 function unpack_set_constructor to get_set_constructor_bits.
3563 * expr.c (powersetlen ): Remove redundant call to convert.
3565 * ch-tree.h (unpack_set_constructor): Removed obsolete declaration.
3567 * inout.c (build_chill_writetext): Handle 64-bit integer literals
3568 by trying to convert them to a smaller type.
3570 * lex.l (convert_number): Always use long long type (possibly
3571 unsigned) to avoid problems with constant folding truncation.
3573 Mon Sep 5 08:08:22 1994 Wilfried Moser (moser@rtl.cygnus.com)
3575 * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3576 Add new prototype (see tasking.c).
3578 * expr.c (build_generalized_call): Add processing of
3579 BUILT_IN_QUEUE_LENGTH.
3581 * tasking.c (build_queue_length): New function.
3583 * tasking.c (tasking_init): Add new external function definition.
3585 Thu Sep 1 15:38:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3587 * lex.l (default_lex): New function. Progress towards
3588 getting rid of [f]lex.
3590 * lex.l (convert_number): Use mul_double and add_double.
3591 Set result type to a reasonable type in which the literal
3592 will fit. Give error message if literal is too big.
3594 * lex.l (equal_number): Switch (temporarily) to permanent obstack.
3596 * typeck.c (build_chill_slice_with_range): Check for empty
3597 slice *after* we have checked for upper/lower limit in range.
3599 * grant.c (decode_mode): Remove unused code. (BOOL and
3600 CHAR ranges are represented as INTEGER_TYPEs.)
3602 * tasking.c (build_process_header): Add missing call to
3603 expand_start_bindings.
3604 * parse.c (end_function): Add missing expand_end_bindings.
3606 Wed Aug 31 17:25:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3608 * decl.c (init_decl_processing): Set set_alignment.
3610 Tue Aug 30 16:40:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
3612 * actions.c (print_missing_cases, check_missing_cases,
3613 BITARRAY_TEST, BITARRAY_SET): New functions and macros,
3614 to check for completeness of case actions and expressions.
3615 * decl.c (c_decode_option, init_decl_processing):
3616 Don't set warn_switch.
3617 * expr.c (chill_expand_case_expr): Call check_missing_cases
3618 instead of check_for_full_enumeration_handling.
3619 * parse.c (parse_case_actions): Call check_missing_cases.
3621 * expr.c (build_chill_binary_op): Remove some dead code.
3622 * expr.c (chill_truthvalue_conversion): Call build_chill_binary_op
3623 instead of build_binary_op.
3624 * ch-tree.h (binary_op_error, build_binary_op): Unused. Removed.
3626 * parse.c (end_function): Use kept_level_p in parameter to
3627 poplevel. This reverts a June 13 change.
3629 Fri Aug 26 11:50:19 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3631 * configure: Ignore --without, as ../configure does.
3633 Wed Aug 24 01:17:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3635 * lex.l: Change rule for decimal numbers to allow identifiers
3636 to start with an underscore (_).
3638 Fri Aug 19 16:38:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3640 * tasking.c (build_receive_signal_case_label): Remove backwards
3641 chill_convert_for_assignment (which converted whatever garbage
3642 was in the *target* to the type of the signal argument!).
3644 Fri Aug 19 07:10:43 1994 Wilfried Moser (moser@rtl.cygnus.com)
3646 * inout.c (build_chill_io_list_type, build_enum_tables),
3647 tasking.c (build_tasking_struct): Temporarily reset
3648 maximum_field_alignment to 0, so that the compiler-built
3649 data structures needed by the RTS can be independent of -fpack.
3651 Thu Aug 18 13:39:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
3653 * typeck.c (build_init_struct): Temporarily reset
3654 maximum_field_alignment to 0, so that the compiler-built
3655 data structures needed by the RTS can be independent of -fpack.
3657 Wed Aug 17 23:48:33 1994 Wilfried Moser (moser@rtl.cygnus.com)
3659 * parse.c (parse_primval, expect, parse_on_exception_list):
3660 Print error message only in pass 2.
3662 Wed Aug 17 13:47:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3664 * decl.c (switch_to_pass_2): Revert June 13 change,
3665 (Don't exit after pass 1 if an error was found.)
3667 * ch-tree.def (SLICE_EXPR): New tree-code.
3668 * typeck.c (build_chill_slice): For building a slice of a
3669 bit-string, just generate a SLICE_EXPR.
3670 * decl.c (init_decl_processing): Declare __pscpy.
3671 * actions.c (chill_expand_assignment): Handle a SLICE_EXPR
3672 on the LHS of assignment, by calling __pscpy.
3673 * expr.c (chill_expand_expr): Handle SLICE_EXPR (as a RHS
3674 value) by using __psslice to copy slice to a temp.
3676 Wed Aug 17 05:52:44 1994 Wilfried Moser (moser@rtl.cygnus.com)
3678 * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3679 * expr.c (build_chill_length): Enable LENGTH built-in to process
3680 Buffers and Events too (Z.200/1992).
3681 * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3682 a linux system the previous version was not able to run.
3683 * tasking.c: Correct processing of infinite buffer- and event-length
3684 to avoid RANGEFAIL warning.
3686 Thu Aug 11 11:46:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3688 * parse.c (parse_if_expression_body): Don't call the C-specific
3689 build_conditional_expr. Just do build_nt (COND_EXPR, ...).
3690 * convert.c (convert): Convert a COND_EXPR by converting
3693 * convert.c (convert): Don't call convert before
3694 convert_to_reference. It's apt to do weird and unneedful things.
3695 * convert.c (convert): If the expression is varying, just call
3696 varying_to_slice, which simplifies quite a bit.
3698 * ch-tree.h (varying_to_slice): Add prototype.
3699 * typeck.c (varying_to_slice): Remove prototype.
3701 * satisfy.c (satisfy): Move case PAREN_EXPR from type 'e'
3704 * except.c (emit_setup_handler): Temporarily reset the
3705 maximum_field_alignment to zero so the compiler's exception
3706 data structures can be compatible with the run-time system,
3707 even when we're compiling with -fpack.
3709 * expr.c (compare_records): Call saved_if_needed on operands.
3711 * expr.c (build_set_expr case NE_EXPR): Don't use __nepowerset
3712 which has been reimplemented to just call __eqpowerset and
3713 invert the result. Inline this new implementation by
3714 handling as EQ_EXPR, and inverting the result.
3715 * decl.c (init_decl_processing): Don't define unused __eqpowerset.
3717 * typeck.c (valid_array_index_p): The TRUTH_ANDIF_EXPR has
3718 type boolean_type_node, not void_type_node. (Fixing this
3719 avoids a crash in the back-end.)
3721 * grant.c (decode_constant): In a CALL_EXPR, if the argument
3722 list is not a TREE_LIST (as in string repetiation), don't
3725 Wed Aug 10 13:13:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3727 * decl.c (proclaim_decl): Use CH_DECL_ENUM to check that a
3728 CONST_DECL is from a SET definition. (This is safer than
3729 checking that the type is ENUMERAL_TYPE, because synonym
3730 definitions may have a NULL TREE_TYPE.)
3731 Also, if we have duplicate enums whose types are identical,
3733 * decl.c (proclaim_decl, pushdecllist, push_scope_decls): Add
3734 an extra 'quiet' parameter, which is true if we're called from
3735 bind_sub_modules. (In that case an error message about duplicated
3736 decls would be repeated later, so suppress it.)
3738 * parse.c (stmt_count): Removed, not used.
3739 (INIT_ACTION): Call emit_line_note only if !ignoring.
3740 (parse_begin_end_block): Do INIT_ACTION even if ignoring.
3742 Fri Aug 5 12:39:11 1994 Per Bothner (bothner@kalessin.cygnus.com)
3744 * parse.c (parse_untyped_expr): Add missing semi-colon.
3746 Thu Aug 4 17:40:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3748 * parse.c (parse_untyped_expr): Fix various problem for the
3749 case that we see a '(': Add missing 'case' keyword.
3750 Only recurse if '(' is followed by 'if', 'case' or '[',
3751 and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3753 * parse.c (parse_send_action): Remove extra nreverse.
3755 Thu Jul 28 04:00:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3757 * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3760 Tue Jul 26 22:48:15 1994 Michael Tiemann (tiemann@blues.cygnus.com)
3762 * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3763 Added a missing call to `require' as well.
3765 Tue Jul 19 10:30:12 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3767 * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3768 the extern declaration in the flex skeleton.
3770 Mon Jul 18 23:06:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3772 * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3773 Check the type of the instance expr using CH_COMPATIBLE,
3774 and not just == instance_type_node. (This allows
3775 the expression to have mode READ INSTANCE).
3776 * tasking.c (build_instance_type): Give instance_type_node
3777 a non-null novelty (i.e. different from a struct).
3778 * tasking.c (build_receive_case_start, build_delay_case_start):
3779 Check that for a location using CH_LOCATION_P.
3781 Mon Jul 18 13:22:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
3783 * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3784 to modify a tree code.
3786 Mon Jul 18 11:24:57 1994 Bill Cox (bill@rtl.cygnus.com)
3788 * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3791 Mon Jul 18 05:40:15 1994 Doug Evans (dje@canuck.cygnus.com)
3793 * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3795 Thu Jul 14 18:37:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3797 * parse.c (parse_send_action): Do tree_cons *before* checking
3800 Mon Jul 11 15:33:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3802 * convert.c (digest_structure_tuple): Don't use convert to
3803 coerce initial value, use chill_convert_for_assignment instead.
3804 (Thus we also get range_checking.)
3806 * expr.c (build_chill_card): Use force_addr_of instead of
3807 build_chill_addr_expr.
3809 * loop.c (build_temporary_variable): Stylistic tweak.
3810 * loop.c (maybe_make_for_temp): Initialize temp using
3811 explicitly, not using assignment. Avoids a problem if
3812 the expression is read-only.
3813 * typeck.c (smash_dummy_type): Always used the saved TYPE_NAME
3814 and CH_NOVELTY_FLAG.
3816 Wed Jul 6 20:12:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3818 * expr.c, ch-tree.h (finish_chill_unary_op): New function,
3819 based on code ripped out of build_chill_unary_op.
3820 (build_chill_unary_op): Call finish_chill_unary_op unless pass==1.
3821 * satisfy.c (satisfy): Call finish_chill_unary_op when needed.
3823 Mon Jun 27 11:29:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3825 * tree.c (save_if_needed), ch-tree.h: New function.
3826 * typeck.c (build_chill_slice_with_range,
3827 build_chill_slice_with_length): Call save_if_neeed on array arg.
3828 * expr.c (varying_to_slice): Re-write to use save_if_needed.
3830 * typeck.c (extract_constant_from_buffer): Handle BOOLEAN_TYPE.
3832 Mon Jun 27 01:11:10 1994 Wilfried Moser (moser@rtl.cygnus.com)
3834 * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3835 that it is always the same, regardless if compiled with -fpack
3838 Tue Jun 14 16:44:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3840 * lex.l (yywrap): Kludge to work around mis-synchronization
3841 between lexer (which read ahead) and parser: Don't emit
3842 (left-over) uze_seizefile directives at the end of file.
3844 * typeck.c (build_chill_array_ref): Allow the derived
3845 array indexing syntax for arrays of bit strings.
3846 Add a comment explaining why.
3848 * typeck.c, ch-tree.h (string_assignment_condition): Change
3849 the interface. Return a boolean expression (which can be
3850 used in a conditional at run-time); never expand anything.
3852 * actions.c (chill_convert_for_assignment): Check
3853 string_assignment_condition here, rather than in callers.
3854 * actions.c (chill_expand_assignment): Don't need to check
3855 string_assignment_condition here.
3856 * expr.c (build_chill_function_call): Likewise.
3857 * satisfy.c (safe_satisfy_decl): Update accordingly.
3858 * decl.c (do_decl): Simplify testing and conversion by
3859 deferring everything to chill_convert_for_assignment.
3861 * parse.c: Combine the two variables 'ignore_exprs' and
3862 'ignore_actions' into one variable called 'ignoring'.
3863 * ch-tree.h: Add 'extern int ignoring'.
3864 * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3865 Rename ignore_actions and ignore_exprs to ignoring.
3866 Remove unneeded extern declarations.
3867 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3868 build_chill_arrow_expr, build_generalized_call, build_delay_action,
3869 build_buffer_type, build_event_type): I changed my mind. It is
3870 cleaner to check for 'ignoring' in the parser, rather than here.
3871 * parse.c (parse_action, parse_primval, parse_opt_mode):
3872 Therefore we must check for ignoring here.
3873 * parse.c (parse_loc_declaration): Set ignoring in pass 2
3874 when parsing the mode.
3876 * tasking.c (generate_tasking_code_variable): Do arithmetic
3877 on signal_code etc using unsigned rather than signed shorts.
3879 * grant.c (static char* current_grant_modename): Removed.
3880 * grant.c (decode_decl case CONST_DECL): Remove error message.
3882 * Make-lang.in (CHILL_SRCS): Add $(srcdir)/ch/parse.c.
3883 * Makefile.in: Fix dependencies for parse.o.
3884 Remove some duplicate dependencies for $(TREE_H).
3886 Mon Jun 13 14:25:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3888 * typeck.c (build_chill_cast): Allow a value cast between
3889 non-discrete object of the same size, but with a pedwarn.
3890 * typeck.c (bit_string_assignment_condition,
3891 char_string_assignment_condition): Merge near-duplicate functions
3892 and place the code in string_assignment_condition.
3894 * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3896 * decl.c (start_chill_function, finish_chill_function): Make
3897 parameter level have same nesting level as body, as required by Z200.
3898 * decl.c (switch_to_pass_2): Always exit if an error has been found.
3899 * decl.c (pop_module): Copy DECL_SEIZEFILE to a new ALIAS_DECL
3900 generated from GRANT ALL.
3901 * decl.c (lookup_name_for_seizing): Don't seize from
3902 the nesting level of builtins (predefined objects).
3903 * decl.c (lookup_name_for_seizing): Make more robust on error.
3905 * decl.c (start_chill_function): MAKE DECL_NAME (chill_result_decl)
3906 be 'RESULT' (or 'result'). This makes it more accessible from gdb.
3907 Also, use do_decl to declare it, so that debugging symbols are
3908 generated. And, re-arrange so that actions that need to
3909 be done both passes (such as push_levels) use the same code.
3911 * parse.c (get_type_of): If ignore_exprs, don't lookup name.
3912 * parse.c (end_function): Fix poplevel params.
3913 * parse.c (expect): Don't read forwards on an error.
3914 * parse.c (parse_field): Don't define two tag_list locals!
3915 * parse.c (parse_pass_1_2): Better error message.
3917 * parse.c (parse_mode, parse_opt_mode): Have parse_mode call
3918 parse_opt_mode, rather than vice versa. If parse_opt_mode
3919 returns NULL_EXPR, then parse_mode gives an error.
3920 Change parse_opt_mode (and any functions it calls) to only
3921 return NULL_TREE if there is no mode (even on ignore_exprs).
3922 (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3923 Never return NULL_EXPR.
3924 * tasking.c (build_buffer_type, build_event_type): Return
3925 void_type_node instead of NULL_EXPR if ignore_exprs is true.
3927 * parse.c (parse_synonym_definition): Call parse_untyped_expr
3928 only if we have a mode.
3929 * parse.c (parse_send_action): Parse list of untyped_expr's,
3930 rather than a list of (typed) expressions.
3931 * parse.c (parse_primval): Emit error if '[' seen without
3932 preceding mode name. (If this is to be allowed, call
3933 parse_untyped_expr instead.)
3935 * parse.c (parse_array_index): Renamed to ...
3936 (parse_index_mode): ... to match Z200 terminology.
3937 Re-write to resolve some of the nastier ambiguities,
3938 and allow things like ' CHAR(10) : CHAR(20) '.
3940 * parse.c (parse_tuple_element): Change interface to return
3941 reversed list, so don't call nreverse.
3942 * parse.c (parse_tuple): No longer nreverse element list here.
3943 * parse.c (parse_opt_element_list): Do nreverse here instead.
3944 * parse.c (parse_case_label_list): Call nreverse at end.
3946 Fri Jun 10 15:36:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3948 * typeck.c (chill_similar): Remove bogus "else".
3950 Wed Jun 8 00:01:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
3952 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): New macro (and comment)
3953 to make it clearer that we are using TYPE_MAX_VALUE in a special way.
3954 * typeck.c (build_chill_slice): Use TYPE_ARRAY_MAX_SIZE.
3955 * expr.c (chill_expand_expr case CONCAT_EXPR): Likewise.
3956 * convert.c (convert): When converting a fixed string/array
3957 to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
3958 of (the type of) the padding.
3959 * convert.c (convert): If the concatenation is non-constant, use
3960 the low-level 'build' to set the type of the result (which is usually
3961 a fixed-size array) rather than depend on build_chill_binary_op
3962 to figure it out (it's unable to simplify the size to a constant).
3964 Mon Jun 6 18:16:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
3966 * lang.c (lang_decode_option): Let -fspecial_UC imply
3967 -fno-ignore-case without requiring it explicitly.
3968 * lang.c (lang_decode_option): Support (experimentally)
3969 the -fpack and -fno-pack flags.
3971 Thu Jun 2 20:49:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3973 * configure: Add support for --program-prefix and --program-suffix.
3975 Tue May 31 18:12:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3977 * convert.c (digest_constructor): Check that initial value
3978 is compatible with element mode before calling convert.
3979 * typeck.c (chill_compatible): A string mode is not compatible
3980 with an untyped constructor.
3981 * decl.c (do_decl): Clean up error messages. Use error_with_decl.
3983 * ch-tree.h: Fix inconsistencies: bool_true_node ->
3984 boolean_true_node, and bool_false_node -> boolean_false_node.
3985 * typeck.c (valid_array_index_): Minor simplification.
3987 Tue May 31 04:33:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3989 * inout.c (build_chill_writetext): Add correct processing
3990 of POWERSET RANGE (setmode).
3992 * lex.l (same_file): Add searching for file(s) in
3995 Fri May 27 14:22:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
3997 * Make-lang.c (CHILL.mostlyclean, CHILL.distdir): Don't list
3998 yacc/bison output files, since the grammer is no longer in yacc.
3999 * config-lang.in (diff_excludes): Likewise.
4001 Thu May 26 16:38:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
4003 * gperf, hash.h, lex.l, parse.h: Rename PROCESS_TYPE token
4004 (in some files spelled PROCESS_TYPE_ to avoid clashes
4005 with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
4007 Thu May 26 02:18:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
4009 * timing.c (build_cycle_start): Change call to __define_timeout.
4010 * decl.c (init_decl_processing): Change definitions of
4011 __define_timeout and __wait_timeout.
4013 Wed May 25 11:53:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
4015 Replace yacc-based parser with a recursive-decent parser.
4016 (This may seem backwards, but Chill [like C++] is not a
4017 language that is remotely LALR(1). Using a R-D parser
4018 allows us to use look-ahead and to back-up to resolve the
4019 difficult ambiguities.)
4021 * parse.c, parse.h: New files, containing new r-d parser.
4022 * Makefile.in: Update accordingly.
4023 * actions.c (chill_convert_for_assignment): Don't return
4024 NULL_EXPR if ignore_exprs is true. It simplifies the parser
4025 if we consistently reserve NULL_EXPR for a missing expression.
4026 * expr.c (build_chill_function_call): Likewise.
4028 * lex.l: Tweaks for new parser.
4029 * lex.l (prepare_paren_colon, paren_paren_colon_level,
4030 paren_level): Ugly hack no longer needed.
4032 * expr.c (build_chill_function_call): Cleanup.
4033 Call chill_convert_for_assignment to convert IN/INOUT
4034 paramaters on both input and output. For LOC parameters,
4035 give error if actual is a non-referable location.
4036 * actions.c (convert_for_assignment): Add new parameter (a
4037 "place" string used in error messages).
4038 * actions.c (adjust_parm_or_field): Removed.
4039 * actions.c (chill_expand_assignment): Take just a single LHS,
4040 and move support for multiple assignments to ...
4041 (expand_assignment_action): ... here. Some cleaning up.
4042 * timing.c (build_cycle_start): Adjust accordingly.
4043 * actions.c (expand_assignment_to_varying_array): Likewise.
4044 * tasking.c (many places): Ditto.
4045 * ch-tree.h: Fix declarations appropriately.
4047 * parse.c (parse_defining_occurrence_list): Return a single
4048 IDENTIFIER_NODE (instead of a singleton list) in the common
4049 case. Minor complication to save a minor amount of space.
4050 * decl.c (do_based_decls): Move guts of code into ...
4051 (do_based_decl): ... this new function.
4052 * decl.c (do_decls): Handle either IDENTIFIER_NODE or a TREE_LIST.
4053 * decl.c (push_syndecl): Replace by ...
4054 (push_syndecl): ... (which only supports a single name).
4055 (push_modedef): Only handle a single name.
4056 * tasking.c (build_process_header, build_signal_struct_type):
4059 * expr.c (build_generalized_call): Handle string repetition.
4060 * expr.c (build_chill_repetition_op): Change interface.
4061 * grant.c (decode_constant): Allow parameter list to be
4062 a non-TREE_LIST. (Used for string repetition.)
4064 Wed May 25 11:28:48 1994 Per Bothner (bothner@kalessin.cygnus.com)
4066 * lex.l (make_identifier): Replaced by ...
4067 (read_identifier, handle_name): ... new functions.
4068 * lex.l: Parse an identifiers using read_identifier using
4069 read_identifier and handle_name, rather than having [f]lex
4070 do it. (One reason is that lex uses a fixed-size buffer.)
4072 * lex.l (read_directive, skip_directive): New functions.
4073 Use them to parse compiler-directives, instead of rather
4074 ugly and useless use of lexer start conditions.
4076 Tue May 24 22:36:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
4078 * decl.c (unnamed_module_number): Renamed to ...
4079 (module_number): .. and make non-static.
4080 (push_module): Always increment module_number.
4081 * lex.l (yywrap): Print warning if no modules seen.
4083 * decl.c (pop_module): Don't set DECL_SEIZEFILE of granted
4084 decl to current_seizefile_name (which is unreliable).
4085 * grant.c (chill_grant): Set it here instead.
4087 * expr.c (fold_set_expr): Use int_size_in_bytes instead of
4088 TYPE_PRECISION (which is not defined for a SET_TYPE).
4090 Fri May 20 15:21:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
4092 Cleanup to remove need for variables in common storage.
4093 * decl.c: Remove unused use of current_obstack.
4094 * actions.c (maybe_chill_check_decl): Remove unused function.
4095 * actions.h, lang.c: Remove uses of doing_chill_thang.
4096 * ch-tree.h (void_list_node): Make extern (rather than common).
4097 * decl.c (void_list_node): Add definition.
4099 Thu May 19 06:54:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
4101 * configure (build): Build canon_host and canon_target
4102 to pass it to all subsequently generated Makefiles (needed
4103 for testsuite/execute in case of cross build).
4105 Wed May 18 13:27:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
4107 * grant.c (decode_mode): Remove. It checks the TYPE_NAME of
4108 the input type, which loses with the no-longer-new 2-pass
4109 implementation, since the input "type" could be an IDENTIFIER_NODE.
4110 * grant.c (raw_decode_mode): Rename to decode_mode.
4112 Tue May 17 13:19:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
4114 * typeck.c (chill_location): Neither a STRING_CST nor a
4115 CONSTRUCTOR is a location.
4116 * typeck.c (chill_root_mode): Convert a function to a
4117 pointer-to-function.
4118 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
4119 build_chill_arrow_expr): If ignore_exprs, return operand
4120 rather than NULL_EXPR. This makes it easier for the parser to
4121 distinguish missing expressions.
4122 * expr.c (build_max_min): Convert the lower bound of a
4123 set to a long before calling run-time routine.
4124 * expr.c (build_chill_pred_or_succ): Use discrete_type_p
4125 to check the argument type.
4126 * expr.c (build_chill_arrow_expr): If argument is not a location,
4127 do a predwarn if it is a STRING_CST or has function type.
4129 Tue May 17 06:05:13 1994 Wilfried Moser (moser@rtl.cygnus.com)
4131 * configure (build): Remove building of canon_host and canon_target.
4132 It doesn't work in any case.
4134 Mon May 16 02:10:35 1994 Wilfried Moser (moser@rtl.cygnus.com)
4136 * configure (build): Build canon_host and canon_target
4137 to pass it to all subsequently generated Makefiles (needed
4138 for testsuite/execute in case of cross build).
4139 * Make-lang.in (chill-runtime): Change chill to CHILL in the case
4140 statement to build chill-runtime automatically.
4142 Mon May 9 15:30:08 1994 Doug Evans (dje@canuck.cygnus.com)
4144 * Makefile.in (FLAGS_TO_PASS): Define.
4146 (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
4147 * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
4148 (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
4150 Sun May 8 13:05:00 1994 Per Bothner (bothner@cygnus.com)
4152 * Make-lang.in (cc1chill): Should not depend on libgcc.a.
4154 Thu May 5 18:58:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
4156 * decl.c (copy_lang_decl): New (dummy) function.
4158 Mon May 2 14:33:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
4160 * parse.y (sendaction): Fix thinko (in sense of condition).
4161 * tasking.c (build_receive_case_label): Another thinko.
4163 * parse.y (optsigdest): Force ignore_exprs to 0 while parsing
4166 * decl.c (build_chill_function_type): Don't call layout_type
4167 (since that may prevent parameter or result types being
4168 properly satisfied).
4169 * satisfy.c (satisfy): Layout FUNCTION_TYPEs.
4170 * parse.y (procmode): Call build_chill_pointer_type, rather
4171 than build_pointer_type (which incorrectly sets TYPE_SIZE).
4173 * parse.y (get_type_of): Handle TYPE_DECL (again).
4174 * parse.y (optresultspec): Call build_chill_reference_type, rather
4175 than build_reference_type (which incorrectly sets TYPE_SIZE).
4176 * parse.y (range_or_mode): Rename to plain range, since it
4177 no longer matches modename.
4178 * actions.c (chill_handle_case_label_range): New function, with
4179 functionality moved out of chill_handle_case_label.
4180 * actions.c (chill_handle_case_label): Handle here the case that
4181 the label_value is a TYPE_DECL (modename). Also clean up some.
4182 * typeck.c (build_chill_slice_with_length): Convert max_index
4183 to the type of min_value. (Old code broke on varying strings.)
4185 Sun May 1 13:53:36 1994 Doug Evans (dje@canuck.cygnus.com)
4187 * Makefile.in (BC_OBJS): Delete all references
4188 (OBJS): Cat ../stamp-objlist to get language independent files.
4189 (../cc1chill): Delete dependency on $(OBJS).
4190 * Make-lang.in (cc1chill): Depend on stamp-objlist.
4192 Sat Apr 30 14:50:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
4194 * lex.h, lex.c: Remove lastiddecl.
4195 * lex.l (name_type_signal): Simplify. We no longer check for
4196 TYPENAME or SIGNALNAME (which was unreliable with two passes).
4197 Also rename to make_identifier.
4198 * parse.y: Cleaned up grammar to not need SIGNALNAME or TYPENAME.
4199 * Makefile.in (stamp-parse); One conflict fewer!
4200 * parse.y (rccase_label_flag): Moved to tasking.c.
4201 * parse.y (rccase_label): Move most of the logic to
4202 build_receive_case_label in tasking.c.
4203 * parse.y (sendaction): Re-write to not depend on SIGNALNAME.
4205 * parse.y (name): Do name lookup here (and not in location).
4206 * parse.y: Replace most uses of NAME by higher-level non-terminals:
4207 simple_name_string, name_string, defining_occurrence, or name.
4209 * tasking.c (build_receive_signal_case_label,
4210 build_receive_buffer_case_label): New functions, split out from
4211 build_receive_case_label.
4212 * tasking.c (build_receive_case_label): Change parameters
4213 and return type. Moved stuff here (from the parser).
4214 * tasking.c (struct rc_state_type): Removed had_errors.
4215 Return error_mark_node instead.
4216 * tasking.c (build_rccase_set_error), ch-tree.h: Removed.
4218 * expr.c (build_generalized_call): If func is a signal type,
4219 call build_signal_descriptor.
4221 * parse.y (arrayindex): Renamed to index_mode, to match Z.200.
4222 * parse.y (ioindexmode): Removed; use index_mode instead.
4223 * expr.c (build_generalized_call): If args is a RANGE_EXPR,
4224 we have either a slice or a range mode, depending on func.
4225 * parse.y (index_mode): If we got an 'expr', only allow a name,
4227 * parse.y (call): A slice with both end points can be a range
4228 mode, so defer handling to build_generalized_call (or index_mode).
4230 * typeck.c (build_chill_slice_with_length): Fix type-checking.
4231 * typeck.c (chill_novelty): Undo (part of) change of April 28:
4232 The novelty of a range mode is the novlety of the parent.
4233 * typeck.c (chill_root_mode): Don't return integer_type_node
4234 if argument has non-nil novelty.
4236 * decl.c (global_bindings_p): Return -1 as true, for the sake
4237 of variable_size (in ../stor-layout.c).
4239 Fri Apr 29 13:42:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
4241 * parse.y: Remove TYPENAME and modename. These are now plain
4242 NAMEs. Modify parsing actions appropriately.
4243 * expr.c (build_generalized_call): Handle the case that
4244 TREE_CODE (func) == TYPE_DECL (as in a cast).
4245 * lex.l (name_type_signal): Never return TYPENAME.
4246 * parse.y (get_type_of): If pass 1, just return the argument.
4248 * decl.c (do_decl): If an initializer has the wrong type,
4249 replace it by NULL_TREE, to avoid subsequent errors.
4251 Thu Apr 28 15:21:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
4253 * Makefile.in: Add new file timing.c to rules.
4254 * timing.c: New file. Implements the timing actions AT,
4256 * decl.c (init_decl_processing): Add new builtin function
4258 * expr.c (build_chill_indirect_ref): Change error message and
4259 add check agains an IDENTIFIER_NODE.
4260 * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
4261 They are no longer needed.
4262 * grant.c (print_integer_type): Add processing of builtin types
4264 * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
4265 * parse.y (timingactions): split up to afteraction, ataction
4267 * parse.y (afteraction): New rule.
4268 * parse.y (ataction): New rule and put actions in.
4269 * parse.y (cycleaction): New rule and put actions in.
4270 * parse.y (sendaction): Add code for SEND buffer.
4271 * parse.y (rccase_label): Change error processing.
4272 * tasking.c (build_gen_inst): More checks.
4273 * tasking.c (build_gen_code): Add checking for argument is a
4274 PROCESS or a SIGNAL.
4275 * tasking.c (struct rc_state_type): Add new fields for easier
4277 * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
4278 * tasking.c (build_rccase_set_error), ch-tree.h: New function.
4279 * tasking.c (build_receive_case_label): Add processing of BUFFER's.
4280 * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
4281 New functions to process the end of a RECEIVE CASE action in case
4282 of BUFFER's and SIGNAL's.
4283 * tasking.c (build_receive_case_end): Do only general processing and
4284 call one of the above mentioned functions.
4285 * tasking.c (build_delay_case_start, build_delay_case_label,
4286 build_delay_case_end): Rewritten due to new implementation of events.
4287 * tasking.c (build_delay_action): Rewritten due to new implementation
4289 * tasking.c (expand_send_buffer), ch-tree.h: New function.
4290 * timing.c (build_at_action, build_cycle_start, build_cycle_end),
4291 ch-tree: New functions.
4293 Thu Apr 28 14:11:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
4295 * typeck.c (smash_dummy_type): Handle the special case of a
4296 NEWMODE of a range mode, as required by Z200, by creating a
4297 new parent mode with the new novelty (and casting the min
4298 and max of the range to teh new parent mode).
4299 * typeck.c (chill_novelty, chill_root_mode): Remove special
4300 kludges for of NEWMODE ranges.
4301 * expr.c (build_chill_lower_or_upper): New function, combining
4302 the "guts" of build_chill_lower and build_chill_upper.
4303 * expr.c (build_chill_lower_or_upper): Simplify; no longer
4304 need to kludge the novelties.
4306 * typeck.c (valid_array_index_p): A string index expression
4307 need not be Compatible with the index type; only similar.
4309 * decl.c (layout_chill_variants): If error seen, skip stuff
4310 (rather than aborting or crashing).
4311 * decl (push_modedef): If newdecl's type is an error mark,
4312 continue rather than aborting.
4314 Thu Apr 28 02:07:42 1994 Doug Evans (dje@cygnus.com)
4316 * Make-lang.in: Update of directory reorg from fsf.
4317 * config-lang.in: Ditto.
4319 Mon Apr 25 13:09:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
4321 * typeck.c (chill_similar): Check RECORD_TYPEs properly,
4322 * convert.c (convert): If all else fails, just call convert1.
4323 Thus we can now convert RECORD_TYPEs (assuming they are similar).
4325 * parse.y, lex.l: Remove BUFFERNAME (use location/expr instead).
4326 * parse.y: Re-do BUFFER handling (similar to previous EVENT change).
4327 * grant.c (raw_decode_mode): Re-do BUFFER mode handling.
4328 * ch-tree (lang_type_record): Removed max_queue_size field.
4329 * tasking.c (build_buffer_type): Re-write.
4330 * tasking.c (max_queue_size): Fix to support buffer modes.
4331 * tasking.c (buffer_element_mode), ch-tree.h: New function.
4332 * tasking.c ch-tree.h (expand_send_buffer): Now has 3 parameters.
4333 * parse.y (modename): No longer match SIGNALNAME. Instead, add it
4334 to name and simple_name_string. This removes a reduce/reduce conflict.
4335 * Makefile.in (stamp-parse): Expect fewer conlicts.
4337 * lex.l (yywrap): Move check for circularly seizeing current
4338 grant-file from here ...
4339 * lex.l (handle_use_seizefile_directive): ... to here.
4340 This is to avoid calling stat on a not-yet written grantfile,
4341 now that we're using same_file (which calls stat).
4342 * grant.c (set_use_this_gf): Removed.
4343 * grant.c (set_default_grant_file): Set grant_file_name here,
4344 because we need it earlier (due to above lexer change).
4346 * typeck.c (layout_chill_struct_type): Remove useless code to
4347 remove zero-width bitfield (which messes up CONST_DECLs).
4349 Sat Apr 23 13:16:39 1994 Bill Cox (bill@rtl.cygnus.com)
4351 * Makefile.in (check): Assure that 'ld' is available before checking.
4353 Thu Apr 21 13:23:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
4355 * grant.c (print_an_int): Removed.
4356 (raw_decode_mode): Generalized to use decode_constant
4357 instead of print_an_int.
4358 (decode_constant): Print directly, instead of calling print_an_int.
4359 * parse.y (event_list): Fix syntax.
4360 * parse.y (optqueuesize): Default is NULL_TREE, not zero.
4361 * tasking.c (check_queue_size): New function, for error checking.
4362 * ch-tree.h: Add declaration for check_queue_size.
4363 * satisfy.c (satisfy case RECORD_TYPE): Satisfy constant fields
4364 (used for queue size of EVENT and BUFFER), and call check_queue_size.
4366 Tue Apr 19 13:42:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
4368 Re-implement EVENT modes to support general EVENT objects
4369 (and not just EVENT names), according to Z200. (Not finished!)
4370 * tasking.c, ch-tree.h (max_queue_size): New function.
4371 * parse.y (dcalternative, event_list, event_list_head): New
4372 implementation of DELAY CASE, avoiding parsing ambiguities.
4373 (call, locdec, delayaction): Remove old EVENTNAME kludges.
4374 * lex.l (name_type_signal): Remove EVENTNAME recognition.
4375 * tasking.c (build_event_type): Re-written.
4376 * typeck.c (chill_similar), decl.c (print_lang_type):
4377 Use new max_queue_size function.
4378 * typeck.c (layout_chill_struct_size): Ignore CONST_DECL.
4379 * tasking.c (build_delay_action): Preliminary changes - just to
4380 make it compile. FIXME!
4381 * grant.c (raw_decode_mode): Use new max_queue_size function.
4382 Move EVENT support from LANG_TYPE to RECORD_TYPE.
4383 * ch-tree.h (process_event_decls): Removed.
4385 Tue Apr 19 11:44:01 1994 Bill Cox (bill@rtl.cygnus.com)
4387 * regression.sh: Complete previous change - eliminate all
4388 references to objdir as a user parameter.
4390 Mon Apr 18 10:17:55 1994 Bill Cox (bill@cygnus.com)
4392 * Makefile.in (check): Simplified regression.sh call.
4393 * regression.sh: Change command-line parsing. Default
4394 srcdir to the script's path. Calculate objdir
4395 internally - don't pass it in.
4397 Thu Apr 14 13:30:19 1994 Wilfried Moser (moser@phishhead.cygnus.com)
4399 * expr.c (build_chill_duration): Add range checking.
4401 * lex.l (init_lex): Add predefined names DURATION and TIME.
4402 * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4403 * ch-tree.h: Add prototypes and externals.
4404 * decl.c (init_decl_processing): Add builtin function
4406 * expr.c (build_generalized_call): Add processing of some
4408 * expr.c (build_chill_abstime): New function to process builtin
4410 * expr.c (build_chill_inttime_type): New function to built type
4411 for the INTTIME builtin.
4412 * expr.c (build_chill_inttime): New function to process builtin
4414 * expr.c (build_chill_duration): New function to process builtin's
4415 MILLISECS, SECS, MINUTES, HOURS and DAYS.
4417 Tue Apr 12 11:55:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4419 * lex.l (chill_same_grant_file): Rename to same_file. Change to
4420 take two files names rather than two DECLs. Also check that the
4421 filesystems (st_dev) are equal. Finally, make static.
4422 * lex.l (handle_use_seizefile_directive): Check for duplicate
4423 USE_SEIZE_FILE directives using same_file.
4424 * decl.c (pop_module): Remove dubious call to chill_same_grant_file.
4426 Sun Apr 10 17:19:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
4428 * decl.c, ch-tree.h (chill_result_decl): New variable. Used to
4429 store RESULT value. (Cannot use DECL_RESULT; see comment in decl.c.)
4430 * actions.c (chill_expand_result, chill_expand_return):
4431 Use chill_result_decl appropriately.
4432 * ch-tree.h, decl.c, actions.c (saved_result_rtx): Removed.
4433 Subsumed by chill_result_decl.
4435 * expr.c (chill_expand-expr case CONCAT_EXPR): Generate temporary
4436 using the mode of the result type, and don't assume it is BLKmode.
4438 Fri Apr 8 17:46:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
4440 * actions.c (chill_expand_assignment): Check for compatibility
4441 _after_ "expanding out" a binary operation. This fixes
4442 the case "STRING //:= CHAR".
4444 * lex.l (equal_number): Convert symbol to integer_type_node, to
4445 force the value to be INT-derived (and avoid novelty conflicts).
4447 Mon Apr 4 22:06:31 1994 Per Bothner (bothner@cygnus.com)
4449 * ch-tree.h (CH_FUNCTION_SETS_RESULT): New flag.
4450 * ch-actions.c (chill_expand_return), ch-tree.h: Extra
4451 parameter, indicates if implicit return at end of function.
4452 * ch-parse.y: Modify accordingly.
4453 * ch-actions.c (chill_expand_return): Various improvements.
4455 * decl.c, ch-tree.h (result_never_set): New variable.
4456 * actions.c (chill_expand_result, chill_expand_return): Clear it.
4457 * ch-parse.y (end_function): Warn if no RETURN or RESULT action.
4459 * decl.c, ch-tree.h (saved_result_rtx): New variable.
4460 * decl.c (start_chill_function): Use saved_result_rtx as return
4461 value if there is a RESULT in a REG that might get clobbered.
4462 * actions.c (chill_expand_result): Save result in saved_result_rtx
4463 or assign to DECL_RESULT as appropriate.
4464 * decl.c, ch-tree.h (current_function_returns_value,
4465 current_function_returns_null, current_extern_inline):
4466 Don't use. Only define first two to allow linking with ch-typeck.c.
4468 * typeck.c (chill_l_equivalent): Add forward declaration.
4470 Fri Apr 1 11:02:27 1994 Wilfried Moser (fs_moser at rcsw47)
4472 * lex.l (readstring): Handle control sequence in all cases (Z.200
4475 Fri Apr 1 13:11:27 1994 Per Bothner (bothner@kalessin.cygnus.com)
4477 * configure: Simplify and fix the logic for looping through
4480 Thu Mar 31 18:59:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
4482 * ch-tree.h (CH_L_EQUIVALENT): Moved from typeck.c.
4483 * typeck.c (chill_similar): Add support for checking
4484 FUNCTION_TYPEs for similarity. Also, treat
4485 pointer-to-function-type the same as function-type.
4487 Thu Mar 31 11:22:56 1994 Wilfried Moser (fs_moser at rcsw47)
4489 * ch-tree.h: Change prototype of function expand_send_signal.
4490 * parse.y: Change calls to expand_send_signal.
4491 * tasking.c (expand_send_signal): Change handling of optsetto
4492 argument. New argument signame to get a possible destination
4493 process for the signal.
4495 Wed Mar 30 14:54:48 1994 Wilfried Moser (fs_moser at rcsw1j)
4497 * tasking.c (make_process_struct): Change error message in case of
4498 a process argument has other attribute then IN or LOC.
4499 * tasking.c (build_start_process): Add check that the optset is
4500 referable in case it is specified (this makes
4501 noncompile/start_.ch working).
4503 Tue Mar 29 13:24:27 1994 Wilfried Moser (fs_moser at rcsw1h)
4505 * Makefile.in: Change version string to 1.2.1
4506 * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4508 * ch-tree.h: Change prototype for build_chill_readtext.
4509 * decl.c (init_decl_processing): Add builtin_function _readstring,
4510 _readunixstd and READTEXT.
4511 * expr.c (build_generalized_call): Add processing of READTEXT.
4512 Delete handling of no longer valid builtin_functions.
4513 * gperf: Remove keyword READTEXT.
4514 * parse.y: Remove token READTEXT.
4515 * inout.c (build_chill_io_list_type): Add building type for
4517 * inout.c (build_chill_readtext): Implement the function
4519 * inout.c (build_chill_writetext): Do some cleanups.
4521 Tue Mar 29 12:30:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
4523 * typeck.c (build_chill_cast): Re-arrange, to support casts
4524 of const integer to type of different size, if there is
4525 an integral type of the desired size: Go through the
4526 const conversion code.
4528 * actions.c (adjust_parm_or_field): Move support for LOC to ...
4529 * expr.c (build_chill_function_call): ... here.
4530 Fix a number of bugs in OUT/INOUT handling.
4532 * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4533 parse.y (location), typeck.c (chill_comptypes): Remove unused
4534 support for ENCAPSULATED_ARRAY_P.
4535 * typeck.c (build_chill_array_parm_type), ch-tree.h: Remove; unused.
4537 * ch-tree.h, decl.c (shadow_record_fields), decl.c
4538 (shadow_record_fields), expr.c (chill_expand_case_expr,
4539 build_chill_function_call), grant.c (chill_finish_compile),
4540 typeck.c (build_empty_string, build_init_struct): Rename magic
4541 identifiers of the form "<...>" to "__..." for better portability.
4543 * actions.c (adjust_parm_or_field): Remove extraneous
4544 call to build_chill_repetition_op.
4545 * expr.c (build_chill_function_call): Some simplifictions
4546 (since neither valtail nor typetail can be NULL).
4547 Clean up error message for OUT//INOUT not location to use only 1 line.
4548 Add error message for OUT/INOUT if type is READonly.
4549 * typeck.c (build_chill_modify_expr): Simplify.
4551 Sun Mar 27 19:30:25 1994 Bill Cox (bill@rtl.cygnus.com)
4553 * Makefile.in: Clean up generally. Assure that
4554 runtime is built before running regressions.
4555 Build correct parameters to regression.sh.
4556 Remove a lot of 'clean' cruft.
4557 * Make-lang.in, config-lang.in: New files for
4558 subdirectory architecture.
4560 Sat Mar 26 10:39:12 1994 Bill Cox (bill@rtl.cygnus.com)
4562 * Makefile.in (check): Build correct parameters for regression.sh.
4564 Fri Mar 25 10:13:06 1994 Bill Cox (bill@rtl.cygnus.com)
4566 * configure: Also mark regression.awk3 as executable.
4567 * regression.sh: Add comments about command-line options.
4568 Calculate srcdir correctly, defaulting to the script's path.
4569 Add OPT flag to pass to the Makefiles, to specify the
4570 compiler's optimization level, and -O and -O2 options.
4571 Delete GLOBAL flag and tests. Use a different make.log
4572 file for optimized and unoptimized test results. Add the
4573 compiler's host and target triples to the report header.
4575 Wed Mar 23 21:41:26 1994 Bill Cox (bill@rtl.cygnus.com)
4577 * expr.c (build_chill_function_call): Handle INOUT and OUT
4578 parameters better (for the rangefail test, at least).
4580 Wed Mar 23 14:13:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4582 * regression.sh (srcdir, objdir): Fixed hard-wired paths.
4583 (grep args): Changed [XYZ-] to [-XYZ] for SCO.
4585 Wed Mar 23 13:34:18 1994 Bill Cox (bill@rtl.cygnus.com)
4587 * expr.c (build_generalized_call): Revert previous change.
4588 To do this correctly, we need a new parsing mechanism, and
4589 C++ initializer technology.
4591 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
4593 * expr.c (build_generalized_call): Be sure we're inside the
4594 module-level function before calling build_gen_inst, for
4597 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
4599 * regression.sh (dodirectory): Count the gcov and abort tests
4600 among the .dat files.
4602 Tue Mar 22 15:39:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4604 * satisfy.c (safe_satisfy_decl): When checking that a SYN
4605 value fits in a specified discrete type, don't convert first,
4606 and use compare_int_csts instead of tree_int_cst_lt.
4608 Tue Mar 22 15:25:38 1994 Bill Cox (bill@rtl.cygnus.com)
4610 * configure: Generate better .gdbinit files.
4612 Tue Mar 22 11:59:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4614 * actions.c (check_range): Don't emit dynamic checks
4615 if not current_function_decl.
4617 * parse.y (arrayindex): Allow expr (error is emitted
4618 at semantic level if not the NAME of a type).
4619 * typeck.c (build_chill_cast): Re-enable some casts.
4620 * satisfy.c (safe_satisfy_decl): Remove redundant CONST check.
4622 Tue Mar 22 11:46:28 1994 Bill Cox (bill@rtl.cygnus.com)
4624 * configure: Access the utils directory correctly.
4625 * expr.c (build_compare_expr): Reenable compatibility test.
4627 Tue Mar 22 11:24:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4629 * typeck.c (valid_array_index_p): Call
4630 build_compare_discrete_expr instead of build_compare_expr.
4631 * typeck.c (build_chill_cast): Improve logic.
4632 * satisfy.c (safe_satisfy_decl): Simplify test.
4634 Tue Mar 22 10:17:58 1994 Bill Cox (bill@rtl.cygnus.com)
4636 * actions.c (chill_expand_assignment): Correct detection of
4637 string assignment case.
4638 * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4639 the actual parameters need to be converted to the unsigned long
4640 type explicitly. Do that.
4641 * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4643 Mon Mar 21 16:25:07 1994 Bill Cox (bill@rtl.cygnus.com)
4645 * Makefile.in: Correct prediction of grammar conflicts.
4646 * actions.c(check_range): Fix reference to NULL_TREE pointer.
4647 And allow compile-time errors even if range_checking is off.
4648 * parse.y: Clean up some comments.
4649 * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4651 Mon Mar 21 13:29:23 1994 Per Bothner (bothner@kalessin.cygnus.com)
4653 * typeck.c (layout_chill_range_type): Instead of tree_int_cst_lt
4654 use compare_int_csts (which is more robust when signedness differs).
4655 Also, convert the bounds *after* doing range checking.
4657 * ch-tree.def (SET_IN_EXPR): New.
4658 * expr.c (chill_expand_expr): Code to expand SET_IN_EXPR,
4659 moved from expand_expr in ../expr.c. Also add some extra
4660 conversions (because we're now using build_chill_function-call).
4661 * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4662 Use SET_IN_EXPR in place of IN_EXPR.
4664 * expr.c (build_compare_discrete_expr), ch-tree.h: New function,
4665 with code moved from build_compare_expr.
4666 * expr.c (build_compare_expr): Re-enable compatibility test.
4668 Mon Mar 21 11:02:33 1994 Bill Cox (bill@rtl.cygnus.com)
4670 * Makefile.in: Rewrite byacc related rules.
4671 * actions.c (chill_convert_for_assignment): Use the
4672 referenced type only for generating range checks.
4673 * configure: Add 'utils' directory to SUBDIRS variable.
4675 Sun Mar 20 21:49:59 1994 Bill Cox (bill@rtl.cygnus.com)
4677 * actions.c (check_range): Call build_compare_expr rather than
4679 (adjust_parm_or_field): Call convert_for_assignment rathern than
4680 convert, to get the range-checking.
4681 * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4682 Generate a compile-time message if possible.
4683 (build_compare_expr): Comment out compatibility test - should
4684 not be needed in here. Fix a couple of typos. Add some types
4685 to some build calls.
4687 Sun Mar 20 11:48:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
4689 * decl.c (init_decl_processing): Clean up parameter type
4690 list for __setbitpowerset,
4692 * typeck.c (chill_compatible_classes): Allow the M-reference
4693 to be compatible with the N-value class, with suitable M and N.
4694 * typeck.c (build_chill_slice): Don't smash a void TREE_TYPE.
4695 (We don't need to, and it causes confusion.)
4697 * expr.c (build_compare_expr): Fix thinko. Add save_exprs.
4699 * expr.c (build_compare_expr): Fix a transcription bug
4700 (for converting NULL INSTANCEs). Also #include convert.h.
4702 * expr.c (compare_int_csts): New. Compare INTEGER_CSTs.
4703 Works even if their types have different TREE_UNSIGNED.
4704 * expr.c (finish_chill_binary_op): Moved code dealing with
4705 the comparison operators from here ...
4706 * expr.c (build_compare_expr): ... to new function here.
4707 Also, for discrete types, tries to Do The Right Thing, even for
4708 differing values of TYPE_PRECISION and TREE_UNSIGNED.
4710 * ch-tree.h: Declare new functions.
4711 * typeck.c (valid_array_index_p): Various cleanups,
4712 including using new build_parse_expr.
4713 * parse.y: Use new build_compare_expr.
4715 * inout.c (build_chill_writetext): Handle REFERENCE_TYPE args.
4717 Sun Mar 20 08:54:27 1994 Bill Cox (bill@rtl.cygnus.com)
4719 * actions.c (expand_assignment_to_varying_array):
4720 Call build_chill_array_ref to get index checking.
4721 (chill_convert_for_assignment): Delete unused errstr
4723 (chill_expand_assignment): Call build_chill_array_ref
4724 to get runtime index checking.
4725 (expand_varying_length_assignment): Use new interface
4726 to varying_array_index_p.
4727 * ch-tree.h (varying_array_index_p): New proto.
4728 * convert.c (convert): Call build_chill_array_ref
4729 to get runtime index checking.
4730 * expr.c (build_chill_pred_or_succ): Fix cond tree
4731 to have consistent operand types.
4732 * typeck.c (valid_array_index_p): Change interface to pass
4733 validity conditions back on caller's TREE_LIST. We
4734 cannot link the conditions to anything which a
4735 layout_type routine will expand, since that will occur
4736 before the exception handler is set up.
4737 Change calls to valid_array_index_p also.
4739 Fri Mar 18 14:40:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
4741 * actions.c, except.c, loop.c, tasking.c: Call
4742 build_chill_function_call instead of the C-specific
4743 build_function_call.
4744 * except.c (initialize_exceptions): Fix parmtype of __builtin_setjmp.
4745 * loop.c (top_loop_end_check): Coerce library function arg.
4746 * convert.c, expr.c: Re-write to avoid calls to C-specific
4747 function build_unary_op (e.g. by calling build1 directly).
4749 * typeck.c (chill_equivalent): Change to force failure
4750 for non-matching integral types (even if not ranges).
4752 * typeck.c, ch-tree.h (build_chill_slice): Make non-static.
4753 * expr.c (varying_to_slice): Call build_chill_slice (and not
4754 build_chill_slice_with_length, which does bunches of range
4755 checking and does not allow the length to be zero).
4756 * convert.c (convert): Fix off-by-one error.
4757 * actions.c (chill_expand_array_assignment): Minor cleaning up.
4759 Fri Mar 18 00:12:48 1994 Per Bothner (bothner@deneb.cygnus.com)
4761 * decl.c (init_decl_processing): __lepowerset and __ltpowerset
4762 take *two* pointer parameters, not one.
4763 * satisfy.c (satisfy): Only call the appropriate layout routine
4764 if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4765 * typeck.c (build_chill_slice_with_length): Fix Bill's previous fix.
4767 Thu Mar 17 17:29:43 1994 Bill Cox (bill@rtl.cygnus.com)
4769 * expr.c (build_chill_function_call): Give function call the correct
4771 * typeck.c (build_chill_slice_with_length): Restore dynamic range
4772 checking, so it doesn't obscure the CONSTANTness of the length.
4774 Wed Mar 16 17:23:31 1994 Per Bothner (bothner@kalessin.cygnus.com)
4776 * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4777 [case CONCAT_EXPR]): Remove kludge setting slice size upper bound
4778 in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4779 * typeck.c (build_chill_slice): Use TYPE_MAX_VALUE of
4780 array_type if needed for size upper bound of slice_type.
4781 * expr.c (build_concat_expr): Improve calculation of size upper bound.
4783 * typeck.c (valid_array_index_p): Check compatibility using
4785 * typeck.c (build_chill_slice_with_length); For now revert
4786 calling valid_array_index_p on length. (It makes it harder
4787 to realize when the slice is constant length.)
4788 * expr.c (build_chill_indirect_expr): Minor tweak. (This
4789 seems to work around a weird C compiler bug. ??)
4791 * expr.c (build_chill_function_call): Cleanup so it doesn't
4792 call build_function_call (in c-typeck.c).
4793 * typeck.c, expr.c: Use build_chill_function_call instead of
4794 build_function_call (in c-typeck.c).
4796 * parse.y (discrete_mode): Move some of the rules from
4797 non_array_mode into new non-terminal.
4798 (arrayindex): Use discrete_mode (with NAME and TYPENAME) to
4799 avoid some misparses.
4800 * ch-tree.h (SLICE_PTR, SLICE_LENGTH): Removed; unused.
4801 * convert.c (digest_structure_tuple): Add missing parameter.
4802 * decl.c (comptypes): Remove unused prototype.
4803 * decl.c (build_chill_function_type): Handle NULL return_type
4804 correctly (convert to void_type_node).
4805 * decl.c (init_decl_processing): layout boolean_type_node *after*
4806 we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4808 Wed Mar 16 16:08:22 1994 Bill Cox (bill@rtl.cygnus.com)
4810 * ch-tree.h: Add prototype.
4811 * convert.c (convert): Correct calculation of padding length.
4812 * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4813 parse.y where it belongs. This permits the removal of a kludge
4814 in make_process_struct.
4815 * lex.l, parse.y: Call to_global_level for several errors. Add
4816 code to output error in only one pass.
4817 * tasking.c (make_process_struct): Delete kludge inserted on
4819 (build_receive_case_end): Add Wilfried's check for errors.
4821 Tue Mar 15 08:42:12 1994 Bill Cox (bill@rtl.cygnus.com)
4823 * actions.c: Fix comment.
4824 (build_rts_call): Ifdef it out - never used.
4825 (expand_varying_length_assignment): call valid_array_index_p.
4826 rather than validate_varying_array_ref.
4827 * ch-tree.h: Fix prototype for valid_array_index_p.
4828 * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4830 (build_hill_lower, build_chill_upper): Return value now inherits
4831 the novelty of the input parameter.
4832 (varying_to_slice): Use CH_NOVELTY macro rather than calling
4833 chill_novelty directly.
4834 * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4836 (print_integer_type): Pass string value as APPEND's second parameter.
4837 (decode_decl): Pass a boolean expression as print_proc_tail's
4839 (chill_finish_module_code): Make xmalloc's parameter unsigned.
4840 * lex.l: Pass sizes to xmalloc as unsigned ints. Pass second
4841 parameter to in_word_set as unsigned.
4842 * loop.c (build_loop_start): Check top_loop_end_check return value.
4843 * parse.y: Add casts to int for third do_decls parameter, fifth
4844 build_loop_iterator parameter, etc.
4845 * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4846 * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4847 valid_array_index): Delete them. They're now unused.
4848 (valid_array_index_p): Add function, call it everywhere that an
4849 array index is checked.
4850 (build_chill_slice): Restore old functionality where varying_to_slice
4851 is called to handle slices of varying arrays, rather than handling
4853 (build_chill_slice_with_range, build_chill_slice_with_length):
4854 Check range limits for TREE_CONST before calling tree_int_cst_lt.
4855 Delete now-obsolete checks of constant indices.
4857 Mon Mar 14 17:26:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
4859 * parse.y (modeless_expr): New rule to allow ([...]) and (if...)
4860 to count as untyped_exprs. (This is not really permitted by the
4861 Blue Book, but has been requested by customers.)
4863 Thu Mar 10 10:11:02 1994 Bill Cox (bill@rtl.cygnus.com)
4865 * chill.texi: Document new command-line options.
4866 * expr.c (build_chill_num): Set unsigned parameter for
4867 type_for_size call correctly (unsigned for enums).
4868 * lang.c (lang_decode_option): Add command-line options to
4869 enable/disable runtime range-checking.
4870 * lex.l: Eat more whitespace.
4872 Thu Mar 10 09:41:37 1994 Bill Cox (bill@rtl.cygnus.com)
4874 * Makefile.in: Have rules to make parse.h, y.tab.c and other
4875 derived files. This allows the gcc/configure list of CHILL
4876 files machinery to work.
4877 * ch-tree.h (permanent_allocation): Add a parameter flag.
4878 * decl.c (finish_chill_function, finish_decl): Provide the
4879 new permanent_allocation flag.
4880 (poplevel): Return early, avoid a seg fault.
4881 * lex.l (NORMAL): Replace this whole state with the predefined
4882 INITIAL state. Force compilation state to global level after
4883 compiler directive error - prevents endless loop on error.
4884 (handle_use_seizefile_directive): Rewrite for readability.
4885 (chill_same_grant_file): Reindent.
4886 Generally handle whitespace differently.
4887 * regression.prpt: Print ten PR numbers per line. The report's
4890 Wed Mar 9 09:58:51 1994 Bill Cox (bill@rtl.cygnus.com)
4892 * decl.c (do_decl): Suppress the string-assignment-condition
4893 error - it was too often seen.
4894 * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4895 runtime-changing length (as in a slice), get the parent array's
4896 allocation size from its type tree.
4897 * typeck.c (build_chill_slice): Support VARYING arrays. Pass
4898 parent array's static allocation size along in the slice type.
4900 Wed Mar 9 08:54:24 1994 Bill Cox (bill@rtl.cygnus.com)
4902 * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4904 Tue Mar 8 11:51:10 1994 Bill Cox (bill@rtl.cygnus.com)
4906 * expr.c (build_chill_sizeof): Fix typo in error msg, add
4908 * lex.l (name_type_signal): Add debug output.
4909 * parse.y (call): Allow EVENTNAME and BUFFERNAME parameters
4910 to a call, so that SIZE () works on them.
4911 * tasking.c (make_process_struct): Force ignore_exprs non-zero
4912 when processing a SEIZEd PROCESS declaration. This prevents
4913 grox-fixed_fields from returning a NULL, and indirectly protects
4914 the chill_integer_type_node tree from corruption.
4916 Mon Mar 7 19:14:05 1994 Bill Cox (bill@rtl.cygnus.com)
4918 * Makefile.in: Use the 'all' target to build the runtime
4919 library and chillrt0.o.
4920 * README: Explain rules for files in this directory.
4921 * addtest, addtest.man, build-release,
4922 chill.regress.cron: Move to utils subdirectory.
4923 * expr.c (build_chill_function_call): Mark the INOUT
4924 temporary so it doesn't get optimized into a
4925 register. Fixes the execute/inout.ch bug.
4926 * typeck.c (layout_chill_range_type): Restrict it
4927 from complaining about an empty string type's
4930 Mon Mar 7 09:06:39 1994 Bill Cox (bill@rtl.cygnus.com)
4932 * Makefile.in (compiler): Restore this target.
4933 (OBJS, BC_OBJS): Delete unused variables.
4934 Add $(FLAGS_TO_PASS) to sub-make invocations.
4935 * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4936 tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4938 Sat Mar 5 18:37:50 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4940 * except.c (finish_handler_array): When computing address of
4941 the array ex_decl, don't call build_array_ref.
4943 Sat Mar 5 17:43:36 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4945 * loop.c (declare_temps): Force powerset temp to memory.
4947 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4949 * typeck.c (layout_chill_range_type): Convert highval and
4950 lowval to a common type before range-checking them.
4952 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4954 * ch-tree.h: Add loop-related prototypes.
4955 * decl.c, grant.c: Fix -Wall violations.
4956 * parse.y: Fix format of %type directives.
4958 Fri Mar 4 10:04:18 1994 Wilfried Moser (fs_moser at rcsw1h)
4960 * Makefile.in: Update version number.
4961 * expr.c: Fix a comment.
4962 * inout.c (build_chill_writetext): Add handling of a REAL.
4963 * lex.l (INITIAL): Remove all code to discard 'header lines'.
4965 * parse.y (optheader): Remove - it's obsolete, as is the
4966 HEADEREL token definition.
4968 Fri Mar 4 09:41:18 1994 Bill Cox (bill@rtl.cygnus.com)
4970 * addtest: Fix suffix removal when suffix is .c186.
4971 * regression.sh: Allow for underscores on PR filenames.
4972 * typeck.c: Check in the rewrite mentioned earlier.
4974 Thu Mar 3 09:42:10 1994 Wilfried Moser (fs_moser at rcsw1h)
4976 * tasking.c (build_process_header): Build a debug structure
4977 for easier access to PROCESS parameters.
4979 Thu Mar 3 09:42:10 1994 Bill Cox (bill@rtl.cygnus.com)
4981 * typeck.c (*string_assignment_condition): Complete rewrite
4982 of a verbose first draft.
4984 Wed Mar 2 16:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4986 * actions.c (adjust_return_value): Simplify.
4987 Delete references to CH_RETURNS_LOC, extra parameters to
4988 push_extern_function and start_chill_functions.
4989 (convert_for_assignment): Check whether to generate runtime
4990 range-checking code. Handle reference_type in convert call.
4991 (chill_expand_assignment): Produce an INDIRECT_REF for a
4992 reference_type on the LHS. Delete conversions subsumed by
4993 convert_for_assignment.
4994 * ch-tree.h: Delete parameters from prototypes.
4995 * decl.c (print_lang_decl): Print out signal flag.
4996 (push_extern_function, start_chill_function): Delete
4997 extra parameters, references to CH_RETURNS_LOC.
4998 * grant.c (chill_finish_compile): Delete extra parameter.
4999 * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
5000 push_extern_function and start_chill_functions.
5001 * regression.sh (checkprms): Skip PRMS discrepancies if we
5002 can't access PRMS for some reason.
5003 * satisfy.c: Correct indentation.
5004 * tasking.c (build_process_header): Delete extra parameters
5005 passed to push_extern_function and start_chill_functions.
5007 Wed Mar 2 10:33:50 1994 Bill Cox (bill@rtl.cygnus.com)
5009 * addtest: Require a fill filename. Be more careful about
5010 adding the same test twice.
5011 * expr.c: Add FIXME to comment.
5012 * regression.sh: Add configure script call.
5014 Tue Mar 1 16:24:20 1994 Wilfried Moser (fs_moser at rcsw1h)
5016 * Makefile.in: Change version of chill to 1.1.2
5017 * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
5019 Tue Mar 1 07:34:56 1994 Bill Cox (bill@rtl.cygnus.com)
5021 RETURN of LOC value is only half-baked. Stay tuned...
5022 * actions.c (adjust_parm_or_field): Add to comment.
5023 (adjust_return_value): New function for issuing errors about
5024 RETURN and RESULT expressions. Also converts them.
5025 (chill_expand_result, chill_expand_return): Call new
5026 adjust_return_value function.
5027 * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
5028 New parameter for push_extern_function and start_chill_function.
5029 * decl.c (push_extern_function, start_chill_function): New parameter
5030 to say whether return value is a LOC.
5031 * expr.c (build_chill_indirect_ref): Further qualify the issuing
5032 of the error message.
5033 * grant.c (raw_decode_mode): Move test for instance mode under
5035 (start_chill_module_code, chill_finish_compile): Add new
5036 parameter to start_chill_function calls.
5037 * parse.y (get_type_of): Do lookup_name more often.
5038 (quasi_pdef, procedure, procmode, optresultspec): Set
5039 CH_RETURNS_LOC flag.
5040 (optresultattr): Code keywords as a bitmask.
5041 * tasking.c (build_process_header): Add new parameter to
5042 start_chill_function call.
5044 Sat Feb 26 12:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
5046 * Makefile.in: Replace undefined $(RM) with rm -f.
5047 * configure: Make sure scripts are executable.
5048 * regression.sh: Make variables to invoke make
5049 and awk. Don't process a directory if it
5052 Fri Feb 25 14:48:48 1994 Bill Cox (bill@rtl.cygnus.com)
5054 * Makefile.in (check): Force the building of ../gcov and
5055 ../xgcc before testing. Move the printf dependency here
5056 since we don't need it until we're testing.
5057 * addtest: Strip suffix from each input filename.
5058 * decl.c (do_decl): Correct error checking. Call
5059 string_assignment_condition for some of it.
5060 * tasking.c (build_gen_inst): Add ability to pass an integer
5061 for either the process ID or the copy number. If a number
5062 is passed, range-check it against the CHILL unsigned type
5064 (build_buffer_descriptor): Add draft code to check the buffer
5065 name for correctness.
5067 Wed Feb 23 15:07:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
5069 New cleaner solution to the following problem:
5070 Chill allows an action to be followed by an ON-handler.
5071 But we don't know if an action has a handler until we've parsed
5072 its end, yet we want to generate extra code to set up an
5073 exception handling contour only if needed. The old solution
5074 would generate code for the action into an rtl sequence, and then
5075 splice in the exception-setup code if we later found we needed it.
5076 This has a few problems (for example it confuses the management
5077 of stack temporaries), and is ugly. Now that the compiler is 2-pass
5078 we have a cleaner solution: In pass 1, we remember which actions
5079 were followed by ON-handlers. In pass 2, we use this information
5080 to generate appropriate code before an action.
5081 * except.c (push_handler, pop_handler): In pass 1, set up data
5082 structures (global_handler_list) to remember if an action has an
5083 ON-handler. In pass 2, digest this information, and setup
5085 * except.c, actions.h (pop_handler): Take an extra int arg.
5086 * except.c (emit_setup_handler): New function, with code (moved
5087 from chill_start_on) to emit code before an action that has a handler.
5088 * except.c (except_init_pass_2): New function.
5089 * parse.y (pass1_2): Call except_init_pass_2 before pass 2.
5090 * parse.y (POP_UNUSED_ON_CONTEXT): Don't call pop_sequence.
5091 * parse.y: Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
5092 in pass 1 as well as pass 2.
5093 * parse.y (BEGIN ... END): Re-arrange logic to avoid block_stack
5094 (local to ../stmt.c) getting out of sync.
5095 * actions.c (push_action): Don't need to emit a NOP,
5096 now that we're no longer moving sequences around.
5097 * actions.c (push_action): Call push_handler even in pass one.
5099 Wed Feb 23 11:06:14 1994 Bill Cox (bill@rtl.cygnus.com)
5101 * decl.c (do_decl): Check for possible overflow in initializing
5102 a declared variable.
5103 * expr.c (build-chill_indirect_ref): Add error message for
5104 a syntax error that C programmers converting to CHILL are
5105 quite likely to make.
5106 * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
5109 Tue Feb 22 17:54:43 1994 Bill Cox (bill@rtl.cygnus.com)
5111 * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
5112 defined. Build chill script differently, and build an install script.
5113 Add an action to run the regression test.
5114 * actions.c (chill_expand_assignment): Change
5115 string_assignment_condition call.
5116 * ch-tree.h: Add prototype.
5117 * expr.c (build_chill_function_call): Change
5118 string_assignment_condition call.
5119 * satisfy.c (safe_satisfy_decl): Add check that string INIT value
5120 will fit in the declared mode.
5121 * typeck.c (string_assignment_condition): Add flag to disable
5122 runtime code generation. Add code to generate runtime test.
5124 Mon Feb 21 14:04:20 1994 Bill Cox (bill@rtl.cygnus.com)
5126 * Makefile.in (check): Add target to trigger a regression test.
5128 Mon Feb 21 13:54:20 1994 Bill Cox (bill@rtl.cygnus.com)
5130 * decl.c (do _based_decls): Add error check for
5131 decls BASED on a PROC or PROCESS name.
5133 Mon Feb 21 13:24:02 1994 Bill Cox (bill@rtl.cygnus.com)
5135 * grant.c (chill_finish_compile): Bypass handling
5136 module-level code if an earlier error has made
5138 * tasking.c (build_start_process): Generate error,
5139 return if process name unknown.
5141 Mon Feb 21 14:29:41 1994 Wilfried Moser (fs_moser at rcsw47)
5143 * expr.c (build_generalized_call): Use
5144 build_arrow_expr semantics for ADDR () builtin.
5146 Mon Feb 21 12:49:14 1994 Bill Cox (bill@rtl.cygnus.com)
5148 * tasking.c (build_gen_inst): Output correct
5149 constructor for GEN_INST.
5151 Mon Feb 21 08:14:59 1994 Wilfried Moser (fs_moser at rcsw47)
5153 * lex.l (yywrap): Fix punctuation error.
5155 Sun Feb 20 19:58:14 1994 Bill Cox (bill@rtl.cygnus.com)
5157 * regression.sh: Fix cvs update-related commands.
5158 Have cron job always perform the update, so it's
5159 always reporting on the current state of the
5161 * typeck.c (string_assignment_condition): Allow a
5162 mis-match if the LHS is varying.
5164 Fri Feb 18 18:10:04 1994 Bill Cox (bill@rtl.cygnus.com)
5166 * actions.c (expand_chill_assignment): Add call to test the
5167 string assignment condition.
5168 * expr.c (build_chill_function_call): Add call to test the
5169 string assignment condition.
5170 * regression.awk2: Report WITHDRAWN PRs as well.
5171 * regression.sh: Delete extra commentary about FEEDBACK PRs.
5172 * typeck.c (string_assignment_condition): Add function to
5175 Fri Feb 18 16:30:40 1994 Bill Cox (bill@rtl.cygnus.com)
5177 * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
5178 and exclude them from the regression test report. Mark them
5179 in the list of PRs as 'W' status.
5181 Thu Feb 17 09:13:42 1994 Wilfried Moser (fs_moser at rcsw47)
5183 * Makefile.in: Define a version number. Build chill script
5184 differently. Makefile depends upon ../configure, not configure.
5185 * chill.in: Define some new flags.
5187 Wed Feb 16 19:44:33 1994 Bill Cox (bill@rtl.cygnus.com)
5189 * grant.c (decode_constant): Restore a 'return result' statement
5190 that seems to have gotten lost.
5192 Wed Feb 16 12:37:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
5194 * ch-tree.h (various STRING-type macros): Use new TYPE_STRING_FLAG.
5196 * typeck.c (make_chill_array_type): Remove unused args.
5197 Simplify to build only one-dimensionsal arrays, so change
5198 index list to single index. Call layout_chill_array_type
5199 if pass!=1. And rename to: build_simple_array_type.
5200 * typeck.c (layout_chill_array_type): Only recurse
5201 if TREE_TYPE has not been laid out.
5202 * typeck.c (build_chill_array_type): Update accordingly.
5203 * typeck.c (build_chill_slice): Replace calls to build_array_type
5204 (which does hash-canonicalization, which breaks if we later set
5205 the TYPE_STRING_FLAG) by calls to build_simple_array_type.
5206 * convert.c (convert): The same.
5208 * grant.c (decode_constant): Clean up. Remove remnants of switch
5209 on TREE_TYPE of the value, and fold those cases into first switch.
5211 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
5213 * Makefile.in: Add printf as a dependency of ../cc1chill.
5214 * regression.sh: Make srcdir and objdir really work.
5216 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
5218 * expr.c (build_char_array_expr): Fix spelling
5220 * tree.c (build_string_type): Make check for overlarge
5223 Wed Feb 16 02:37:43 1994 Mike Stump (mrs@cygnus.com)
5225 * grant.c (decode_constant): Remove useless tests
5226 for STRING_TYPE (which isn't used by anyone, including CHILL).
5228 Tue Feb 15 15:35:07 1994 Bill Cox (bill@cygnus.com)
5230 * build-release: Add refinements to checkout commands.
5231 * decl.c (init_decl_processing): Move initialization of
5232 chill_unsigned_type_node before 1st call to build_string_type.
5233 * tree.c (build_string_type): Add compile-time test of string
5235 * typeck.c (layout_chill_range_type): Add compile-time range limit
5238 Tue Feb 15 08:55:37 1994 Bill Cox (bill@cygnus.com)
5240 * Makefile.in: Add stamp-chill-objs as a dependency of ../cc1chill.
5241 * regression.sh: Rename test directory names.
5243 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
5245 * Makefile.in: Change interface with parent directory's
5246 Makefile, decoupling the lists of each others' files.
5248 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
5250 * lex.l: Delete obsolete comment.
5251 * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
5252 instance constructor.
5254 Mon Feb 14 04:04:16 1994 Bill Cox (bill@rtl.cygnus.com)
5256 * lex.l (maybe_number): Add octal to numbers
5257 handled by Feb 1 change.
5259 Sat Feb 12 16:24:22 1994 Bill Cox (bill@rtl.cygnus.com)
5261 * actions.c, convert.c, decl.c, expr.c, lex.l,
5262 tasking.c, typeck.c: gcc -Wall cleanups.
5263 * ch-tree.h: Change loop-related prototypes.
5264 * loop.c, parse.y: Rewrite to set up correct loop scope.
5265 Fix error path where loop variable not declared.
5267 Fri Feb 11 11:12:29 1994 Bill Cox (bill@rtl.cygnus.com)
5269 * Makefile.in: Add rule to build printf. Make it a dependency
5271 * printf.c: New tool for regression testing script.
5272 * regression.sh: Look for print in ${objdir}.
5274 Thu Feb 24 17:31:12 1994 Wilfried Moser (fs_moser at rcsw1j)
5276 * tasking.c (build_gen_inst): Allow integer expression as argument
5277 1 to this function. This was a change request to get rid of
5278 unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
5279 or STRUCT (t UINT, c UINT).
5281 Thu Feb 10 09:49:31 1994 Bill Cox (bill@rtl.cygnus.com)
5283 * regression.awk3: Recognize upper-case PRMS state names.
5285 Wed Feb 9 15:26:19 1994 Bill Cox (bill@cygnus.com)
5287 * parse.y (dowithaction): Allow EXIT from DO WITH.
5289 Tue Feb 8 13:13:54 1994 Bill Cox (bill@rtl.cygnus.com)
5291 * configure: Change to require grant.c for evidence that we've
5292 found the source directory.
5293 * decl.c (init_decl_processing): delete unused builtin_slice
5294 function declaration.
5295 * expr.c (chill_expand_expr): Calculate powerset's length
5296 correctly, calling powersetlen to do it.
5297 * regression.sh: Replace BASE references with objdir references.
5298 * typeck.c (build_chill_slice): Build the compound expression
5301 Mon Feb 7 15:56:07 1994 Bill Cox (bill@rtl.cygnus.com)
5303 * expr.c (build_chill_lower, build_chill_upper): Handle
5304 LOC parameter types.
5305 * regression.sh: Correct path to executable sub-shell-scripts.
5307 Mon Feb 7 11:33:47 1994 Bill Cox (bill@rtl.cygnus.com)
5309 * regression.sh: Pervasive changes to allow for separate
5310 source and object directories.
5312 Wed Feb 2 17:5620 1994 Bill Cox (bill@rtl.cygnus.com)
5314 * decl.c (find_implied_typed): Delete obsolete reference to
5316 * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
5319 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
5321 * Makefile.in: Delete bogus runtime/Makefile lines.
5322 * configure: Build testsuite directory.
5324 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
5326 * configure: Correct srcdir for chill.examples directory.
5328 Wed Feb 2 11:24:57 1994 Wilfried Moser (fs_moser at rcsw47)
5330 * ch-parse.y (rule call): Add
5331 BUFFERNAME LPRN untyped_expr RPRN
5332 to enable generating a descriptor same as for SIGNALS.
5333 * ch-tasking.c (generate_tasking_code variable,
5334 decl_tasking_code_variable): Implement overflow check of
5335 taskingcode in case a tasking code is specified with the
5336 compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
5339 Wed Feb 2 09:31:37 1994 Bill Cox (bill@rtl.cygnus.com)
5341 * configure: Add ${srcdir} to Makefile.in's path.
5342 * loop.c: Delete unused whitespace.
5344 Tue Feb 1 17:09:41 1994 Bill Cox (bill@rtl.cygnus.com)
5346 * expr.c (string_char_rep): Process STRING_CST correctly.
5348 Tue Feb 1 15:29:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
5350 * expr.c (build_boring_bitstring): New function.
5351 * expr.c (build_chill_repetition_op): Fix a number of bugs in
5352 implementation of bitstring repetition.
5353 Also, implement repetition of Booleans.
5355 Tue Feb 1 15:28:21 1994 Bill Cox (bill@rtl.cygnus.com)
5357 * configure: Delete code to check for gas or ld. Add code to
5358 store a config.status file in each configured subdirectory.
5359 * expr.c (): Spell concatbitstring as concatps, which is the
5360 runtime routine name.
5361 * regression.sh: Force use of GNU make.
5363 Tue Feb 1 15:22:12 1994 Bill Cox (bill@rtl.cygnus.com)
5365 * tasking.c: Mark compiler-generated temps to prevent
5368 Tue Feb 1 17:38:51 1994 Wilfried Moser (fs_moser at rcsw1j)
5370 * lex.l (equal_number): Improve check for number after = in a
5372 * tasking.c (build_tasking_struct): Make field TaskValue
5373 pointer to chill_unsigned_type_node.
5374 * tasking.c (generate_tasking_code_variable): Declare tasking
5375 code variable as chill_unsigned_type_node.
5376 * tasking.c (decl_tasking_code_variable): Declare tasking
5377 code variable as chill_unsigned_type_node.
5379 Mon Jan 31 14:01:58 1994 Bill Cox (bill@rtl.cygnus.com)
5381 * addtest (update_Makefile): No longer build actions - they're
5382 now in pattern rules.
5383 * ch_makedepend: Do the grep first, to avoid processing non
5384 USE_SEIZE_FILE lines.
5385 * configure: Pervasive rewrite to support configuring regression
5388 Mon Jan 31 04:35:53 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5390 * typeck.c (build_chill_slice): Compute EXTENT correctly.
5392 Sun Jan 30 14:33:12 1994 Bill Cox (bill@rtl.cygnus.com)
5394 * tasking.c (build_gen_inst): Return a typed tuple with
5397 Sun Jan 30 12:01:07 1994 Bill Cox (bill@rtl.cygnus.com)
5399 * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5400 in the left hand side, pass it to
5401 expand_varying_length_assignment.
5402 (expand_varying_length_assignment): Clean up bitrot.
5403 * convert.c (convert): Revert most recent change.
5404 * loop.c (maybe_skip_loop): New function, split out of
5405 begin_chill_loop. Add conditional to skip processing an empty
5407 * parse.y (assignaction): Delete code to recognize LENGTH
5409 * typeck.c (validate_varying_array_ref): Correct misleading comment.
5411 Sat Jan 29 10:54:06 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5413 * typeck.c (build_chill_slice): Pass a valid identifier to
5414 `get_unique_identifier'.
5416 * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5417 use correct value for VAR_LENGTH when initializing a varying array.
5419 * decl.c (do_decl): Set DECL_COMMON.
5421 * actions.c (check_range): Temporarily inhibit warnings so the
5422 compiler doesn't warn the user about useless range checks that it
5423 might create. It's far easier for the compiler to figure out that
5424 a range check need not be done than it is for us to try to figure
5425 it out for ourselves.
5427 * expr.c (build_concat_expr): Generalize to handle bitstrings.
5428 (scalar_to_string): New function.
5429 (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5430 library call (__concatbitstring).
5432 Sat Jan 29 08:43:54 1994 Bill Cox (bill@rtl.cygnus.com)
5434 * ch_makedepend: Fix the 'sed' command so that seize file
5435 name can be delimited by double quotes as well as apostrophes.
5437 Thu Jan 27 17:26:19 1994 Per Bothner (bothner@kalessin.cygnus.com)
5439 * typeck.c (my_build_array_ref): Do constant folding.
5441 Thu Jan 27 16:24:24 1994 Bill Cox (bill@rtl.cygnus.com)
5443 * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5444 decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5445 lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5446 tree.c, typeck.c: New 'Copyright' line for 1994.
5448 Thu Jan 27 14:12:07 1994 Mike Stump (mrs@cygnus.com)
5450 * configure: Don't configure this directory with this configure,
5451 just subdirectories and cleanup.
5452 * Makefile.in (Makefile): Run config.status in parent directory,
5453 if we need rebuilding.
5455 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
5457 * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5460 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
5462 * expr.c (build_concat_expr): Fix SunOS portability problem.
5464 Wed Jan 26 14:57:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
5466 * convert.c (digest_powerset_tuple): New function, used to set
5467 TREE_CONSTANT and TREE_STATIC properly.
5468 (digest_structure_tuple, convert (NULL to instance, non-varying
5469 to varying)): Set TREE_CONSTANT and TREE_STATIC when appropriate.
5470 * expr.c (varying_to_slice): Preserve novelty of slice type.
5471 * expr.c (build_concat_expr): Make sure class of result is
5472 correct (including correct novelty).
5473 * satisfy.c (safe_satisfy_decl): If value of CONST_DECL is
5474 not TREE_CONSTANT, emit an error.
5475 * typeck.c (build_chill_slice): Preserve novelty of result.
5476 * typeck.c (build_chill_slice): Simplify for varying argument
5477 (by using varying_to_slice).
5478 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5480 * typeck.c (build_chill_cast): Use above new functions to convert
5481 constant expressions.
5482 * typeck.c (copy_novelty), ch-tree.h: New function.
5483 * chill.texi: Update for new constant conversion semantics.
5485 Tue Jan 25 14:00:02 1994 Wilfried Moser (fs_moser at rcsw1j)
5487 * ch-decl.c (init_decl_processing): Add new builtin function
5488 DESCR. Add call to build_chill_descr_type.
5489 * ch-expr.c: Add function build_chill_descr_type, which actually
5490 build the type the DESCR builtin returns.
5491 Add function build_chill_descr, which process the DESCR builtin.
5492 * ch-expr.c (build_chill_length): Add code to enable
5494 * ch-expr.ch (build_generalized_call): Add processing of DESCR
5496 * ch-grant.c: Add code to avoid producing of unnecessary grant
5498 * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5499 for build_chill_descr.
5500 * ch-inout.c (build_chill_io_list_type): Change generation of the
5501 type passed to runtime library according to the new definition.
5502 * ch-inout.c (build_chill_writetext): Change processing of format
5503 string that a character constant is allowed as format string if
5504 compiler gets called with -fold-strings option.
5505 * ch-inout.c (build_chill_writetext): Change processing of
5506 integers in case NEWMODE x = INT.
5507 * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5508 * ch-inout.c (build_chill_writetext): Add processing of
5511 Tue Jan 25 09:07:10 1994 Mike Stump (mrs@cygnus.com)
5513 * Makefile.in (all, OBSTACK): Build interesting things be default,
5514 and make sure we include OBSTACK.
5516 Sun Jan 23 12:35:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
5518 * grant.c (decode_constant): Handle RANGE_EXPR.
5519 Simplify handling of CONSTRUCTOR.
5521 * typeck.c (build_chill_slice): Use build_chill_array_ref_1,
5522 not build_chill_array_ref.
5524 Sat Jan 22 16:23:30 1994 Per Bothner (bothner@kalessin.cygnus.com)
5526 * parse.y: Generate a RANGE_EXPR (instead of a confusing
5527 TREE_LIST) to indicate a range in case and tuple lables.
5528 * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5529 Update accordingly to handle these RANGE_EXPRs.
5530 * satisfy.c (satisfy): Don't call finish_chill_binary_op
5533 Fri Jan 21 15:39:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
5535 * expr.c (force_addr_of): New function, to encapsulate passing
5536 by reference a powerset or string to a library function.
5537 * expr.c (build_min_max, build_set_expr): Use force_addr_of.
5538 * expr.c (chill_expand_expr case CONCAT_EXPR): Fix passing of
5539 rtl modes. (Old code fails on 64-bit Alpha.)
5540 * expr.c (build_chill_function_call): Remove bogues check for
5541 READonly variable passed as parameter.
5542 * expr.c (build_set_expr): Merge common code.
5543 * parse.y (string repetition): Fix logic for 2-pass scheme.
5544 * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5545 satisfy.c (satisfy): Handle REPLICATE_EXPR.
5546 * chill.texi: Fix typo.
5548 Mon Jan 17 13:55:48 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
5550 * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5551 tree.c can find ch-tree.h.
5553 Sat Jan 15 15:34:11 1994 Mike Stump (mrs@rtl.cygnus.com)
5555 * configure: Fix problem so that building in a separate directory
5558 Sat Jan 15 09:51:02 1994 Bill Cox (bill@rtl.cygnus.com)
5560 * Makefile.in: Recurse down into runtime to
5561 create its Makefile, and to clean up.
5562 * configure: Recurse into runtime to make its Makefile.
5564 Sat Jan 15 09:15:22 1994 Bill Cox (bill@rtl.cygnus.com)
5566 << This set of CHILL frontend sources is now the
5567 maintainable and master set. Accept no substitutes! >>
5568 * Makefile.in, configure: Completely rewritten
5569 to be invoked by gcc/Makefile.in and
5571 * addtest (update_ChangeLog): Fix insertion
5573 * regression.sh: Add global option to suppress results of
5575 * cpy.sh: Add necessary edits to files as they
5577 * actions.c, ch-tree.def, ch-tree.h, convert.c,
5578 decl.c, except.c, expr.c, grant.c, inout.c,
5579 lang.c, lex.h, lex.l, loop.c, parse.y,
5580 satisfy.c, tasking.c, typeck.c: Latest
5581 versions from the repository.
5583 Fri Jan 14 12:28:39 1994 Bill Cox (bill@rtl.cygnus.com)
5585 * addtest: Fix insertion of line into ChangeLog.
5586 * configure: Add a script.
5587 * Makefile.in: Hack from ../Makefile.in
5588 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5589 * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5591 Mon Jan 10 11:38:07 1994 Bill Cox (bill@rtl.cygnus.com)
5593 * build-release: Rewrite for easier tailoring.
5595 Wed Jan 5 08:38:21 1994 Bill Cox (bill@cygnus.com)
5597 * actions.c, convert.c, decl.c, except.c, expr.c,
5598 inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5599 Current versions from devo/gcc.
5601 Wed Dec 29 14:07:10 1993 Bill Cox (bill@rtl.cygnus.com)
5603 * addtest: Don't add comment headers to source or .dat files
5604 if they're already present.
5606 Wed Dec 29 13:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
5608 * mktg_leads: New file.
5609 * regression.sh, regression.awk2: Updated status report scripts.
5610 * addtest: New script to add a test to a directory.
5611 * ch_makedepend: Add full path to ch_decomment.
5612 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5613 lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5614 Updated copies of actual sources.
5615 * chill.brochure, chill.texi: Update with current status.
5616 * cpy.sh: Script for updating copies of sources.
5617 * chill.patches: New script for creating a patch release.
5620 Wed Dec 8 09:35:54 1993 Bill Cox (bill@rtl.cygnus.com)
5622 * build-release: Delete lots of unused regression-testing cruft.
5623 * chill.brochure: Initial draft of marketing brochure.
5624 * chill.patches: Preliminary script for building patch sets
5626 * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5627 building a tcov report on the CHILL compiler.
5629 Sun Nov 21 08:34:33 1993 Bill Cox (bill@rtl.cygnus.com)
5631 * Makefile.in: Adjust gperf rule for names in this directory.
5632 * ch_decomment.l: New file. Ignores CHILL comments.
5633 Executable is used bu ch_makedepend.
5634 * ch_makedepend: New script. Makes CHILL dependencies for
5636 * gperf, hash.h: New files about lexer tokens.
5637 * regression.sh: Delete notes justifying non-summing
5639 * regression.awk2: Report PRMS status when there are
5640 missing test results.
5641 * regression.awk3: Add #! line, so this can be used separately.
5642 * Other files: latest versions copied from devo/gcc.
5644 Sat Oct 30 15:02:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
5646 * chill.texi: Add new node about conversions.
5648 Fri Oct 29 14:17:31 1993 Bill Cox (bill@cygnus.com)
5650 * chill.regress.cron: Change path to executable, enable PR report.
5651 * regression.awk2: Add terminating periods to messages.
5652 * regression.sh: Change path to testsuites. Add disclaimer at end
5653 of report. Print explicit lists of resolved/unresolved PRs.
5655 Thu Oct 28 09:22:20 1993 Bill Cox (bill@rtl.cygnus.com)
5657 * regression.sh: More PR-related status is printed.
5659 Thu Oct 21 19:24:02 1993 Bill Cox (bill@rtl.cygnus.com)
5661 * regression.sh: Simplify the paths, make the source
5662 and test files accessed separately from the executables.
5664 Wed Oct 20 16:35:30 1993 Bill Cox (bill@rtl.cygnus.com)
5666 * regression.sh: Finally fix the file-delete problem.
5668 * build-release: Make more verbose, fix comment.
5670 Mon Oct 18 00:21:24 1993 Bill Cox (bill@cygnus.com)
5672 * regression.sh: Build linker if -U option. Put stderr
5673 into make.log files, too. Also report on Z.200 examples.
5674 * regression.awk3: New script to help build release note.
5676 Fri Oct 15 16:33:54 1993 Bill Cox (bill@cygnus.com)
5678 * regression.sh, regression.prpt: Output PR status only
5679 conditionally. Add command-line flag for CVS updates.
5681 Thu Oct 14 07:53:59 1993 Bill Cox (bill@rtl.cygnus.com)
5683 * regression.sh: Count PRs accurately.
5684 * Makefile.in: New file.
5686 Sat Oct 9 19:46:58 1993 Bill Cox (bill@rtl.cygnus.com)
5688 * regression.awk?: Add program fragments for
5689 report of PRMS/test exceptions.
5690 * regression.sh: Add options and PRMS reports.
5692 Fri Oct 8 06:44:41 1993 Bill Cox (bill@rtl.cygnus.com)
5694 Create chill frontend directory, populate it.
5695 Later, the chill-specific frontend files will be moved here.
5697 * chill: Moved here from gcc directory.
5698 * chill.regress.cron: Add crontab file for regression tests.
5699 * regression.sh: Add regression test control script.
5702 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5704 Sat Jan 15 14:54:07 1994 Bill Cox (bill@rtl.cygnus.com)
5706 * ch-*.*: All of these files are now moved to the ch subdirectory.
5707 Further update changes should be recorded in the ch/ChangeLog file.
5709 Fri Jan 14 21:09:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
5711 * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5712 ch-satisfy.c, ch-typeck.c: Undo all of initializer-related changes
5713 that Tiemann did earlier this month.
5714 * c-typeck.c (really_start_incremental_init): Save
5715 constructor_elements and (old value of) constructor_stack
5716 on constructor_stack, to allow for nested initializers.
5717 * ch-convert.c (digest_constructor): If we need a varying
5718 array, and have a constructor (for the array elements),
5719 make sure to use convert so that the constructor gets
5720 wrapped in an implicit record constructor.
5721 * ch-decl.c (do_decl): If there is no initializer for a
5722 varying array (or bitstring), create default constructor.
5724 * ch-expr.c (build_chill_lower): Fix thinko for ARRAY_TYPE.
5725 * ch-satisfy.c (safe_satisfy_decl): Make sure that we make
5726 original decl to check if we need to make an rtl.
5728 * ch-typeck.c (build_chill_array_ref_1), ch-tree.h: New function
5729 which does the actual work for build_chill_array_ref (which
5730 now just loops over an argument list).
5731 * ch-actions.c, ch-expr.c, ch-inout.c: Use build_chill_array_ref_1
5732 instead of build_chill_array_ref where appropriate.
5733 * ch-actions.c, ch-expr.c, ch-typeck.c: Make operand 1 of a
5734 VARY_ARRAY_REF is a single index, not an index list.
5736 * ch-grant.c (__init_list): Renamed to _ch_init_list, to
5737 avoid a conflict on the Alpha.
5739 Wed Jan 12 10:19:35 1994 Bill Cox (bill@rtl.cygnus.com)
5741 * ch-lex.l (WS): Add BS, VT and CR to definition of
5743 (convert_number): Allow for uppercase hex digits.
5745 Tue Jan 11 19:43:55 1994 Bill Cox (bill@cygnus.com)
5747 * ch-actions.c (lookup_and_handle_exit): Correct
5748 conditional so error messages are output.
5749 * ch-expr.c (build_chill_addr_expr): Add error message.
5750 * ch-grant.c (chill_finish_module_code): Avoid abort by
5751 giving the init_list constructor a type.
5752 (chill_finish_compile): Delete unused code.
5753 * ch-lex.l: Make most build_init_2 calls from the
5754 permanent obstack, so that enumeration values endure.
5755 * ch-loop.c (build_chill_iterator): Add several error
5758 Tue Jan 11 12:31:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
5760 * ch-expr.c, ch-typeck.c: Rewrite some instances of
5761 'struct ch_class class = chill_expr_class (expr);' to
5762 'struct ch_class class; class = chill_expr_class (expr);'
5763 to work around a bug in /usr/ucb/cc on SunOS4.
5765 Mon Jan 10 18:29:36 1994 Bill Cox (bill@rtl.cygnus.com)
5767 * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5768 * ch-expr.c (expand_packed_set): Add new parameter to pass
5769 set's minimum ordinal value. Fix loop invariant problem.
5770 (fold_set_expr): Change to add new parameter to
5771 expand_packed_set call.
5772 * ch-grant.c: Move extern declaration to ch-tree.h.
5773 * ch-lex.l (convert_bitstring): Also output the bitstring
5775 * ch-tree.h: Add prototype.
5777 Mon Jan 10 11:29:41 1994 Bill Cox (bill@rtl.cygnus.com)
5779 * ch-inout.c: Fix comment.
5780 * ch-tree.h: Add prototype.
5782 Sun Jan 9 18:22:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
5784 * ch-tree.h (chill_expr_class): New prototype.
5785 * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5786 Convert result to correct class.
5787 * ch-expr.c (build_chill_repetition_op): Preserve CH_DERIVED_FLAG.
5788 Also, fix some bugs for bitstrings (with ranges).
5790 (Patches from Tiemann.)
5791 * ch-convert.c (convert1): New function to force TREE_TYPE.
5792 (convert): Use convert1 where appropriate.
5793 * ch-typeck.c: Formatting change.
5794 * ch-parse.y (build_chill_constructor): Fix thinko.
5796 * ch-expr.c (varying_to_slice): If array is not referable,
5797 call save_expr on it, rather than stabilize_reference.
5798 * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5799 Don't force value to value class if mode is not explicitly
5800 specified. Also, make sure convert etc is only done once.
5802 Sat Jan 8 16:37:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
5804 * ch-decl.c (build_chill_function_type): Don't call
5805 build_function_type, because it does hash canonicalization,
5806 which once in a while looses badly.
5807 * tree.c (build_function_type): Remove no-longer-needed test
5808 for doing_chill_thang.
5810 * ch-tree.h (CH_DERIVED_FLAG): New flag.
5811 * ch-tree.h (enum ch_expr_class): Renamed to ch_class_kind.
5812 (struct ch_class): New type, used to represent a Chill
5813 'class' as a first-class value.
5814 (CH_ROOT_RESULTING_MODE): Replaced by CH_ROOT_RESULTING_CLASS.
5815 * ch-typeck.c (chill_expr_class): Change interface to return
5817 (chill_compatible, chill_compatible_classes): Update accordingly.
5818 (chill_root_resulting_mode): Replace by ....
5819 (chill_root_resulting_class): ... new function.
5820 * ch-convert.c (convert_to_class): New function.
5821 * ch-decl.c (layout_enum): Mark enum values with CH_DERIVED_FLAG.
5822 * ch-lex.l (string_or_int): Rename to string_or_char.
5823 * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5824 convert_float, convert_number): Set CH_DERIVED_FLAG for literals.
5825 * ch-expr.c (finish_chill_binary_op): Use convert_to_class.
5826 * ch-satisfy.c (safe_satisfy_decl): For CONST_DECL, make sure
5827 DECL_INITIAL gets set to result of convert.
5828 Also, clear CH_DERIVED_FLAG for SYN value.
5829 * expr.c (store_constructor): If a [power]set is exactly one
5830 word long, use single-word move.
5832 Sat Jan 8 08:38:29 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5834 * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5836 Wed Jan 5 05:18:46 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5838 * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5839 ARRAY_TYPE before assuming so. Also, subtract 1 from LENGTH in
5840 computation of SLICE_END.
5842 * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5844 * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5846 * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5847 for unary set operations).
5849 * ch-expr.c (build_chill_array_expr): Take new argument FORCE. All
5850 callers changed. All callers changed.
5852 * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5853 being NULL_TREE until we've started walking the list of values via
5854 the loop over VARIANTs.
5856 * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5857 treat it as an enum value (and hence constant). Also, only set
5858 TREE_STATIC if the constructor is indeed constant.
5859 * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5860 VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5861 recurse on the DECL_INITIAL.
5863 Wed Jan 5 01:24:50 1994 Bill Cox (bill@cygnus.com)
5865 * Makefile.in: Add CHILL to LANGUAGES variable.
5866 * ch-actions.c (check_range): Call build_binary_op instead of
5867 fold, build to get the common types chosen.
5868 (cond_range_exception, cond_overflow_exception,
5869 cond_type_range_exception): Delete, obsolete.
5870 (chill_convert_for_assignment): Enable this, get particular
5871 about when to generate rangecheck code.
5872 * ch-expr.c (build_chill_function_call): Sketch in where to
5873 perform chill_convert_for_assignment on actual parameters.
5874 (build_chill_addr_expr): Correct compiler warning.
5875 * ch-loop.c (build_chill_iterator): Add runtime check for
5876 negative loop step expression.
5877 * ch-tree.h: Add prototype.
5878 * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5879 A varying array's length field counts the NUMBER of active array
5880 array entries, not the byte-length of them.
5882 Tue Jan 4 17:57:39 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5884 * ch-decl.c (do_decl): Call `suspend_momenary' if the
5885 converted constructor must live on the permanent_obstack.
5886 * ch-convert.c (convert): When building a new SET_TYPE
5887 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5888 * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5890 * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5892 * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5893 on permanent_obstack if necessary.
5895 * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5896 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5898 * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5899 the patch below helped to mess up.
5901 * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5902 (build_chill_addr_expr): Take new argument ERRORMSG.
5903 All callers changed. Also, call `build_chill_addr_expr' where
5904 we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5905 that now calls `mark_addressable' automagically.
5907 * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5908 This is needed because variables may appear in initialization
5909 statements, and their DECL_INITIALs are their values at
5910 initialization time.
5911 * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5912 to handle VAR_DECLs as initializers.
5914 * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5915 they aren't destroyed for later use.
5917 Tue Jan 4 15:25:30 1994 Bill Cox (bill@cygnus.com)
5919 * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5920 parameter for varying_array_ref calculations.
5921 (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5922 * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5923 of bogus error in votrics.
5924 (build_chill_slice_with_length): Change for debug tracability.
5926 Tue Jan 4 02:43:37 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5928 * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5929 handling variant record initializers.
5930 (various places): Change `pop_init_level' calls to match
5931 `push_init_level' wrt implicit variable.
5933 * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5934 `integer_type_node' before using it in comparisons. FIXME: should
5935 this be done in `chill_max_vary_array_index' by default?
5937 Tue Jan 4 00:24:14 1994 Bill Cox (bill@cygnus.com)
5939 * ch-actions.c: Fix comments.
5940 * ch-parse.y: Define caseaction_flag.
5941 (caseaction): Create new caseaction_flag node at the start,
5942 then free it at the end. Check it before the ELSE code.
5943 (expanded_case_label): Check the flag here. If set in either
5944 place, generate a jump to the end of the case.
5945 * ch-typeck.c (build_chill_slice_with_length,
5946 build_chill_slice_with_range): Add lots of compile-time
5947 parameter range checking.
5949 Mon Jan 3 21:49:04 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5951 * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
5952 implicit==0 everywhere, not 1.
5953 (digest_constructor): Ditto.
5955 * ch-actions.c (check_range): Permit limits to be NULL_TREE.
5956 Also, hack out some dead code.
5957 * ch-typeck.c (build_chill_slice): Check varying and non-varying
5958 slice constructs for range failures.
5959 (build_chill_slice_with_range): Reindented, but not changed.
5961 * ch-typeck.c (chill_max_vary_array_index): New function.
5962 * ch-expr.c (chill_expand_expr): Call it.
5964 * ch-decl.c (var_data_id, var_length_id): New variables.
5965 (init_decl_processing): Initialize them. All calls to
5966 get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
5967 by references to these variables. This simplifies the code
5968 w/o obscuring anything.
5970 Mon Jan 3 21:24:44 1994 Bill Cox (bill@cygnus.com)
5972 * c-typeck.c: Fix comment.
5973 * ch-actions.c (chill_expand_assignment): Error assigning to
5974 READONLY location. (PR_3903) Pass filename, linenumber
5975 to setbitpowerset runtime routine.
5976 * ch-decl.c (init_decl_processing): Add filename, linenumber
5977 parameters to setbitpowerset prototype.
5978 * ch-expr.c (build_chill_function_call): Error when passing a
5979 READonly location as a LOC or INOUT parameter.
5980 * ch-parse.y (mode): Correct code marking type as readonly.
5982 Mon Jan 3 19:03:55 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5984 * ch-actions.c (chill_expand_assignment): Disable code that defeats
5985 building varying array references.
5986 * ch-expr.c (chill_expand_expr): Add rangecheck code to
5987 VARY_ARRAY_REF case.
5988 * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
5989 function (in this case, `validate_varying_array_ref') when we're
5990 doing a `build_' operation.
5992 * ch-typeck.c (validate_varying_array_ref): Simplify interface
5993 since INDEX parameter can never meaningfully be an INDEXLIST.
5994 * ch-actions.c (expand_varying_length_assignment): Caller changed.
5996 Mon Jan 3 07:29:45 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5998 * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
5999 * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
6000 if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
6001 (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
6002 call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD). This
6003 can happen when constructors are output incrementally.
6004 * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
6005 * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
6008 Sun Jan 2 08:17:09 1994 Michael Tiemann (tiemann@blues.cygnus.com)
6010 * ch-convert (digest_structure_tuple): Handle SET_TYPEs. Also, call
6011 `convert' so we can handle INSTANCE types (and other anomolies)
6014 * ch-convert.c (digest_structure_tuple): Fixed variant
6015 structure initialization. Also fixed a typo (TYPE_NAME
6016 was being used on a FIELD_DECL instead of DECL_NAME).
6017 * c-typeck.c (initializer_constant_valid_p): Pass missing
6018 ENDTYPE argument on recursive call.
6019 (set_init_field): New function, needed by ch-convert.c change above.
6021 * ch-decl.c (layout_chill_variants): Added a FIXME next to an
6022 almost certain typo.
6024 * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
6025 TREE_CONSTANT for static references.
6026 * ch-except.c (chill_start_on): Change calls to
6027 `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
6028 which has CHILL semantics.
6029 * ch-convert.c (convert): Ditto (albeit in some disabled code).
6031 Sat Jan 1 21:26:43 1994 Michael Tiemann (tiemann@blues.cygnus.com)
6033 * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
6034 TREE_CODE of DECL in case it's altered by actions in the switch.
6036 * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan. CVS log
6037 mentions where to find code that triggers this case.
6039 * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
6042 * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
6043 we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
6044 (digest_constructor): Ditto.
6046 Sat Jan 1 10:29:19 1994 Michael Tiemann (tiemann@blues.cygnus.com)
6048 * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
6049 so that CONSTRUCTORS are properly handled before being used.
6051 * ch-convert.c (chill_start_init): New function. All callers to
6052 `start_init' changed to call this function instead.
6053 (digest_struct_tuple): Defend against initialization machinery
6054 mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
6055 IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots. This is
6056 needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
6057 can be refered to throughout the compilation unit. Also remove an
6058 extraneous call to `process_init_element' erroneously added to the
6059 variant record sub-loop.
6060 (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
6061 CONSTRUCTORS of SET_TYPE.
6062 * ch-parse.y (build_chill_constructor): Refix typo. Also set
6063 TREE_STATIC if at top level.
6065 * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
6066 TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
6067 should have been called.
6069 * ch-convert.c (digest_struct_tuple): Restore code which tracks
6070 field initializations so that the compiler can deduce what variant
6071 initializations to assume.
6073 * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
6074 when we push into a scope that has a DECL with a CONSTRUCTOR as its
6077 * ch-parse.y (build_chill_constructor): Change the name of the
6078 parameter to something more meaningful. Fix typo. Also, handle case
6079 where element is an untyped CONSTRUCTOR.
6081 * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
6082 constant ADDR_EXPRs.
6083 (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
6084 on JBUF_REF (instead of calling `build1' which does not).
6086 * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
6088 * ch-typeck.c (chill_expand_tuple): Deleted.
6089 * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
6090 instead, use initialization machinery for CONSTRUCTORS that
6092 * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
6093 that are created here.
6094 * ch-satisfy (satisfy): Abort in case we would have called
6095 chill_expand_tuple. FIXME: some other code is needed here,
6096 but I don't know what yet.
6098 * ch-parse.y (build_chill_constructor): New function to
6099 propagate TREE_CONSTANT bits to CONSTRUCTORS.
6100 (untyped_expr rule): Use it.
6101 (primval rule): Use it.
6103 * ch-decl.c (do_decl): Call `finish_init'.
6104 * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
6105 this function, make sure the initialization machinery is set up.
6107 * ch-convert.c (digest_structure_tuple, digest_constructor): Add
6110 Fri Dec 31 11:31:01 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6112 * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
6113 as being TREE_CONSTANT. Otherwise it gets bounded by the initializer
6116 * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
6117 * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
6118 rewritten to work with GCC's initialization code. The basic change
6119 was to keep the initializers in sync with the initialization
6120 machinery that `process_init_element' imposes. Both of these
6121 functions now return `void'.
6122 * ch-convert.c (convert): Changed calls to `digest_...' functions.
6124 FIXME: the code handling UNION_TYPE (and variant records) has not
6127 Fri Dec 31 15:32:56 1993 Bill Cox (bill@rtl.cygnus.com)
6129 * ch-lex.l (convert_number): Output the converted number if
6131 * ch-parse.y (signaldef): Set ignore_exprs correctly for a
6134 Fri Dec 31 13:17:48 1993 Bill Cox (bill@cygnus.com)
6136 * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
6137 a RETURN without a value (which cannot have an exception
6138 handler) from a RETURN with a value (which can). Eliminate
6139 some shift/reduce and reduce/reduce conflicts.
6141 Thu Dec 30 17:42:32 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6143 * ch-inout.c (build_chill_writetext): Deal with 2 cases where
6144 types returned from `type_for_size' are not expected. FIXME.
6145 * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
6146 This is required when range checking is enabled.
6148 Thu Dec 30 14:28:25 1993 Bill Cox (bill@rtl.cygnus.com)
6150 DELAY CASE works now.
6151 * ch-decl.c (init_decl_processing): Move rest of tasking-related
6152 initialization into tasking_init().
6153 * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
6154 (optsetprio): New non-terminal.
6155 * ch-tasking.c (get_task_name): Delete, obsolete.
6156 (build_instance_type): build pointer to instance type also.
6157 (build_receive_case_start): Cleanup per -Wall messages.
6158 (build_receive_case_label): Move between start and end functions.
6159 (build_delay_case_start): Pass SET name and priority also.
6160 Generally update to correct functioning.
6161 (build_delay_case_label): Move between start and end fucntions,
6162 correct its functioning.
6163 (build_delay_case_end): Correct the code.
6164 (tasking_init): Lots of tasking-related code moved here from
6165 init_decl_processing.
6166 * ch-tree.h: Update, add prototypes.
6168 Wed Dec 29 10:13:10 1993 Bill Cox (bill@rtl.cygnus.com)
6170 * ch-expr.c (build_chill_indirect_ref): Revert change which
6171 failed full regression testing.
6172 * ch-lex.l (name_type_signal): Add debug output.
6173 * ch-parse.y (structured_variable): Add a debug variable.
6175 Wed Dec 29 02:05:51 1993 Bill Cox (bill@rtl.cygnus.com)
6177 * ch-decl.c (get_next_decl): Revert change which failed full
6180 Tue Dec 28 18:20:14 1993 Bill Cox (bill@rtl.cygnus.com)
6182 DELAY actions work now.
6183 * ch-decl.c: Correct spelling in comments.
6184 (get_next_decl): NULL out the decl's TREE_CHAIN before returning
6185 it, to prevent accidental access to the remembered_decls.
6186 (init_decl_processing): Add wait_event to runtime functions.
6187 * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
6188 becoming a seg fault.
6189 * ch-grant.c: Correct a comment.
6190 * ch-loop.c: Delete/correct comments.
6191 * ch-parse.y (delaycaseaction): Add push/poplevel calls. Turn 'sorry'
6192 into rough draft of actual code.
6193 (delayaction): Don't make a new scope here, use get_unique_identifier
6195 (locdec): process event decls here, too.
6196 (mode): Add code to forbid READonly EVENT and BUFFER decls. Delete
6197 code which required EVENTs and BUFFERs to be declared at global scope.
6198 (simple_name_string): Add an EVENTNAME.
6199 * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
6200 becoming a seg fault.
6201 * ch-tasking.c (tasking_setup): Add the event queue's max. length
6202 as the 'entry_point' parameter in the list.
6203 (build_receive_case_start, build_receive_case_label): Defer
6204 calling runtime routine until we know whether we have a signal
6205 or a buffer to wait for.
6206 (build_delay_case_start, build_delay_case_end,
6207 build_delay_case_label, build_delay_action,
6208 process_event_decls): Added functions.
6209 * ch-typeck.c (chill_similar): Allow all integers of differing
6210 precisions to be similar.
6212 Thu Dec 23 18:00:40 1993 Bill Cox (bill@rtl.cygnus.com)
6214 * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
6215 options. Delete C-specific defines. Disable piping from
6216 pre-processor to cc1chill (even if -pipe is specified), since cc1chill
6217 rewinds its input for its second pass. Piping still works
6218 from cc1chill to as.
6220 Thu Dec 23 12:31:55 1993 Bill Cox (bill@rtl.cygnus.com)
6222 * ch-tasking.c (decl_tasking_code_variable): Assure that the
6223 tasking_code variable is allocated on the permanent obstack.
6224 (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
6225 queue length (passed as the entry_point parameter).
6226 Other changes to variable names to increase 'self-documentation'
6227 the only kind GNU CHILL will get, for a while..
6229 Wed Dec 22 10:46:31 1993 Bill Cox (bill@rtl.cygnus.com)
6231 * ch-decl.c (do_seize): Delete - it's unused. Fix comments.
6232 * ch-loop.c (build_chill_iterator): Convert BY expression
6233 so loop involving a SET works. Additional errors generated
6234 for numbered SET expression as start or end expression.
6235 * ch-tree.h: Prototypes for future DELAY functions.
6236 * ch-typeck.c: Standard indentation.
6238 Tue Dec 21 15:30:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
6240 * ch-actions.c (build_cause_exception): New function.
6241 (expand_cause_exception): Re-write to use build_cause_exception.
6242 (check_expression, check_range): New functions.
6243 (chill_convert_for_assignment): New function.
6244 * ch-expr.c (build_chill_pred_or_succ): New function.
6245 (build_chill_succ, build_chill_pred): Removed.
6246 (build_generalized_call): Use build_chill_pred_or_succ.
6247 * ch-lex.h, ch-lex.l (init_lex): Add RID_OVERFLOW and RID_RANGEFAIL.
6248 * ch-lex.l (init_lex): Use new macro to make more terse.
6249 * ch-typeck.c (chill_equivalent): New function.
6250 Also check that ranges have the same bounds.
6251 * ch-typeck.c (my_build_array_ref): Add optional range-checking.
6252 * ch-typeck.c (chill_location): Handle COMPOUND_EXPR properly.
6253 Return 2 if also a referable.
6254 * ch-typeck.c (chill_referable): Re-define to use chill_location.
6255 * ch-tree.h (CH_EQUIVALENT): Re-defined to use chill_equivalent.
6257 * dbxout.c (dbxout_type): Output the type attribute "@S;" to
6258 distinguish a string from a char array, and to distinguish a
6259 bitstring from regulat (power)set. (Needed for Chill.)
6260 * dbxout.c (dbxout_type): Only check for baseclasses in
6261 type.binfo is a vector. (It is used in Chill for tagged unions.)
6263 Fri Dec 17 09:56:07 1993 Bill Cox (bill@rtl.cygnus.com)
6265 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6266 ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
6267 ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
6269 * ch-actions.c (chill_expand_assignment): Error if assigning
6270 a value to a BUFFER or EVENT variable.
6271 * ch-expr.c (invalid_left_operand): Delete, unused.
6272 * ch-grant.c (tasking_setup): Call build_enum_tables.
6273 * ch-inout.c (get_final_type_and_range, build_enum_tables,):
6275 (build_chill_writetext): Lots of changes to support other
6276 basic CHILL data types.
6277 * ch-loop.c (build_chill_iterator): Lots of new code to check
6278 the expressions in a STEP loop.
6279 * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
6280 names in receivecasealternative. Generate error messages
6281 if they're mixed in the same receive case.
6282 (process_buffer_decl): Renamed from build_buffer_decl.
6283 * ch-tree.h: Fix prototypes.
6284 * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
6285 correctly. Thanks Per!
6287 Wed Dec 15 15:05:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
6289 * ch-decl.c (push_scope_decls): Re-arrange some more, so
6290 that normal SEIZES (without ALL) are handled before SEIZE ALL.
6292 Wed Dec 15 13:01:22 1993 Bill Cox (bill@rtl.cygnus.com)
6294 * ch-loop.c (declare_temps): Calculate end-of-array pointer
6295 using correct type (NOT chill_integer_type).
6296 (begin_chill_loop): Build loop-bypass expression in the
6297 type of the start expression, not in the unsigned type.
6299 Tue Dec 14 15:41:32 1993 Per Bothner (bothner@kalessin.cygnus.com)
6301 * ch-decl.c (push_scope_decls): Re-arrange so that normal
6302 (non-seize) declarations are proclaim_decl'd *before* we
6303 handle the ALIAS_DECLs for seizes. The advantage is
6304 that we can now test for (an approximation) to the
6305 'seizeable' concept, thus avoiding duplicate definitions
6306 when a module has both GRANTs and SEIZE ALL.
6308 * ch-expr.c (build_chill_arrow_expr): No longer re-write
6309 addr-of-conversion to pointer-conversion-of-addr.
6310 * ch-expr.c (build_chill_addr_expr): Re-write to just use
6311 build_chill_arrow_expr.
6313 Mon Dec 13 16:44:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
6315 * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr): Don't re-write
6317 * ch-tree.h (chill_root_resulting_mode): Fix typo (missing '_').
6319 * ch-expr.c (finish_chill_binary_op): Use CH_ROOT_RESULTING_MODE
6320 macro (which works on expressions), rather than CH_RESULTING_MODE
6321 (which works on modes, and isn't quite correct).
6322 * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE): New macro.
6323 * ch-typeck.c (chill_read_compatible, chill_compatible):
6324 Use the new macro, which handles NEWMODEs of PTR correctly.
6325 * ch-typeck.c (chill_similar): Return 1 rather than 0 for
6326 dynamic-length array (and string) types (e.g. slices).
6327 * ch-typeck.c (chill_root_mode): If the mode has a Novelty,
6328 just return it as is. (This is still not 100% correct for
6329 NEWMODE of RANGEs, but is close enough.)
6331 Mon Dec 13 16:27:06 1993 Bill Cox (bill@rtl.cygnus.com)
6333 * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
6334 build_buffer_decl, which then seg faults.
6335 * ch-tasking.c (build_buffer_descriptor): Move declaration
6336 of bufdecl closer to its use.
6338 Mon Dec 13 14:57:55 1993 Bill Cox (bill@rtl.cygnus.com)
6340 * ch-actions.c (chill_expand_result): Use expand_expr_stmt
6341 to avoid C-specific conversions.
6342 * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
6343 * ch-parse.y (sendaction): Delete unused statement, use the 'name'
6345 * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
6347 (build_buffer_decl): Save the tasking_code_variable's decl
6348 in the buffer decl tree.
6349 (build_buffer_descriptor): Real, working version.
6351 Mon Dec 13 03:13:36 1993 Bill Cox (bill@rtl.cygnus.com)
6353 * ch-decl.c (print_lang_identifier): Delete code
6354 to print buffer size - it's no longer kept here.
6355 * ch-parse.y (expand_send_buffer): Renamed from
6357 (locdec): Enable building of a buffer decl.
6358 (optresultspec, optresultattr): Add optional
6359 result attributes such as LOC. Semantics
6361 * ch-tasking.c (expand_send_buffer): Renamed.
6362 * ch-tree.h (build_send_buffer): Renamed.
6363 * ch-typeck.c (chill_expr_class): Do more complete,
6364 job of classifying expressions. Thanks, Per.
6366 Mon Dec 13 00:59:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
6368 * ch-typeck.c (chill_expr_class): Return CH_DERIVED_CLASS
6369 for bitstring constants.
6370 * ch-typeck.c (chill_novelty): The novelty of an (unnamed)
6371 range mode is that of its parent mode; the novelty of READ M
6374 Sat Dec 11 15:14:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6376 * ch-expr.c (varying_to_slice): Call stabilize_reference
6377 rather than save_expr.
6378 * ch-typeck.c (build_chill_slice): Don't emit warning
6379 if array is a SAVE_EXPR (it is effectively referable).
6380 * ch-typeck.c (chill_root_resulting_mode): Handle
6381 correctly the case that one operand is DERIVED and one is VALUE.
6383 Fri Dec 10 10:00:42 1993 Bill Cox (bill@rtl.cygnus.com)
6385 * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6386 Move instance-handling code to raw_decode_mode.
6387 * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6388 Add rough draft of DELAY statement handling.
6389 * ch-tasking.c (build_event_type): New function.
6390 * ch-tree.h (build_event_type): Add prototype.
6391 * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6393 Wed Dec 8 18:02:26 1993 Bill Cox (bill@rtl.cygnus.com)
6395 Parse and grant BUFFER modes.
6396 * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6397 Moved from decode_decl.
6398 * ch-parse.y: Fix several sorry() messages.
6399 * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6402 Wed Dec 8 12:59:54 1993 Per Bothner (bothner@kalessin.cygnus.com)
6404 * ch-actions.c (chill_expand_assignment): In a multiple
6405 assignment, check that all the targets are equivalent.
6407 * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT): New function
6408 and macro to (partially) implement the relation l-equivalent.
6409 * ch-typeck.c (chill_read_compatible): Implement at least
6410 initial check of read-only-ness.
6411 * ch-typeck.c (build_readonly_type): Fix thinkos.
6413 Wed Dec 8 09:11:46 1993 Bill Cox (bill@rtl.cygnus.com)
6415 * ch-decl.c (pop_module): Only warn about duplicate grant
6416 statements if they inhabit different files, by examining
6417 inode numbers. Only report compatibility problems in pass 1.
6418 * ch-lex.l (chill_same_grant_file): New function to support the
6421 Tue Dec 7 17:10:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
6423 * ch-decl.c (start_chill_function): Handle attributes in pass 1,
6424 rather than in pass 2. (It seems to make more sense that way.)
6425 * ch-parse.y (procedureattr): Build attribute list if pass != 2.
6427 * ch-parse.y (mode): Don't call build_readonly_type in pass 2.
6429 Mon Dec 6 14:35:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
6431 This implements NOVELTY and READONLY checking.
6432 * ch-tree.def: Added comment about use of LANG_TYPE.
6433 * ch-typeck.c (build_readonly_type, smash_dummy_type): New functions.
6434 * ch-tree.h: New prototypes.
6435 * ch-decl.c (push_modedef): If newmode, lazily "copy" the given mode
6436 immediately (even if it's just a type name), using a LANG_TYPE.
6437 * ch-parse.y (mode): Call build_readonly_type to handle READ.
6438 * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6439 ch-satisfy.c (satisfy): Handle a LANG_TYPE.
6440 * ch-decl.c: Remove chill_modes_equiv and other unused junk.
6441 * ch-satisfy.c (safe_satisfy_decl/CONST_DECL): Better
6442 mode compatibility checking for SYN declarations.
6444 * ch-typeck.c (chill_similar): Be more general when checking set
6445 modes for similarity - specifically support calling chill_similar
6446 BEFORE the modes have been satisfied (needed by proclaim_decl).
6447 * ch-decl.c (proclaim_decl): Allow duplicate definitions
6448 of set elements of similar set modes.
6450 * ch-parse.y (caseaction): Call language-independent
6451 expand_start_case rather than c_expand_start_case (which
6452 doesn't allow chars or booleans).
6454 Sat Dec 4 22:16:19 1993 Bill Cox (bill@rtl.cygnus.com)
6456 * ch-actions.c (cond_range_exception,
6457 cond_type_range_exception): Check command-line flag before
6458 generating code. Fix comments.
6459 * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6460 code, commented out.
6461 * ch-loop.c (build_chill_iterator): Comment out
6462 exception code generation.
6463 * ch-parse.y: Delete quasi_signal flag, use
6464 current_module->is_spec_module instead.
6465 * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6466 Delete quasi_decl flag. Look at current_module
6468 * ch-tree.h: Take quasi_decl flag out of buffer
6470 * ch-typeck.c (valid_array_index, chill_similar):
6471 Comment out runtime range checking for now.
6472 * expr.c (store_constructor): Fix word-size set problem.
6473 * varasm.c (emit_set_data): Fix word-size set problem.
6475 Wed Dec 1 19:08:12 1993 Bill Cox (bill@rtl.cygnus.com)
6477 * ch-actions.c: Delete unused prototype for build_compound_expr.
6478 * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6479 expression to lp->iter_type before expanding it. Prevents an abort
6480 deep in expand_expr and friends.
6482 Wed Dec 1 17:00:44 1993 Bill Cox (bill@rtl.cygnus.com)
6484 * ch-actions.c (chill_expand_assignment): Comment out strange
6485 test and its error message.
6486 * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6487 jump around the loop.
6488 * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6490 Wed Dec 1 14:19:51 1993 Bill Cox (bill@rtl.cygnus.com)
6492 * ch-actions.c (cond_exception): Clarify that it generates
6493 an exception if the given expression is TRUE. Make it so, Number One.
6494 * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6495 (print_lang_type): Print max queue size.
6496 Add casts to DECL_TASKING_CODE_DECL references. Fixes a
6497 portability problem.
6498 (init_decl_processing): Add filename and linenumber arameters
6499 to tasking and memory-allocate runtime prototypes.
6500 * ch-expr.c (finish_chill_binary_op): Check for division
6501 by a constant zero. Replace build_temporary_variable
6502 calls with decl_temp1 calls, to decouple from ch-loop.c.
6503 (build_chill_succ, build_chill_pred): Sketch code to generate
6504 exceptions. Add error check for numbered set.
6505 (build_generalized-call): Correct call for return_memory.
6506 Standardize whitespace before left parens.
6507 * ch-grant.c: Use new macro for checking for BUFFER mode.
6508 * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6510 * ch-loop.c (build_temporary_variable): Make static, unavailable
6512 (declare_temps): Make user's variable for him/her, in the
6513 true Z.200 case, where it hasn't previously been declared.
6514 (begin_chill_loop): simplify control flow a bit.
6515 * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6516 (rccase_label): Delete bogus error checks. Rough draft of
6517 BUFFER-related code.
6518 (assertaction): Remove logical negation - it's now in cond_exception.
6519 (locdec): Sketch of buffer-related code.
6520 (non_array_mode): Add EVENT and BUFFER modes here. Add setting of
6521 set-numbered flag for pred and succ functions.
6522 (optqueuesize): Default to integer_zero_node.
6523 (simple_name_string): Add BUFFERNAME.
6524 * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6525 (build_chill_start_process, expand_send_signal,
6526 build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6527 to tasking-related runtime calls. Sketches of BUFFER mode
6529 * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6530 macro, for portability to non-gcc compilers. Add prototypes
6531 for buffer-related functions.
6532 * ch-typeck.c: Replace build_temporary_variable calls with
6533 decl_temp1 calls, to decouple from ch-loop.c.
6534 (chill_similar): Add tests for BUFFER and EVENT modes.
6536 Wed Dec 1 14:05:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
6538 * ch-actions.c (malloc prototype): Remove; can cause conflicts.
6540 Wed Dec 1 09:49:58 1993 Bill Cox (bill@rtl.cygnus.com)
6542 * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6544 Tue Nov 30 14:05:23 1993 Bill Cox (bill@rtl.cygnus.com)
6546 * ch-decl.c (init_decl_processing): Add filename, line number
6547 parameters to tasking-related runtime routines.
6548 * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6549 * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6551 (quasi_locdec): Set/reset quasi_decl flag.
6552 * ch-tasking.c (build_start_process, expand_send_signal,
6553 build_receive_case_start, build_send_buffer): Add filename. linenumber to
6554 (build_buffer_decl, build_buffer-type): New rough-draft functions.
6555 generated runtime routine call.
6556 * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6557 to mark a synchronization mode. Update the prototypes.
6558 * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6561 Tue Nov 30 09:51:47 1993 Doug Evans (dje@canuck.cygnus.com)
6563 * cccp.c (main): Add missing chill sanitization.
6565 Sun Nov 28 15:50:10 1993 Bill Cox (bill@rtl.cygnus.com)
6567 * ch-loop.c (initialize_iter_var): Build count expression
6569 (bottom_loop_end_check): Call emit_line_note.
6570 (end_chill_loop): Delete emit_line_note call.
6571 * ch-parse.y (doaction): Move DO keyword
6572 after end_chill_loop call.
6574 Wed Nov 24 08:49:07 1993 Bill Cox (bill@rtl.cygnus.com)
6576 * c-typeck.c (c_expand_start_case): Back out previous
6579 Tue Nov 23 12:33:50 1993 Bill Cox (bill@rtl.cygnus.com)
6581 * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6582 type as a CASE label.
6584 Tue Nov 23 11:37:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
6586 * ch-decl.c (grok_chill_variantdefs): Use NULL as the name
6587 of variant fields (not __CASE or anything based on it).
6588 * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6589 Don't check for field name __CASE.
6591 Tue Nov 23 09:37:54 1993 Bill Cox (bill@rtl.cygnus.com)
6593 * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6594 name for the FIELD_DECL.
6595 * ch-parse.y (optstartset): More error tests.
6596 * ch-tasking.c (make_process_struct): Only report error in pass 1.
6597 (build_start_process): Remove bogus restriction, allowing
6598 an INSTANCE expression as the optset parameter.
6600 Mon Nov 22 17:56:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6602 * ch-tree.h (expand_function_end): Now is takes parameters, not 2.
6603 * ch-decl.c (finish_chill_function): Add 3rd parameter to
6604 call of expand_function_end.
6606 * ch-expr.c (chill_expand_expr): For set and strings ops,
6607 if target is in a register, use a stack temporary (since we must
6608 take its address). (Similar to Oct 29 change for store_constructor.)
6609 * ch-expr.c (resolve_component_ref): Fix variant field lookups.
6611 Mon Nov 22 14:23:13 1993 Bill Cox (bill@rtl.cygnus.com)
6613 * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6614 parameter 1 and its mode are always in sync.
6615 (build_chill_pred, build_chill_succ): Allow pred/succ of a
6617 * ch-loop.c (chill_unsigned_type): New function, used instead of
6618 unsigned-type, since it understands the chill_integer_type.
6619 (decl_iteration_var): Delete, use build_temporary_variable
6621 (declare_temps): Use lp->iter_type for the temp evaluations.
6622 (initialize_iter_var): More careful calculation, to handle
6623 MININT to MAXINT loops w/o overflow/underflow.
6624 (begin_chill_loop): Use the original start/end expressions
6625 for the loop bypass test.
6627 Mon Nov 22 14:02:06 1993 Per Bothner (bothner@kalessin.cygnus.com)
6629 * ch-typeck.c (build_chill_slice): If the argument is
6630 is constant, use a read-only static variant, as the
6631 existing algorithm assumes addressability.
6632 * ch-typeck.c (chill_compatible): De-reference reference types.
6633 * ch-typeck.c (layout_chill_range_type): Set TREE_UNSIGNED.
6635 Sat Nov 20 20:17:15 1993 Bill Cox (bill@rtl.cygnus.com)
6637 * ch-decl.c (init_decl_processing): Add filename
6638 and linenumber to allocate, free memory calls.
6639 * ch-expr.c (build_allocate_memory_call,
6640 (build_allocate_global_memory_call): Add
6641 filename, linenumber to call.
6642 * ch-loop.c: Complete rewrite for maintainability.
6644 Sat Nov 20 17:30:05 1993 Per Bothner (bothner@kalessin.cygnus.com)
6646 * ch-except.c: Make it so that (by default at least) the
6647 code to push/pop the __exceptionStack is done using library
6648 functions __ch_link_handler and __ch_unlink_handler. This
6649 provides better flexibility (for e.g. multi-threading).
6651 * ch-decl.c (layout_chill_variants): Allow (useless) selectors
6652 even for tag-less variants.
6654 Fri Nov 19 14:32:20 1993 Bill Cox (bill@rtl.cygnus.com)
6656 * ch-decl.c (init_decl_processing): Add memmove builtin
6657 function definition.
6658 * ch-actions.c (chill_expand_array_assignment): Use memmove
6659 call to copy an array or slice across the assignment.
6661 Wed Nov 17 18:23:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
6663 * ch-satisfy.c (satisfy): If a CONTRUCTOR already has a
6664 TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6665 to force expansion (processing of the elements).
6666 * ch-grant.c (decode_constant): If a tuple (CONTRUCTOR) has
6667 a mode, write it out.
6668 * ch-decl.c (init_decl_processing): Add some missing inits.
6670 Wed Nov 17 17:13:20 1993 Bill Cox (bill@rtl.cygnus.com)
6672 * ch-loop.c: Fix unterminated strings in design comments.
6673 Add enumeration to the iterator structure for type of loop.
6676 Wed Nov 17 16:40:05 1993 Bill Cox (bill@rtl.cygnus.com)
6678 * ch-decl.c (init_decl_processing): Add long parameters to lots
6679 of powerset runtime routines.
6680 * ch-expr.c (chill_expand_expr): Change parameters to powerset
6681 runtimes so bitlengths are long unsigned ints.
6682 * ch-inout.c (build_chill_writetext): Add filename and linenumber
6683 as runtime parameters, for better error messages.
6684 * ch-loop.c: general pre-rewrite cleanup.
6685 * expr.c (store_constructor): Rewrite set interface to
6686 setpowersetbits for long bitnumbers, rather than shorts.
6688 Tue Nov 16 13:41:12 1993 Bill Cox (bill@rtl.cygnus.com)
6690 * ch-expr.c (build_chill_function_call): Stop generating empty
6691 copyback statements, which lead to a seg fault.
6693 Tue Nov 16 12:20:17 1993 Per Bothner (bothner@cygnus.com)
6695 * ch-satisfy.c (satisfy): If satisfying a type whose
6696 TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6697 * ch-actions.c (build_exception_variant): Remove some crud.
6698 * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6699 Remove unused first argument.
6700 * ch-decl.c (start_chill_function): Call build_exception_variant
6701 in pass 1, not in pass 2.
6703 Tue Nov 16 11:10:03 1993 Bill Cox (bill@rtl.cygnus.com)
6705 * ch-decl.c (shadow_record_fields): Call new function
6706 build_chill_arrow_expr, which returns a ptr-to-a-type.
6707 * ch-expr.c (build_chill_arrow_expr): New function, works like
6708 build_chill_addr_expr used to do, returning a typed ptr.
6709 (build_chill_addr_expr): Now returns unbound ref - analogous
6711 * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6712 (operand6): Call build_chill_arrow_expr. Reindent a bit.
6713 * ch-tree.h (build_chill_arrow_expr): New prototype.
6715 Mon Nov 15 16:38:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
6717 * stor-layout.c (layout_type): If a SET_TYPE needs more than
6718 INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6720 * ch-decl.c (start_chill_function): Set DECL_CONTEXT of params.
6722 Mon Nov 15 14:49:17 1993 Bill Cox (bill@rtl.cygnus.com)
6724 * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6725 build_function_call, etc.) to tasking_init.
6726 * ch-gperf, ch-hash.h: Add ASM keyword.
6727 * ch-parse.y: Add ASM statement rules.
6728 (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6729 * ch-tasking.c: Move tasking stuff here.
6731 Sun Nov 14 15:50:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6733 * ch-parse.y (mode2): Split into array_mode and non_array_mode
6734 to resolve layout ambiguity.
6735 * ch-parse.y (checked_name): Remove. Use name_string instead.
6736 * ch-parse.y (variantdef): Don't crash if no tag fields.
6737 * ch-typeck.c (build_chill_array_type): If varying_p,
6738 actually do build_varying_struct here (rather than in ch-parse.y).
6740 Fri Nov 12 15:37:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
6742 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6743 static names. (Let make_decl_rtl generate a unique name.)
6745 Sun Nov 14 13:15:26 1993 Bill Cox (bill@rtl.cygnus.com)
6747 * ch-expr.c (build_chill_lower, cuild_chill_upper):
6748 Rewrite for modes, values, etc.
6749 * ch-inout.c (build_chill_writetext): Add ability
6750 to write out characters.
6751 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6752 static names. (Let make_decl_rtl generate a unique name.)
6753 * varasm.c (unpack_set_constructor): Subtract
6754 lower domain value from a bit's index value,
6755 to match the runtime and allow powersets
6756 with negative lower bounds.
6758 Fri Nov 12 14:00:48 1993 Bill Cox (bill@rtl.cygnus.com)
6760 * ch-inout.c (build_chill_writetext): Save reserved words in
6761 uppercase if -fspecial_UC was specified.
6763 Fri Nov 12 13:27:12 1993 Per Bothner (bothner@rtl.cygnus.com)
6765 * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6766 string concatenation by treating varying strings as slices.
6767 (varying_to_slice): New function.
6768 * ch-typeck.c (build_chill_slice): Changed to support the above.
6770 Fri Nov 12 12:07:28 1993 Bill Cox (bill@rtl.cygnus.com)
6772 * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6773 * ch-expr.c (build_generalized_call): Start module before a
6774 writetext action, so its variables are inside the module-level
6776 * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6777 for enumeration loop on a varying array.
6779 Thu Nov 11 07:49:53 1993 Bill Cox (bill@rtl.cygnus.com)
6781 * cccp.c (main): Disable trigraphs for CHILL.
6782 * ch-decl.c (grok_chill_fixedfields): Add special_UC
6783 to conditional to determine case of reserved words.
6784 Make PACK/UNPACK warning more specific.
6785 * ch-expr.c (build_generalized_call): Enable recognition
6786 of WRITETEXT call here.
6787 * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6788 word. It's only predefined.
6789 * ch-inout.c: Add special_UC to conditionals
6790 to determine case of reserved words.
6791 (build_chill_writetext): Change for call from
6792 build_generalized_call. Add code to format
6794 * ch-lang.c (lang_decode_option): Add special_UC and
6795 special_LC flags and logic to interlock with
6797 * ch-lex.l: Add special_UC to conditionals
6798 to determine case of reserved words.
6799 * ch-parse.y: Delete WRITETEXT as reserved word.
6800 * ch-tasking.c: Add special_UC to conditionals
6801 to determine case of reserved words.
6802 (build_instance_type): Make components of INSTANCE
6803 unsigned 16-bit integers.
6804 * ch-tree.h (build_chill_writetext): Fix prototype.
6805 * ch-typeck.c (build_chill_array_type): Make PACK
6806 /UNPACK warning more specific.
6807 * toplev.c (lang_options): Add -fspecial_LC
6808 and -fspecial_UC flags.
6810 Wed Nov 10 02:29:53 1993 Bill Cox (bill@rtl.cygnus.com)
6812 * Makefile.in: Move ch-hash.h from ch-lex.o
6813 rule to ch-lex.c rule, so flex is rerun.
6814 * ch-actions.c (chill_expand_assignment): Error if
6815 user tries to assign to a LHS function.
6816 * ch-decl.c (grok_chill_fixedfields): Use of PACK
6817 /UNPACK is only a warning.
6818 (init_decl_processing): Add ADDR as a builtin function.
6819 * ch-expr.c (build_generalized_call): Add ADDR
6820 as a builtin function.
6821 (build_chill_addr_expr): Sanity check parameters.
6822 * ch-gperf: Remove ADDR as a reserved word,
6824 * ch-hash.h: gperf'd version of the above.
6825 * ch-inout.c (chill_stdio_p): Recognize upper/lower
6827 * ch-lex.l: Make ignore-case work. Downcase
6828 token before checking for reserved words.
6829 * ch-parse.y: Delete ADDR as a reserved word.
6830 (mode2, optlayout): Allow PACK/UNPACK specifier.
6831 (call): Use build_generalized_call for
6832 primval LPRN modename RPRN.
6833 (primval): Delete ADDR reference. It's now only
6834 predefined, not reserved.
6835 * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6836 * ch-typeck.c (build_chill_array_type): Just
6837 a warning for PACK/UNPACK usage.
6838 * toplev.c: Add -fignore-case and -fno-ignore-case.
6840 Tue Nov 9 15:07:02 1993 Bill Cox (bill@rtl.cygnus.com)
6842 * ch-actions.c: Reindent for readability.
6843 * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6844 a conversion to INSTANCE.
6845 * ch-decl.c: Change special_UC to ignore_case everywhere.
6846 (init_decl_processing): Add builtin_function calls for lots of
6847 predefined functions.
6848 * ch-expr.c: Change builtin function handlers back to accepting
6849 args, not a treelist.
6850 (route_to_predefined_function): Delete it and its call.
6851 (build_generalized_call): Add lots of builtin functions.
6852 * ch-gperf (backwards, duration, inttime, null): Delete them.
6853 * ch-hash.h: New version.
6854 * ch-inout.c: Change special_UC to ignore_case everywhere.
6855 * ch-lang.c: Delete special_UC flag.
6856 * ch-lex.l: Change special_UC to ignore_case everywhere.
6857 * ch-loop.c (high_domain_value, low_domain_value): Change
6858 interfaces to build_chill_upper and built_chill_lower.
6859 * ch-parse.y: Delete lots of stuff which should only be predefined.
6860 * ch-tasking.c: Change special_UC to ignore_case everywhere.
6861 Change builtin function handlers back to accepting args,
6863 * ch-tree.h: Add lots of builtin functions to the enumerator.
6865 Mon Nov 8 18:08:27 1993 Bill Cox (bill@rtl.cygnus.com)
6867 * ch-tasking.c (tasking_init): Disable last-minute change for now.
6869 Mon Nov 8 17:30:22 1993 Bill Cox (bill@rtl.cygnus.com)
6871 * Makefile.in: New commands to build ch-hash.h. Add ch-lex.h to
6872 dependencies where it's used.
6873 * ch-decl.c (init_decl_processing): Build predefined constants
6874 for TRUE, FALSE and NULL. Add declaration for abs builtin
6876 (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6877 stuff for builtin constant like TRUE.
6878 * ch-expr.c (route_to_predefined_function): Add a bunch of
6879 predefined functions to the list.
6880 * ch-gperf: Define the list of reserved words, minus the predefined
6881 words, using the special_UC flag. Remove NULL, TRUE, FALSE -
6882 these are only predefined, not reserved.
6883 * ch-hash.h: Check this into repository, even though it's derived
6884 from ch-gperf, for those users who don't have gperf.
6885 * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6886 to refer to the IO types. Standardize the indentation.
6887 * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6888 * ch-lex.l: Total rewrite of reserved-word recognition, using
6889 the ch-hash.h lookup routines.
6890 * ch-parse.y: Delete a bunch of unused rules for predefined
6891 procedures and their parameters.
6892 * ch-tasking.c (tasking_init): Build predefined functions
6893 for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE. Not
6894 complete yet. Change interface to builtin handlers to accept
6895 just an expression list.
6897 Wed Nov 3 18:07:08 1993 Bill Cox (bill@rtl.cygnus.com)
6899 * Makefile.in: Debug, activate rule to make CHILL hash table.
6900 * ch-actions.c: Compress parameter type lists per standard.
6901 * ch-decl.c: Correct spelling in comment, compress parameter lists.
6902 (init_decl_processing): Check special_UC flag to build builtin
6903 function declarations.
6904 * ch-expr.c (route_to_predefined_function): Check for upper OR
6905 lowercase function names.
6906 * ch-gperf: Update the list of keywords.
6907 * ch-inout.c (build_chill_io_list): Check for special_UC flag
6908 to build I/O list type. Compress parameter lists.
6909 (chill_stdio_p): Check for special_UC flag in recognizing
6911 * ch-lang.c (lang_decode_option): Add command-line options
6912 for upper-case keywords and user labels.
6913 * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6914 if special_UC flag is set.
6915 (downcase, getlc, check_newline): Don't do this if ignore_case
6917 * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6918 multiple selector expressions.
6920 Sat Oct 30 01:06:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6922 * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6923 STRUCTs (and INSTANCEs) for equality.
6924 * ch-expr.c (invalid_operand): New functions, combines most of
6925 the functionality of invalid_left_operand and invalid_right_operand.
6926 * ch-convert.c (digest_constructor): Set TREE_CONSTANT if it is.
6928 Sat Oct 30 11:12:47 1993 Bill Cox (bill@rtl.cygnus.com)
6930 * Makefile.in (chill): Add back in the commands to build chill
6931 (the script) from chill.in.
6933 Fri Oct 29 16:25:38 1993 Per Bothner (bothner@kalessin.cygnus.com)
6935 * expr.c (store_constructor): If SET_TYPE target is in a register,
6936 use a stack temporary (since we must take its address).
6938 * ch-expr.c (build_allocate_global_memory_call,
6939 build_allocate_memory_call): Cast argument pointer to PTR,
6940 if needed (using location cast). Also, some other cleanups.
6941 * ch-parse.y (bracketed_action): Re-arrange things so that
6942 a handler following BEGIN END comes before the final poplevel.
6943 * ch-typeck.c (build_chill_cast): Just return if already correct type.
6945 Re-do DO WITH so that build_component_ref for is done lazily
6946 (at each reference) instead of eagerly (at the beginning
6947 of DO WITH). This is needed for tagged variants,
6948 * ch-tree.def (WITH_DECL): New declaration tree code.
6949 * ch-decl.c (lookup_name): Recognize WITH_DECLs.
6950 * ch-decl.c (handle_one_level): Variant parts are currently
6951 indicacted with '__CASE'. Recognize that.
6952 Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
6954 Thu Oct 28 22:17:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6956 * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
6957 Remove some old crud.
6958 * ch-typeck.c (build_chill_cast): Another attempt at a
6959 compromise between robustness and generality for casts.
6960 Location conversions are now less likely to confuse things.
6961 * ch-parse.y (optactions): Allow further optactions following
6962 an initial semicolon.
6963 * ch-parse.y: Add error messages on EVENT and BUFFER.
6965 * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
6966 Undo some of the Oct 27 changes.
6968 Convert (some) builtin functions previously using reserved
6969 names to be just predefined.
6970 * tree.h (enum builtin_in_function): Added END_BUILTINS at end.
6971 * ch-decl.c: Add predefines for allocate_memory,
6972 allocate_global_memory, return_memory, writetext.
6973 * ch-expr.c (check_arglist_length): New function.
6974 * ch-expr.c (build_generalized_call): If "function" is
6975 a builtin, build the appropriate tree.
6976 * ch-parse.y, ch-lex.l: No longer recognize many pre-defined
6977 functions at the lexer/parser level.
6978 * ch-tree.h (enum chill_built_in_function): New type.
6980 Thu Oct 28 16:43:36 1993 Bill Cox (bill@rtl.cygnus.com)
6982 * ch-expr.c (allocate_memory, allocate_global_memory):
6983 Check for invalid parameters, issue errors.
6984 * expr.c (store_constructor): Calculate bitlength, startrtx
6985 and endrtx of powerset correctly. Define targetx, use it
6988 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6990 * ch-expr.c (build_max_min): Error for passing empty tuple
6993 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6995 * ch-decl.c (init_decl_processing): Make allocate
6996 builtins have a pointer-to-pointer-to-void
6997 first parameter, rather than a reference parameter.
6998 * ch-expr.c (build_allocate_memory_call,
6999 build_allocate_global_memory_call): Do automatic
7000 ADDR () on the first parameter, for backward
7002 * ch-grant.c (grant_one_decl): Don't grant if
7003 DECL_SOURCE_LINE is zero.
7004 (start_chill_module_code): Set DECL_SOURCE_LINE
7005 to zero so that module-level function isn't granted.
7006 * ch-parse.y (handleraction): Add return_memory action.
7007 * ch-typeck.c (chill_similar): Allow a void_type
7008 to be similar to anything. This makes allocate_memory
7009 and return_memory pointer parameters slide through.
7011 Tue Oct 26 00:12:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
7013 * ch-typeck.c (build_chill_array_ref): Check for and complain
7014 if there are more index expressions than the array rank.
7016 * ch-actions.c (chill_expand_assignment): Emit appropriate
7017 error message if RHS of multiple assignment is tuple/case/if.
7018 * ch-tree.def (CONCAT_EXPR): Change TREE_CODE_CLASS from
7019 'e' to the more specific '2'. (Fixes a satisfy bug.)
7021 Thu Oct 21 17:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
7023 * ch-parse.y: Revert experimental error-generating change
7024 that was checked in by mistake.
7026 Thu Oct 21 12:15:30 1993 Bill Cox (bill@rtl.cygnus.com)
7028 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7029 code variables associated with a process or signal.
7030 (Apparently I forgot to actually check these in last time.)
7031 * ch-tasking.c: Replace last calls to get_tasking_code with
7032 working references to DECL_TASKING_CODE_DECL.
7034 Thu Oct 21 10:27:42 1993 Bill Cox (bill@rtl.cygnus.com)
7036 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
7037 code variables associated with a process or signal.
7038 * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
7039 tasking_code_decl pointer, rather than trying to look it up
7040 in the hash table or linked scope list.
7042 Wed Oct 20 09:52:44 1993 Bill Cox (bill@rtl.cygnus.com)
7044 * ch-actions.c (lookup_and_handle_exit): Only output error message
7046 * ch-convert.c (convert): Correct conversion of VARYING array to/
7047 from non-VARYING one.
7048 * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
7050 (decl_tasking_code_var): Delete it. Its calls are replaced woth
7051 generate_tasking_code_variable calls, plus a little glue.
7052 (push_extern_process): generate tasking_code_variable as local
7053 static variable, point the process' function_decl at it for later
7054 reference by build_start_process.
7055 (print_mode): Use CHILL upper-case convention to print modes.
7056 * ch-lex.l: Must initialize tasking-related trees to NULL at start
7057 of each pass, or we lose the fact that the user did or did not
7058 specify a value for each of them.
7059 * ch-parse.y (check_end_label, action, exceptlist): Only output
7060 error message in pass 1.
7061 (sendaction): Add comments.
7062 (sigdef): Comment out special handling for external signals.
7063 Chain tasking_variable_decl onto signal structure decl, for
7064 easier non-symbol-table access later.
7065 * ch-tasking.c (generate_tasking_code_variable): Do work in both
7066 passes, using do_decl so we can pass the pass 2 value of the
7067 process_type or signal_code to it. Only update the process_type
7068 if the incoming pointer isn't null and pass == 2. Use a new
7069 parameter to know whether to include an init expression.
7070 (build_process_header): Attach tasking-code_variable to process
7071 function_decl for easy access later, not through the hash table.
7072 (build_start_process): Get tasking_code_variable out of the process'
7074 (build_signal_struct_type): Return the type decl, to be accessed by ...
7075 (build_signal_descriptor): .. this function.
7076 (build_receive_case_label): Get data buffer pointer not from hash
7077 table, but from Tiemann's current rc_state structure instead.
7078 * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
7079 macro for tasking_code_variable storage.
7081 Tue Oct 19 17:39:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
7083 * ch-lex.l (equal_number): If the "number" is a CONST_DECL,
7084 return its DECL_INITIAL.
7085 * ch-satisfy.c (safe_satisfy_decl): Change logic for rtl
7086 generation for decls to not use DECL_ASSEMBLER_NAME.
7087 * ch-decl.c: Set DECL_ASSEMBLER_NAME to DECL_NAME.
7088 This matches C, and allows dbxout to emit proper user-level names.
7089 (It would be cleaner to fix dbxout to use DECL_NAME ...)
7090 * ch-decl.c (outer_decls): New global list of the decls granted
7091 into the outer scope.
7092 (pop_module): Change code that grants into outer scope accordingly.
7093 (lookup_name_for_seizing): Similarly update.
7094 (push_scope_decls): Handle SEIZE ALL from the global scope
7095 by searching outer_decls.
7096 * ch-grant.c (grant_array_type): Fix thinko.
7097 * ch-inout.c (build_chill_writetext): Remove excessive TREE_TYPE.
7099 Mon Oct 18 15:57:00 1993 Per Bothner (bothner@kalessin.cygnus.com)
7101 * varasm.c (output_constructor): Add support for non-zero
7103 * c-typeck.c (output_init_element): Revert recent changes.
7104 * varasm.c (emit_set_data): Fix emitting set constant data.
7105 * ch-lex.l (yywrap): Reset line number to 0, not 1.
7106 It sets incremented to 1 by check_newline.
7107 * ch-tree.h: Restore old version.
7108 * ch-expr.c (finish_chill_binary_op): Convert TRUNC_DIV_EXPR
7109 to RDIV_EXPR if an operand is floating. (This functionality
7110 got dropped when hacking finish_chill_binary_op).
7112 * ch-actions.c (build_chill_case_expr): Set type to NULL_TREE.
7113 not error_mark_node.
7114 * ch-actions.c (chill_expand_assignment): Allow such borderline
7115 constructs as: LHS OR:= [X].
7116 * ch-convert.c (convert): Hande CASE_EXPR (and COND_EXPR)
7117 with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
7118 * ch-decl.c (do_decl): Remove CONSTRUCTOR kludge.
7119 * ch-typeck.c (chill_compatible): Allow expr to have NULL mode
7120 if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
7122 Mon Oct 18 13:20:53 1993 Ken Raeburn (raeburn@rover.cygnus.com)
7124 * c-typeck.c (output_init_element): Limit previous changes to
7125 ARRAY_TYPE and SET_TYPE initializers.
7127 Sun Oct 17 23:15:00 1993 Bill Cox (bill@cygnus.com)
7129 * c-typeck.c (output_init_element): Handle NULL domain case.
7130 * ch-decl.c (do_decl): Revert bogus initializer type change.
7131 * ch-grant.c (chill_finish_module_code): Put module's decl onto
7132 the module_init_list, for chill_finish_compile's possible use.
7133 (chill_finish_compile): Rename variables for clarity, add
7134 commented-out code as example for assignment of module address to its
7137 Sun Oct 17 15:16:54 1993 Bill Cox (bill@cygnus.com)
7139 * ch-convert.c: Move semicolon to separate line - easier to see.
7140 * ch-decl.c (do_decl): Handle untyped_expr initializers by
7141 simply using the variable's declared type - no compatibility
7142 check can be made if the expression has no type.
7143 * ch-expr.c (expand_packed_set): Fix endless loop - increment
7145 (fold_set_expr): Fix two other endless loops by passing
7146 correct parameters to unpack_set_constructor.
7147 * varasm.c: Standardize 'for' loop.
7149 Sun Oct 17 12:16:21 1993 Bill Cox (bill@cygnus.com)
7151 * c-typeck.c (output_init_element): Handle initializer for
7152 array with non-zero lower index bound.
7154 Sat Oct 16 16:48:48 1993 Per Bothner (bothner@cygnus.com)
7156 * ch-expr.c (finish_chill_binary_op): Use TREE_SET_CODE
7157 to change TREE_CODE.
7159 Sat Oct 16 08:07:17 1993 Bill Cox (bill@rtl.cygnus.com)
7161 * ch-expr.c (finish_chill_binary_op): Disable
7162 rough-draft code, not intended for release.
7164 Fri Oct 15 21:44:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7166 * expr.c (store_constructor): use PROTO for pack_set_constructor
7168 Fri Oct 15 10:30:09 1993 Bill Cox (bill@cygnus.com)
7170 * ch-expr.c (finish_chill_binary_op): Activate some
7172 * expr.c (store_constructor): Subtract arrays minimum element.
7173 Makes orientexpress work.
7175 Fri Oct 15 09:26:24 1993 Bill Cox (bill@cygnus.com)
7177 * ch-convert.c, ch-expr.c: Add externs so it'll compile.
7178 * ch-tree.def: Add BASED_DECL definition.
7180 Thu Oct 14 13:20:02 1993 Bill Cox (bill@cygnus.com)
7182 * ch-actions.c (build_chill_cause_exception): Pass the
7183 *address* of the filename string to the runtime routine,
7184 rather than passing the string by value.
7186 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
7188 * expr.c (store_constructor): Use a (usually) more efficient
7189 algorithm for setting SET types.
7191 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
7193 Changes to better support 1984 version of Chill, which doesn't
7194 really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
7195 * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings): New flag.
7196 * ch-typeck.c (chill_similar): Support flag_old_strings.
7197 * ch-convert.c (convert_to_boolean): Generalize code to
7198 convert singleton bitstring to Boolean.
7199 * ch-convert.c (convert): Use string_one_type_node.
7200 * ch-convert.c (convert): Add code to convert Boolean to BOOLS(1).
7201 * ch-convert.c (convert): In code that converts fixed string to
7202 varying use new 'e' variable, rather than original 'expr' variable.
7203 Allows cascaded conversions: CHAR -> CHARS(1) -> varying CHARS.
7204 * ch-decl.c (string_type_node, const_string_type_node,
7205 int_array_type_node), ch-tree.h: Removed.
7206 * ch-decl.c (string_one_type_node, bitstring_one_type_node,
7207 bit_zero_node, bit_one_node), ch-tree.h: New globals tree nodes.
7208 * ch-decl.c (init_decl_precessing): Remove some junk.
7209 * ch-expr.c (build_generalized_call): If flag_old_strings,
7210 treat string index as string slice. Also, better error checking.
7212 Added support for (some kinds of) BASED declarations.
7213 * ch-tree.def (BASED_DECL): New tree code.
7214 * ch-decl.c (lookup_name): Implement BASED_DECL using
7215 build_chill_indirect_ref.
7216 * ch-decl.c (do_based_decls): Make a BASED_DECL.
7217 * ch-parse.y: Call do_based_decls for DCL ... BASED(...).
7218 * ch-satisfy.c (safe_satisfy_decl): Handle BASED_DECL.
7220 Improve handling of set binary operations.
7221 * ch-expr.c (expand_packed_set): New function.
7222 (fold_set_expr): Re-write. Simpler, more general algorithm.
7223 (build_set_expr): Only used for comparsions now.
7224 (finish_chill_binary_op): Handle set ops better (more directly).
7225 (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
7226 fold_set_ne, fold_set_xor): Removed. No longer needed.
7228 * ch-decl.c: Remove calls to allocate_lang_decl.
7229 * ch-tree.c (build_string_type): If const length, layout immediately.
7231 Mon Oct 11 17:23:02 1993 Bill Cox (bill@cygnus.com)
7233 * ch-decl.c (init_decl_processing): Define __whoami and
7234 __wait_buffer functions.
7235 * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
7236 * ch-parse.y (sigdef): Add new add_taskstuff_to_list
7238 * ch-tasking.c (get_tasking_code): Search tasking_list for
7239 tasking code name match. Can't use lookup_name.
7240 (get_task_name): New function.
7241 (generate_tasking_code_variable): Return if pass 1.
7242 Always update *tasking_code_ptr.
7243 (build_process_header): Add new add_taskstuff_to_list
7245 (tasking_setup): New code to unpack the tasking
7246 list entries no built by ..
7247 (add_taskstuff_to_list): Accept new parameter,
7249 * ch-tree.h (add_taskstuff_to_list): Add new
7252 Mon Oct 11 14:54:50 1993 Per Bothner (bothner@kalessin.cygnus.com)
7254 * Makefile.in (cc1chill): Also link in $(BC_OBJS).
7256 Mon Oct 11 06:28:39 1993 Doug Evans (dje@canuck.cygnus.com)
7258 * ch-decl.c (flag_allow_single_precision): New global,
7259 from ss-931002 merge.
7261 Sun Oct 10 09:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
7263 * Makefile.in: Remove references to chill.in and
7264 ch-hash.h. Remove bogus cc1chil : chill
7267 Fri Oct 8 16:00:04 1993 Bill Cox (bill@cygnus.com)
7269 * ch-actions.c (adjust_parm_or_field): Add parameter to
7271 *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
7273 (decl_temp1): Add parameter to signal 'make this external'.
7274 (shadow_record_fields): Add parameter to decl_temp1 call.
7275 * ch-expr.c (chill_expand_case_expr): Add parameter
7277 * ch-grant.c (chill_finish_compile): Add code to spoof
7278 get_file_function_name, so we don't get __tmp_s1_code,
7279 for example, as the module-level code's name.
7280 * ch-loop.c (build_temporary_variable, begin_for_range,
7281 init_loop_counter): Add parameter to decl_temp1 call.
7282 * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
7283 for easier maintenance.
7284 (sendaction): Rewrite to receive SIGNALNAME token correctly
7285 from ch-lex.l (name_type_signal).
7286 (signaldef): Don't clear quasi_signal here.
7287 * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
7288 to make the variable public (visible to linker).
7289 (build_start_process): Add parameter to decl_temp1 call.
7290 (tasking_setup): Comment out band-aid hack which calls
7291 generate_tasking_code_variable. Shouldn't be necessary.
7292 Use null_pointer_node rather than integer_zero_node in
7293 entry_point. More rewrites.
7294 (build_signal_descriptor): Name the non-signal in the error msg.
7295 Rewrite the building of the signal envelope - avoid seg fault.
7296 Add parameter to decl_temp1 call.
7297 (expand_send_signal, build_receive_case_start,
7298 build_receive_case_end, build_buffer_descriptor): Add parameter
7300 * ch-tree.h: Add parameter to decl_temp1 proto.
7301 * chill: Add new CHILL frontend directory
7303 Tue Oct 5 13:51:27 1993 Bill Cox (bill@cygnus.com)
7305 * ch-grant.c: Standardize indentation.
7306 * ch-parse.y (end_function): Unconditionally poplevel for processes.
7307 * ch-tasking.c (build_process_header): Unconditionally pushlevel.
7308 (generate_tasking_code_variable): Stop using pass number to
7309 force a one-time action.
7310 * ch-tree.h (build_chill_slice): Delete proto since function went static.
7312 Mon Oct 4 13:52:36 1993 Bill Cox (bill@cygnus.com)
7314 * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
7315 called here in both passes. Set DECL_ASSEMBLER_NAME.
7316 (lookup_name_for_seizing): Move NULL test forward to prevent
7318 * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
7319 to prevent a seg fault in telebras/dynsto.ch. Make indentation
7321 * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
7322 (build_send_signal): Rename to expand_send_signal.
7323 (generate_tasking_code_variable): Return the var's decl.
7324 (build_signal_struct_type): Move generate_tasking_code_variable
7325 and add_taskstuff_to_list calls to ..
7326 * ch-parse.y (sigdef): .. here. And make indentation changes.
7327 * ch-tree.h: Rename functions, add return values.
7329 Mon Oct 4 15:43:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
7331 * ch-convert.c (digest_constructor): Convert element to element_type.
7332 * ch-parse.y (end_function): Use DECL_ARGUMENTS to check
7333 for parameterless process.
7335 Fri Oct 1 13:57:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
7337 * ch-typeck.c (chill_location): New function.
7338 Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
7339 * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c: Use
7340 chill_location instead of lvalue_p.
7343 Fri Oct 1 11:28:42 1993 Bill Cox (bill@cygnus.com)
7345 * ch-convert.c (convert): Back out Michael's changes, unintentionally
7347 * ch-lex.l (handle_use_seizefile_directive): No longer downcase
7349 * ch-parse.y (sendaction): Fix a couple of seg faults. Comment out
7350 SEND BUFFER processing for now.
7351 * ch-tree.h: Fix comment.
7353 Thu Sep 30 17:00:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
7355 * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P): New macros,
7356 for recognizing singleton strings.
7357 * ch-tree.h (MARK_AS_STRING_TYPE): New macro.
7358 * ch-tree.c (build_string_type, build_bitstring_type),
7359 ch-convert.c (convert): Use it.
7360 * ch-typeck.c (build_chill_slice): Take length rather than upper
7361 bound. This makes it easier to recognize that A(X UP LENGTH)
7362 really has fixed length. Also, if the argument is string,
7363 mark the slice as a string too. Also, handle varying strings.
7365 * ch-typeck.c (conflate_singleton_strings): New global.
7366 * ch-typeck.c (chill_similar): If conflate_singleton_strings is
7367 set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
7368 to CHAR/BOOL, as required by the 1984 version of Z.200.
7369 * ch-convert.c (convert_to_char): Convert CHARS(1) to CHAR.
7370 * ch-convert.c ( build_array_type_for_scalar): If input is string,
7372 * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h: Removed.
7373 * ch-convert.c (convert): Convert CHAR to CHARS(1).
7375 This fixes 'X // := Y' and is also a general simplification.
7376 * ch-actions.c (chill_expand_assignment): Convert 'LHS OP := RHS'
7377 to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
7378 Also, call save_expr on RHS if a multiple assignment.
7379 * ch-parse.y (assignaction): Therefore, no longer need to call
7380 stabilize_reference on RHS.
7381 * ch-typeck.c (build_chill_modify_expr), ch-tree.h: Remove
7382 modifycode parameter. Make it the caller's responsibility to
7383 handle <assigning operator>.
7384 * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7385 ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7387 Wed Sep 29 18:02:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
7389 * ch-lang.c (string_index_type_dummy), ch-tree.h: New variable.
7390 * ch-decl.c (integer_minus_one_node), ch-tree.h: New variable.
7392 * ch-parse.y (arrayindex: modename): Remove useless code.
7393 * ch-satisfy.c (satisfy): Don't gag on string_index_type_dummy,
7394 * ch-tree.c (build_string_type): Pass string_index_type_dummy as
7395 the parent type of the index range.
7396 * ch-typeck.c (layout_chill_range_type): Recognize and handle
7397 string_index_type_dummy - specifically allow an empty range.
7399 Wed Sep 29 13:36:23 1993 1993 Bill Cox (bill@cygnus.com)
7401 * ch-convert.c (convert_to_reference): Check for loc-identity
7402 mismatches correctly (and remove one of those chill_compatible
7404 * ch-decl.c (decl_tasking_code_var): New function, called from
7405 push_extern_process and push_extern_signal.
7406 * ch-parse.y (end_function): Delete parameter. Check current_function_decl
7407 whether it's actually a process, and whether it has parameters.
7408 Make Michael's change simplifying the pass 2 test, preventing a seg
7410 (procedure, process): Change calls to end_function, remove
7411 code saving value from build_process_header. Delete redundant chill_
7412 phrases from some function calls.
7413 * ch-tasking.c: Remove some redundant _chill phrases from function
7415 * ch-tree.h: Remove some redundant _chill phrases from function
7416 names. Add the CH_VARYING_ARRAY_TYPE macro, call it from
7417 all relevant places.
7418 * ch-typeck.c: Use the new macro. Cast TREE_CODEs to chill_tree_code.
7420 Wed Sep 29 13:07:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
7422 * ch-convert.c (convert_to_reference): Remove redundancies.
7423 * ch-convert.c (convert): Handle convert_to_reference
7424 with a recursive convert call.
7425 * ch-decl.c (do_decl): Add missing compatibility-checking
7426 of initializer (don't depend on convert).
7428 Tue Sep 28 00:02:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7430 * ch-tree.h (CH_LOCATION_P): New macro.
7431 * ch-typeck.c (layout_chill_range_type): Fix call to
7432 type_for_size, when figuring out a defaulted parent type.
7433 * ch-expr.c (build_chill_lower, build_chill_sizeof): Check
7434 for TREE_CODE_CLASS != 't' rather than == 'd'.
7435 * ch-expr.c (build_chill_function_call): Use CH_LOCATION_P
7436 to check for location, rather than TYPE_CODE_CLASS == 'd'.
7438 * ch-tree.c (build_string_type): Make 2-pass safe. Also,
7439 change parameter to be length, not index type.
7440 * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7441 (build_chill_string): Modify callers of build_string_type accordingly.
7442 * ch-lex.l (check_newline): Don't look for # directive inside a
7444 * ch-grant.c (grant_array_type): Make more robust for char-
7445 and bit-strings (allow non-constant sizes). Change parameters
7446 and return types. (raw_decode_mode): Use grant_array_type
7447 for bitstrings. (otherwise): Fix grant_array_type callers.
7449 Mon Sep 27 16:57:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
7451 Remove changes of Sep 15.
7452 * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7453 * ch-typeck.c (chill_similar): Don't allow a singleton
7454 powerset to be similar to its domain.
7455 * ch-convert.c (convert_to_boolean): Don't convert a singleton
7456 SET_TYPE constructor to a Boolean.
7458 * ch-actions.c (chill_expand_assignment): Handle IN_EXPR on
7459 LHS of assignment, which is what we're current (temporarily?) using.
7461 Mon Sep 27 06:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
7463 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7464 ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7465 ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7466 -Wall cleanup. Add prototypes where missing.
7467 Delete unused variables. Cast uses of tree_codes
7468 to chill_tree_code, which they are.
7470 Sun Sep 26 13:09:57 1993 Bill Cox (bill@rtl.cygnus.com)
7472 * ch-decl.c (do_decl): Save initializer in pass zero
7474 * ch-lex.l: Fix comments, indentation.
7475 * ch-parse.y: Standardize error messages to use
7476 uppercase for CHILL keywords rather than quoting them.
7477 Suggestion from docs department.
7478 * ch-tasking.c: Pervasive changes to get processes to
7480 * ch-tree.h: Delete prototypes for functions whic
7481 I made static inside ch-tasking.c.
7483 Sun Sep 26 02:40:02 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7485 * ch-lex.l (yywrap): Call `check_newline' in case the file
7486 started with a line directive.
7488 Sat Sep 25 13:54:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
7490 * ch-decl.c: Expand pre-amble comment.
7491 * ch-decl.c (struct scope, push_module): Use new field
7492 tail_chain_module to build child-module list in order.
7493 (Just to make compiler debugging a little less confusing.)
7495 * ch-decl.c (struct scope): New field weak_decls.
7496 * ch-decl.c (find_implied_types): New interface. Now pre-pend
7497 new enum types to a given input list. This makes it easier to
7498 avoid duplicates, which should at least be more efficient.
7499 Also, handle FUNCTION_DECL.
7500 * ch-decl.c (bind_saved_names): Removed. Distribute its
7501 functionality over new functions (push_scope_decls, pop_scope_decls,
7502 build_implied_names, bind_sub_modules). The goal (which seems to
7503 have been more-or-less attained) was to fix weak name handling.
7504 * ch-decl.c (poplevel): Use new function pop_scope_decls.
7506 * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7507 Use build_decl directly, rather than grok_chill_fixedfields
7508 (which depends on ignore_exprs and has more overhead).
7509 * ch-tasking.c (build_signal_struct): Construct the type
7511 * ch-typeck.c (build_chill_slice): Use my_build_array_ref rather
7512 than build_array_ref (which does C-specific "optimizations").
7513 (Hence move my_build_array_ref up earlier in the file.)
7515 Sat Sep 25 03:47:28 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7517 * ch-tasking.c: Declare static variable `void_ftype_void'.
7518 (chill_tasking_init): Initialize `void_ftype_void' here.
7519 (build_tasking_struct): Use, don't declare `void_ftype_void'.
7520 (generate_tasking_code_variable): Call `do_decl', not
7521 `decl_temp1' to declare TASKING_CODE_NAME.
7522 (tasking_setup): Drop into 1-pass mode so that all
7523 tasking-related declarations are installed in the global
7524 scope. Use correct CHILL types for initializers (since
7525 ptr_type_node doesn't have the right meaning for CHILL).
7526 Also, call `do_decl' instead of `decl_temp1' for
7528 (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7529 `chill_finish_compile' in sync between passes.
7531 * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7532 declarations on pass zero. Keep obstacks in sync, and always
7533 call `finish_decl' for pass zero declarations.
7534 (push_chill_extern_function): Keep obstacks in sync, and always
7535 call `finish_decl' for pass zero declarations.
7536 (build_enumerator): Ditto.
7537 (grok_chill_variantdefs): Change PASS test to exclude only
7539 (finish_struct): Ditto.
7540 * ch-expr.c (build_chill_component_ref): Ditto.
7541 (build_chill_binary_op): Ditto.
7542 * ch-tree.c (build_powerset_type): Ditto.
7543 (build_bitstring_type): Ditto.
7544 * ch-typeck.c (build_chill_range_type): Ditto.
7545 (build_chill_struct_type): Ditto.
7547 * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7548 extra pushing and popping of obstacks.
7550 * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7551 on IO_DESCRIPTOR. This causes IO_DESCRIPTOR to be laid out.
7553 * ch-grant.c (chill_finish_compile): Clear out both
7554 MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7557 * ch-parse.y (rccase_label): Add NAME rules so that pass one
7558 works w/o knowing we're parsing a signal. Simplify SIGNALNAME
7559 rules since we only get SIGNALNAME tokens in pass two.
7560 (sendaction): Ditto.
7561 * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7562 BUFFERNAME on pass two. The grammar now handles this.
7563 * ch-decl.c (lookup_remembered_decl): Deleted.
7565 Fri Sep 24 15:27:13 1993 Bill Cox (bill@cygnus.com)
7567 * ch-decl.c (lookup_remembered_names): Removed. It was being
7568 misused in ch-lex.l.
7569 * ch-lex.l (name_type_signal): Revert last change. Basically,
7570 we cannot use the C typedef/variable name trick in CHILL, due
7571 due to the language's 2-pass nature.
7572 * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7574 * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7576 Fri Sep 24 11:01:31 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7578 * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7579 checks so the pass == 0 case is handled for built-in types.
7580 (push_modedef): Add check for error_mark_node.
7581 (lookup_remembered_decl): New function.
7582 (pushlevel, poplevel) Change pass checks.
7583 (pushdecl): Check type as well for NULL.
7584 (build_enumerator): Handle pass == 0 case.
7585 * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7587 * ch-parse.y: Set pass to zero to indicate initial decl processing.
7588 Replace NAME references with SIGNALNAME references.
7589 (startaction): Only check copy number if not ignoring actions.
7590 Always call build_chill_start_process.
7591 (optstartset): Don't lookup the instance name.
7592 * ch-tasking.c (generate_tasking_code_variable): Replace
7593 do_decl call with decl_temp1 call.
7594 (build_chill_start_action): Check for ignore_actions here.
7595 (build_tasking_message_type): Layout the type.
7596 (rc_state_type): New structure to keep nested receive-case
7598 (build_chill_receive_case_start, build_chill_receive_case_end):
7602 Fri Sep 24 04:19:15 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7604 * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7605 should be a _DECL, not an IDENTIFIER_NODE.
7607 Thu Sep 23 18:18:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7609 * ch-decl.c (find_implied_types): Handle VAR_DECLs.
7611 * ch-decl.c (print_lang_identifier): Print IDENTIFIER_OUTER_VALUE.
7612 * ch-actions.c (chill_expand_result): Allow value-less RETURN.
7613 * ch-expr.c (resolve_component_ref): Recognize error_mark.
7615 * ch-convert.c (digest_constructor): Handle a nested powerset tuple.
7616 * ch-satisfy.c (satisfy): Use return value of layout_chill_range_type.
7617 * ch-typeck.c (chill_similar): Repeatedly get parent modes
7618 of ranges, not just once.
7619 * ch-typeck.c (chill_root_resulting_mode), ch-tree.h: New function.
7620 * ch-typeck.c (layout_chill_rang_type): Re-do type-checking
7621 to follow Blue Book better (check for Compatibility).
7623 * ch-tree.h (CH_ROOT_RESULTING_MODE): New macro.
7624 * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7625 New variables. The latter replaces in_seizefile.
7627 Changes to store in the new DECL_SEIZEFILE field each seize
7628 ALIAS_DECL the name in the most recent use_seize_file directive.
7629 (This requires that use_seize_file directives written to the
7630 grant file be written before the SEIZEs that need it.)
7631 Allow clashing declarations granted into the global scope
7632 (produce a warning), but remember the seizefile case from
7633 (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7634 The a SEIZE will select the granted decl that matches its
7635 DECL_SEIZEFILE (in other words: grants from the most recent
7636 use_seize_file will be preferred).
7637 * ch-tree.h (DECL_SEIZEFILE), ch-tree.def: New macro.
7638 * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE): Renamed
7639 to outer_value, IDENTIFIER_OUTER_VALUE.
7640 Changes to cause the use_seize_file directives to be written
7641 out in order as they're seen in source.
7642 * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7643 Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7644 * ch-lex.l (handle_use_seizefile_directive): Modify appropriately.
7645 Don't call grant_use_seizefile.
7646 * ch-lex.l (mark_use_seizefile_written): New function.
7647 * ch-grant.c (decode_decl): Write out use_seize_file directive,
7648 if needed, before writing a seize declarations.
7649 * ch-decl.c (pop_module): Handle decls granted into the global
7650 module specially, setting IDENTIFIER_OUTER_VALUE.
7651 * ch-decl.c (lookup_name_for_seizing): Check IDENTIFIER_OUTER_VALUE.
7653 Thu Sep 23 19:05:37 1993 Bill Cox (bill@cygnus.com)
7655 * ch-decl.c (push_chill_extern_process): Delete unused variables,
7656 declare the process' tasking_code variable as external.
7657 * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7659 * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7661 * ch-tree.h: Add prototype.
7662 * expr.c (store_constructor): Emergency first-aid. Rewrite later.
7664 Thu Sep 23 12:57:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7666 * ch-expr.c (build_chill_function_call): Move possible call to
7667 chill_start_module_code until we know we're not calling a builtin.
7668 * ch-decl.c (save_expr_under_name): Use pushdecllist,
7669 not proclaim_decl (which provide for popping the decl).
7670 * ch-parse.y (optname): Also allow TYPENAME.
7672 Thu Sep 23 09:18:35 1993 Bill Cox (bill@cygnus.com)
7674 * ch-decl.c (print_lang_decl): Make weak name output more standard.
7675 (print_lang_identifier): Make signal-data flag output more standard.
7676 (push_chill_extern_process): Pass correct arg tree to
7677 push_chill_extern_function.
7678 (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7679 Standardize function header layouts (Makes the tcov script
7681 * ch-except.c (chill_finish_on): Standardize function header.
7682 * ch-expr.c (fold_set_or): Standardize function header.
7683 * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7685 (decode_constant): Make sure that alpha operators are surrounded
7687 * ch-parse.y: Spell Z.200 correctly in comments.
7689 Wed Sep 22 10:42:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
7691 * ch-expr.c (build_chill_addr_expr), ch-tree.h: New function.
7692 * ch-parse.y, ch-decl.c (shadow_record_fields): Use it.
7693 * ch-lex.l (handle_use_seizefile_directive): Don't emit
7694 use_seize_file directive if in_seizefile.
7696 * ch-convert.c (digest_structure_tuple): Fix code that checks
7697 for excess init values.
7698 * ch-decl.c (layout_chill_variants): Move increment of nlabels
7699 inside the proper loop.
7700 * ch-grant.c (print_struct): Add missing loop for tag_list.
7701 (print_struct): Look for variant fields by checking for a
7702 UNION_TYPE, not a NULL name, since we must use a dummy name.
7703 * ch-parse.y (structured_variable): Various fixing.
7704 * ch-decl.c (shadow_record_fields): Rename arg decl -> struct_val.
7706 * ch-satisfy.c (safe_satisfy_decl): Disable copying of modes
7707 for NEWMODE (and hence novelty checking), until we figure out
7710 * ch-except.c (finish_handler_array): Use null_pointer_node,
7711 not integer_zero_node (which fails to type-check).
7713 * c-typeck.c (get_constructor_element_type): New function.
7714 * ch-tree.h (CH_NOVELTY_FLAG): Now also used in TYPE_DECLs.
7715 (CH_NOVELTY): Redefined to call new function chill_novelty.
7716 (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE): Removed.
7717 * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7718 Take extra output parameter (for M, as in M-value class).
7719 * ch-typeck.c (chill_novelty): New function. (Also de-references.)
7721 * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7722 New functions. Handle 2-pass and variant records.
7723 * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7724 * ch-satisfy.c (satisfy, case COMPONENT_REF):
7725 New case, call resolve_component_ref.
7727 * ch-expr.c (build_generalized_call): Extract single arg from
7728 arg list before calling build_chill_cast.
7730 * ch-parse.y (defining_occurrence_list): New non-terminal.
7731 Use it to replace locnamelist, synnames, and modenames.
7732 * ch-parse.y: Re-write parsing of variant records.
7734 * ch-decl.c (grok_chill_variantdefs): Now return a FIELD_DECL
7735 rather than just its type.
7736 * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7737 Change callers appropriately.
7739 * ch-tree.h (TYPE_TAG_VALUES): Add an extra level of TREE_LIST,
7740 to support multiple tag fields.
7741 * ch-grant.c (print_struct), ch-decl.c (layout_chill_variants):
7742 Support multiple tag fields.
7744 * ch-convert.c (remove_tree_element, digest_structure_tuple):
7745 New functions, to digest structure tuples, without calling the
7746 code in c-typeck.c. Handles variant tuples and tags (partially).
7747 * ch-convert.c (digest_constructor, convert): Call
7748 digest_structure_tuple when appropriate.
7749 * ch-convert.c (digest_constructor): Re-arrange a bit.
7751 * ch-decl.c (push_modedef): Defer copying of tree until ...
7752 * ch-satisfy (safe_satisfy_decl): ... here.
7754 * ch-decl.c (getdecls): Add kludge to help dbxout_init.
7756 Tue Sep 21 14:19:11 1993 Bill Cox (bill@cygnus.com)
7758 Partial tasking update - not done yet.
7759 * ch-actions.c: Comments, indentation.
7760 * ch-decl.c (push_chill_extern_process): No longer need to
7761 reformat the arg list for make_process_struct.
7762 (pop_module): Don't seg fault on null DECL_NAME.
7763 (handle_one_level): Error, not warning if tree not recognized.
7764 (shadow_record_fields): Rename formal param for readability.
7765 * ch-grant.c (decode_decl): Write proper header for a process.
7766 * ch-parse.y (quasi_pdef): process now uses processparlist,
7767 which doesn't change with the passes.
7768 (quasi_locdec): Call build_chill_reference_type to defer
7769 doing the type's layout.
7770 (processpar): Use paramnamelist, but reformat it into a
7771 list of identifiers in pass 2, so a processpar is the same
7772 structure in both passes.
7773 (locdec): Call build_chill_reference_type to defer doing the
7775 * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7776 build the decl. Only update the variable's tree in pass 2.
7777 (make_process_struct): Call build_chill_reference_type to defer
7778 doing the type's layout.
7779 (build_process_header): New code to call make_process_struct.
7780 New pass-2 code to make a PARM_DECL for start_chill_function.
7781 Pass a void_type_node, not a NULL_TREE for an empty list.
7782 Get input for shadow_record_fields from current_function_decl.
7783 (build_buffer_decl): Call do_decl not decl_temp1.
7784 * ch-typeck.c: Reindent to standards.
7785 * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7787 Mon Sep 20 12:00:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7789 * ch-typeck.c (classify_chill_expr): An expression with a
7790 REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7791 * ch-actions.c (adjust_parm_or_field):, ch-tree.h: Change last
7792 parameter, so we can reliably recognize LOC parameters.
7793 * ch-tasking.c, ch-expr.c: Change callers appropriately.
7795 Sun Sep 19 22:26:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7797 * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE): New macros.
7798 * ch-typeck.c (chill_referable, chill_read_compatible): New functions.
7799 * ch-typeck.c (chill_compatible): Allow un-resolved CONSTRUCTOR
7800 (with NULL TREE_TYPE), when reasonable. (Simplifies callers.)
7801 Also, handle case of expr being of reference class.
7802 * ch-actions.c (adjust_parm_or_field): Major re-arrange
7803 to handle conversions and LOC args better.
7804 * ch-actions.c (chill_expand_assignment): Simplify conversions.
7805 * ch-expr.c (build_chill_function_call): If needed, call
7806 chill_start_module_code.
7807 * ch-decl.c (declare_predefined_file): New function, used
7808 to pre-define stdin, stdout, and stderr.
7809 * ch-inout.c (chill_stdio_p): Change names of predefined
7810 files from chill-stdin etc to plain stdin (and change their types).
7811 * ch-lex.l: Remove some obsolete stuff.
7812 * ch-convert.c (convert): Move conversion from reference to
7813 to beginning of convert() so other conversion can work better.
7814 Also, remove bogus direct setting of TREE_TYPE.
7816 Fri Sep 10 12:23:41 1993 Wilfried Moser (fs_moser@cygnus.com)
7818 * Makefile.in: Change installation of the chill script. gcc will
7819 be called always with the full path. That made problems when
7820 somebody was using chill but didn't have the installation
7822 * ch-parse.y: Change parsing of WRITETEXT action.
7823 * ch-tree.h: Add some new prototypes according to the
7824 (partial) implementation of WRITETEXT.
7825 * ch-typeck.c: Add new function chill_varying_string_type_p. This
7826 functions checks a type for being CHAR(n) VARYING.
7827 * ch-decl.c (init_decl_processing): Add new built-in functions
7828 _writestring and _writeunixstd.
7829 Add call to build_chill_io_list_type in ch-inout.c.
7830 * ch-inout.c (build_chill_writetext): Add some code there.
7831 Add new function build_chill_io_list_type.
7832 Add new static function chill_stdio_p. This function checks
7833 the text argument for being chill_stdin, chill_stdout or
7836 Fri Sep 17 22:02:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
7838 * ch-decl.c (push_modedef): Fix TYPE_MAIN_VARIANT thinko.
7840 Thu Sep 16 18:38:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7842 * ch-decl.c (allocate_lang_decl): Do nothing.
7843 * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7844 No longer used; remove.
7846 * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7847 (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7848 (make_chill_variants, layout_chill_variants): Add (initial) part
7849 of support for multiple tags.
7850 * ch-decl.c (lookup_tag_fields): New function.
7851 * ch-parse.y (stmt_count): Not used; removed.
7852 * ch-parse.y (mode2): Clear current_fieldlist before
7853 parsing STRUCT fields; restore afterwards.
7855 * ch-parse.y (push_action): Moved to ch-actions.c.
7857 Wed Sep 15 18:19:37 1993 Bill Cox (bill@rtl.cygnus.com)
7859 * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7860 constructor to a boolean.
7862 Wed Sep 15 17:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
7864 * ch-decl.c (push_modedef): Enable novelty-setting code.
7865 * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7866 * ch-typeck.c (chill_similar): Add checking of singleton
7867 powerset against its base type.
7869 Tue Sep 14 17:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
7871 * ch-actions.c (adjust_parm_or_field): Create a
7872 temporary for an non-referencable actual parameter
7873 passed to a LOC formal parameter.
7874 (chill_expand_assignment): Correct compatibility checking.
7876 * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7877 * ch-parse.y (opsigdest): Only check for process name
7878 in pass 2, when we know.
7879 * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7880 * ch-typeck.c: Fix comment.
7882 Mon Sep 13 17:33:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
7884 * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7885 decl_seen_p, processed_decls, allocated, nr_decls): Removed
7886 no-longer-useful functions and variables that used to guard
7887 against writing a decl multiple times. Since we now just
7888 go through the decl list linearly, that is no longer an issue.
7889 * ch-satisfy.c (safe_satisfy_decl): Handle missing current_module.
7891 * ch-decl.c (start_chill_function): Clear DECL_ASSEMBLER_NAME.
7892 Don't make TREE_PUBLIC. Don't generate rtl yet.
7893 * ch-decl.c (pop_module): If a decl is granted, set TREE_PUBLIC,
7894 and its DECL_ASSEMBLER_NAME.
7895 * ch-decl.c (fix_identifier): New function.
7896 * ch-grant.c (grant_one_decl): Don't set TREE_PUBLIC.
7897 * ch-tree.h (struct module): New field prefix_name.
7898 * ch-satisfy.c (safe_satisfy_decl): If assembler_name isn't
7899 set, prefix it by the module name(s).
7900 * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7901 Call make_function_rtl if needed and !LOOKUP_ONLY.
7902 * ch-typeck.c (chill_similar): Flesh out substantially.
7903 * ch-typeck.c (chill_compatible): Re-structure.
7905 * ch-actions.c (adjust_parm_or_field): Use CH_COMPATIBLE
7906 instead of chill_comptypes to compare actual and formal.
7908 Sun Sep 12 21:10:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
7910 * ch-parse.y (labellist): Don't do anything if ignore_exprs.
7912 * c-typeck.c (output_pending_init_elements): Handle
7913 !constructor_incremental case of filling in empty positions.
7914 (Patch by Jim Wilson. CYGNUS LOCAL until we have approval.)
7915 * ch-decl.c (pop_module): Don't grant a seized name.
7916 * ch-grant.c (decode_constant): Support CALL_EXPR.
7917 * ch-tree.c (build_bitstring_type): Don't try to fold non-constant
7918 size if pass==1 (since it may be an unsatisfied name).
7921 Sun Sep 12 18:06:23 1993 Bill Cox (bill@rtl.cygnus.com)
7923 2-pass fixes for processes. Partially done.
7924 * ch-actions.c (chill_expand_assignment): Add real
7925 novelty-checking sketch, $ifdef'd out for now.
7926 * ch-decl.c: Generally fix indentation. Move tasking
7927 init code from init_decl_processing to ch-tasking.c.
7928 Delete ObjC-related cruft. More accurate parameter name
7929 for shadow_record_fields. Move debug_scope before
7931 * ch-expr.c (build_chill_function_call): Return if not
7933 * ch-grant.c (print_proc_tail): Avoid trying to format
7934 a VOID return type, or using a NULL pointer.
7935 (decode_decl): Minor changes for PROCESS arg access.
7936 * ch-lang.c (lang_decode_option): Use -itu flag to
7937 enable 'pedantic' mode.
7938 * ch-lex.l (init_lex): Initialize compiler-directive
7940 (name_type-signal): Disable the returning of SIGNAL and BUFFER
7942 * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
7943 All uses renamed also.
7944 (end_function): Always poplevel, not just in pass 2.
7945 (quasi_pdef): Check for end-label matching.
7946 (quasi_formparlist): Write more clearly.
7947 (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
7949 (rccase_label, sendaction): Use NAME, not SIGNALNAME
7951 (process): Handle like procedure.
7952 (mode): Add SIGNAL as a generic signal parameter. This
7953 is a client-specific extension, so pedantic is checked.
7954 * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
7955 * ch-tree.h (CH_NOVELTY): Make it an lvalue.
7956 * ch-typeck.c: Fix comment.
7958 Sun Sep 12 15:03:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
7960 * c-typeck.c (digest_init): Compare types using comptypes
7961 instead of comparing pointers. (Helps Chill front end.)
7962 * ch-expr.c (finish_chill_binary_op):
7963 * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
7964 ch-expr.c (finish_chill_binary_op): For now, prefer IN_EXPR
7965 over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
7966 (incomplete support for variable fields, and possible bug in
7967 optimize_bit_field_compare).
7968 * ch-expr.c (finish_chill_binary_op): Fix type-checking
7969 and appropriately coerce operands for IN_EXPR and comparsions.
7970 * expr.c (expand_expr, case ARRAY_REF): Coerce lower bound (if
7971 non-zero) to sizetype before subtraction.
7972 * expr.c (expand_expr): Remove Chills-specific calls to
7973 __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
7975 Fri Sep 10 15:47:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
7977 * ch-tree.def (UNDEFINED_EXPR): New kind of expression.
7978 * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
7979 ch-convert.c (convert): Handle UNDEFINED_EXPR.
7981 * ch-expr.c (build_char_array_expr): Move CONCAT_EXPR support to ...
7982 * ch-expr.c (build_concat_expr): ... here.
7983 Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
7984 Also, make result varying only if one of the operands are.
7986 * ch-expr.c (build_chill_binary_op): Move stuff from here to ...
7987 * ch-expr.c (finish_chill_binary_op): ... here, as needed for
7988 proper 2-pass split. Also, clean up and simplify heavily.
7990 * ch-tree.h (enum ch_expr_class): The 5 kinds of expression classes.
7991 * ch-typeck.c (classify_chill_expr): New function: Determine
7992 class of expression.
7993 * ch-typeck.c (chill_compatible_classes): Re-structure; fix
7995 * ch-tree.h (CH_CLASS_IS_XXX): Re-define to use classify_chill_expr.
7997 * ch-convert.c (maybe_turn_scalar_into_array): Complain
7998 unless scalar is a char constant (and we want a string).
7999 * ch-convert.c (convert): New code for converting to variable
8000 string/array. Avoid type errors by padding (with an UNDFIEND_EXPR).
8001 * ch-typeck.c (chill_expand_tuple): Don't do conversion to
8002 varying type here; that is handled by convert now.
8003 * ch-decl.c (digest_constructor): Moved to ...
8004 * ch-convert.c (digest_constructor): ... here.
8005 * ch-decl.c (do_decl): Simplify; just use convert for initializer.
8006 * ch-decl.c (chill_digest_init): Merged into convert, and removed.
8007 * ch-decl.c (init_decl_processing): Set constructor_no_implicit flag.
8008 * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
8009 Replace chill_digest_init by convert.
8010 * ch-actions.c (chill_expand_array_assignment): Simplify; use convert.
8011 * ch-lex.l (build_chill_string): Make string type be derived
8012 from integer, not sizetype, because upper bound can be -1.
8014 Thu Sep 9 18:21:46 1993 Bill Cox (bill@rtl.cygnus.com)
8016 * ch-typeck.c (my_build_array_ref): Delete pedantic
8017 C-specific error message.
8019 Thu Sep 9 17:44:20 1993 Jeffrey Wheat (cassidy@eclipse.cygnus.com)
8021 * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
8023 Thu Sep 9 12:22:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8025 * ch-typeck.c (build_chill_array_ref): Remove redundant and
8026 broken call to my_build_array_ref.
8028 Wed Sep 8 13:03:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
8030 * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
8031 Don't use store_init_value, since it calls digest_init instead
8032 of chill_digest_init.
8033 * ch-except.c (finish_handler_array): Use build1 (ADDR_EXPR, ...)
8034 instead build_unary_op to avoid C-specific optimizations.
8035 * ch-typeck.c (my_build_array_ref): Don't use default_conversion
8036 to convert array to pointer.
8037 * c-typeck.c (process_init_default): New function, to support
8038 default values for array tuples in Chill.
8039 * c-typeck.c (default_conversion): Don't convert array to pointer
8041 * ch-decl.c (digest_constructor): New function; used to be guts
8042 of chill_digest_init. Now recursive, to handle nested tuples.
8044 * ch-decl.c (chill_digest_init): Handle struct labels.
8045 * ch-grant.c (get_tag_value): Use decode_constant in general case.
8046 * ch-grant.c (decode_constant): Add support for lots of missing
8047 binary and unary operators.
8049 Wed Sep 8 10:11:04 1993 Bill Cox (bill@rtl.cygnus.com)
8051 * ch-lang.c: Look for '-I' option for seize file path.
8052 * ch-lex.l: Fix comment about above option.
8054 Wed Sep 8 00:37:32 1993 Per Bothner (bothner@rtl.cygnus.com)
8056 * ch-satisfy.c: Move code to set (and restore) file-and-line
8057 from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
8058 alias decls that refer to real decls with errors.
8059 * ch-actions.c (lang_init): Move to ch-lang.c.
8060 * ch-decl.c (init_decl_processing): Move code to initialize
8061 file-and-line from here ...
8062 * ch-lang.c (lang_init): ... to here, to avoid clobbering.
8064 * ch-decl.c (chill_digest_init): Add support for SET_TYPE,
8066 * ch-typeck.c (chill_expand_typle): Just call chill_digest_init.
8067 * c-typeck.c: Fix various things that got broken
8068 in the latest merge.
8070 Tue Sep 7 15:45:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
8072 * ch-decl.c (build_enumerator): Handle a "unnamed set element"
8073 (obsolete feature) by generating a dummy name.
8074 * ch-decl.c (finish_decl): Call rest_of_decl_compilation with
8075 "correct" value of top-level (to get better debugging output).
8076 * ch-decl.c (bind_saved_names): Allow a null DECL_NAME.
8078 Tue Sep 7 15:48:35 1993 Bill Cox (bill@rtl.cygnus.com)
8080 * ch-actions.c (chill_expand_return): Correct breakage
8081 due to recent fsf merge.
8083 Tue Sep 7 11:16:10 1993 Bill Cox (bill@rtl.cygnus.com)
8085 * .cvsignore: Add multilib.h.
8086 * ch-decl.c (chill_digest_init): New function. Calls were
8087 changed, since it has fewer parameters than old digest_init.
8088 * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
8090 (elementlist): Delete unused code.
8091 * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
8092 * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
8093 * ch-tree.h: Delete digest_init prototype.
8094 * ch-typeck.c (digest_init): Much new code.
8096 Tue Sep 7 12:06:28 1993 Bill Cox (bill@rtl.cygnus.com)
8098 * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
8099 files to their pre-init-change state.
8101 Mon Sep 6 15:28:27 1993 Bill Cox (bill@rtl.cygnus.com)
8103 Preliminary adaptation to rms' new initializer code.
8104 * ch-decl.c (do_decl): Call chill_digest_init, not
8105 digest_init, which rms made static.
8106 * ch-expr.c (chill_truthvalue_conversion): Delete C-
8108 * ch-loop.c (init_loop_counter): Indent for readability.
8109 * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
8110 * ch-tree.h: Prototype changes for new init code.
8111 * ch-typeck.c (chill_expand_tuple): Call new init code.
8112 * chill.texi: Add necessary '-f' prefix on options.
8114 Wed Sep 1 13:21:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
8116 * ch-convert.c (build_array_type_for_scalar),
8117 ch-tasking.c (build_chill_receive_case_end): Index type
8118 specification is now chain of types (not chain of TREE_LIST).
8119 * ch-satisfy.c (satisfy): Don't try to satisfy the
8120 abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
8121 * ch-expr.c (build_chill_binary_op): If pass 1, do NOT
8122 call finish_chill_binary_op.
8123 * ch-parse.y (arrayindex): Simplify.
8125 Tue Aug 31 14:57:35 1993 Bill Cox (bill@rtl.cygnus.com)
8127 * ch-decl.c (print_lang_decl): Print weak-name status.
8128 (print_lang_identifier): Print signal_data as T or F.
8129 * ch-lex.l (convert_bitstring, convert_charliteral,
8130 convert_float, convert_number): Pass string directly to convert
8131 as a parameter. Return token code consistently, return 0
8133 (equal_number): Parse differently, allowing hex, binary
8134 and octal constants.
8135 * ch-parse.y (dowithaction, structured_variable): Only
8136 push/pop scopes once per DO WITH.
8137 (structured_variable_list): Check ignore_actions flag here.
8138 * gcc.c: Delete 'traditional' from string, add 'itu'
8139 as the standard flag's name.
8141 Mon Aug 30 15:12:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
8143 * ch-typeck.c, ch-tree.h (build_chill_range_type): Take 3
8144 parameters instead of 2 (explicit low and high bounds).
8145 * ch-parse.y (arrayindex): Build range type from low:high.
8146 (rangesize, optrangesize): Removed.
8147 (where appropriate): Use new build_chill_range_type interface.
8148 * ch-grant.c: Clean up writing of range and array types.
8149 * ch-satisfy.c (satisfy): Don't ignore the return value of
8150 layout_chill_array_type. (It may be an error mark.)
8151 * ch-typeck.c (build_chill_array_type): Simplify.
8152 * ch-typeck.c (layout_chill_array_type): Clean up checks.
8154 Fri Aug 27 12:55:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
8156 * ch-decl.c (decl_temp1): Set DECL_ASSEMBLER_NAME.
8157 (push_chill_extern_function) Don't set current_function_decl.
8158 * ch-parse.y (tupleelement): Don't wrap index is a TREE_LIST
8159 (i.e. a range), don't wrap a PAREN_EXPR around it.
8160 * ch-grant.c (decode_constant): For tuple CONSTRUCTORs,
8161 add support for ranges in purpose.
8163 Wed Aug 25 16:58:13 1993 Bill Cox (bill@rtl.cygnus.com)
8165 * .cvsignore: Add g++.sum
8166 * ch-actions.c (chill_expand_result): Stop building a temp.
8167 Assign the expression directly into function's DECL_RESULT.
8168 * ch-decl.c: Add formfeeds.
8169 (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
8170 (push_chill_function_context): Delete C pedwarn message.
8171 * ch-expr.c: Move builtin functions together.
8172 * ch-parse.y (end_function): Delete unused code.
8173 Reformat %union for readability. Delete _MAX and _MIN
8176 Wed Aug 25 13:24:06 1993 Bill Cox (bill@rtl.cygnus.com)
8178 * ch-actions.c (get_result_tmp_name): Delete unused function.
8179 (chill_expand_result, chill_expand_return): Rewrite for
8181 * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
8182 chain field, so we can make a temp, evaluate a RESULT action's
8183 expression into it, and hang it on here.
8184 * ch-parse.y (end_function): Look for RESULT temps to emit.
8185 (assertaction): Indentation.
8187 Wed Aug 25 08:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
8189 * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
8190 It wasn't used anyway.
8192 Tue Aug 24 17:51:18 1993 Bill Cox (bill@rtl.cygnus.com)
8194 * ch-actions.c (chill_expand_result, chill_expand_return):
8195 No need to make a temp for the value, just use DECL_RESULT.
8197 Tue Aug 24 16:38:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
8199 * ch-tree.c (layout_powerset_type): Remove redundant code.
8200 Generalize (in error message) to also handle bitstrings.
8201 * ch-tree.c (build_bitstring_type): Remove all layout-like
8202 stuff, and defer that to layout_powerset_type.
8203 * ch-expr.c (chill_expand_expr): For various SET_xxx_EXPRs,
8204 allocate stack temp for target using correct mode.
8206 Tue Aug 24 10:27:19 1993 Bill Cox (bill@rtl.cygnus.com)
8208 * ch-actions.c, ch-decl.c, ch-except.c,
8209 ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
8210 ch-typeck.c: Change build_modify_expr calls to
8211 build_CHILL_modify_expr calls.
8212 * ch-expr.c (build_chill_modify_expr): Adapted from
8213 build_modify_expr in c-typeck.c.
8215 Mon Aug 23 16:48:39 1993 Bill Cox (bill@rtl.cygnus.com)
8217 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
8218 ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
8219 ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
8220 Major re-allocation of functions to files.
8222 Mon Aug 23 12:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
8224 Thanks for the tip, Jim.
8225 * Makefile.in: Add dependency lines for ch-except.o and
8226 ch-satisfy.o. Correct dependency lines for ch-convert.o,
8227 ch-expr.o, ch-inout.o, and ch-loop.o.
8228 (chill, install-common): Add clean-up commands.
8230 Sat Aug 21 17:11:26 1993 Bill Cox (bill@rtl.cygnus.com)
8232 * ch-decl.c (get_type_precision): New function.
8233 (layout_enum): Call it.
8234 * ch-tree.c (layout_powerset_type, build_bitstring_type):
8237 Sat Aug 21 13:59:40 1993 Bill Cox (bill@rtl.cygnus.com)
8239 * ch-decl.c (init_decl_processing): Define setbitpowerset
8241 * ch-expr.c (chill_expand_assignment): Call setbitpowerset
8243 * ch-parse.y: Indentation.
8245 Fri Aug 20 17:29:56 1993 Bill Cox (bill@rtl.cygnus.com)
8247 * ch-parse.y: Delete unused %type declaration.
8248 * ch-tasking.c (build_signal_struct): Delete return, since
8249 function returns void.
8250 * ch-typeck.c: Indent to standard.
8251 * stor-layout.c: Fix comment.
8252 * toplev.c: Change -L option ti -I.
8253 * varasm.c (emit_set_data): Align set constant to word
8256 Fri Aug 20 08:20:07 1993 Bill Cox (bill@rtl.cygnus.com)
8258 * ch-actions.c: Fix indentation, comments.
8259 * ch-decl.c (push_chill_extern_signal): Use same interface
8260 as build_signal_struct.
8261 * ch-parse.y (quasi_signaldef): Move build_signal_decl
8262 here to sigdef. Add quasi_signal to distinguish contexts
8263 where sigdef gets used.
8264 * ch-tasking.c: Replace make_signal_struct and build_signal_decl
8265 with build_signal_decl, which doesn't loop through a
8267 * ch-tree.h: Fix protos.
8269 Wed Aug 18 17:36:53 1993 Bill Cox (bill@cygnus.com)
8271 * ch-actions.c: Fix comments.
8272 * ch-decl.c (push_modedefs): Return the new decl.
8273 (shadow_record_fields): Move pushlevel (0) calls into
8274 the grammar, so they'll get done in both passes.
8275 * ch-parse.y (dowithaction): Always compute & save # of
8276 'with' variables seen (both passes), and always pop that
8278 (structured_variable_list): Always chain variables into a list.
8279 (structured_variable): Put pushlevel here (from shadow_record_fields).
8280 * ch-tasking.c: Indentation fixes.
8281 * ch-tree.h: Change proto.
8282 * chill.texi: Add Blue Book section numbers to unimplemented
8285 Wed Aug 18 15:48:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
8287 * ch-actions.c (build_generalized_call): New function.
8288 Classifies semantically (if pass 2) this that look like calls.
8289 * ch-parse.y (call): Invoke build_generalized_call.
8290 * ch-parse.y (sigdef): Use defining_occurrence instead of NAME.
8291 * ch-parse.y (opt_untyped_exprlist): New non-terminal.
8292 * ch-satisfy.c (satisfy): Handle CALL_EXPR.
8294 Tue Aug 17 16:36:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
8296 * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
8298 Mon Aug 16 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8300 * ch-tree.h (TUPLE_NAMED_FIELD): New macro.
8301 * ch-parse.y (labelled structure tupleelement):
8302 Set TUPLE_NAMED_FIELD flag.
8303 * ch-grant.c (decode_constant): Check for TUPLE_NAMED_FLAG.
8304 * ch-satisfy.c (satisfy): Check for TUPLE_NAMED_FLAG.
8305 Do satisfy the elements of a CONSTRUCTOR even if call
8306 chill_expand_tuple isn't correct.
8307 * ch-satisfy.c (satisfy): Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
8308 * ch-parse.y (label_spec): Defer any semantic checking until ...
8309 * ch-decl.c (layout_chill_variants): ... here.
8310 Also make sure to call layout_type on the union type.
8311 * ch-decl.c (bind_saved_names): For weak names, allocate an
8312 ALIAS_DECL, rather than a CONST_DECL.
8314 Add support for implied (weakly visible) names.
8315 * ch-tree.h (DECL_WEAK_NAME): New macro.
8316 * ch-satisfy.c (satisfy of IDENTIFIER_NODE): Don't complain
8317 if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
8318 * ch-decl.c (proclaim_name): Handle DECL_WEAK_NAME appropriately.
8319 * ch-decl.c (concat_lists, find_implied_types): New functions.
8320 * ch-decl.c (bind_saved_names): Search for implied names.
8321 * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
8322 * ch-lang.c (layout_chill_struct_type): Don't use
8323 C_DECL_VARIABLE_SIZE.
8325 Mon Aug 16 16:10:43 1993 Bill Cox (bill@rtl.cygnus.com)
8327 * ch-actions.c: Delete extra space in error message.
8328 * ch-parse.y: Fix comment.
8329 * expr.c (store_constructor): Avoid passing NULL to convert,
8330 and getting back an error_mark_node and trying to process
8333 Mon Aug 16 14:41:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
8335 * ch-decl.c: Add more overview comments.
8336 * ch-decl.c (proclaim_decl): New function.
8337 * ch-decl.c (temp_pushdecl, struct shadowing): Removed.
8338 * ch-decl.c (bind_saved_names): Remove blevel parameter;
8339 use current_scope global instead. Do some other cleanups.
8340 * ch-decl.c (save_expr_under_name): Create an ALIAS_DECL.
8341 * ch-decl.c (pushdecllist, save_expr_under_name): Use proclaim_decl.
8342 * ch-satisfy.c (satisfy, safe_satisfy_decl): Be more careful
8343 to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
8345 * chill.texi: Start collecting Chill documentation here.
8346 * ch-parse.y (mode): Ignore READ specifier, for now.
8348 Mon Aug 16 11:13:07 1993 Bill Cox (bill@rtl.cygnus.com)
8350 * ch-actions.c (chill_comptypes): Correct handling reference
8352 (build_chill_length, build_chill_num,
8353 build_chill_sizeof): Convert result to CHILL integer.
8354 (build_chill_function_call): Clean up INOUT and OUT
8356 * ch-decl.c (build_chill_function_type): Handle INOUT and
8358 * ch-loop.c: Fix up comments.
8359 * ch-parse.y: Fix up comments.
8361 Sun Aug 15 15:06:01 1993 Bill Cox (bill@rtl.cygnus.com)
8363 * ch-actions.c (build_chill_lower, build_chill_upper):
8364 Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
8365 * ch-decl.c (save_expr_under_name): New function to save
8366 addressing expressions for DO WITH and DO FOR handling.
8367 (handle_one_level): Call new function.
8368 * ch-loop.c (init_loop_counter): Call it here, too.
8369 Check lp->user_var before passing it to lookup_name.
8370 (high_domain_value, low_domain_value): Correct call
8371 to build_chill_upper and build_chill_lower.
8372 (begin_chill_loop, end_chill_loop): Move pushlevel,
8373 poplevel up into the grammar, so they're done in both
8375 * ch-parse.y (doaction): Unconditionally make a scope
8376 for a loop, pop it later.
8377 (controlpart, iteration): Save return from
8378 build_chill_iterator.
8379 * expr.c: Readability changes.
8381 Sat Aug 14 19:42:32 1993 Bill Cox (bill@rtl.cygnus.com)
8383 * ch-expr.c (chill_expand_case_expr): Complete rewrite
8384 for 2-pass. About 1/2 the size, too.
8385 * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8386 This assures that a label preceding a module's first action
8387 is enclosed in the module-level function that's generated.
8389 Sat Aug 14 14:56:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
8391 Re-implement how EXIT is done.
8392 'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8393 'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8394 Hence we no longer need any support for EXIT in stmt.c.
8395 * stmt.c (stamp_nesting_label, expand_exit_labelled): Removed.
8396 * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8397 * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8398 * ch-parse.y: Re-write bracked actions to support EXIT new way.
8399 * ch-decl.c, ch-loop.c: Remove calls to stamp_nesting_level.
8400 * ch-parse.y: Replace SC by new token semi_colon, which
8401 resets the 'label' global. Also make sure that label gets
8402 reset whenever we might start a new action statement.
8403 * ch-parse.y (possibly_define_exit_label): New function.
8405 * ch-except.c (chill_start_on): Wrap an ADDR_EXPR round the jmpbuf.
8406 * ch-grant.c (chill_finish_compile): Make sure
8407 get_file_function_name is only called once.
8408 * ch-expr.c (chill_expand_array_assignment): Use store_expr,
8409 instead of incorrectly calling emit_block_move.
8411 * ch-parse.y (procedure): Call push_chill_function_context
8412 in *both* passes (if nested).
8413 * ch-parse.y (primval): Call get_type_of before chill_expand_type.
8414 * ch-parse.y (tupleelement): Only build PAREN_EXPR during pass 1.
8416 Fri Aug 13 16:36:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8418 Re-implement GRANT and SEIZE, to support prefixes and prefix
8419 rename. All of the Blue Book semantics for these should
8420 now work (except FORBID).
8421 * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8422 DECL_POSTFIX, DECL_POSTFIX_ALL): New ALIAS_DECL layout and macros.
8423 * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8424 decl_check_rename): New functions.
8425 * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8426 * ch-satisfy.c (satisfy_decl): Handle SYN initialized with tuple.
8427 * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8428 * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8429 * ch-grant.c (decode_prefix_rename): New function.
8430 Use to print out GRANT and SEIZE statements.
8431 * ch-decl.c (ALL_POSTFIX): New global variable.
8432 * ch-decl.c (bind_saved_names, pop_module): Change to use new
8433 ALIAS_DECL layout, and support general prefix rename and ALL.
8434 * ch-decl.c (various places): Don't barf if DECL_ANME is NULL.
8435 * ch-parse.y (build_prefix_clause): New function (handle PREFIXED).
8436 * ch-parse.y (optprogendname, optname): Rename to opt_end_label.
8437 * ch-parse.y: Add support for compound name strings, but defer
8438 using all over teh place, due to parser ambiguities.
8439 Howver, do use defining_occurrence where appropriate.
8440 * ch-parse.y: Re-write syntax and semantics of GRANT and SEIZE
8441 statements to support Blue Book functionality. Neato!
8443 Fri Aug 13 17:10:52 1993 Bill Cox (bill@rtl.cygnus.com)
8445 * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8446 * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8447 (decl_temp): Deleted.
8448 * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8449 * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8450 readability, add comment.
8451 * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8452 * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8454 Fri Aug 13 13:39:59 1993 Bill Cox (bill@rtl.cygnus.com)
8456 * ch-decl.c (decl_temp): Break the chain of decls. This
8457 prevents an infinite loop.
8458 * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8459 * ch-lex.l (equal_number): Check passes in looking up a
8461 * ch-parse.y: Fix comments.
8462 * ch-tasking.c (tasking_setup): Only act in pass 2.
8463 (make_signal_struct, build_signal_decl,
8464 build_chill_receive_case_label): Don't go indirect
8465 thru NULL decl pointer.
8467 Thu Aug 12 11:02:34 1993 Bill Cox (bill@rtl.cygnus.com)
8469 * ch-actions.c (route_to_predefined_function): New function called
8470 from build_chill_function_call, to call the proper predefined routine.
8471 (build_chill_card, build_chill_length, build_chill_lower,
8472 build_chill_max, build_chill_min, build_chill_num,
8473 build_chill_pred, build_chill_sizeof, build_chill_succ,
8474 build_chill_upper): Rewritten to run only in pass 2.
8475 * ch-decl.c (init_decl_processing): Build predefined functions for card,
8476 length, lower, max, min, num, pred, sizeof, succ and upper. Delete
8477 unused builtin_function calls.
8478 * ch-grant.c (chill_finish_module_code): Save current_function_decl
8479 before calling finish_chill_function, and use that to build the
8480 initializer structure.
8481 * ch-lex.l: Remove following tokens, since they're now just predefined,
8482 not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8484 * ch-loop.c: Readability, indentation changes.
8485 * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8486 sizeof, succ and upper. Delete special rules for calls to these.
8487 Delete mode_location and upper_lower_arg non-terminals.
8488 (pmodearg): Eliminate convolutions.
8489 (call): Add rule for typename parameter.
8490 * ch-tasking.c: Readability changes.
8491 * ch-tree.h: Add prototypes.
8493 Thu Aug 12 00:38:17 1993 Per Bothner (bothner@kalessin.cygnus.com)
8495 * ch-decl.c (save_decl): Set DECL_CONTEXT (decl).
8496 * ch-grant.c (chill_finish_module_code): Call
8497 finish_chill_function with nested==0.
8498 * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y: Rename
8499 {push,pop}_c_function_context to {push,pop}_chill_function_context.
8500 * ch-parse.y (end_function): If nested, call
8501 pop_chill_function_context regardless of which pass we're in.
8503 Wed Aug 11 02:34:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
8505 * ch-actions.c (finish_chill_binary_op): Handle error marks.
8506 * ch-decl.c (do_decl): Laying out decl and generating rtl
8507 is too late to do here (if there are forward references), so ...
8508 * ch-satisfy.c (satify_decl): ... do it here instead.
8509 * ch-decl.c (finish_enum): Fixup types of enum decls now.
8510 * ch-satisfy.c (safe_satisfy_decl): New routine. Supports
8511 checking illegal cyclic definitions.
8512 All *satisfy* routines now take a 'chain' parameter (instead
8513 of 'lookup_only') used for checking cycles.
8514 * ch-satisfy.c (satisfy_decl): Return DECL_INITIAL if appropriate.
8515 * ch-satisfy.c (satisfy): Lots of little fixes.
8517 * ch-lex.l (init_lex): Make all the standard ridpointers be
8518 lowercase, so that lookup_name on lower-cased user input
8519 will find the standard types.
8520 * ch-lex.l: Remove all the standard types, in effect
8521 converting them from reservered anmes to predefined names.
8522 * ch-lex.l, ch-parse.y: Remove PREDEF_MODEDECL - no longer used.
8523 * ch-grant.c (gfile): Rename to grant_file_name.
8524 * ch-lex.l (yywrap): Don't try to seize current grant_file_name.
8526 * initname.c: Removed. get_file_function_name is now in tree.c
8527 * Makefile.in (CHILL_OBJS): Remove initname.o
8529 * ch-decl.c (do_decl): New function, based on loop body of do_decls,
8530 * ch-decl.c (do_decls): Just call do_decl.
8531 * ch-grant.c (chill_finish_module_code): Minor cleasnups.
8532 Use new do_decl routine. Clear init_entry_decl's source line.
8533 * ch-grant.c (print_proc_tail): Fix for new param list structure.
8534 * ch-parse.y (whatpdef): Removed. Cleaned up procedure
8535 and process, allowing proper end-label-checking.
8536 * ch-typeck.c (build_chill_cast): Remove decl->type conversion.
8538 Wed Aug 11 00:33:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
8540 * ch-decl.c (layout_enum): Don't call rest_of_type_compilation.
8542 * ch-lex.l (RETURN_PREDEF): Don't call lookup_name.
8543 * ch-expr.c (build_chill_indirect_ref): Call get_type_of.
8544 * ch-parse.y (call): Call get_type_of before build_chill_cast.
8546 Tue Aug 10 21:33:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
8548 * ch-actions.c (build_char_array_expr): If a concat operand is
8549 a constant char, convert it to a STRING_CST.
8550 * ch-decl.c (finish_decl): Call rest_of_decl_compilation
8552 * ch-typeck.c (build_chill_cast): Allow type to be TYPE_DECL.
8554 * ch-parse.y (actionlabel): Call define_label in both passes.
8555 * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8556 New functions, using lookup_name to find LABEL_DECLs.
8557 * ch-parse.y (GOTO, EXIT): Use above new functions.
8558 * ch-tasking.c (struct rc_state_type *current_rc_state):
8559 Use to store state for the current receive case statement.
8560 (build_chill_receive_case_start, build_chill_receive_case_end):
8561 Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8562 * ch-decl.c: Remove all stuff dealing with specific label scopes,
8563 including functions push_label_level, pop_label_level.
8564 * ch-decl.c (define_label): Re-write for 2-pass.
8565 * ch_tree.h (lang_identifier): Removed label_value.
8566 * ch-tree.h (IDENTIFIER_LABEL_VALUE): Removed.
8568 * ch-parse.y (modename): Changed to yield identifier, not type.
8569 This allows following changes, which work better for 2-pass:
8570 (location): primval ARROW optmodename -> primval ARROW optname.
8571 (primval): Tuple can now be prefixed by unsatisfied name.
8573 * ch-actions.c (chill_grant_only): Renamed to grant_only_flag.
8574 * ch-lex.l (yywrap): Don't read seizefiles if grant_only_flag.
8575 * ch-decl.c (switch_to_pass_2): Exit if grant_only_flag,
8577 * ch-satisfy.c (satisfy): Support CONSTRUCTOR, REFERENCE_TYPE.
8578 * ch-satisfy.c (satisfy_decl, satisfy): Kludge around
8579 to a TYPE_DECL can be simplified to its type.
8580 * ch-expr.c (build_chill_indirect_ref): New function.
8581 * ch-lex.l (prepare_paren_colon): Make kludge even uglier,
8582 since the left paran might already have been seen.
8583 * ch-lang.c (make_chill_pointer_type): Allow parameter
8584 to select pointer or reference type.
8585 (build_chill_reference_type): New function.
8586 Either function: Be more careful (in case arg is identifier).
8587 * ch-except.c (initialize_exceptions): Make
8588 exception_stack_decl be public.
8589 * ch-actions.c (build_char_array_expr): Can only
8590 constant fold if operands are STRING_CST.
8591 * ch-grant.c (raw_decode_mode): Allow TYPE_DECL.
8592 (chill_finish_compile: Set TREE_PUBLIC of init function to 1.
8594 Tue Aug 10 17:55:12 1993 Bill Cox (bill@rtl.cygnus.com)
8596 * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8597 * ch-decl.c: Fix comment.
8598 * ch-parse.y (pmodearg): Build tree_list in all cases.
8599 * varasm.c (assemble_tasssking_entry): Delete unused code.
8601 Tue Aug 10 13:58:21 1993 Bill Cox (bill@rtl.cygnus.com)
8603 * ch-actions.c (build_char_array_expr): save/restore
8604 a tree's constant status.
8605 (build_chill_binary_op): Don't convert an expression
8606 if the type we're converting to is NULL.
8607 * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8608 Call it from convert, and from ..
8609 * ch-expr.c (chill_expand_assignment): call new function.
8610 Move convert code earlier, too.
8611 * ch-decl.c (lookup_name): Delete bogus error message.
8612 * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8614 * ch-typeck.c (valid_array_index): Comment out some strange code
8615 which now seg faults.
8616 (chill_expand_tuple): Re-enable prepending of VARYING
8618 (chill_similar): Return FALSE if either mode is NULL_TREE.
8620 Tue Aug 10 07:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
8622 * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8623 Add commented-out calls to pushtag, in case we decide later
8624 to fill in TYPE_STUB_DECL for dbxout.
8625 * ch-lang.c (build_chill_struct_type): Add commented-out
8626 calls to pushtag, in case we decide later to fill in
8627 TYPE_STUB_DECL for dbxout.
8629 Mon Aug 9 23:09:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
8631 * ch-decl.c (chill_seize): Don't get_next_next in pass 2.
8632 * ch-decl.c (get_next_decl): Skip ALIAS_DECLs.
8633 * ch-decl.c (bind_saved_names): Handle SEIZE ALL.
8634 * ch-lang.c (layout_chill_struct_type): Don't call
8635 rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8636 * initname.c (get_file_function_name): Get new file and
8637 function for language-independent constructor name generation.
8638 * ch-grant.c (get_init_function_id): Removed.
8639 * ch-grant.c (chill_finish_compile): Call get_file_function_name
8640 instead of get_init_function_id.
8642 Mon Aug 9 18:33:36 1993 Bill Cox (bill@rtl.cygnus.com)
8644 * ch-decl.c: Formfeeds and comments.
8645 * ch-parse.y (quasi_formpar): Treat just like real formpar.
8646 Eliminate restriction on single name.
8647 (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8649 Mon Aug 9 17:21:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
8651 * ch-lex.h (enum rid), ch-lex.l (init_lex): Added RID_ALL.
8652 * ch-lang.c (build_chill_pointer_type): Layout the pointer type,
8653 if the pointee is laid out, even if pass==1.
8654 * ch-parse.y: Set ignore_exprs=(pass=2) for entire spec module.
8656 Mon Aug 9 15:44:01 1993 Bill Cox (bill@rtl.cygnus.com)
8658 This version compiles the 5-line program. Thanks, Per!
8659 * ch-decl.c (print_lang_decl, print_lang_identifier):
8660 Add appropriate calls to indent_to(). Rename reverse_scopes
8661 to switch_to_pass_2, and wait to set pass = 2 until
8663 * ch-grant.c (chill_finish_module_code): Set module_init_list
8664 non-NULL in pass 1; in pass2, chain on the module_init
8666 (chill_finish_compile): Clear module_init_list to NULL.
8667 * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8668 Rename reverse_scopes to switch_to_pass_2, delete setting
8670 * ch-tree.h: Rename reverse_scopes proto.
8672 Mon Aug 9 13:21:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
8674 * ch-decl.c (build_enumerator): If name is NULL,
8675 don't call save_decl or get_next_decl.
8676 * ch-decl.c (layout_enum): Fix calculation of next value.
8677 * ch-grant.c (print_enumeral): Re-do for new 2-pass scheme.
8678 * ch-grant.c (decode_constant): Better CONSTRUCTOR support.
8680 Mon Aug 9 11:59:12 1993 Bill Cox (bill@rtl.cygnus.com)
8682 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8683 ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8684 Lots of new prototypes.
8686 Mon Aug 9 01:00:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
8688 * ch-lex.h: Remove unused RID_'s. Make sure RID_MAX is last.
8689 * ch-decl.c (init_decl_processing): Moved ridpointers
8690 initialization to init_lex(). Use them consistently.
8691 * ch-lex.l (RETURN_PREDEF): New macro. Uses ridpointers
8692 for all preferedined types.
8693 * ch-lex.l (init_lex): Upper case all RIDs, so grantfiles
8694 (and error messages?) will use uppercase.
8695 * ch-decl.c (build_chill_enumerator): Merged into build_enumerator.
8696 * ch-lang.c (finish_chill_enum): Merged into ...
8697 * ch-decl.c (finish_enum): .... this function.
8698 * ch-decl.c (layout_enum): New function. Does all the pass-2
8699 stuff for enumerations.
8700 * ch-decl.c (finish_enum, start_enum): Only trivial pass-1 stuff.
8701 * ch-satisfy.c (satisfy): Support ENUMERAL_TYPE. Improve ranges.
8702 * ch-parse.y: Check ignore_exprs instead of ignore_decls when
8703 parsing and building types.
8705 Sun Aug 8 16:26:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8707 * ch-lex.h: Add some missing RID_'s.
8708 * ch-decl.c (init_decl_processing):
8710 Sun Aug 8 15:32:54 1993 Bill Cox (bill@rtl.cygnus.com)
8712 * ch-grant.c (module_has_actions): Delete this and all
8713 references. It was a botch.
8714 (chill_finish_module_code): Move finish_chill_function_call inside
8715 the test whether actions were found at module level.
8716 Use current_function_name in the initializer build,
8717 and init_entry_id in the module_list setup.
8718 (chill_finish_compile): Call lookup_name to get the
8719 decl from a module_init_list entry.
8720 * ch-parse.y: Revert module_has_actions additions.
8721 * ch-satisfy.c (satisfy): After satisfying the type referenced
8722 by a pointer_type, call layout type for the pointer.
8723 * ch-tasking.c (tasking_registry): Only active in pass 2.
8724 * ch-typeck.c: Call build_chill_pointer_type everywhere.
8726 Sun Aug 8 13:13:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
8728 * ch-tree.def (PAREN_EXPR): New unary op: '(' EXPR ')'.
8729 * ch-parse.y (primval): If pass 1, generate PAREN_EXRR.
8730 * ch-satisfy.c (satisfy): Reduce PAREN_EXPR to its operand.
8731 * ch-grant.c (decode_const): Handle PAREN_EXPR.
8732 * ch-decl.c (pop_module): Fix think. Inprove error message.
8734 Sun Aug 8 10:31:04 1993 Bill Cox (bill@rtl.cygnus.com)
8736 Generally, replace 'function' with 'procedure'
8737 and 'type' with 'mode' in error/warning messages.
8738 * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8739 * ch-decl.c: See Generally.
8740 (init_decl_processing): Call build_tasking_enum from here.
8741 Now, it doesn't need a flag to do its work only once.
8742 Also, build the TaskingStruct decl here.
8743 * ch-grant.c: Remove references to `current_grant_file';
8744 there's now only one. See Generally. Do gcc -Wall cleanup.
8745 * ch-lex.l: Remove references to `current_grant_file'
8746 and delete USE_GRANT_FILE token.
8747 * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8748 * ch-tasking.c (tasking_setup): Move TaskingStruct build
8749 to init_decl_procesing. Delete build_tasking_enum calls.
8750 * ch-tree.c: See Generally.
8751 * ch-tree.h: Add proto for build_tasking_struct.
8753 Sun Aug 8 08:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8755 * ch-decl.c: Make unnamed_module_number static, reset it to zero
8756 before pass 2, so same module names get generated in both passes.
8757 (push_module): Return user name or generated name.
8758 (init_decl_processing): Build __tmp_initializer_type.
8759 Code moved from chill_finish_module_code.
8760 * ch-grant.c: New flag module_has_actions. Set TRUE by push_actions,
8761 used, reset by chill_finish_module_code. Replaces test of
8762 module_function_name. Shuffled finish-up code to end of module.
8763 (chill_finish_module_code): Use global_bindings_p to determine
8764 'nested' parameter for finish_chill_function. Use new
8765 module_has_actions flag to trigger generation of module_init list
8766 entry. We now can handle not only multiple modules per file,
8767 but modules nested inside functions (I think).
8768 * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8769 * ch-parse.y (push_actions): Set module_has_actions flag.
8770 (modulion, spec_module): Save possibly-generated module name
8771 returned by push_module.
8772 * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8773 case for POINTER_TYPE.
8774 * ch-tasking.c: Replace build_pointer_type calls with
8775 build_chill_pointer_type calls.
8776 * ch-tree.h: Fix, add prototypes.
8778 Sat Aug 7 17:32:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8780 * ch-parse.y: Remove many useless tests for ignore_decls.
8781 * ch-parse.y: Remove obsolete support for _EXTERN and _INIT.
8782 * ch-parse.y: Reset ignore_exprs while parsing declarations,
8783 but handle initializers appropriately.
8784 * ch-grant.c (decode_constant): Update (for 2-pass) support
8785 for CONSTRUCTOR and SET_TYPE.
8786 * ch-grant.c (chill_initializer_name): Renamed to
8787 module_function_name.
8788 * ch-grant.c (function_generated): Removed;
8789 use module_function_name != NULL instead.
8790 * ch-tree.h, ch-parse.y: Removed unused current_locnamelist.
8791 * ch-decl.c (push_modedef): Simplify to take just one mode.
8792 * ch-tasking.c (make_process_struct, make_signal_struct):
8793 Change calls to push_modedef correspondingly.
8794 * ch-tree.c (build_powerset_type): Move the stuff that's
8795 suitable for pass 1 into new function make_powerset_type,
8796 and that for pass 2 into new function layout_powerset_type.
8797 * ch-lang.c: Move pass-1 stuff from build_chill_pointer_type
8798 into new function make_chill_pointer_type, and split
8799 build_chill_struct_type into make_chill_struct_type
8800 and layout_chill_struct_type.
8801 * ch-decl.c (grok_chill_variantdefs): Similarly split up
8802 into make_chill_variants and layout_chill_variants.
8803 * ch-satisfy.c (satisfy): Add support for SET_TYPE, and UNION_TYPE.
8804 Call layout_chill_struct_type for RECORD_TYPE.
8806 Sat Aug 7 09:59:55 1993 Bill Cox (bill@rtl.cygnus.com)
8808 Fixup previous check-in.
8809 * ch-decl.c: Restore unnamed_module_number, which *was*
8811 * ch-grant.c (get_init_function_id): Return type s.b. tree.
8813 Sat Aug 7 09:28:17 1993 Bill Cox (bill@rtl.cygnus.com)
8815 * ch-decl.c (print_lang_decl, print_lang_type): Add
8816 correct parameter list. Add print statements for
8817 nesting_level, signal_dest, buffer_size, and the
8819 (decl_temp, decl_temp1): Delete unused code.
8820 (init_decl_processing): Call build_instance_type and
8821 build_tasking_type in both passes.
8822 Generally change current_scope comparisons against
8823 global_scope to global_biidings_p calls.
8824 * ch-except.c (push_handler): Add space before parameter paren.
8825 * ch-grant.c (chill_start_module, chill_finish_module,
8826 chill_finish_compile): Complete re-write for 2-pass and
8827 multiple modules per source file.
8828 * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8829 * ch-tasking.c: Diffused small adaptations to 2-pass.
8830 * ch-tree.h (print_lang_decl, print_lang_type): Correct
8832 (chill_finish_module_code): Add module name parameter.
8833 * ch-typeck.c: Fix comments, add whitespace.
8835 Fri Aug 6 12:17:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
8837 * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8838 way I allocated the shadow_list on an obstack was too fragile,
8839 so just use xmalloc/free instead.
8841 Fri Aug 6 08:31:49 1993 Bill Cox (bill@rtl.cygnus.com)
8843 * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8844 TYPE_MAX_VALUE for vanilla integer type. Only need
8845 to satisfy TREE_TYPE for integer range type.
8847 Fri Aug 6 00:53:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
8849 * ch-lang.c (build_chill_range_type): Split up into two new
8850 functions (make_chill_range_type, layout_chill_range_type);
8851 only former part is done in pass 1.
8852 * ch-lang.c (build_chill_array_type): Split up in the same
8853 way (yielding make_chill_array_type, layout_chill_array_type).
8854 * ch-satisfy.c (satisfy): Handle array and range types.
8855 * ch-tree.h (TYPE_RANGE_PARENT): Removed. Not used.
8856 * ch-parse.y (mode2): Handle optional rangesize.
8858 Thu Aug 5 15:13:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
8860 * ch-grant.c (print_an_int): Re-enable (but don't search for SYN).
8861 * ch-grant.c (raw_decode_mode): Support printing
8862 of an IDENTIFIER_NODE (unresolved type name).
8863 * ch-grant.c (decode_constant): Support printing of an unresolved
8864 IDENTIFIER_NODE, as well as some kinds of binary operations.
8865 * ch-grant.c (grant_one_decl): Don't call globalize_decl.
8867 * ch-grant.c (decode_decl): Add support for ALIAS_DECLs
8868 (from SEIZEs and GRANTs).
8869 * ch-grant.c: Remove support for multiple grantfiles.
8870 * ch-grant.c, ch-parse.y: Removed grant_count, for now at least.
8871 * ch-lex.h (in_seizefile): Moved to ch-tree.h.
8872 * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c: Removed.
8873 * ch-tree.h (CH_DECL_GRANTED): Added.
8874 * ch-actions.c (build_chill_exception_decl): Use
8875 IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8876 * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8877 Change to accept list of remember_decls and granted_decls.
8879 Thu Aug 5 11:58:21 1993 Stan Shebs (shebs@rtl.cygnus.com)
8881 * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8883 Thu Aug 5 10:03:27 1993 Bill Cox (bill@rtl.cygnus.com)
8885 * ch-decl.c (init_decl_processing): Only build types
8886 in pass 2, since dbxout machinery is only ready for
8888 * ch-grant.c (chill_finish_module_code): Do most of the
8891 Thu Aug 5 06:54:10 1993 Bill Cox (bill@rtl.cygnus.com)
8893 * ch-parse.y (receivecaseaction): Pass label-group
8895 * ch-tasking.c (build_chill_receive_case_start):
8896 Generate unique labels for each case, pass back
8897 the label-group's number.
8898 (build_chill_receive_case_end): Accept label-group
8899 number from parser, use it to build labels
8900 * ch-tree.h: Change prototypes.
8902 Wed Aug 4 13:21:13 1993 Per Bothner (bothner@kalessin.cygnus.com)
8904 * ch-decl.c (decl_temp1): Call finish_decl().
8906 * ch-grant.c (chill_start_module_code): Don't call
8907 push_c_function_context - not needed since we're not nested.
8908 * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8909 with nested=0, not 1 (twice).
8910 * ch-grant.c (chill_finish_module_code): Clear function_generated.
8912 Tue Aug 3 20:06:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8914 * ch-decl.c (push_chill_extern_function): Set TREE_PUBLIC.
8916 Tue Aug 3 19:08:51 1993 Bill Cox (bill@rtl.cygnus.com)
8918 * ch-actions.c (build_chill_function_call): Handle parameter
8919 attributes better - LOC still not handled.
8920 * ch-tree.def: Amplify comment.
8922 Tue Aug 3 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8924 * ch-lex.l (handle_use_seizefile_directive): Update
8925 next_file_to_seize correctly.
8926 * ch-actions.c (build_chill_abs): Create an ABS_EXPR, not an rts_call.
8928 Tue Aug 3 14:03:50 1993 Bill Cox (bill@rtl.cygnus.com)
8930 First Aid, not real long-term fixes...
8931 * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8932 current_module pointer for NULL before using it.
8933 (init_decl_processing): Set up wchar_type_node before using it.
8934 * ch-grant.c (chill_finish_module_code): Don't build
8935 initializer_type or initializer_decl until pass 2.
8936 * ch-lex.l: Readability - single statement per line.
8937 * ch-tasking.c (make_process_struct): Hide get_parm_info
8938 call inside #ifdef for now.
8940 Tue Aug 3 09:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8942 * ch-decl.c (pushdecllist): Add forward decl.
8943 * ch-parse.y (handler): Add rules which allo
8944 empty onalternativelist.
8945 * ch-tasking.c (get_tasking_code_name): Add
8946 cast of alloca() result.
8948 Tue Aug 3 00:11:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8950 * ch-lex.l (handle_use_seizefile_directive): Make files_to_seize
8951 a queue. Check for duplicate use_seizefile-s immediately.
8952 * ch-lex.l (yywrap): Use this more portable mechanism,
8953 rather than the flex-specific <<EOF>>. Also, clear saw_eof.
8954 * ch-lex.l: Don't call push_module/pop_module automatically.
8955 * ch-decl.c (push_chill_extern_function: Modify for 2-pass.
8957 Mon Aug 2 14:24:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
8959 * ch-parse.y: Rename actionstatement -> nonempty_actionstatement.
8960 New actionstatement is now nonempty_actionstatement | SC. Use
8961 where appropriate. This is closer to Blue Book terminology.
8963 * ch-tree.def (ALIAS_DECL): New tree type.
8964 * ch-decl.c: Merged all the code we need (I hope) from c-decl.c,
8965 which is no longer used for cc1chill.
8966 * c-decl.c: Remove all Chill-related code.
8967 * Makefile.in (CHILL_OBJS): Don't use c-decl.o.
8968 * ch-decl.c: No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
8969 Introduce a 'nesting_level' level concept instead.
8970 * ch-decl.c: Merged push_scope into pushlevel; pop_scope into
8971 poplevel; struct scope and struct binding_level.
8972 * ch-decl.c: Other major name lookup algorithm changes.
8973 * ch-tree.h (struct lang_identifier): Remove granted_value field.
8974 * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro): Removed.
8975 * ch-tree.h (DECL_NESTING_LEVEL): New macro.
8976 * ch-satisfy.c (satisfy, satisfy_decl): New 'lookup_only' arg.
8977 * ch-tree.h (struct module): New fields nesting_level, granted_decls.
8978 * ch-grant.c (seize_implied_names, do_seize, chill_seize): Move ...
8979 * ch-decl.c: ... here.
8980 * ch-grant.c (start_chill_function2): Remove.
8981 * ch-grant.c (chill_start_module_code): Now called in both passes.
8982 * ch-actions.c (lang_init): Code moved to ...
8983 * ch-decl.c (init_decl_processing): ... here.
8984 * ch-actions.c (chill_expand_result, chill_expand_return):
8985 Handle being called during pass 1.
8986 * ch-lex.l (name_type_signal): Don't try lookup_name during pass 1.
8987 * ch-parse.y (PUSH_ACTION, push_action): Is now invoked during
8988 both passes, for the sake of chill_start_module_code. Change all
8989 actions rules to invoke PUSH_ACTION unconconditionally.
8990 * ch-parse.y, ch-decl.c (push_module): Module label is now optional.
8992 Mon Aug 2 15:02:32 1993 Bill Cox (bill@rtl.cygnus.com)
8994 * expr.c (store_constructor): Convert library function
8995 parameters to proper integer precision before calling
8998 Mon Aug 2 08:46:06 1993 Bill Cox (bill@rtl.cygnus.com)
9000 * ch-grant.c (seize_implied_names): Check POWERSET's
9001 base type for names to seize.
9003 Fri Jul 30 19:59:30 1993 Bill Cox (bill@rtl.cygnus.com)
9005 * ch-tree.h: Delete unused definition of JOINER
9006 macro. Expand comment about INSTANCE_TYPE.
9008 Thu Jul 29 14:57:11 1993 Bill Cox (bill@rtl.cygnus.com)
9010 * ch-convert.c (unreferenced_type_of): New function.
9011 (convert): Call new function.
9013 Thu Jul 29 07:34:57 1993 Bill Cox (bill@rtl.cygnus.com)
9015 * ch-lex.l: Allow C-style comments before the module
9016 header. Use #undef to assure that strchr isn't a
9017 macro (portability), and remove the extra paren-
9018 theses in its extern name.
9019 (check_newline): Call getlc less often, so that user
9020 labels aren't lowercased before their time. Add BEGIN
9021 INITIAL before starting pass 2, so the header is
9024 Wed Jul 28 14:23:24 1993 Bill Cox (bill@rtl.cygnus.com)
9026 * ch-grant.c (chill_start_module_code): Cast alloca()
9029 Wed Jul 28 12:39:51 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9031 * ch-grant.c: remove extra parens around extern function
9032 declarations (they confuse the DECstation compiler)
9034 Wed Jul 28 12:28:56 1993 Bill Cox (bill@rtl.cygnus.com)
9036 * Makefile.in: Stop deleting flex's #line lines.
9038 Wed Jul 28 07:05:25 1993 Bill Cox (bill@cygnus.com)
9040 Adjust after FSF merge:
9041 * calls.c (expand_call): Add comment.
9042 * ch-expr.c: Add newline.
9043 * expmed.c (store_split_bit_field): Add comment.
9045 Tue Jul 27 17:32:13 1993 Bill Cox (bill@rtl.cygnus.com)
9047 * ch-actions.c (build_chill_binary_op): Set code0 and
9048 code1 only in pass 2.
9049 (get_result_tmp_name): Cast alloca return for portability.
9050 * ch-decl.c (pop_module): Test current_module ptr before
9052 * ch-lex.l: Set lineno and input_filename for pass 2
9055 Tue Jul 27 15:14:06 1993 Bill Cox (bill@rtl.cygnus.com)
9057 * ch-lex.l: Fix the syntax error at line 329. Will I
9058 *ever* quit fixing these in the ch-lex.c file? Stay tuned..
9060 Tue Jul 27 15:01:25 1993 Bill Cox (bill@rtl.cygnus.com)
9062 * ch-lex.l: Pervasive rewrite for queueing seize files,
9063 then parsing them at the end of pass 1. Still some
9066 Tue Jul 27 07:40:39 1993 Bill Cox (bill@rtl.cygnus.com)
9068 * chill.in: Check for .i suffices only, and use -xchill
9069 to bracket the argument.
9071 Thu Jul 22 19:17:23 1993 Bill Cox (bill@rtl.cygnus.com)
9073 * c-decl.c (print_lang_identifier): Oops. Syntax error.
9075 Thu Jul 22 18:56:16 1993 Bill Cox (bill@rtl.cygnus.com)
9077 * c-decl.c (pushdecllist): Standardize loop for readability.
9078 * ch-decl.c (decl_temp): Call pushdecllist to store decl
9079 into hash table, move after current_scope declaration.
9080 (decl_temp1): Move also.
9081 * ch-lex.l (getlc): New function. Force char to lower case.
9082 (check_newline): Call it, so comparisons work on uppercase
9085 Wed Jul 21 22:17:22 1993 Bill Cox (bill@rtl.cygnus.com)
9087 * ch-decl.c (do_decls): Add saving of decl tree
9088 address into ID node in pass 2, reindent.
9089 * ch-grant.c (start_chill_function2): New function.
9090 (chill_start_module_code, chill_finish_module_code): Call it.
9091 * ch-loop.c (build_temporary_variable, begin_for_range):
9092 Replace start_decl, finish_decl pairs with decl_temp1 calls.
9093 * ch-parse.y (parnamelist): Eliminate warning by eliminating
9095 * ch-actions.c, ch-tasking.c: Replace do_decls calls with
9097 * ch-tree.h: New prototypes.
9098 * stmt.c (stamp_nesting_label): Check parameters for NULL.
9099 * toplev.c (lang_options): Add '-L' option.
9101 Wed Jul 21 21:06:18 1993 Bill Cox (bill@rtl.cygnus.com)
9104 * ch-decl.c (save_decl): Make definition match forward declaration.
9105 * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
9106 in the macro - Sun's compiler throws warnings. Thanks, Brendan.
9107 * ch-satisfy.c (satisfy): Add forward declaration.
9108 (SATISFY): Add outer parens for greater safety.
9110 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
9112 * c-decl.c (pushdecllist): New function. Add a list of decls
9113 to the current scope, checking for duplicates.
9114 * c-decl.c (start_function): Remove some Chill junk.
9115 (This function should no longer be used for Chill.)
9116 * ch-lex.l (ch_lex_init): New function, to re-init for 2nd pass.
9117 * ch-lex.l (<<EOF>>): Cleanup, and re-start for 2nd pass.
9118 * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG): New flags.
9119 * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
9120 Implement. Add comments.
9121 * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
9122 Better Blue Book type checking.
9123 * ch-actions.c (finish_chill_binary_op): Handle folding
9124 and other stuff that couldn't be done in pass 1.
9125 * ch-actions.c (build_chill_binary_op): Bail out early if pass 1.
9126 Use new CH_ROOT_MODE macro to handle integer promotions etc.
9127 * ch-except.c (push_handler): Bail out if pass 1.
9128 * ch-tasking.c (make_process_struct): Defer making this work.
9129 * ch-parse.y (assignaction): Simplify, and move some code ...
9130 * ch-expr.c (chill_expand_assignment): ... here.
9131 * ch-typeck.c (chill_root_mode, chill_resulting_mode,
9132 chill_compatible_classes): New functions, implementing the
9133 correspondingly named Blue Book concepts.
9134 * ch-parse.y generally: Lots of little tweaks to support
9136 * ch-parse.y (push_module, pop_module): Moved to ...
9137 * ch-decl.c (push_module, pop_module): ... here.
9138 * ch-parse.y (push_action): New function.
9139 * ch-parse.y (pdef): Move complicated action to ...
9140 * ch-parse.y (end_function): ... new function here.
9141 * ch-parse.y (procedure): Major re-write.
9142 * ch-parse.y (paramname, paramnamelist): New, to avoid conflict (?).
9143 * ch-decl.c (do_decls, push_syndecls, push_modedef,
9144 start_chill_function, finish_chill_function): Do different things
9145 on each pass. Hence, can use code in c-decl.c to lesser extent.
9146 * ch-decl.c (build_chill_function_type): First arg is now
9147 just the return type, rather than a singleton list.
9148 * ch-decl.c (massage_param_node): Remove not needed (we
9149 now encode parameter attributes directly in the TREE_PURPOSE).
9150 * ch-decl.c (chill_munge_params): New function, called by parser.
9151 * ch-decl.c (push_parms): Removed function.
9152 * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
9153 New functions, to coordinate decls between passes.
9155 Wed Jul 21 14:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
9157 * ch-actions.c (lang_decode_option): Add option -Lpath
9158 to specify seize file path.
9159 (ch_singleton_set): Readability formatting.
9160 Add comment, move functions to easier found places.
9161 * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
9162 (register_seize_path): Use memcpy so pathlen has an effect.
9163 * gcc.c (default_compilers): Add -L option to chill
9166 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
9168 * ch-satisfy: New file. Used for name lookup.
9169 * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
9171 Wed Jul 21 12:16:51 1993 Bill Cox (bill@rtl.cygnus.com)
9173 * toplev.c (main): Delete -L option handling - breaks
9174 non-chill compilers.
9176 Wed Jul 21 09:29:24 1993 Bill Cox (bill@rtl.cygnus.com)
9178 * ch-grant.c: #undef strchr and strrchr names in extern
9179 declarations, to prevent RS6000 compiler from reporting
9180 their misuse as macros.
9181 * ch-lex.l (setup_seizefile_read): Refer to list of paths
9182 for seizefiles specified by -L options on command line.
9183 (register_seize_path): Add a new path to the seize file list.
9184 * toplev.c (strip_off_ending): Recognize chill suffix.
9185 (main): Recognize -L option, specifying a seize file path.
9187 Tue Jul 20 12:41:52 1993 Bill Cox (bill@rtl.cygnus.com)
9189 * ch-lex.l (convert_float): Make it really portable,
9190 using the appropriate macros.
9192 Tue Jul 20 11:26:02 1993 Bill Cox (bill@rtl.cygnus.com)
9194 * ch-lex.l (convert_float): More casts for vxworks
9197 Tue Jul 20 11:01:30 1993 Bill Cox (bill@rtl.cygnus.com)
9199 * ch-lex.l (convert_float): Give variable `d' correct
9200 type so build_real call is correct. Should remove
9201 vxworks portability problem.
9202 (convert_float): Re-indent to standards.
9204 Mon Jul 19 17:32:10 1993 Bill Cox (bill@rtl.cygnus.com)
9206 * ch-actions.c (build_char_array_expr): Add field decls to
9207 constructor. Now, it generates the library call.
9208 * ch-expr.c (chill_expand_array_assignment): Make sure that all
9209 error messages say 'mode' not 'type'.
9211 Mon Jul 19 14:44:46 1993 Bill Cox (bill@rtl.cygnus.com)
9213 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
9214 ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
9215 Make sure that all error messages say 'mode' not 'type'.
9216 * ch-decl.c (push_modedef): Add novelty computation,
9217 storage in each newmode.
9218 * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
9219 Reformat slightly for readability. Fix comments.
9220 * ch-tree.h: Delete print_lang_type prototype.
9222 Mon Jul 19 06:43:51 1993 Bill Cox (bill@rtl.cygnus.com)
9224 * ch-actions.c (chill_expand_return): Disable
9225 error message which requires 2-pass analysis, for
9227 * ch-convert.c (convert): Build length-only constructor
9228 for empty string (PR 2930).
9230 Fri Jul 16 16:08:33 1993 Bill Cox (bill@rtl.cygnus.com)
9232 * ch-expr.c (chill_expand_array_assignment): Check
9233 non-varying string assignments for conformance to
9234 the "string assignment condition" (PR 2920).
9236 Thu Jul 15 13:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
9238 * ch-actions.c (build_chill_array_expr): Check parameters.
9239 Call convert to build unitary array from scalar if
9240 needed. Rewrite CONCAT_EXPR handling.
9241 * ch-convert.c (build_array_type_for_scalar): New functions.
9242 (convert): Call new function, to convert scalar to unitary
9243 array. Only call chill_expand_tuple if expression hass
9245 * ch-expr.c (chill_expand_expr): Allow a larger static
9246 varying array to be assigned to a smaller, with a runtime
9247 test (to be provided).
9248 * ch-parse.y (locdec): Comment out bogus error msg.
9249 (elementlist): Replace several lines with chainon call.
9250 * ch-tree.h (SCALAR_P): New macro. New prototype for
9251 build_array_type_for_scalar.
9252 * ch-typeck.c (build_chill_cast): Re-indent.
9253 (chill_expand_tuple): Comment out strange addition of
9254 varying string's length to front of constructor list.
9256 Thu Jul 15 05:58:46 1993 Bill Cox (bill@rtl.cygnus.com)
9258 * ch-except.c (start_handler_array): Use unique identifier for
9259 exception array, so we can have > 1 array per reach
9260 (PR 2931). The change was originally entered June 23, and
9263 Mon Jul 12 16:07:53 1993 Bill Cox (bill@rtl.cygnus.com)
9265 Get executable test cases running again...
9266 * c-typeck.c (build_function_call): Bypass default
9267 parameter promotions, format param syntax check for
9268 CHILL; they've already been converted in
9269 build_chill_function_call.
9270 * ch-actions.c (chill_expand-return): Correct tests
9271 for function which returns no value.
9272 * ch-convert.c (base_type_size_in_bytes): Check for
9273 NULL type parameter, just return.
9274 (convert): Allow conversion of CHAR to varying array
9276 Change error msg to "conversion" from "assignment".
9277 Remove default from case, which short-circuited before
9278 REFERENCE_TYPEs got converted. Deleted second copy
9279 of REFERENCE_TYPE code.
9280 * ch-lang.c (build_chill_range_type): Simply exit if
9281 NULL input parameter.
9282 * ch-loop.c: Fix comment.
9284 Sun Jul 11 11:27:08 1993 Bill Cox (bill@cygnus.com)
9286 * ch-actions.c (chill_expand_result, chill_expand_return):
9287 Move here from ch-typeck.c. Add a temporary to remember the
9288 result value in. Change return handler to fetch that
9289 temporary value, if there is one.
9290 * ch-parse.y (pdef): Call chill_expand_return to fetch
9292 * ch-tree.h, ch-typeck.c: Move return, result functions to
9293 ch-actions.c. And their prototypes.
9295 Fri Jul 9 15:47:51 1993 Bill Cox (bill@rtl.cygnus.com)
9297 * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
9298 ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
9299 ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
9300 ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
9302 Fri Jul 9 09:41:05 1993 Bill Cox (bill@rtl.cygnus.com)
9304 * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
9305 (print_integer): Delete old non-working INSTANCE code.
9306 * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
9307 * ch-parse.y (rccase_label): Move all actions inside if.
9308 Use BUFFERNAME to recognize receice case buffer clause,
9309 eliminate one shift-reduce conflict.
9310 * ch-tasking.c (build_buffer_descriptor): Check for
9311 CH_DECL_BUFFER flag, remove unused code.
9313 Thu Jul 8 11:17:32 1993 Bill Cox (bill@rtl.cygnus.com)
9315 Declaring and sending buffers.. first draft
9316 * ch-actions.c (lang_init): Define the send_buffer runtime
9318 * ch-decl.c (do_decls): Standardize loop, so stepping
9320 * ch-lex.l: Clean up prototypes for readability.
9321 * ch-parse.y (sendaction): Add send buffer action.
9322 (locdec): Add rule for buffer declaration.
9323 * ch-tasking.c (generate_tasking_code): standardize indentation.
9324 (make_signal_struct): Readability changes.
9325 (build_chill_send_buffer, build_buffer_decl,
9326 build_buffer_descriptor): New functions.
9327 * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
9328 buffer's maximum queue length in buffer decl.
9329 (CH_DECL_BUFFER): Add flag in decl. Clean up for
9330 readability. Add prototypes.
9331 * ch-typeck.c (build_chill_cast): Call convert rather
9332 than storing directly into TREE_TYPE field.
9334 Tue Jul 6 12:34:32 1993 Bill Cox (bill@rtl.cygnus.com)
9336 * ch-actions.c (lang_init): Set warn_switch so case labels
9337 get checked. Move build_chill_case_expr to ch-expr.c.
9338 * ch-expr.c (chill_expand_case_expr): Enable checking
9339 of expression case labels.
9340 * ch-grant.c: Move a comment.
9342 Mon Jul 5 10:02:27 1993 Wilfried Moser (fs_moser at rcsw1j)
9344 * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
9345 * ch-except.c (initialize_exceptions): Change the layout of the
9346 structure __ch_handler. The entry __jbuf is moved to the end
9347 of the structure and its size was changed to _JBLEN+10.
9348 * ch-decl.c (push_chill_extern_process): Add processing of
9349 processes with no arguments.
9350 * ch-grant.c (decode_decl, do_seize): Add processing of
9351 processes with no arguments.
9352 * ch-tasking.c (build_process_header, build_chill_start_process):
9353 Add processing of processes with no arguments.
9354 (make_process_struct): Add processing of IN attribute for
9356 (tasking_setup): Add NUL-character to name of a tasking
9357 element. The name must be NUL terminated.
9358 (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
9359 to 0 with a warning if -Wall specified on command-line.
9361 Fri Jul 2 16:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
9363 * ch-parse.y: Change 'empty' comments to new non-terminal
9364 so that exyacc doesn't discard them.
9365 * ch-lang.c (build_chill_range_type): New error messages.
9367 Fri Jul 2 12:43:25 1993 Bill Cox (bill@rtl.cygnus.com)
9369 * ch-parse.y (action): Catch and report actions which
9370 shouldn't have exception clauses, but do. Unfortunately,
9371 catching more than one of these per compilation will
9372 have to await the general addition of syntax error
9373 recovery to the parser.
9375 Fri Jul 2 10:45:35 1993 Bill Cox (bill@rtl.cygnus.com)
9377 * ch-parse.y (locdec): Issue error for initialization
9378 of bitstring with tuple, not for powerset init with
9381 Thu Jul 1 15:29:26 1993 Bill Cox (bill@rtl.cygnus.com)
9383 * ch-lang.c (build_chill_array_type): Check for indices
9384 that didn't fold into constants, issue error (PR 2924b).
9385 * ch-parse.y: Add novelty counter, alphabeticalize.
9386 * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9388 Thu Jul 1 14:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
9391 * chill.in: Add -ansi switch at compiler call to avoid
9392 translation of i.e. sun to 1 by cpp.
9394 Wed Jun 30 22:21:33 1993 Bill Cox (bill@rtl.cygnus.com)
9396 * ch-grant.c (raw_decode_mode): Add code for
9397 integer and enumeral ranges. Standardize indentation.
9399 Wed Jun 30 14:02:23 1993 Bill Cox (bill@rtl.cygnus.com)
9401 * ch-grant.c (print_an_int): New function to print a
9402 decimal integer string or the CONST_DECL (SYN) which
9404 (print_integer): Call the above function. Replace
9405 calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9406 comparisons, as suggested by Jim Wilson.
9407 (decode_decl): Set current_grant_modename sooner,
9408 be sure to clear it when done.
9410 Wed Jun 30 10:10:57 1993 Bill Cox (bill@rtl.cygnus.com)
9412 * ch-actions.c (build_max_min): Change interface to accept
9413 just a max/min flag. Get min/max values from an
9414 enumeral constructor.
9415 (build_chill_max, build_chill_min): Change calls to
9417 * ch-lang.c (deep_const_expr): Check for NULL_TREE
9418 arguments, don't seg fault.
9420 Wed Jun 30 09:20:09 1993 Bill Cox (bill@rtl.cygnus.com)
9422 * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9423 to switch cases, preventing abort.
9425 Tue Jun 29 19:04:37 1993 Bill Cox (bill@rtl.cygnus.com)
9427 * ch-expr.c: Update comment.
9428 * ch-parse.y (range_or_mode): New non-terminal used in
9429 lexpr to implement mode as case label.
9431 Tue Jun 29 13:13:46 1993 Bill Cox (bill@rtl.cygnus.com)
9433 * ch-actions.c (build_chill_case_expr): Pass in the
9434 optional ELSE clause, error for multiple case-selector
9435 expressions, error for missing ELSE clause.
9436 * ch-expr.c (chill_expand_assignment): Error if multiple
9437 location assignment and locations not novelty
9439 * ch-parse.y (caseaction): Add range_list_clause non-
9440 terminal, sorry message for it.
9441 (assignaction): error if operator used on multiple
9443 (case_expr): Pass optional ELSE tree to
9444 build_chill_case_expr for checking.
9445 * ch-tree.h (build_chill_case_expr): Change proto.
9447 Fri Jun 25 17:22:41 1993 Bill Cox (bill@rtl.cygnus.com)
9449 * ch-actions.c (chill_comptypes, build_chill_binary_op):
9450 Allow PROC mode variables.
9451 * ch-convert.c (convert): Turn a NULL literal into a zero
9452 valued pointer-to-function, given such a type. Also
9453 build the ADDR_EXPR of a function variable.
9454 * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9455 (print_enumeral, print_integer, print_struct) Moved these
9456 large functions out of the switch in raw_decode_mode for
9457 readability, and to encourage future code-sharing.
9458 (print_proc_tail, print_proc_exceptions): Moved these out
9459 of decode_decl, to share them. They're used also to
9461 * ch-parse.y (mode2): Enable PROC modes.
9462 (procmode): Represent PROC mode as a ptr-to-function type.
9463 (call): Recognize ptr-to-function as indirect call.
9464 Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9466 Thu Jun 24 15:59:20 1993 Bill Cox (bill@rtl.cygnus.com)
9468 * ch-grant.c: (raw_decode_mode): Add support for unnamed
9469 and user-numbered enumeration members.
9471 Thu Jun 24 13:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
9473 * ch-actions.c (build_chill_array_expr, build_chill_length):
9474 Explicitly convert a varying array's length field to an
9475 integer_type_node, now that it's only a chill_integer_
9477 * ch-expr.c (chill_expand_expr,
9478 expand_assignment_to_varying_array,
9479 chill_expand_array_assignment,
9480 expand_varying_length_assignment): Explicitly
9481 convert a varying array's length field to an integer_type_node,
9482 now that it's only a chill_integer_type_node.
9483 * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9484 to handle varying array location iterations.
9485 * ch-parse.y (mode2): Count number of named SET members,
9486 as opposed to '*' members. Issue error if there were none.
9487 (setelement): Count named set members. Generate a unique
9488 identifier for the '*' element.
9489 * ch-typeck.c (validate_varying_array_ref): Explicitly
9490 convert a varying array's length field to an integer_type_node,
9491 now that it's only a chill_integer_type_node.
9493 Wed Jun 23 19:18:28 1993 Bill Cox (bill@rtl.cygnus.com)
9495 * ch-lang.c (finish_chill_enum): Change test for too-
9497 * ch-parse.y (setelement, optsetvalue): Allow numbered,
9498 unnamed set elements.
9500 Wed Jun 23 16:25:06 1993 Bill Cox (bill@rtl.cygnus.com)
9502 * c-typeck.c (process_init_constructor): Suppress
9503 errors about un-initialized array elements if the
9504 array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9505 * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9506 enumerations *can* be only a byte in size.
9507 (adjust_parm_or_field): Convert untyped parameter before
9508 looking at its type to process it.
9509 * ch-convert.c (convert): Generate [ -1, -1 ] value for
9511 * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9512 type, so that output_constant doesn't seg fault.
9513 * ch-except.c (start_handler_array): Use unique identifier for
9514 exception array, so we can have > 1 array per reach.
9515 * ch-lang.c (finish_chill_enum): Error if number of
9516 enumeration values exceeds 256.
9517 * ch-parse.y (check_end_label): Error, not warning if start
9518 and end labels don't match.
9519 (assignaction): Convert RHS. Allows untyped tuples to be
9520 passed to stabilize_reference.
9521 (exceptlist, onexceptprefix): Error if non-unique exception
9523 * ch-tree.c: Added form feeds, comment reformatted.
9524 * ch-typeck.c (chill_expand_tuple): Compare tree value to
9525 NULL_TREE, not zero. Add a constructor element for a
9526 VARYING array's length to the constructor list.
9527 (build_varying_struct): Mark the type as VARYING for
9528 process_init_constructor.
9529 * toplev.c (lang_options): Add '-lang-chill' and
9530 '-fchill-grant-only' options to table.
9532 Tue Jun 22 13:13:41 1993 Bill Cox (bill@rtl.cygnus.com)
9534 * ch-actions.c (build_chill_function_call): Add check
9535 to prevent calling a PROCESS like a PROCEDURE.
9536 * ch-parse.y (rcalternative): Add check for an
9537 receive case alternative after a RECEIVE CASE
9539 * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9540 * ch-lang.c (lang_finish): Remove resetting errorcount
9541 and sorrycount for granting.
9543 Mon Jun 21 17:56:48 1993 Bill Cox (bill@rtl.cygnus.com)
9545 Receiving signals works.
9546 * ch-actions.c (lang_init): Add else_clause flag to
9547 __wait_signal parameter list.
9548 * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9549 * ch-parse.y (SIGNALNAME): New token. Delete
9550 empty_untyped_exprlist token, no longer used. Add
9551 name_or_signal non-terminal. Standardize a few NULL
9552 tests. Add real RECEIVE CASE semantics. Add checks that
9553 SIGNALS, BUFFERs are only declared at global scope.
9554 (call): Add signal declarations with/without data fields.
9555 * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9556 build_chill_receive_case_start, build_chill_receive_case_end,
9557 build_chill_receive_case_label): New functions.
9558 Replace build (CONSTRUCTOR, ... calls with build_nt
9559 (CONSTRUCTOR, calls.
9560 * ch-tree.h: New prototypes.
9562 Thu Jun 17 18:36:38 1993 Bill Cox (bill@rtl.cygnus.com)
9564 SIGNAL declaration compilation, seizing & granting,
9566 * ch-actions.c (lang_init): Move instance_type_node
9567 build to ch-tasking.c. Call build_tasking_message_type.
9568 Build a type for send_signal. Put builtin_function
9569 calls into alpha order.
9570 (adjust_proc_param): Rename to adjust_parm_or_field,
9571 add is_signal flag, so signal fields can use it. Rename
9572 calls to it, add flag to calls.
9573 * ch-decl.c (push_chill_extern_signal): Add function.
9574 * ch-grant.c (decode_decl): Correct signal decl output.
9575 (do_seize): Correct check for process seizure. Add
9576 code for seized signal decl.
9577 * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9578 * ch-loop.c (get_unique_identifier): Standardize loop
9579 temporary's name to assure that it's not granted.
9580 * ch-parse.y (SIG_NAME): Delete unused token.
9581 (spec_declist): Delete silly printf.
9582 (quasi_signaldef): Add non-terminal.
9583 (sendaction, optsendwith, optsendto, optpriority):
9584 Implement actual working semantics.
9585 (call, empty_untyped_exprlist): Allow empty signal
9586 fields between parens.
9587 * ch-tasking.c: Rename adjust_proc_param calls, add
9588 is_signal flag to calls. Make instance_type_node a
9589 type, not a TYPE_DECL, change references. Fix all
9590 CONSTRUCTOR builds. Add make_signal_struct function.
9591 Move build_instance_type here from lang_init.
9592 (build_tasking_message-type, build_signal_descriptor,
9593 build_chill_send_signal): New functions.
9594 * ch-tree.h: Add, update protos.
9595 * ch-typeck.c (build_chill_cast): Check for NULL expression
9596 type as well as error_mark.
9598 Thu Jun 17 12:28:03 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9600 * Makefile.in (STAGESTUFF): Add chill to list.
9602 Wed Jun 16 07:12:53 1993 Bill Cox (bill@rtl.cygnus.com)
9604 * Makefile.in: Complete the renaming of ch-process.c
9606 * ch-decl.c (push_chill_extern_function): Drop is_process
9607 parameter, and marking process decl trees.
9608 (push_chill_extern_process): New function for
9609 SEIZEd processes. Lotsa form feeds added for print
9611 * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9612 (do_seize): New parameter seize_all. Handle sseizing
9614 (chill_seize): Pass seize_all parameter.
9615 (chill_grant): Check for __tmp_ prefix, to disable
9616 *either* seizing or granting.
9617 * ch-parse.y (quasi_pdef): Delete is_process parameter for
9618 push_chill_extern_functon, call push_chill_extern_process
9620 (specialinit): Comment these rules as needed only until
9621 2-pass compiler is operational.
9622 (extprocedure): Delete is_process parameter.
9623 (simpledec): Delete `sorry' about SIGNAL decls.
9624 (optsigdest): Correct check for process name.
9625 * ch-tasking.c (build_signal_decl): Finish coding.
9626 * ch-tree.h: Add macro to save a SIGNAL's destination
9627 process name in an id node. Add/change prototype.
9629 Mon Jun 14 18:17:13 1993 Bill Cox (bill@rtl.cygnus.com)
9631 * ch-actions.c (lang_init): Build instance_type_node.
9632 Change `this' to a runtime function call.
9633 * ch-grant.c (do_seize): Generate tasking-code
9634 variable for seized process.
9635 * ch-lex.l (equal_number): Also accept synonym
9636 name for numeric value.
9637 * ch-parse.y (primval): Add process-related
9639 (signaldef, etc.): Rough draft of SIGNAL definition
9641 (stopaction): Call runtime function.
9642 (pdef): Pop symbol level if ending a process
9643 and there were parameters.
9644 (primval): Call `whoami' runtime function for THIS.
9645 * ch-tasking.c (build_process_header): Be sure
9646 to define the tasking enum, if it hasn't already
9647 been done. Only call shadow_record_fields if there
9649 (build_tasking_enum): Only call start_enum *after*
9650 checking the already_built flag.
9651 (build_copy_number, get_tasking_code,
9652 build_gen_code, build_gen_inst, build_get_ptype,
9653 build_proc_type): New functions for process-related
9655 (build_signal_decl): New function for SIGNAL
9656 declaration - rough draft.
9657 * ch-tree.def (INSTANCE_TYPE): new tree code.
9658 * ch-tree.h: New prototypes. Defines for instance
9661 Sat Jun 12 21:15:02 1993 Bill Cox (bill@rtl.cygnus.com)
9663 Get start-process action working:
9664 * ch-actions.c (adjust_proc_param): new function,
9665 extracted from build_chill_function_call and called
9667 * ch-tree.h, ch-grant.c (do_seize): Add process_type
9668 parameter to add_taskstuff_to_list call, prototype.
9669 * ch-parse.y (start_parlist): New non-terminal for
9671 (startaction): Reference start_parlist, check for
9672 integer-valued process copy-number.
9673 (optstartset): Check instance parameter - must be
9674 an INSTANCE_TYPE location.
9675 * ch-tasking.c (generate_tasking_code_variable): New
9676 function, extracted from tasking_setup and called
9677 from there. Also called from build_process_header.
9678 (build_process_header): Add process_type parameter
9679 to add_taskstuff_to_list call. Remove incrementing
9680 of process_type (moved into generate_tasking_code
9682 (build_chill_start_process): Complete rewrite.
9683 (add_tasking_stuff_to_list): Add stuffnumber parameter
9686 Sat Jun 12 06:08:09 1993 Bill Cox (bill@rtl.cygnus.com)
9688 Getting processes compiled, initialized and granted:
9689 * .cvsignore: Add chill file.
9690 * c-decl.c (shadow_record_fields): Allow PARM_DECL
9691 as well as VAR_DECL.
9692 * ch-actions.c (lang_init): Move build of
9693 initializer_type into ch-tasking.c. Change
9694 definition of THIS to function call.
9695 * ch-decl.c (massage_param_node): Add comments.
9696 (start_chill_function): Set nested flag in
9697 start_function call based upon current_function_decl,
9698 not as constant zero.
9699 * ch-grant.c (decode_decl): lotsa code by Wilfried to
9700 GRANT process decls.
9701 (finish_chill_module): Completely rewrote interface
9703 * ch-lex.l (THIS): Just return the token code.
9704 * ch-parse: Add THIS token.
9705 (processpar, processparlist): New rules, to collect
9707 (pdef): Add code to pop the process' WITH scope.
9708 (procedure): Set process WITH scope flag to zero.
9709 (process): Move most code into build_process_header.
9710 (primval): Output function call for THIS.
9711 * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9712 make_process_struct, build_process_header): New code
9713 to handle process translation and interface to runtime.
9714 * ch-tree.h: New prototypes.
9716 Thu Jun 10 13:32:51 1993 Bill Cox (bill@rtl.cygnus.com)
9718 * Makefile.in: Change ch-process.c to ch-tasking.c.
9719 A delayed part of the last change..
9721 Thu Jun 10 11:14:59 1993 Bill Cox (bill@rtl.cygnus.com)
9723 * .cvsignore: Add 'chill' file.
9724 * ch-actions.c (lang_init): Add new runtime function
9726 * ch-decl.c (push_chill_extern_function): Add is_process
9728 * ch-grant.c (decode_decl): Recognize a process for
9730 (do_seize): Put seized processes onto the tasking_list.
9731 (chill_finish_module_code): Declare init_list entry,
9732 link it onto the init_list. Call tasking_setup and
9734 * ch-lex.l: Make tasking-related variables global,
9735 delete their initialized flags.
9736 * ch-parse.y: Add is_process flag to push_chill_extern_function
9737 calls. Put processes onto the tasking_list.
9738 * ch-process.c: Renamed to ch-tasking.c.
9739 * ch-tasking.h: New file.
9740 * ch-tree.h: New, adjusted prototypes.
9742 Wed Jun 9 10:59:27 1993 Wilfried Moser (moser@deneb.cygnus.com)
9744 * chill: This file is replaced by chill.in and will be
9745 generated during 'make' and 'make install'. This script
9746 now finds the correct chillrt0.o and libchill.a during
9748 * chill.in: New file that replaced chill.
9749 * Makefile.in: Add rules to make chill out of chill.in.
9751 Wed Jun 9 09:03:55 1993 Bill Cox (bill@rtl.cygnus.com)
9753 * .cvsignore: Add gfloat.h and xlimits.h.
9754 * ch-actions.c (lang_init): Create new type for module-
9755 level initializer list entry.
9756 * ch-grant.c (chill_start_module_code): Rename actual
9757 module-level code to just the modulename, which is
9759 (chill_finish_module_code): Allocate space for initializer
9760 list entry, build real initializer function, which puts
9761 the list entry on the runtime list. Name the init function
9762 as the module's constructor function.
9763 * ch-tree.h (build_init_struct): Add prototype.
9764 * ch-typeck.c (build_init_struct): Add function, called
9766 Note: these changes require a new devo/chillrt/chillrt0.c.
9768 Thu Jun 3 17:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9770 * c-decl.c: Fix comment.
9771 * ch-actions.c, ch-grant.c: Standardize front end:
9772 #define first, etc. Add comments.
9773 (lang_init): Delete unused flag, code for inapplicable
9774 gen-decls option. (lang_decode_option): Delete
9775 gen-decls option, add grant-only option, flag.
9776 * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9777 ch-typeck.c: Add form feed after front end.
9778 * ch-expr.c: Standardize testing for error_mark node.
9779 * ch-lang.c: Remove unused deep_fold function.
9781 Fri May 21 11:04:22 1993 Bill Cox (bill@rtl.cygnus.com)
9783 * c-typeck.c (build_binary_op, build_unary_op):
9784 Recognize BOOLEAN_TYPE.
9785 * ch-actions.c (build_chill_unary_op): Remove
9786 some crufty work-arounds.
9788 Thu May 20 19:03:48 1993 Per Bothner (bothner@deneb.cygnus.com)
9790 * ch-grant.c (decode_constant): If the granted value is a
9791 cast, make sure to emit an appropriate expression conversion.
9793 Thu May 20 16:35:35 1993 Bill Cox (bill@rtl.cygnus.com)
9795 * ch-lang.c (build_chill_range_type): Initialize the
9796 precision variable. Double-negative ranges work now.
9798 Thu May 20 11:24:42 1993 Bill Cox (bill@rtl.cygnus.com)
9800 * ch-actions.c (build_unary_op): Compound a wretched
9801 hack which hides a BOOLEAN_TYPE from the underlying
9804 Wed May 19 16:45:54 1993 Bill Cox (bill@rtl.cygnus.com)
9806 * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9807 from chill_comptypes. (build_chill_unary_op): Give
9808 better name to unsigned flag.
9809 * ch-expr.c (chill_expand_assignment): Correct calling
9810 sequence for setpowersetbits runtime routine.
9811 * ch-grant.c (raw_decode_mode): Give better name to
9812 unsigned flag. (decode_constant): Check for null
9813 'val' ptr, avoid seg fault.
9814 * ch-lex.l (convert_number): Give better name to
9815 unsigned flag. (convert_bitstring): Move increment
9816 of bl counter to emphasize that it increments once
9818 * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9819 * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9820 constructor if given a singleton set constructor.
9822 Thu May 13 17:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
9824 * c-decl.c (pushdecl): Complete May 9 change.
9825 * ch-actions.c (build_chill_unary_op): Set the
9826 TREE_UNSIGNED flag FALSE for raw_decode_mode.
9827 * ch-grant.c (grant_array_type): Correct the May 12
9828 check for circularity.
9829 (raw_decode_mode): Use TREE_UNSIGNED flag to
9830 control range's printing.
9831 (chill_grant): Remove useless, bogus code.
9832 * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9833 flag TRUE for raw_decode_mode.
9835 Wed May 12 18:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9837 * ch-decl.c (push_syndecls, push_modedef): Comment
9838 reminders to check for circular definitions. Later!
9839 * ch-grant.c (grant_array_type, decode_decl): Prevent
9840 circular definitions in the use of the array's
9843 Wed May 12 16:06:13 1993 Bill Cox (bill@rtl.cygnus.com)
9845 * ch-grant.c (grant_array_type): If array_type has
9846 a name, just use it.
9847 * ch-lang.c (build_chill_range_type): Don't force
9848 unsigned ranges on output.
9849 * expr.c (store_constructor): Preclude seg fault.
9851 Wed May 12 07:49:00 1993 Bill Cox (bill@rtl.cygnus.com)
9853 * ch-actions.c (fold_set_*): Correct tests for
9854 range set-constructor list entries.
9855 (lang_init): Define setpowersetbits function.
9856 * expr.c (store_constructor): Handle non-constant
9859 Tue May 11 18:25:40 1993 Per Bothner (bothner@cygnus.com)
9861 * ch-lang.c (build_chill_range_type): If the parent type
9862 is unknown, and the endpoints of the range are integer
9863 constants, use the smallest suitable integer type.
9864 * ch-lang.c (build_chill_range_type): Remove kludge
9865 for dealing with char ranges.
9867 Tue May 11 15:24:31 1993 Bill Cox (bill@rtl.cygnus.com)
9869 * ch-actions.c (build_chill_repetition_op): Build a
9870 range-type set constructor if there's only one value
9871 in the repeated constructor.
9872 (fold_set_*): Abort if range value seen, for now.
9873 * expr.c (store_constructor): Handle range-type by
9874 storing bytes rather than bits as much as possible.
9876 Mon May 10 18:45:18 1993 Bill Cox (bill@rtl.cygnus.com)
9878 * ch-actions.c (invalid{left right}_operand): Add
9879 handlers for REPLICATE_EXPR.
9880 (build_chill_repetition_op): Build constructor list
9881 for repetition of bitstring.
9882 * ch-parse.y (call): Recognize more trees as arrays,
9884 (operand5): Add count, string temporaries, use them.
9886 Mon May 10 16:49:08 1993 Per Bothner (bothner@cygnus.com)
9888 * ch-grant.c (seize_implied_names): Fix code that assumed
9889 a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9890 * ch-grant.c (generate_set, grant_parent_of_enum,
9891 grant_parent_enum): Removed unused functions.
9892 * ch-grant.c (raw_decode_mode): Remove commented-out code.
9894 Mon May 10 10:54:57 1993 Bill Cox (bill@rtl.cygnus.com)
9896 * ch-grant.c (do_seize, seize_implied_types): Move
9897 result and parameter processing to proper place.
9898 (chill_seize): Mark unseized identifier with
9899 error_mark_node, to avoid excessive errors.
9900 * ch-parse.y (call): Check for ERROR_MARK before
9903 Sun May 9 17:21:24 1993 Bill Cox (bill@rtl.cygnus.com)
9905 * c-decl.c (pushdecl): If a strongly-visible name is
9906 seen, in conflict with a weakly-visible name, take
9907 the strongly-visible one and don't complain.
9908 * ch-actions.c (chill_comptypes): Allow chain of ref-
9909 erence types > 1 in length.
9910 * ch-grant.c: Turn disguised for-loops into actual
9911 ones, so continue works. Delete redundant code in
9912 seize_implied_names. Reindent.
9913 * expmed.c (store_split_bit_field): Disable abort for
9916 Sun May 9 17:11:33 1993 Per Bothner (bothner@cygnus.com)
9918 * ch-convert.c (convert): Move handling of SET_TYPE until
9919 after we've handled de-referencing and such like.
9920 * ch-grant.c (grant_array_type): Simplify; remove (now-)
9921 bogus call to generate_set.
9922 * ch-grant.c (get_type): Remove obsolete stuff.
9924 Fri May 7 10:30:34 1993 Bill Cox (bill@rtl.cygnus.com)
9926 * ch-actions.c (lang_init): Add definition of psslice
9927 runtime routine. (build_chill_binary_op_1,
9928 build_chill_binary_op): Have result type of
9929 TRUTH_ANDIF_EXPR be boolean, not integer. Some
9931 * ch-convert.c (convert): Use consistent notation
9933 * ch-parse.y: Add front-end pass count. (locdec):
9934 Add syntax for other BASED declaration.
9935 * ch-tree.c: Fix comment.
9936 * ch-typeck.c (build_chill_slice): Implement a runtime
9937 call for bitstring slices. (build_chill_cast):
9938 Add code for BITS_BIG_ENDIAN bit loop.
9939 (chill_expand_tuple): Don't pass ref type to
9940 digest_init, only underlying type.
9942 Thu May 6 12:52:14 1993 Per Bothner (bothner@cygnus.com)
9944 * ch-typeck.c (build_chill_cast): type_for_size takes
9945 a size in bits, not bytes.
9947 Wed May 5 19:02:55 1993 Bill Cox (bill@rtl.cygnus.com)
9949 * ch-actions.c: Break out separate routines for set
9950 folding, handle ranges in set_fold_eq and set_fold_ne.
9951 Fix folding as req'd by TTC test.
9952 * ch-grant.c (raw_decode_more): Check for content match
9953 to decide output mode, not pointer identity.
9954 * ch-typeck.c: Add cross-reference comment.
9955 * varasm.c (emit_set_data): Clarify parameter name.
9956 Handle INTEGER_CST as set constructor.
9957 (output_constant): Handle CONSTRUCTOR node for sets.
9958 Apparently forgot to actually 'checkin' this one last
9961 Wed May 5 12:23:58 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9963 * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
9965 Tue May 4 15:47:44 1993 Bill Cox (bill@rtl.cygnus.com)
9967 * ch-actions.c (fold_set_expr): new function to fold
9968 set expressions. Calls inserted into
9969 build_chill_binary_op and build_chill_unary_op.
9970 (build_chill_repetition_op): New function, called
9971 from build_chill_function_call.
9972 * ch-expr.c (chill_expand_assignment): Call
9973 build_chill_repetition_op.
9974 * ch-grant.c (decode_constant): Comment out deep_fold
9975 call. The earlier fold_set_expr calls should make
9976 this one unnecessary. Prevent seg fault when name
9977 of structure field is NULL. Standardize for loop.
9978 * ch-parse.y: Fix comments.
9979 (operand5): build a REPLICATE_EXPR. Don't call
9980 build_repetition_op until we have a type.
9981 * ch-tree.def (REPLICATE_EXPR): Define tree-code.
9982 * ch-tree.h (build_chill_repetiton_op): Fix proto.
9983 * ch-typeck.c (chill_expand_result): Call
9984 build_chill_repetition_op if needed.
9985 * varasm.c (emit_set_data): Clarify parameter name.
9986 Handle INTEGER_CST as set constructor.
9987 (output_constant): Handle CONSTRUCTOR node for sets.
9989 Mon May 3 13:06:47 1993 Per Bothner (bothner@cygnus.com)
9991 * ch-typeck.c (build_chill_cast): Allow more liberality to
9992 casting: Any discrete type to any non-discrete type that is the
9993 same size as some other discrete type (and vice versa).
9994 * stor-layout.c (layout_type, case SET_TYPE): If the number
9995 of bits will fit in a char or short, only use that many bits.
9997 Mon May 3 08:22:45 1993 Bill Cox (bill@rtl.cygnus.com)
9999 * ch-grant.c (decode_constant): Revert interpretation
10000 of SET_TYPE as integer.
10002 Mon May 3 07:55:46 1993 Bill Cox (bill@rtl.cygnus.com)
10004 * chparse.y (casealternative): Allow empty action list.
10006 Sat May 1 15:07:01 1993 Bill Cox (bill@rtl.cygnus.com)
10008 * expr.c (expand_expr): Add parameter to __inpowerset
10009 runtime call, to match new runtime.
10011 Sat May 1 14:55:58 1993 Bill Cox (bill@rtl.cygnus.com)
10013 * ch-actions.c: Cleanup from -Wall. Reindent.
10014 Redefine __inpowerset to take a 'minval' parameter
10015 that matches the new runtime. Added comments.
10016 * ch-expr.c (chill_handle_case_label): Handle
10017 NULL or ERROR trees.
10018 * ch-grant.c (get_type): Survive bogus type params,
10019 return empty string.
10020 * ch-tree.c (build_powerset_type): Diagnose powerset
10021 of non-discrete type.
10022 * ch-typeck.c (discrete_type_p): Reindent.
10024 Fri Apr 30 16:08:54 1993 Bill Cox (bill@rtl.cygnus.com)
10026 * ch-grant.c (decode_constant): Interpret SET_TYPE
10027 with integer value, so we output the same stuff as
10029 * ch-parse.y: Fix indentation.
10031 Fri Apr 30 09:34:03 1993 Bill Cox (bill@rtl.cygnus.com)
10033 * ch-actions.c (chill_comptypes): Simplify, correct
10034 integer subrange analysis.
10035 * ch-grant.c (seize_implied_names): Add handling for
10036 PROCESS_DECL, PROCESS_TYPE.
10037 (do_seize): Call seize_implied_names for process,
10038 procedure parameters and return value.
10039 * ch-lang.c (finish_chill_enum): Canonicalize enum
10041 * ch-tree.def (PROCESS_TYPE): Add.
10042 * ch-typeck.c (valid_array_index): Call chill_comptypes
10043 rather than broken macro CH_COMPATIBLE. The logic
10044 in chill_comptypes will get moved to the macro later.
10046 Thu Apr 29 13:07:55 1993 Bill Cox (bill@rtl.cygnus.com)
10048 * ch-actions.c (build_chill_lower, build_chill_upper):
10049 Handle enumeration types.
10050 (build_chill_binary_op): Call chill_comptypes
10051 to error check IN arguments. Change error
10052 messages to say 'mode' rather than 'type'. Cast
10053 tree codes when build is called.
10054 * ch-expr.c (chill_expand_array_assignment): Call
10055 chill_comptypes to validate assignment args.
10056 * ch-lex.l: Add newline for readability.
10058 Wed Apr 28 15:22:18 1993 Bill Cox (bill@rtl.cygnus.com)
10060 * Makefile.in (ch-hash.h): Add rule to build this
10061 from chill.gperf. Not yet used.
10062 * ch-actions.c (build_chill_binary_op): Allow enum
10063 subranges on RHS of IN operator.
10064 * ch-grant.c (decode_constant): Recognize
10065 error_mark_node as empty powerset initializer,
10067 * ch-lang.c (deep_fold): Return error_mark_node for
10068 NULL input pointer or incoming error_mark_node.
10069 * ch-lex.l: Ignore PACK and UNPACK keywords. Return
10070 POS, ROW, and STEP as user-defined names.
10071 (name_or_type): New function for above.
10072 * ch-parse.y: Move token defs for following, comment
10073 them separately: NOPACK, PACK, POS, ROW, STEP
10074 * varasm.c (output_constant): Check for VAR_DECLs in
10075 records & unions, like arrays. Don't abort.
10077 Tue Apr 27 17:42:29 1993 Bill Cox (bill@rtl.cygnus.com)
10079 * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
10080 rewrite for generality.
10081 * ch-decl.c (grok_chill_variantdefs): Use chill
10082 comptypes, so that subrange compatibility is ok.
10083 (start_chill_function): Use lookup_name(), not
10084 IDENTIFIER_GLOBAL_VALUE, for full generality.
10085 * ch-expr.c (chill_expand_assignment): Need to
10086 handle non-NOP modify codes here, since C code
10087 in build_modify_expr won't understand powersets,
10090 Tue Apr 27 09:05:31 1993 Bill Cox (bill@rtl.cygnus.com)
10092 * ch-actions.c (build_max_min): Assign the set's
10093 base type to the function's return type.
10094 (build_chill_function_call): Before complaining
10095 about parameter mismatches, convert certain actual
10097 * ch-expr.c (chill_expand_assignment): Before
10098 complaining about LHS/RHS mismatches, convert
10099 certain RHS expressions.
10100 * ch-grant.c (decode_constant): Deep-fold incoming
10101 expression, so we can output it.
10102 * ch-lang.c (deep_const_expr): New function, called
10103 from const_expr, actually traverses the tree
10104 looking at its leaves for 'const'ness.
10105 (deep_fold): New function to fold already-built
10107 * ch-parse.y (case_expr): Add whitespace.
10108 * ch-tree.h: Add prototype for deep_fold.
10110 Tue Apr 27 07:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
10112 * ch-actions.c (chill_comptypes): Allow enumeration
10113 subranges as compatible with the parent enum.
10114 (build_chill_function_call): Before checking type
10115 compatibility, use convert on typeless expressions,
10117 * ch-expr.c (chill_expand_assignment): Before
10118 checking type compatibility, use convert on
10119 typeless expressions, like constructors.
10120 * ch-lex.l: Add comment.
10122 Thu Apr 22 17:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
10124 * .cvsignore: Add genopinit, insn-opinit.c
10125 * c-common.c (binary_op_error): Prevent seg fault on
10127 * ch-typeck.c (build_chill_array_ref): Remove old
10128 lower-bound-of-array-index-nonzero code.
10129 * expr.c (expand-expr, get_inner_reference): Remove
10130 old lower-bound-of-array-index-nonzero code.
10132 Thu Apr 22 16:01:09 1993 Bill Cox (bill@rtl.cygnus.com)
10134 * c-decl.c (shadow_record_fields): Add pushlevel for
10135 each PROCESS parameter, too.
10136 * ch-process.c (make_process_struct): First working
10138 * ch-tree.def: Add PROCESS_DECL definition.
10139 * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
10140 for make_process_struct.
10141 * expr.c (expand_expr): Add references to
10142 PROCESS_DECL. Add #include of ch-tree.h.
10143 * tree.c (decl_function_context): Add check for a
10144 PROCESS_DECL, and #include for ch-tree.h.
10146 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
10148 * expr.c (expand_expr): Add missing prototypes, and
10149 parameters to expand_expr call.
10151 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
10153 * c-decl.c (shadow_record_fields): Add ability to
10154 handle pointers to records/unions. For PROCESS
10157 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
10159 * ch-expr.c (chill_expand_expr): Add missing
10160 parameters to expand_expr calls. Some trivial
10161 reformatting for readability.
10163 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
10165 * ch-lex.l: Make send_*_prio externally visible,
10166 default them to zero, eliminate the init flags.
10167 Same for process_type.
10169 Sat Apr 17 10:59:50 1993 Bill Cox (bill@rtl.cygnus.com)
10171 * ch-actions.c (build_chill_binary_op): Build a
10172 BIT_FIELD_REF tree for IN_EXPR operations.
10173 * ch-typeck.c (build_chill_array_ref): Build a
10174 BIT_FIELD_REF tree for access to packed array of
10177 Fri Apr 16 12:33:34 1993 Bill Cox (bill@rtl.cygnus.com)
10179 * ch-parse.y (EXIT action): Improve error checking,
10181 * ch-typeck.c (chill_expand_tuple): Remove code to
10182 pack sets (moved to varasm.c long ago).
10183 * varasm.c (unpack_set_constructor): Rename size to
10184 bit_size, since 'size' always means bytes.
10185 (pack_set_constructor): Rename size to wd_size,
10186 since 'size' always means bytes.
10187 (output_constant): Set size to zero, so that extra
10188 bytes of padding aren't output after set constants.
10190 Fri Apr 16 11:57:50 1993 Bill Cox (bill@rtl.cygnus.com)
10192 * .cvsignore: Add .gdbinit.
10193 * ch-decl.c (start_chill_bindings): Add function name
10194 to binding contour's exit_label for EXIT stmt.
10195 * ch-parse.y (EXIT action): Call lookup_name to avoid
10196 inserting label for function name. Also check
10197 IDENTIFIER_LABEL_VALUE for label's decl.
10198 (caseaction, beginendblock, ifaction): Call
10199 stamp_nesting_label to put action's label into
10200 contour for EXIT to find.
10202 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
10204 * expr.c (expand_expr): Unify, clean up handling of
10205 IN_EXPR, and handling of bit-string element ref.
10206 Now, all goes through IN_EXPR handler.
10207 * stmt.c (stamp_nesting_label, expand_exit_labelled):
10208 New functions, which allow either label or
10211 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
10213 * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
10214 ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
10215 ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
10216 ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
10217 * ch-actions.c (build_chill_binary_op): Move runtime function call
10218 to expr.c. Just build a tree here. Clean up error checking.
10219 * ch-convert.c (convert): Simply store a type into an expression if
10220 TREE_TYPE (expr) == NULL. Prevent error if an enum is to be
10221 converted to a set of such enums.
10222 * ch-loop.c (init_loop_counter): Restore error msg for undeclared
10223 variable if no local scope is to be created for the loop.
10224 * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
10225 remove redundant code which wasn't ever called.
10227 Wed Apr 14 07:54:00 1993 Bill Cox (bill@rtl.cygnus.com)
10229 * .cvsignore (y.tab.c) : Add to list.
10230 * ch-convert.c (convert): Check pointers better - avoid NULL reference.
10231 Remove redundant check for ERROR_MARK - already checked earlier.
10232 * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
10235 Tue Apr 13 16:00:37 1993 Per Bothner (bothner@cygnus.com)
10237 * c-decl.c (start_function): If there is a previous
10238 function declaration of the same name, steal its RTL.
10239 This is a kludge needed for forward declarations of
10241 * ch-decl.c (push_chill_extern_function), ch-tree.h: New
10242 function, for external and seized function declarations.
10243 Make sure to use permanent obstack.
10244 * ch-parse.y (quasi_pdef, extprocedure): Use new function.
10246 * ch-grant.c (chill_finish_module_code): Since module
10247 function is no longer visible,, can't get it using
10248 lookup_name(). Use current_function_decl instead.
10250 * ch-decl.c (build_chill_function_type): Add void_type_node
10251 to end of parameter types list.
10253 * ch-grant.c (chill_start_module_code): Make sure module
10254 function isn't visible (and hence isn't granted).
10256 Tue Apr 13 15:48:25 1993 Bill Cox (bill@rtl.cygnus.com)
10258 * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
10259 current contour for DO FOR EVER loops.
10261 Tue Apr 13 14:37:39 1993 Bill Cox (bill@rtl.cygnus.com)
10263 * ch-parse.y (actionstatement): Add error rule. Delete
10264 POP_UNUSED_ON_CONTEXT. Add comments about label name usage.
10265 (nohandleraction): Better error check in EXIT processing.
10266 (optexprlist): Comment out make_function_rtl call.
10267 (seizestatement): Change error to warning.
10269 Tue Apr 13 08:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
10271 * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
10273 * ch-loop.c (begin_chill_loop): Take loop label as parameter. Stamp
10274 its name into the current contour's exit_label, for EXIT to use.
10275 * ch-parse.y: (actionlabel): Save label tree in global variable.
10276 (actionstatement): Clear label to NULL when action is finished.
10277 (handlerstatement, nohandlerstatement): Split actions into
10278 categories which do/don't permit exception handlers.
10279 (exitaction): Move code into nohandleraction, make it work.
10280 (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
10281 * ch-tree.h: Add parameter to begin_chill_tree prototype.
10282 * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
10283 Note: This implementation of EXIT only exits from loops, not yet
10284 from other bracketted statements.
10286 Mon Apr 12 13:41:55 1993 Per Bothner (bothner@rtl.cygnus.com)
10288 * ch-grant.c (chill_grant): Remove obsolete code.
10290 * ch-decl.c (push_synmode, push_newmode): Merged to yield ...
10291 * ch-decl.c (push_modedef): ... w/ slightly different interface.
10292 * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
10293 (modedefinition): Use new push_modedef function.
10294 * ch-parse.y (modedefinition): Don't depend on inherited
10295 attributes (- implemented incorrectly!): Use a global variable
10296 parsing_newmode to distinguish synmode and newmode.
10298 Mon Apr 12 08:10:34 1993 Bill Cox (bill@rtl.cygnus.com)
10300 * ch-loop.c: Diffuse cleanup after big functional changes.
10301 * ch-parse.y: Eliminate temporary variables, now unnecessary. Use
10302 parse-time stack instead.
10303 * ch-tree.h: Change build_chill_iterator prototype.
10305 Sun Apr 11 15:50:33 1993 Bill Cox (bill@rtl.cygnus.com)
10307 * ch-convert.c (convert): Replace an ERROR_MARK type - from a
10308 untyped_expr with the given type. Move chill_expand_case_expr
10309 call inside chill_expand_expr.
10310 * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
10311 chill_handle_case_label, chill_expand_case_expr): Move to ch-expr.c
10313 * ch-loop.c: Major reorganization to support multiple iterators in
10314 DO FOR loop, very little new code, just a re-org.
10315 * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
10317 Sat Apr 10 14:40:12 1993 Bill Cox (bill@rtl.cygnus.com)
10319 * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
10320 * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
10322 * ch-lex.l (equal_number): Add function to look in the input for '='
10323 followed by a decimal literal. Call it from directive scanning.
10324 (start state 'ccitt'): Deleted, unused. Moved unused, but reserved,
10325 tokens to NORMAL state.
10326 (compiler_directive): Replaced by equal_number. Now the only
10327 recursive call to yylex happens in check_newline at the beginning
10330 Sat Apr 10 09:55:50 1993 Bill Cox (bill@rtl.cygnus.com)
10332 * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
10333 * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
10335 * ch-parse.y (case_expr): Move code into ch-actions.c. There will
10336 need to be much more written.
10337 * ch-tree.def (VARY_ARRAY_REF): Add comment.
10338 * ch-tree.h (build_chill_case_expr): Add prototype.
10339 * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
10340 type to the expr. Check for CASE_EXPR, call expand_case_expr.
10342 Sat Apr 10 01:10:51 1993 Per Bothner (bothner@rtl.cygnus.com)
10344 * ch-parse,y (in_pseudo_module): New variable. Try if we're
10345 in a seizefile, but not in a module nested in the seizefile.
10346 Use for backwards compatibility with old grantfiles.
10347 * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
10348 If in_pseudo_module, grant new declaration.
10349 * ch-decl.c (pushd_newmode): If there is a granted previous
10350 incomplete type, fix it up.
10351 * ch-grant.c (seize_implied_names): Do remaining types.
10352 Guard against recursion.
10353 * ch-tree.h (IDENTIFIER_ENUM_VALUE): Removed, not used.
10354 * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
10355 (finish_chill_enum): Enum constants are marked with
10356 CH_DECL_ENUM so they don't get written to the grantfile.
10357 * ch-tree.h (IDENTIFIER_GRANTED_VALUE): Allow fast seizing.
10358 * ch-lex.l: Re-write to use start states, to avoid calling
10359 yylex() recursively.
10360 * ch-lex.l (compiler_directive); This is now obsolste. FIXME.
10361 * ch-lex.l: Call push_module and pop_module when reading a
10362 seizefile. This creates a pseudo-module.
10363 * ch-parse.y: Clean up handling of empty declarations and
10364 action statements; semicolons are now optional a number of
10366 * ch-parse.y: Remove some bogus tests for "statement
10367 out of sequence" (they're both legal and work).
10368 * varasm.c (mak_function_rtl): Remove kludge that may
10369 not be necessary (and loses anyway).
10371 Fri Apr 9 09:37:38 1993 Bill Cox (bill@rtl.cygnus.com)
10373 * ch-expr.c (chill_expand_array_assignment): Remove false error about
10374 arrays that are too small.
10375 * ch-parse.y (callaction): Don't pass an error_mark_node to
10376 c_expand_expr_stmt.
10378 Fri Apr 9 00:26:54 1993 Per Bothner (bothner@rtl.cygnus.com)
10380 * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10382 * ch-actions.c (build_chill_function_call): Use latter.
10383 * ch-typeck.c (chill_similar): Fix typo.
10384 * ch-grant.c (raw_decode_mode): Handle ENCAPSULATED_ARRAY_P
10386 * ch-grant.c (seize_implied_names): Handle ranges of enums.
10387 * ch-grant.c (do_seize): Set DECL_SOURCE_FILE and _LINE of
10388 seized declaration to be the point of the seize itself.
10389 * ch-grant.c (chill_grant), ch-tree.h: Add a parameter
10390 which is the list (in order) of decls in the module.
10391 Don't reverse the getdecls() list; that is handled by caller.
10392 * ch-grant.c (chill_grant): Test that a declaration is
10393 visible before writing it.
10394 * ch-parse.y (push_module): Make sure to hide declarations
10395 from surrounding module.
10396 * ch-parse.y (pop_module): Restore those declarations.
10397 * ch-parse.y (pop_module): This function is now responsible
10398 for writing out for calling chill_grant() to the grant file.
10399 * ch-actions.c (lang_finish): Remove calls to chill_grant().
10401 Thu Apr 8 16:56:52 1993 Bill Cox (bill@rtl.cygnus.com)
10403 * ch-actions.c (build_char_array_expr): Add handling of varying
10404 arrays in relational expressions.
10405 * ch-decl.c: Add prototype for lookup_name_current_level.
10406 * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
10407 so its length is used as the temp's size.
10408 (chill_expand_array_assignment): Correct for varying := varying
10409 assignment, clean up.
10410 * ch-typeck.c: Add prototype for require_complete_type.
10412 Wed Apr 7 16:41:29 1993 Bill Cox (bill@rtl.cygnus.com)
10414 * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10415 diffuse changes to fix location loops.
10416 * ch-parse.y (location): Remove ref through NULL ptr.
10418 Wed Apr 7 13:42:06 1993 Per Bothner (bothner@rtl.cygnus.com)
10420 * ch-decl.c (massage_param_node): New function.
10421 It handles the LOC/IN/OUT/INOUT parameter distinction,
10422 as well as calling build_chill_array_parm_type if needed.
10423 * ch-tree.h (massage_param_node): New prototype.
10424 * ch-decl.c (push_parms): Use new massage_param_node().
10425 * ch-parse.y (pmodearg): Use new massage_param_node().
10426 * ch-parse.y (formpar): Don't call build_chill_array_parm_type;
10427 now handled by massage_param_node.
10428 * ch-typeck.c (my_build_array_ref): Handle non-zero array
10430 * ch-actions.c (build_chill_function_call): If the formal
10431 parameter is a pseudo record wrapped around an array, make
10432 sure we wrap the actual parameter in a record CONSTRUCTOR.
10433 * ch-typeck.c (build_chill_array_parm_type): Make sure
10434 the pseudo struct type is allocated on the permanent_obstack.
10435 * ch-parse.y (location): Remove thinko.
10436 * ch-actions.c (chill_comptypes): Comment out test for
10437 NEWMODEness - it gets broken by the forward declaration hacks.
10439 Tue Apr 6 18:05:40 1993 Bill Cox (bill@rtl.cygnus.com)
10441 * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10442 * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10443 * ch-parse.y (location): Do build_component_ref for an array wrapped
10445 * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10446 * ch-typeck.c (build_chill_array_parm_type): Add function, move
10447 build_varying_struct here from ch-actions.c.
10449 Mon Apr 5 19:56:56 1993 Bill Cox (bill@rtl.cygnus.com)
10451 * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10452 rather than in-line code - tests LOW and HIGH values.
10453 * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10454 * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10457 Mon Apr 5 15:45:10 1993 Bill Cox (bill@rtl.cygnus.com)
10459 * ch-typeck.c (my_build_array_ref): Add some more code from
10460 build_array_ref. Change checks, error messages to mention
10461 'discrete types'. I.E. types which don't kiss and tell..
10463 Sat Apr 3 09:27:03 1993 Bill Cox (bill@rtl.cygnus.com)
10465 * ch-except.c, ch-expr.c: Turn externs into prototypes.
10466 * ch-grant.c (chill_grant): Remove orphan #else.
10467 * ch-tree.h: Add prototype for build_chill_bin_type.
10468 * ch-typeck.c: Turn externs into prototypes, delete code which
10469 was commented out in chill_expand_return; it will never be used.
10471 Fri Apr 2 21:55:14 1993 Per Bothner (bothner@rtl.cygnus.com)
10473 Major re-write of New module/seize/grant stuff.
10474 Now, a grantfile is a spec module and contains all the
10475 top-level declarations of the granting module, not just
10476 those that are granted. It also contains explicit grant
10477 statments naming those declared names that are granted.
10478 It also has seize statements and use_seize_file directives
10479 to correctly handle transitive dependencies.
10481 * ch-parse.y: Change to allow multiple modules per source file.
10482 Allow spec modules (including quasi definitions) as well as
10484 Allow spec modules inside normal modules; these behave as if
10485 they were outermost. This violates the Blue Book, but is
10486 needed by the new grantfile mechanism. (A grant file is a
10487 spec module that gets included by the use_seize_file directive.)
10488 * ch-parse.y (struct module *current_module, push_module,
10489 pop_module): Support module nesting (for spec modules only).
10491 * ch-tree.h (struct module): New.
10492 * ch-grant.c (granted_decls): New list of declarations
10493 that have been granted into the outermode pseudo-module.
10494 * ch-grant.c (decode_mode): If the decl has a name,
10495 always write the name, not just if the decl has already
10496 been written. Since we write out all decls, we can assume
10497 it will be written later, and depend on the forward
10498 declaration kludges to catch it.
10499 * ch-grant.c (decode_decl): Don't write out _EXTERN.
10500 Instead write out standard (Blue Book) quasi-definitions.
10501 * ch-grant.c (push_granted): New function.
10502 * ch-grant.c (seize_implied_names): New function. Re-write
10503 how set element names are seized when a set type is seized.
10504 * ch-grant.c (chill_seize): Work by seraching the
10505 granted_decls list and copying the declaration.
10506 * ch-grant.c (chill_grant): Write all declarations
10507 declared in this module. Write GRANT statements for
10508 those granted. seize statements for decls seized from
10509 other modules. Write extra syntax to make a complete
10511 * ch-grant.c (grant_use_seizefile): Copy use_seize_file
10512 directives into grant file.
10513 * ch-lex.l (setup_seizefile_read): Call grant_use_seizefile.
10515 * ch-lex.l (struct input_state, current_input_state,
10516 push_input_file, pop_input_file): New (type, variable,
10517 function*2). Used to save and restore state on an input file.
10518 * ch-lex.l: Clean up to handle nested input seizefiles
10519 (needed by new grant/seize mechanism.
10520 * ch-lex.l (skip_to_end_of_directive): New function.
10521 * ch-lex.l (compiler_directive: USE_SEIZE_FILE): Make sure
10522 we skip to the end of the directive *before* we switch
10524 * ch-lex.l (setup_seizefile_read): Prevent reading the
10525 same seizefile twice (otherwise likely with new grant/seize).
10526 * ch-lex.l: Recognize SPEC. Misc cleanups.
10528 * ch-parse.y: Fixed foreward references of types.
10529 Removed the unknown_type_node crock.
10530 * ch-decl.c: Remove all uses of unknown_type_node.
10531 Check for TYPE_SIZE zero instead.
10532 * ch-decl.c (fixup_unknown_type): Make sure new mode
10533 gets copied into old mode. Merge their variant chains.
10534 * c-decl.c (lookup_name_current_level): Make non-static.
10535 * ch-decl.c (lookup_name_current_level): No longer needed.
10537 * ch-parse.y (call): Allow an implicitly defined function
10538 name following the CALL keyword.
10539 * ch-tree.h (struct lang_identifier): Add implicit_decl,
10540 and make sure order of fields matches c-tree.h.
10542 * ch-actions.c (lang_init, build_allocate_memory_call,
10543 build_allocate_globals_memory_call): Fix names (add initial '_')
10544 and prototypes of _allocate_[global_]memory (2nd param is ref).
10545 Use build_chill_function_call, not build_function_call,
10546 so the reference parameter gets handled.
10547 * ch-actions.c. (lang_init): Make sure boolean_{true,false}_node
10548 have boolean_type_node as their types.
10549 * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10550 work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10552 * ch-except.c: Make sure an end_label is generated,
10553 and jump to it if there is no exception.
10555 * ch-convert.c (convert_to_reference): Strip off NOP_EXPR casts.
10556 * expr.c (expand_expr): Handle NOP_EXPR as Chill-style casts.
10557 (Need cleaning up and FSF installation!)
10558 * ch-parse.y: If taking the address of a cast, move the
10559 ADDR_EXPR inside the NOP_EXPR.
10561 * ch-typeck.c (my_build_array_ref): Simplified, more suitable
10562 versions of build_array_ref from c-decl.c. (E.g. don't barf
10563 if index type is char or bool.)
10564 * ch-typeck.c (build_chill_array_ref): Use my_build_array-ref.
10566 * ch-typech.c (build_chill_bin_type): New function.
10567 Support BIN(N) range type specification.
10568 * ch-parse.y (mode2), ch-lex.l: Recognize BIN(N).
10570 * ch-tree.h (CH_SIMILAR): Redefine in terms of chill_similar.
10571 * ch-typeck.c (chill_similar): New function. Recognize that
10572 that range types are similar to their parent types.
10574 * ch-tree.h: Declare flag_local_loop_counter.
10575 * ch-loop.c: Whether the loop variable is local to the loop
10576 in now controlled by flag_local_loop_counter, instead of
10577 #ifdef'd on CREATE_SCOPE.
10578 * ch-actions.c (lang_decode_option): Recognize flags
10579 "-f[no-]local-loop-counter".
10580 * toplev.c (lang_options): Add Chill flags -f[no-]local-loop-counter.
10582 * varasm.c (make_function_rtl): Due to problems with forward
10583 references, don't rename nested functions in Chill. (Kudge!)
10585 Sun Mar 28 10:12:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
10587 * ch-lex.l (push_back, readstring): Fix prototypes.
10589 Fri Mar 26 18:32:15 1993 Bill Cox (bill@rtl.cygnus.com)
10591 * ch-parse.y: Put %type directives back into alpha order.
10592 (variant_alternative): Simplify error_mark test.
10593 (variantfields, varianthack): Add error_mark checks.
10595 Fri Mar 26 13:36:23 1993 Bill Cox (bill@rtl.cygnus.com)
10597 * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10598 * ch-parse.y (get_type_of): Add function to deal with possible fwd
10599 declared type name. Call it from lotsa places. Add lotsa checks
10600 for error_mark_node. Standardize indentations.
10602 Thu Mar 25 15:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
10604 * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10605 for array assignments.
10606 * ch-parse.y (action): Add recognition for allocate_memory and
10607 allocate_global_memory system calls.
10608 (mode2): Remove ill-conceived error check that broke REFs to
10609 as-yet-undeclared types. Check for IDENTIFIER_NODE, lookup its
10610 DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10611 (variantfields, varianthack): Clean up.
10612 (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10613 there, pass TREE_TYPE of decl to grok_fixedfields.
10614 (labellist): Explicitly assign error_mark_node to signal error.
10615 * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10616 rather than seg faulting.
10618 Thu Mar 25 10:35:58 1993 Bill Cox (bill@rtl.cygnus.com)
10620 * ch-actions.c (lang_init): build_function_type for allocate_memory
10621 and allocate_global_memory runtime routines. Move discrete_type_p
10623 * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10624 in build_chill_cast.
10626 Wed Mar 24 16:25:16 1993 Per Bothner (bothner@rtl.cygnus.com)
10628 * ch-grant.c: Don't grant previously seized names.
10630 Tue Mar 23 15:25:39 1993 Bill Cox (bill@rtl.cygnus.com)
10632 * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10633 * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10636 Tue Mar 23 09:03:35 1993 Bill Cox (bill@rtl.cygnus.com)
10638 * ch-actions.c (build_char_array_expr): Just build a type for the
10639 result of a CONCAT_EXPR, and pass the tree back.
10640 chill_expand_array_assignment can do a better job of
10642 * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10645 Mon Mar 22 12:42:58 1993 Per Bothner (bothner@rtl.cygnus.com)
10647 * ch-except.c (start_handler_array): Make sure the handler
10648 array and its type get on the permanent obstack.
10649 * ch-grant.c (write_grant_file): Don't write the _INIT=name
10650 specifier: It isn't needed, and loses (because of funny
10651 characters in the chill_initializer_name).
10652 * ch-decl.c (push_synmode): Set TYPE_NAME(mode) = syndecl.
10653 * ch-lang.c (finish_chill_enum): Don't allocate a dummy
10654 TYPE_DECL for the enum. I don't think it is needed (?),
10655 and removing it is needed for the change above.
10657 * ch-grant.c (grant_array_type, decode_mode): Remove unused
10659 * ch-grant.ch (raw_decode_mode): New function, based on old
10661 * ch-grant.c (decode_mode); This is now just a wrapper around
10662 raw-decode_mode - but does not call raw_decode_mode if the
10663 type is named and has already been emitted.
10665 Fri Mar 19 11:55:35 1993 Bill Cox (bill@rtl.cygnus.com)
10667 * ch-actions.c: Add prototypes, remove unused variables. Attempt to
10668 continue generating grant file in presence of error (Wilfried's
10669 patch to lang_finish).
10670 * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10671 after each statement. Move convert call into
10672 chill_expand_assignment from ch-parse.y.
10673 * ch-grant.c: Generally re-order, clean up. Include Per's decode_mode
10674 simplification. Include commented-out hack in decode_mode to return
10675 type's name if type SEIZEd or already GRANTed in this file.
10676 * ch-lex.l: Add prototypes.
10677 * ch-parse.y (assignaction): Move convert call into
10678 chill_expand_assignment.
10680 Thu Mar 18 16:04:45 1993 Bill Cox (bill@rtl.cygnus.com)
10682 * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10684 * ch-decl.c: Add prototypes, correct error message spelling, remove
10686 * ch-lang.c (build_chill_range_type): Add error message. Add prototypes.
10687 Correct comment spelling.
10688 * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10689 assignment in conditional.
10690 * ch-loop.c: Add prototypes, remove unused variable.
10691 * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10692 parameter is seen, don't count it in structured_variable_list. Pre-
10693 vents seg fault when only WITH operand is invalid.
10694 * ch-parse.y (label_spec): Correct assignment within IF expression which
10695 was intended to be equality test. Remove unused variables.
10696 * ch-tree.h: Add prototype. Remove unused EXCP_CODE enumeration, and
10697 prototyping editorial comments.
10698 * ch-typeck.c: Disable generation of code to validate array index for
10699 now. Should be done as a call-back from more generic array_ref code.
10700 Clean up parameter checking. Remove unused variables.
10702 Fri Mar 12 11:57:32 1993 Bill Cox (bill@rtl.cygnus.com)
10704 * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10705 * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10706 build_char_array_expr.
10707 * ch-convert.c (convert): protect against seg fault, if type == NULL.
10708 * ch-expr.c (chill_expand_expr): Add FIXME comment.
10710 Fri Mar 12 11:04:02 1993 Bill Cox (bill@rtl.cygnus.com)
10712 * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10713 Thanks very much to dje!
10715 Thu Mar 11 21:06:55 1993 Bill Cox (bill@rtl.cygnus.com)
10717 * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10718 Move CONCAT_EXPR handling from binary_op to array_expr. Add
10719 handling for relationals between varying arrays to array_expr.
10721 Thu Mar 11 19:20:37 1993 Bill Cox (bill@rtl.cygnus.com)
10723 * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10724 *BIT* length of powersets and arrays of BOOLs.
10725 (invalid_left_operand, invalid_right_operand): Disallow relationals
10726 with arrays of BOOL as operands.
10727 * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10728 comparing pointers.
10729 * ch-decl.c (push_newmode): Re-indent.
10730 * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10731 and arrays of BOOLs.
10732 * ch-lang.c (build_chill_array_type): Add parameter error checking.
10734 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10736 * expr.c (store_constructor): Handle set construction.
10737 * varasm.c (output_constant): Prevent seg fault - terminate case
10738 alternative with a 'break'.
10740 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10742 * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10743 * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10744 * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10746 Mon Mar 8 13:16:05 1993 Bill Cox (bill@rtl.cygnus.com)
10748 * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10751 Mon Mar 8 10:13:57 1993 Bill Cox (bill@rtl.cygnus.com)
10753 * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10754 Correct some non-standard indentations.
10756 Fri Mar 5 14:58:35 1993 Bill Cox (bill@rtl.cygnus.com)
10758 * ch-actions.c: Fix up comment.
10760 Thu Mar 4 18:05:43 1993 Bill Cox (bill@rtl.cygnus.com)
10762 * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10763 negating the result of calling __eqpowerset. New function
10765 * ch-grant.c (get_tag_value): Don't seg fault referring to an
10766 anonymous enumeration's name.
10767 * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10768 * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10769 * ch-parse.y (label_spec): redefine variant structure label_spec
10770 to agree with the Z.200 spec.
10771 (locdec): Error if set/bitstring initialized with a tuple.
10772 (case_label, arrayindex): Use new discrete_type_p
10774 * ch-process.c: Fix typo.
10776 Wed Mar 3 14:30:53 1993 Per Bothner (bothner@rtl.cygnus.com)
10778 * ch-lang.c, ch-tree.h: Rename build_range_type to
10779 build_chill_range_type. Call new build_range_type() in tree.c.
10780 * ch-parse.y: Call build_chill_range_type as approriate.
10781 * ch-typeck.c (build_chill_cast); Clean up.
10783 Wed Mar 3 09:36:56 1993 Bill Cox (bill@rtl.cygnus.com)
10785 * ch-parse.y: Define CONTINUE_EVENT token.
10786 * ch-parse.y (mode2): Give error message for SYN modea = modeb
10787 where modeb is undefined.
10789 Tue Mar 2 20:16:37 1993 Bill Cox (bill@rtl.cygnus.com)
10791 * ch-actions.c: Add builtin function descriptions for memset and
10792 bitsetpowerset. Allow build_chill_num expression to exceed 16 bits,
10794 * ch-tree.h: Correct chill_handle_case_default prototype.
10795 * ch-actions.h, ch-lex.h: Add prototypes.
10796 * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10798 Thu Feb 25 17:35:46 1993 Bill Cox (bill@rtl.cygnus.com)
10800 * c-decl.c (init_decl_processing): Disable creation of C-specific
10801 builtin functions. They pollute the CHILL name space.
10802 * stor-layout.c (variable_size): Allow variable-size objects at file
10805 Fri Feb 26 07:14:34 1993 Bill Cox (bill@rtl.cygnus.com)
10807 * c-decl.c (finsh_decl): Don't output non-constant storage size
10809 * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10810 call in build_chill_cause_exception.
10811 * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10812 * ch-loop.c (build_temporary_variable): New function
10813 * ch-process.c: Call build_temporary_variable, spell start_process
10815 * ch-tree.h: Extern for build_temporary_variable
10817 Thu Feb 25 12:09:01 1993 Bill Cox (bill@rtl.cygnus.com)
10819 * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10820 builtins - they pollute the CHILL name space.
10821 * ch-typeck.c (valid_array_index): Correct upper-bound check.
10822 * expr.c (expand_expr): Use actual library name for __inpowerset
10824 * stor-layout.c (variable_size): Disable complaint about variable-
10825 size type or decl at file scope. Perhaps later this s.b. a warning.
10826 * varasm.c (emit_set_data): Add function.
10827 (output_constant): Call new emit_set_data function for VAR_DECLs,
10828 in addition to CONSTRUCTORs.
10830 Thu Feb 25 11:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
10832 * ch-actions.c: Change all builtin functions names to their
10833 actual library names. Change references to boolean_type_node
10834 to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10836 build_set_expr: Remove length parameter, call powersetlen() instead.
10837 remove handling of CHAR arrays - they're handled in build_char_array_expr.
10838 Call __eqpowerset to test for equality - we can't use a byte-length -
10839 need bitcount instead.
10840 build_chill_compound_expr, internal_build_compound_expr: Copy from C
10841 version that does stuff we don't want.
10842 build_binary_op: Check for in_size_in_bytes return < 0, indicating
10843 size is changeable at run time. Build two memcpy calls to implement
10844 string concatenation.
10845 powersetlen: Add function.
10846 build_chill_card: Call powersetlen.
10847 build_chill_max_min: Common code for powerset max/min.
10848 build_chill_length: Move VARYING array handling before regular char
10850 * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10851 the VARYING status of the target to do this correctly. Use powersetlen
10852 for the powerset operations, not a byte length.
10853 * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10854 for each CHILL loop, as Z.200 requires. Add powerset and error flags
10855 to loop structure. Evaluate user's powerset expression into a temp,
10856 scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10857 for powerset loop. Only do loop-end assignments if NOT a powerset
10858 loop, which has much less overhead now.
10859 * ch-tree.h: Add prototype for powersetlen.
10861 Fri Feb 19 08:40:24 1993 Bill Cox (bill@rtl.cygnus.com)
10863 * ch-lex.l (convert_number): Evaluate number and pass it as
10866 Fri Feb 19 08:56:44 1993 Michael Tiemann (fs_tie at rcsw18)
10868 * ch-typeck.c (build_chill_array_ref): Handle newmodes
10871 * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10872 we are going to return 0.
10874 * ch-convert.c (convert_to_reference): Don't use
10875 TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10876 (which must match the type of the expr).
10878 * ch-grant.c (chill_seize): Don't let a type be copied just
10879 because we are seizing it.
10881 * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10882 TYPE_MAX_VALUE to integer type.
10884 * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10885 tree type of the bounds.
10886 (build_loop_top): type of GE_EXPR and LE_EXPR is
10887 boolean_type_node, not lp->iter_type.
10888 (for_location): Ditto.
10890 * ch-action.c (build_chill_lower,build_chill_upper): Handle
10891 ENUMERAL_TYPE. Also, handle different kinds of arguments more
10894 * ch-parse.y (iteration): Convert start_exp and end_exp to
10895 match the type of modename.
10897 * ch-grant.c (chill_seize_aggr): Search also through anonymous
10900 * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10901 already been seized, and if so, do nothing.
10903 * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10904 comes out error_mark_node, set ERRONEOUS.
10906 * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10909 * ch-action.c (chill_comptypes): Test for structural
10910 equivalence of enums.
10912 * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10913 TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10915 * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10916 ARRAY_TYPE, seize the domain type if its a set.
10918 Thu Feb 18 20:02:15 1993 Per Bothner (bothner@rtl.cygnus.com)
10920 * c-typeck.c (process_init_constructor): Emit error if some
10921 array elements are not initialized.
10922 * c-typeck.c (process_init_constructor): Call digest_init()
10923 recursively to expand default_value.
10924 * ch-expr.c (chill_expand_array_assignment): Simplify, and
10925 handle the case that the lhs has dynamic size (e.g. a slice).
10926 * ch-parse.y (elementlist): Handle the case that tupleelement
10927 generates more than one TREE_LIST node.
10929 Thu Feb 18 12:40:56 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10931 * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10932 * c-typeck.c (lookup_field): add function, calls.
10933 * ch-actions.c (build_chill_binary_op): figure return_type differently.
10934 * ch-convert.c (convert_to_reference): return error_mark_node,
10935 STRIP_NOPS. (convert): Braces for readability.
10936 * ch-decl.c (build_chill_function_type): accept typespec as parm.
10938 (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10939 * ch-expr.c (chill_expand_assignment): handle references.
10940 * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10941 * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10942 call convert. Generally handle reference types.
10945 Thu Feb 18 09:30:11 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10947 * ch-actions.c (chill_comptypes): Figure out which newmode or
10948 synmode decls look most canonical.
10949 * ch-convert.c (convert): handle location conversions of records,
10951 * ch-decl.c (fixup_unknown_type): changes for variant records
10952 * ch-parse.y (tupleelement): avoid confusing digest_init.
10953 * ch-typeck.c (build_chill_array_ref): give element ref the
10954 type of the ELEMENT, not the array (Bill Cox).
10956 Wed Feb 17 11:52:20 1993 Bill Cox (bill@rtl.cygnus.com)
10958 * ch-parse.y: change push_newmode and push_synmode interfaces.
10959 * ch-actions.c (build_chill_binary_op): convert operands.
10961 Wed Feb 17 10:54:24 1993 Bill Cox (bill@rtl.cygnus.com)
10963 * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
10964 handle reference types.
10965 * ch-decl.c (push_newmode, push_synmode): rewritten
10966 * ch-process.c (make_process_struct): new push_newmode interface.
10967 * ch-typeck.c (build_chill_cast): change interface, error checks.
10969 Wed Feb 17 09:50:37 1993 Bill Cox (bill@rtl.cygnus.com)
10971 * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
10973 * ch-typeck.c (valid_array_index): new function.
10975 Tue Feb 16 22:36:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10977 * ch-convert.c (convert): Slightly more correct conversion
10978 for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
10979 * ch-expr.c (chill_expand_array_assignment): Invoke
10980 __builtin_memcpy using build_function_call, not directly at
10981 the rtx level (which doesn't work).
10982 * ch-typeck.c (build_chill_slice): First attempt at slices.
10983 * ch-tree.h, ch-typeck.c (build_chill_slice_with_range,
10984 build_chill_slice_with_length): New functions.
10985 * ch-parse.y: Use new slice-building functions.
10986 * expr.c (get_inner_reference): Subtract low bound of
10987 array when doing an ARRAY_REF.
10989 Tue Feb 16 14:17:55 1993 Bill Cox (bill@rtl.cygnus.com)
10991 * ch-actions.c (build_chill_function_call): better comments.
10992 * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
10993 * ch-parse.y: indentation cleanup
10995 Tue Feb 16 12:03:53 1993 Michael Tiemann (tiemann@cygnus.com)
10997 * ch-decl.c (grok_chill_variantdefs): Really implement variant
10999 * ch-grant.c (get_tag_value): New function.
11000 * ch-grant.c (decode_mode): Grant variant records.
11002 * ch-grant.c (chill_seize): If we seize a set, seize the set
11005 * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
11008 * ch-parse.y (EMPTY): New pseudo-token to disambiguate
11009 variant_alternatives.
11010 (current_fieldlist): New variable to help processing tag
11011 declarations in variant records.
11012 (fields): Renamed from structdef.
11013 (field): Renamed from fields.
11014 (varianthack): New non-terminal to handle parsing ambiguity
11015 for variant records.
11016 (optlabellist): Changed to preserve CONST_DECLs when they are
11019 * ch-tree.h (TYPE_TAGFIELD): New macro.
11020 (TYPE_TAG_VALUES): Ditto.
11022 Mon Feb 15 00:49:34 1993 Per Bothner (bothner@rtl.cygnus.com)
11024 * ch-grant.c (decode_mode): Fix output for powerset modes.
11025 * ch-grant.c (decode_constant): Support grant output of
11027 * ch-actions.c (build_chill_binary_op): IN_EXPR fix.
11028 * expr.c (expand_expr): Add Chill-specific kludge for
11029 BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
11030 * ch-expr.c (chill_expand_assignment): Remove no-longer-needed
11031 special-case support for a BIT_FIELD_REF in right-hand-side.
11032 * ch-lang.c (finish_chill_enum): Patch up enum elements to
11033 have the correct type (instead of integers, as in C).
11035 * ch-lex.l, ch-parse.y: Add disgusting hack (involving
11036 context-dependent look-ahead) so we can parse exception
11037 handlers correctly.
11038 * c-typeck.c (digest_init): Set output type for SET_TYPEs.
11039 * varasm.c (unpack_set_constructor): Add support for
11040 (power-)set ranges (i.e. low_element:high_element).
11042 Sun Feb 14 13:37:52 1993 Bill Cox (bill@rtl.cygnus.com)
11044 * ch-inout.c: delete unused #include
11045 * ch-typeck.c (build_chill_slice): turn abort call into error msg.
11047 Sat Feb 13 13:13:31 1993 Bill Cox (bill@rtl.cygnus.com)
11049 * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
11051 Sat Feb 13 12:17:41 1993 Bill Cox (bill@rtl.cygnus.com)
11053 * Makefile.in: add lots of header files to the CHILL dependencies
11055 Fri Feb 12 15:48:27 1993 Per Bothner (bothner@rtl.cygnus.com)
11057 * ch-actions.c (build_chill_function_call): Don't return
11058 error_mark_node on empty parameter-list.
11060 Fri Feb 12 12:54:52 1993 Bill Cox (bill@rtl.cygnus.com)
11062 * ch-actions.c (build_chill_function_call): fix start_decl parms.
11063 * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
11065 Fri Feb 12 10:32:37 1993 Bill Cox (bill@rtl.cygnus.com)
11067 * ch-actions.c (build_chill_function_call): create temps, do
11068 assignments to handle INOUT and OUT parameters.
11069 * ch-decl.c (build_chill_function_type): better parameter name.
11070 * ch-parse.y (action): keep rules in alpha order.
11071 (pmodearg): turn INOUT, OUT parameter types into reference types.
11072 * ch-typeck.c (build_tree_slice): indentation change.
11074 Thu Feb 11 23:16:34 1993 Per Bothner (bothner@rtl.cygnus.com)
11076 * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
11077 take a list of elements which are in the set. This corresponds
11078 better to the tuple input form in Chill (and Pascal).
11079 * varasm.c (unpack_set_constructor, pack_set_constructor):
11080 New functions, to expand SET_TYPE CONSTRUCTORs.
11081 * varasm.c (output_constructor): Use pack_set_constructor
11082 to assemble a SET_TYPE constant from a CONSTRUCTOR.
11084 * ch-grant.c (decode_constant): Better grant for strings,
11085 enumeral, and bitstring constants.
11086 * ch-grant.c: Fixes in seize to avoid duplicates, and emit
11087 things in the correct order.
11088 * c-typeck.c (chill_initializer_constant_valid_p): Kludge
11089 needed to export a static function.
11090 * ch-typeck.c (convert): Avoid needlessly (and lossingly) calling
11091 chill_expand_tuple to convert fix string to varying.
11092 * ch-actions.c (build_chill_binary_op): Promote short
11093 integer operands if needed (otherwise emit routines barf).
11094 * ch-tree.h (SET_WORD_SIZE): New macro.
11095 * ch-parse.y: Fix syntax for RECEIVE CASE.
11096 * ch-parse.y (location): If IDENTIFIER is a CONST_DECL
11097 return its value instead.
11099 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
11101 * ch-actions.c (build_chill_max, build_chill_min): clean up
11102 * ch-typeck.c (chill_expand_tuple): correct set initialization from
11103 an enumeration tuple. Add sort_constructor function.
11105 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
11107 * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
11108 BOOLEAN_TYPE w/out an abort.
11110 Wed Feb 10 14:59:53 1993 Bill Cox (bill@rtl.cygnus.com)
11112 * ch-actions.c: change most integer_type_node references to
11113 chill_integer_type_node. Rewrite _max and _min routines,
11114 redefine the signatures for those runtime routines. Move
11115 empty-set check into runtime.
11116 * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
11117 most integer_type_node references to chill_integer_type_node.
11119 Tue Feb 9 16:00:05 1993 Per Bothner (bothner@rtl.cygnus.com)
11121 * ch-except.c: New file. Stuff for exception handling.
11122 * ch-parse.y: Add working exception handling support.
11123 * ch-lex.l, ch-parse.y: Prefer standard type terminology
11124 (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
11125 * ch-grant.c: Fix various problems related to granting
11126 types such as bitsets.
11127 * ch-tree.c (build_bitstring_type): Set TYPE_MIN_VALUE
11128 to distinguish bitstrings from powersets (in the same way
11129 we distinguish char strings from char arrays).
11130 * ch-tree.h: New macro CH_BOOL_TYPE_P.
11131 * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
11132 Undo kludge where integer_type_node was hardwired to 16 bits.
11133 Make integer_type_node etc have the same size as in cc1.
11134 New types chill_integer_type_node and chill_unsigned_type_node
11135 that correspond to the Chill source types INT and UINT.
11136 For now, these match the C 'short' types, but that should
11137 become a configuration option later,
11139 Tue Feb 9 11:41:25 1993 Bill Cox (bill@rtl.cygnus.com)
11141 * ch-actions.c (build_chill_unary_op): allow NOT of a set.
11143 Tue Feb 9 08:27:18 1993 Bill Cox (bill@rtl.cygnus.com)
11145 * ch-actions.c (build_chill_function_call): add test for
11146 too many/few actual parameters (and avoid seg fault).
11147 * ch-decl.c (do_decls): code cleanup for readability.
11148 * ch-loop.c (begin_chill_loop, end_chill_loop): remove
11149 emit_nop() calls - they now (since exceptions) cause seg faults.
11150 Make derogation on poor CHILL compiler non-specific.
11151 * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
11152 * ch-tree.h: remove prototypes added to c-tree.h.
11153 * ch-typeck.c (build_chill_array_ref): correct getting domain
11154 subtree for a PARM_DECL. Subscripting a SET_TYPE is turned into
11157 Sun Feb 7 18:20:49 1993 Bill Cox (bill@rtl.cygnus.com)
11159 * ch-tree.def: add a new tree type - just for varying array
11160 references. We were using ARRAY_REF, but the underlying C
11161 code also generates that one.
11162 * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
11164 Sun Feb 7 17:33:17 1993 Bill Cox (bill@rtl.cygnus.com)
11166 * ch-convert.c: test given type against type of expr before
11167 calling chill_expand_tuple. We were getting lots of spurious
11170 Fri Feb 5 15:24:01 1993 Per Bothner (bothner@rtl.cygnus.com)
11172 * cccp.c: Merge in various Chill-specific changes.
11173 * gcc.c (default_compilers array): Pass -lang-chill
11174 to cpp, not -lang-ch.
11176 Fri Jan 29 17:18:22 1993 Per Bothner (bothner@rtl.cygnus.com)
11178 * Makefile.in (install-libchill, install-librmt): Removed.
11179 * ch-actions.c (build_chill_exception_decl): Change decl
11180 to initialized char array, rather than unitialized common.
11181 (Simplifies extracting string name of exception.)
11182 * ch-actions.c: Adjust interface to cause_exception accordingly.
11183 * ch-typeck.c (build_chill_array_ref): Cause rangefail if
11184 index > limit, not >= limit.
11186 * ch-actions.c (build_chill_function_call): Rename misleading
11188 * ch-decl.c (do_decls): Allow (again) general initializer exprs.
11189 * ch-parse.y (call): Test for function call needs to test for
11190 FUNCTION_TYPE, not FUNCTION_DECL.
11191 nreverse arg list to build_chill_array_ref.
11192 * ch-typeck.c (build_chill_array_ref): Do recursive call at end
11193 and only if multiple indexes.
11194 * ch-typeck.c: Cleanups.
11196 Fri Jan 29 11:05:58 1993 Bill Cox (bill@rtl.cygnus.com)
11198 * ch-decl.c (do_decls): handle set initializations better, more to do.
11199 * ch-loop.c (begin_for_range): correct interface to expand_start_cond
11200 and build_binary_op.
11201 * ch-tree.h: lots more prototypes
11202 * ch-typeck.c (build_array_from_set): added function.
11203 * ch-typeck.c (chill_expand_tuple): handle set initializations better.
11205 Thu Jan 28 17:41:58 1993 Per Bothner (bothner@rtl.cygnus.com)
11207 * ch-grant.c (set_default_grant_file): Change default.
11208 Normally, grant file should end up in cwd.
11209 * ch-lang.c (build_chill_struct_type): Call pushtag,
11210 for the sake of debugging.
11211 * ch-lex.l: Improve comment parsing.
11212 * ch-lex.l (readstring): Some improvements.
11213 Initial support for control sequences in string literals.a
11215 Thu Jan 28 16:16:00 1993 Bill Cox (bill@rtl.cygnus.com)
11217 * ch-convert.c (convert): correct fixed->varying conversion.
11218 * ch-parse.y (mode2): delete unesthetic newline.
11220 Thu Jan 28 10:32:55 1993 Bill Cox (bill@rtl.cygnus.com)
11222 * ch-actions.c: delete maybe_array_ref()
11223 * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
11225 * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
11226 supervision actions & builtins
11227 * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
11228 smaller actions directly (maybe_array_ref() used to call them).
11229 * ch-tree.h: add build_chill_function_call, build_chill_slice
11230 * ch-typeck.c: add build_chill_slice()
11232 Thu Jan 28 08:44:28 1993 Bill Cox (bill@rtl.cygnus.com)
11234 * ch-tree.h: bring up to date with ch-actions.c changes.
11236 Wed Jan 27 23:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
11238 * ch-expr.c (chill_expand_assignment): handle an RHS varying array
11241 Wed Jan 27 22:28:36 1993 Per Bothner (bothner@rtl.cygnus.com)
11243 * ch-grant.c (decode_constant): Add REAL_TYPE support.
11244 * ch-actions.c (build_chill_exception_decl): New function.
11245 * ch-actions (build_chill_cause_exception, cond_exceptions):
11246 Convert to take a (char*) parameter (the exception name).
11247 * ch-actions.c, ch-expr.c, ch-typeck.c: Convert calls to
11249 * ch-parse.y (check_end_label): New function, to check if
11250 and end label matches start label.
11251 * ch-parse.y: Fix syntax to properly recognize and
11252 test optional end labels (using check_end_label).
11253 * ch-decl.c (finish_chill_function): Simplify, since
11254 we assume check_end_label has already been called.
11255 * ch-parse.y: Put in infrastructure for exception handling.
11257 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
11259 * ch-actions.c: delete convert_chill_parameter, replace call with
11261 * ch-convert.c (convert): combine chill_give_type_to_expr in here.
11262 * ch-decl.c: call convert rather than chill_give_type_to_expr.
11263 * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
11264 * ch-expr.c (chill_expand_assignment): just call convert.
11265 * ch-loop.c (end_chill_loop): expand the end of the loop for a
11267 * ch-parse.y: call convert rather than chill_give_type_to_expr.
11268 * ch-process.c: checkpoint.
11269 * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
11271 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
11273 * ch-grant.c (grant_array_type): new function to allow handling of
11274 VARYING array types.
11276 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
11278 * ch-typeck.c (chill_give_type_to_expr): fix typo. Reorder to
11279 avoid checking types on CONSTRUCTORs. Correct typo.
11280 * ch-expr.c (expand_assignment_to_varying_array): use proper
11281 expansion function expand_expr_stmt.
11282 * ch-expr.c (expand_chill_assignment): only convert VARYING
11285 Wed Jan 27 15:32:21 1993 Bill Cox (bill@rtl.cygnus.com)
11287 * ch-actions.c (build_chill_length, build_chill_lower,
11288 build_chill_upper): accept parameters, too.
11289 * ch-expr.c (chill_expand_assignment): decipher ARRAY_REF on RHS.
11290 * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
11291 assign proper type to ARRAY_REF expression.
11293 Wed Jan 27 09:51:46 1993 Bill Cox (bill@rtl.cygnus.com)
11295 * ch-actions.c (build_chill_binary_op): delete unused variable,
11296 get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
11297 * ch-actions.c (build_chill_repetition_op): handle differently-built
11299 * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
11300 * ch-typeck.c (chill_give_type_to_expr): give type to constructor
11302 Tue Jan 26 11:32:38 1993 Bill Cox (bill@rtl.cygnus.com)
11304 * ch-parse.y (ifaction): re-add lost call to expand_end_code().
11305 * ch-parse.y (siezelist, grantlist): use 'name' rather than
11306 'checked_name'. It makes no sense to check sieze/grant names
11307 for WITH expansion.
11308 * ch-expr.c (chill_expand_expr): delete unnecessary (and
11309 seg-fault-causing) code.
11310 * ch-expr.c (chill_expand_assignment): make test for varying array
11311 on the LHS more specific.
11312 * ch-actions.c (invalid_left_operand, invalid_right_operand): error
11313 for use of MOD, REM operators.
11314 * ch-actions.c (build_chill_repetition_op): error for bit-field
11315 initializers (which will get handled in the lexer).
11317 Mon Jan 25 17:26:47 1993 Bill Cox (bill@rtl.cygnus.com)
11319 * ch-typeck.c (build_chill_array_ref),
11320 * ch-expr.c (chill_expand_expr, chill_expand_assignment):
11321 translate varying array ref into ARRAY_REF, defer processing
11322 until chill_expand_expr. Update array's length field in
11323 new function expand_assignment_to_varying_array.
11325 Mon Jan 25 14:57:24 1993 Bill Cox (bill@rtl.cygnus.com)
11327 * ch-parse.y (mode2): eliminate old method to mark varying arrays.
11328 * ch-expr.c (expand_varying_length_assignment): repair scaling of
11331 Mon Jan 25 11:44:21 1993 Per Bothner (bothner@cygnus.com)
11333 * ch-parse.y: Allow character and bitstring literals
11334 in string repetition operator.
11336 Sat Jan 23 14:18:11 1993 Per Bothner (bothner@cygnus.com)
11338 * ch-parse.y (primval): Re-recognize '(' expr ')'.
11339 * ch-parse.y (name): Remove call to check_identifier -
11340 this is not appropriate in certain contexts.
11341 * ch-parse.y (checked_name): Same as <name>, but *with* the
11342 call to check_identifier. Use where appropriate.
11343 * ch-parse.y (operand5): Only allow string repetition of
11344 string literals, because otherwise you get a conflict.
11346 Thu Jan 21 16:32:39 1993 Bill Cox (bill@rtl.cygnus.com)
11348 * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
11349 continue start_process development.
11351 Thu Jan 21 13:51:06 1993 Bill Cox (bill@rtl.cygnus.com)
11353 * ch-decl.c (do_decl): fix handling of multi-char initializer.
11355 Thu Jan 21 13:14:00 1993 Bill Cox (bill@rtl.cygnus.com)
11357 * .cvsignore: add CHILL files to be ignored
11359 Thu Jan 21 07:38:57 1993 Bill Cox (bill@cygnus.com)
11361 * ch-parse.y: rough draft of start_process handling.
11363 Wed Jan 20 17:11:05 1993 Bill Cox (bill@rtl.cygnus.com)
11365 * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
11367 Wed Jan 20 16:48:13 1993 Bill Cox (bill@rtl.cygnus.com)
11369 * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
11370 create new modules for I/O and process-related stuff.
11371 * ch-actions.c: move routines to new modules.
11372 call xmalloc, not malloc.
11373 * ch-lang.c (build_chill_struct_type): add parameter checking.
11374 * ch-lex.l (init_lex): remove redundant cast.
11376 Tue Jan 19 16:33:56 1993 Bill Cox (bill@rtl.cygnus.com)
11378 * ch-parse.y (operand5): delete unnecessary argument to
11379 build_chill_unary_op. Add rule for string repetition.
11380 * ch-parse.y (primval): delete string repetition attempt.
11381 * ch-parse.y (start_process): rough draft of action.
11382 * ch-actions.c (build_repetition_op): add it
11383 * ch-actions.c (build_chill_binary_op): handle constant arguments
11384 of CONCAT_EXPR, combine into a single string if possible.
11385 * ch-actions.c (invalid_left_operand, invalid_right_operand):
11386 allow single character arguments to CONCAT_EXPR.
11387 * ch-tree.h: add prototype for build_repetition_op
11389 Tue Jan 19 15:03:29 1993 Fred Fish (fnf@cygnus.com)
11391 * dwarfout.c (output_type): Add hack that matches the one in the
11392 chill front end to distinquish between true string types and
11393 arrays of char, since it uses ARRAY_TYPE for both, rather than
11394 trying to use the existing support for STRING_TYPE.
11396 Tue Jan 19 13:54:27 1993 Bill Cox (bill@rtl.cygnus.com)
11398 * ch-tree.h: added prototypes for all non-static CHILL functions.
11399 * ch-actions.c (lang_init): declare builtin type for start_process
11400 * ch-actions.c (build_chill_binary_op): combine string literals when
11402 * ch-actions.c (formpars2struct): added for later start_process
11404 * ch-actions.h: remove un-needed function declarations.
11405 * ch-decl.c: extern cleanup.
11406 * ch-expr.c (chill_expand_array_assignment): add missing first
11407 parameter to cond_exception call.
11408 * ch-lex.l: make build_chill_string non-static.
11410 Mon Jan 18 19:15:08 1993 Bill Cox (bill@rtl.cygnus.com)
11412 * ch-decl.c (do_decls): get varying array length initialized.
11414 Mon Jan 18 09:51:43 1993 Bill Cox (bill@rtl.cygnus.com)
11416 * ch-expr.c (chill_expand_array_assignment): fix the copy length
11417 in the memcpy call (it was just 4 bytes always). Simplify some
11420 Mon Jan 18 08:24:21 1993 Bill Cox (bill@rtl.cygnus.com)
11422 * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11424 Mon Jan 18 08:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
11426 * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
11427 CHARS synonymous with CHAR, in the lexer. Delete unnecessary
11428 'bools' non-terminal.
11429 * ch-parse.y (assignaction): add lhs version of length() function
11430 * ch-actions.c: add builtin_concat function, lots of support for
11432 * ch-actions.c, ch-tree.h: make a function out of former
11433 macro CH_VARYING_TYPE_P
11434 * ch-expr.c: add expand_varying_length_assignment ().
11435 * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11436 * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11437 rather than build_rts_call, to eliminate a recursion problem.
11438 * ch-lang.c: eliminate 'sorry' about varying arrays.
11439 * ch-typeck.c (validate_varying_array_ref): re-enable constant
11442 Sun Jan 17 18:20:04 1993 Per Bothner (bothner@cygnus.com)
11444 * ch-grant.c, ch-lex.l: Major simplification of how
11445 seizes are done and how seizefiles are read.
11446 * ch-actions.h: Remove declaration of check_seize().
11447 * ch-decl.c (do_decls): Handle READONLY types.
11448 * ch-parse.y (mode2): Allow REF to be followed by any mode.
11449 * ch-parse.y (mode2): Allow literal expressions in string length.
11450 * ch-parse.y (tupleelement): Allow elemenst to be untyped_expr.
11451 * ch-parse.y (seizestatement, etc): Call chill_seize each
11452 time something is seized, rather than building a list first.
11454 Sat Jan 16 12:24:44 1993 Bill Cox (bill@rtl.cygnus.com)
11456 * chill.gperf, ch-hash.h: add Wilfried's tokens
11457 * ch-lex.l: fold in Wilfried's changes. Some tokens
11458 weren't getting recognized, and INSTANCE wasn't correctly
11459 reported to ch-parse.y as a PREDEF_MODEDCL.
11461 Thu Jan 14 15:02:39 1993 Per Bothner (bothner@cygnus.com)
11463 * ch-tree.h (CH_CHARS_TYPE_P): New macro. Add comment
11464 explaining difference between char strings and char arrays.
11465 * ch-tree.h (CH_STRING_TYPE_P): Add FIXME re bitstrings.
11466 * ch-tree.c (build_string_type): Add comment.
11468 Wed Jan 13 15:19:15 1993 Per Bothner (bothner@cygnus.com)
11470 * calls.c, expr.c, function.c, stmt.c, varasm.c: Set
11471 MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11472 * expmed.c (store_bit_field, extract_field_field): Undo
11473 yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11475 * ch-decl.c (do_decls): Put back support for initializing.
11476 (Was accidentally removed in Jan 8 change.)
11478 Wed Jan 13 14:13:11 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
11480 * ch-lex.l (convert_bitstring): Correct typo in cast.
11482 Tue Jan 12 20:29:08 1993 Per Bothner (bothner@cygnus.com)
11484 * ch-lex.l (convert_bitstring): Change to pack bits
11485 within words, not bytes, and to use machine bit-order
11486 (not always little-endian).
11487 * ch-parse.y: Allow BOOLS(n) as well as BITS(n).
11488 Use build_bitstring_type, not build_string_type.
11489 * expmed.c (store_bit_field, extract_field_field): Remove
11490 "sanity test" that prevents use with SET_TYPE.
11491 * tree.c (build_bitstring_type, build_powerset_type,
11492 build_string_type): Move (so far) Chill-specific functions to ...
11493 * ch-tree.c: ... new file.
11494 * ch-tree.c (build_powerset_type, build_bitstring_type): Re-write.
11495 * ch-typeck.c (build_chill_array_ref): Handle bit strings better.
11496 * ch-typeck.c (chill_expand_tuple): Kludge to handle SET_TYPE.
11497 * Makefile.in (CHILL_OBJS): Add ch-tree.o.
11498 * ch-decl.c (do_decls): Call expand_decl.
11499 * stor-layout.c (layout_type): Handle SET_TYPE.
11500 * expr.c (expand_expr): Add FIXMEs about IN_EXPR.
11501 * ch-actions.c (lang_init): Add type and decl for new
11502 function __builtin_setbitinstring.
11503 * ch-expr.c (chill_expand_assignmment): Special-case handling
11504 for BIT_FIELD_REF with non-constant bit position (which is
11505 not yet handled by expand_expr).
11506 * ch-convert.c (convert): Handle SET_TYPE.
11508 Tue Jan 12 12:49:13 1993 Fred Fish (fnf@cygnus.com)
11510 * chill: If -B arg is given, use to find gcc.
11512 Fri Jan 8 20:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
11514 * ch-decl.c: revert to avoid seg fault
11516 Fri Jan 8 14:20:42 1993 Bill Cox (bill@rtl.cygnus.com)
11518 * ch-decl.c: fix storage into correct offset in varying array.
11519 * ch-actions.c: define sizetype for everyone, use it to build
11521 * ch-parse.y: tiny cleanup.
11523 Wed Jan 6 13:25:33 1993 Bill Cox (bill@cygnus.com)
11525 * modules: use gdb rather than naked-gdb, to get opcodes
11526 in chill definition.
11528 Wed Jan 6 09:48:35 1993 Bill Cox (bill@cygnus.com)
11530 * ch-typeck.c: add code to handle references to elements of VARYING
11531 arrays. Simplify chill_give_type_to_expr. Add rough draft of run-
11532 time index checking for VARYING arrays (under #if 0).
11533 * ch-actions.c: new function cond_type_range_exception & calls.
11534 New function cond_range_exception, for more general range-checking.
11535 New function build_varying_struct, to do just that. Use the macros
11536 for the special varying field names.
11537 * ch-tree.h: define macros for varying field names.
11538 * ch-expr.c: use macros for varying struct names. Simplify
11539 chill_expand_array_assignment.
11540 * ch-parse.y: assure that build_varying_struct is called everywhere
11541 that it applies. Add a line-number note before the body of a DO
11543 * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11545 Tue Jan 5 17:26:14 1993 Bill Cox (bill@cygnus.com)
11547 * c-decl.c: correct order of declaration of start_decl params,
11550 Tue Jan 5 15:59:36 1993 Per Bothner (bothner@cygnus.com)
11552 * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11553 Move shared code into ...
11554 * ch-decl.c (start_chill_function): ... here.
11555 * ch-decl.c (start_chill_function): Add missing call to
11556 expand_start_bindings.
11557 * ch-decl.c (finish_chill_function): Add missing call to
11558 expand_end_bindings.
11560 Tue Jan 5 01:00:47 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11562 * Makefile.in: took out the rest of the runtime support
11564 Mon Jan 4 18:02:06 1993 Bill Cox (bill@cygnus.com)
11566 * ch-expr.c: make chill_expand_array_assignment not static.
11568 Mon Jan 4 17:57:48 1993 Per Bothner (bothner@cygnus.com)
11570 * ch-grant.c, ch-parse.y: Remove all code for explicitly
11571 calling initializer functions. This is not needed, since we
11572 use the same mechanism used for C++ static constructors.
11573 * ch-grant.c (chill_start_module_code): Make sure the
11574 init_name starts with the magic string also used for C++
11575 initializers. Also, don't embed the file name in the name,
11576 just use the module name.
11577 * ch-grant.c (chill_finish_module_code): Now that the
11578 initializer name follows the standard 'collect' convention,
11579 don't need to call assembler_constructor_alias, but can
11580 use the standard assemble_constructor instead.
11581 * varasm.c (assemble_constructor_alias): Remove no-longer-
11583 * ch-parse.y: Move code that is common to the beginning of
11584 all functions to a new macro INIT_ACTION.
11585 Make sure INIT_ACTION is also done for callaction, fixing a bug.
11586 * ch-parse.y (INIT_ACTION): Do chill_start_module_code()
11587 before emit_line_note(), not after.
11589 Mon Jan 4 11:43:12 1993 Bill Cox (bill@cygnus.com)
11591 * ch-parse.y: restore requirement for :upper-bound in array decl.
11592 * ch-actions.c: enhance upper, lower, length functions for VARYING.
11594 Mon Jan 4 09:28:44 1993 Bill Cox (bill@cygnus.com)
11596 * ch-actions.c: fix NOT of boolean expr.
11598 Mon Jan 4 08:42:57 1993 Bill Cox (bill@cygnus.com)
11600 * ch-actions.c: provide range-checking function
11601 * ch-lex.l: better compiler-directive error messages,
11602 allow underscores in exponents
11603 * ch-loop.c: prevent passing NULL ptr to printf
11605 Sun Jan 3 11:57:13 1993 Bill Cox (bill@cygnus.com)
11607 * ch-typeck.c: correct & enable array index range-checking
11609 Sun Jan 3 11:36:39 1993 Bill Cox (bill@cygnus.com)
11611 * ch-parse.y: define IGNORED_DIRECTIVE
11612 * ch-typeck.c: subtract array's lower domain value, even if
11613 index expression is constant.
11615 Sat Jan 2 23:05:14 1993 Fred Fish (fnf@cygnus.com)
11617 * ch-lex.l (convert_float): Fix misspelling in error message.
11619 Sat Jan 2 16:02:16 1993 Per Bothner (bothner@rtl.cygnus.com)
11621 * Makefile.in: Took out chill-runtime support.
11622 Chill run times are now in ../chillrt, not ./chillrt.p
11624 Sat Jan 2 15:04:13 1993 Bill Cox (bill@cygnus.com)
11626 * ch-hash.h, chill.gperf: cleanup. fewer keywords seen by ch-parse.y.
11628 Sat Jan 2 13:27:49 1993 Per Bothner (bothner@rtl.cygnus.com)
11630 * ch-lex.l (check_newline): Use the orginal versions (derived
11631 from the C code, not the simplified, special-case version).
11632 Also, fix that version of check_newline to not call yylex()
11634 * ch-lex.l (yy_input): Call check_newline to handle
11635 newlines and check for # directives.
11636 * ch-lex.l (syntax): Don't recognize #-directives; these
11637 are now handled by check_newline.
11638 * ch-actions.c (lang_init): Call the modified version of
11639 check_newline(). Do this at the *after* we've initialized
11640 standard types, so this can be done while lineno is still 0.
11642 Sat Jan 2 10:57:20 1993 Bill Cox (bill@cygnus.com)
11644 * ch-hash.h, chill.gperf: add remaining reserved words.
11646 Sat Jan 2 09:59:55 1993 Bill Cox (bill@cygnus.com)
11648 * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11649 names for exceptions
11651 Fri Jan 1 12:30:31 1993 Fred Fish (fnf@cygnus.com)
11653 * ch-tree.h (JOINER): Define joiner character the same way
11655 * ch-grant.c (chill_start_module_code): Use JOINER character
11656 to implement name mangling for the initializer function name.
11657 Algorithm is designed to be simple, distinct from C++ mangled
11658 symbols, and easy to convert to demangled form.
11660 Thu Dec 31 10:30:51 1992 Bill Cox (bill@rtl.cygnus.com)
11662 * ch-expr.c: make array assignments work with indirect refs.
11663 * ch-actions.c: prepare for array parameter handling.
11664 * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11666 Thu Dec 31 15:29:20 1992 Per Bothner (bothner@rtl.cygnus.com)
11668 * ch-lex.l (yy_input): Re-write to return more than one
11669 character at a time (execpt when reading seize-files).
11670 Don't increment lineno until we start reading the next line.
11671 This fixes some off-by-one errors in lineno.
11673 Wed Dec 30 16:15:23 1992 Per Bothner (bothner@rtl.cygnus.com)
11675 * ch-convert.c: Assume use of new common.c.
11676 * ch-convert.c (convert_to_reference, convert_from_reference):
11677 New routines, to handle loc-identity declared variables and
11678 LOC parameters (both of which are implemented as references).
11679 * ch-lang.c (convert_to_boolean, convert_to_char): Move to
11680 ch-convert.c, where they would seem to belong.
11681 * ch-convert.c (convert): New function, since we no longer
11682 link in c-convert.c.
11683 * ch-expr.c (chill_expand_assignment): Handle by calling
11684 convert() instead of chill_comptypes().
11685 Also handle the LHS being a reference.
11686 * ch-parse.y: Add a procedure call as an action.
11687 * ch-parse.y (locdec, optlocinit): Move handling of
11688 loc-identity declarations from optlocinit to locdec
11689 - and add working semantics for it.
11690 * ch-parse.y (seizestatement, visibilty_stmt): Simplify.
11691 * ch-parse.y (grantstatement etc): Don't bother making list.
11692 * ch-lex.l: #include <sys/types.h> before <sys/stat.h>.
11694 Wed Dec 30 16:06:55 1992 Bill Cox (bill@rtl.cygnus.com)
11696 * ch-parse.y, ch-expr.c: add support for declaring & assigning
11698 * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11700 Tue Dec 29 15:28:48 1992 Bill Cox (bill@cygnus.com)
11702 * ch-actions.c: implement expressions of arrays of char,
11703 ( concatenation, relationals ), correct type of code parameters
11704 * ch-expr.c: correct type of code parameters
11706 Tue Dec 29 11:16:19 1992 Bill Cox (bill@cygnus.com)
11708 * ch-decl.c: cleanup.
11709 * ch-parse.y: put emit_line_note() calls in lotsa places,
11710 per Fred's request; be sure that statements get counted also.
11711 * ch-lex.l: standardize function headers.
11713 Tue Dec 29 10:41:56 1992 Fred Fish (fnf@cygnus.com)
11715 * ch-decl.c (start_chill_function): Always return 1, rather
11716 than a random value.
11717 * ch-lex.l (check_newline): Add a version for chill that
11718 just snarfs the right value for main_input_filename out of
11719 the first line of the input file, without disturbing the
11720 lexer state or requiring it's assistance.
11721 * ch-actions.c (lang_init): Call check_newline, like the
11722 other language frontends, to get main_input_filename set
11723 from first line of input file.
11725 Mon Dec 28 18:49:01 1992 Bill Cox (bill@cygnus.com)
11727 * ch-parse.y: clean up conflicts. The remaining one is
11730 Mon Dec 28 17:28:40 1992 Bill Cox (bill@cygnus.com)
11732 * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11733 clean up some parser conflicts.
11735 Mon Dec 28 15:00:20 1992 Bill Cox (bill@cygnus.com)
11737 * ch-parse.y, ch-lex.l: add keywords and parsing for most of
11740 Sat Dec 26 20:48:23 1992 Fred Fish (fnf@cygnus.com)
11742 * chillrt/chillrt0.c: Oops, SVR4 doesn't need leading '_'
11743 on build_exceptions.
11745 Sat Dec 26 11:00:36 1992 Fred Fish (fnf@cygnus.com)
11747 * ch-grant.c (chill_finish_module_code): Call
11748 assemble_constructor_alias rather than assemble_constructor.
11749 * varasm.c (assemble_constructor_alias): New function,
11750 like assemble_constructor, but also handles the case where
11751 ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11752 being used. Emits a symbol table alias name with the correct
11753 prefix for collect to find and add to the __CTOR_LIST__.
11754 * chillrt/chillrt0.c: Build on previous hack that gets
11755 _build_exceptions into the __CTOR_LIST__, to make it work
11756 for both the non GNU-ld case and for the SVR4 case.
11758 Tue Dec 22 18:24:55 1992 Bill Cox (bill@cygnus.com)
11760 * ch-loop.c: clean up location enumeration - one more
11763 Tue Dec 22 16:31:48 1992 Bill Cox (bill@cygnus.com)
11765 * ch-loop.c: Working version of location enumeration loop
11767 Tue Dec 22 14:42:14 1992 Bill Cox (bill@cygnus.com)
11769 * ch-lex.l: readability cleanup
11771 Mon Dec 21 14:58:39 1992 Bill Cox (bill@cygnus.com)
11773 * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11774 ch-loop.c: rough draft of location enumeration
11775 ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11776 ch-actions.c: finish making pred() and succ() work.
11778 Mon Dec 21 10:04:35 1992 Bill Cox (bill@cygnus.com)
11780 * ch-actions.c: allow pred(char) and succ(char).
11782 Sun Dec 20 16:04:28 1992 Bill Cox (bill@cygnus.com)
11784 * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11785 c-expr.c: make DO WITH work.
11787 Sun Dec 20 12:22:53 1992 Bill Cox (bill@cygnus.com)
11789 * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11792 Sat Dec 19 14:20:23 1992 Per Bothner (bothner@cygnus.com)
11794 * c-typeck.c (process_init_constructor): Add warning if
11795 there is a duplicate default initializer element.
11796 * ch-typeck.c (chill_give_type_to_expr): New function,
11797 to handle coercion of an expression to context-given type,
11798 Takes care of untyped tuples, and case expressions.
11799 * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11800 chill_expand_result), ch-parse.y <assignaction>:
11801 Use chill_give_type_to_expr().
11802 * ch-typeck.c (chill_handle_case_label): New parameter list,
11803 to handle the (new) conventions for <case_label>, including
11804 default elements and ranges.
11805 * ch-parse.y <expanded_case_label>, ch-typeck.c
11806 (expand_case_expr): Use new version of chill_handle_case_label.
11807 * ch-decl.c (push_syndecls): Change parameters: Instead of
11808 TREE_LIST representing a compete <synonym definition statement>,
11809 just pass the parts of a single <synonym definition> as 3
11810 different parameters. Also, use chill_give_type_to_expr(),
11811 to handle untyped tuples in the RHS.
11812 * ch-parse.y <syndeclist, syndef>: Don't bother trying to construct
11813 a tree - just call push_syndecls() on each <synonum_definition>
11815 * ch-parse.y (exprlist_get_single): Remove; no longer needed.
11816 * ch-parse.y: Handle <tuple> without mode name diferently from
11817 <tuple> with mode name. The latter is a <primval> that can be
11818 in most contexts, but if the <mode name> is missing, the <tuple>
11819 is only allowed in certain contexts. Use the new non-terminal
11820 <untyped_expr> to indicate those contexts where untyped tuples
11821 (and case expressions) are valid because the expression gets a
11822 type from its context (such as the RHS of an assignment).
11823 Use chill_give_type_to_expr in those contexts.
11825 Sat Dec 19 14:01:26 1992 Bill Cox (bill@cygnus.com)
11827 * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11829 Sat Dec 19 10:16:20 1992 Bill Cox (bill@cygnus.com)
11831 * ch-parse.y: clean up warning messages from byacc. bison
11832 still complains thrice.
11834 Fri Dec 18 12:33:29 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11836 * ch-actions.c (maybe_chill_comptypes): Delete unused
11838 (chill_comptypes): Add new parameter ERRSTR. All callers
11840 (build_chill_binary_op): Fix indentation to match GNU coding
11843 Fri Dec 18 08:18:13 1992 Bill Cox (bill@rtl.cygnus.com)
11845 * ch-parse.y, ch-expr.c, ch-actions.c, expr.c: major
11846 cleanup of expression and assignment handling.
11848 Thu Dec 17 10:16:32 1992 Bill Cox (bill@cygnus.com)
11850 * ch-parse.y: standardize indentation after c-parse.y
11852 Wed Dec 16 15:22:12 1992 Per Bothner (bothner@cygnus.com)
11854 * c-typeck.c (process_init_constructor): Add support for
11855 a default initializer element.
11856 * ch-parse.y: Implement default elements for tuples
11857 (as in '(else):' and '(*):' ).
11859 * ch-parse.y: Previous change to dis-ambiguate case-labels
11860 seems to have allowed getting rid of all of the expr_or_list hair.
11861 * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11862 initialization of multiple variables by a tuple" - the
11865 Wed Dec 16 11:17:53 1992 Bill Cox (bill@cygnus.com)
11867 * ch-parse.y: complete re-write of DO statement handling.
11868 now operational, except WITH is stubbed out. Improved
11869 syntax error message.
11870 * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11871 * ch-expr.c: fixes to IN_EXPR handling.
11873 Tue Dec 15 17:15:13 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
11875 * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11876 * ch-lex.c: Likewise.
11878 * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11879 by flex to avoid compiler error.
11881 Tue Dec 15 08:41:08 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11883 * ch-decl.c (do_decls): Handle initialization of multiple
11884 variables by a tuple.
11886 * ch-decl.c (do_decls,start_chill_function): Make DECL public
11887 if we're doing a GRANT ALL at top level.
11889 * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11892 * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11893 BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11895 Mon Dec 14 14:58:32 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11897 * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11898 (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11900 Mon Dec 14 13:36:44 1992 Bill Cox (bill@cygnus.com)
11902 * expr.c: install and test newer Pascal IN_EXPR code,
11903 but don't activate it - it's very verbose.
11905 Mon Dec 14 00:22:49 1992 Fred Fish (fnf@cygnus.com)
11907 * Makefile.in (LANGUAGES): Add chill.
11908 * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11909 New macros for chill native and cross installation names.
11910 * Makefile.in (COMPILERS): Add cc1chill.
11911 * Makefile.in (CHILL_OBJS): New macro, chill objects.
11912 * Makefile.in (CHILL_TREE_H): New macro, chill headers.
11913 * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11914 sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11915 install-librmt): New targets.
11916 * Makefile.in (install-native): Add install-libchill,
11919 Sun Dec 13 15:21:06 1992 Bill Cox (bill@cygnus.com)
11921 * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11923 Sun Dec 13 14:07:32 1992 Bill Cox (bill@cygnus.com)
11925 * ch-actions.c: fix unary operations, modulus ops,
11926 (discovered after extending regression tests).
11928 Sun Dec 13 12:16:32 1992 Bill Cox (bill@cygnus.com)
11930 * resync with Michael and Wilfried
11932 Sun Dec 13 09:11:25 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11934 * ch-parse.y (output_constant): Fixed some whitespace
11936 * ch-tree.h: Add declarations for new chill functions that
11937 have been implemented but not (yet) declared.
11939 Sat Dec 12 00:17:23 1992 Per Bothner (bothner@cygnus.com)
11941 * c-typeck.c (process_init_constructor): Warn about duplicate
11942 labels for labelled initializer elements.
11943 * ch-lex.l (various operator tokens, such as "+"): Don't
11944 set yylval.code to a TREE_CODE; this is better done in parser.
11945 * ch-parse.y: Some work with case labels and tuples.
11946 Get literal range as tuple (and case) labels working.
11947 Fix some problems introduced by recent grammar overhaul.
11949 Fri Dec 11 13:28:48 1992 Bill Cox (bill@cygnus.com)
11951 * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
11952 got long, real expressions working. We can also call a func-
11953 tion and use its return value.
11955 Thu Dec 10 14:45:17 1992 Per Bothner (bothner@cygnus.com)
11957 * ch-parse.y: Major change to remove or at least identify
11958 parser ambiguities. One result: We now allow actions that
11959 start with '(', as required by teh Blue Book. This does break
11960 some things; look for FIXME for things that need work.
11961 * ch-typeck.c (chill_expand_case_expr): We need an extra
11962 level of looping to (in the future) support <case label
11963 specification>s with more than one <case label list>.
11965 Thu Dec 10 09:21:41 1992 Bill Cox (bill@cygnus.com)
11967 * ch-actions.c, ch-expr.c: Implement string assignments
11970 Thu Dec 10 07:17:35 1992 Bill Cox (bill@cygnus.com)
11972 * ch-decl.c, ch-typeck.c: rest of previous commit.
11974 Wed Dec 9 18:26:29 1992 Bill Cox (bill@cygnus.com)
11976 * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
11977 regression test and fix bit arrays and set ops.
11979 Mon Dec 7 14:57:46 1992 Bill Cox (bill@cygnus.com)
11981 * ch-actions.c: implement crude relationals between
11982 non-exotic operands, such as integers.
11984 Mon Dec 7 10:42:35 1992 Bill Cox (bill@cygnus.com)
11986 * ch-actions.c: implement relational, logic operations
11987 on arrays of BOOLs.
11989 Mon Dec 7 08:55:20 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11991 * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
11992 indicate we are done with initialization.
11994 * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
11996 (start_chill_function): Ditto.
11998 * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
11999 (compiler_directive): Don't confuse compiler directives with
12000 equality comparison operators.
12002 * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
12004 Sun Dec 6 13:12:32 1992 Bill Cox (bill@cygnus.com)
12006 * ch-actions.c: repair set inequality code.
12008 Sun Dec 6 11:15:59 1992 Bill Cox (bill@cygnus.com)
12010 * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
12011 relational expressions, including (<, <=, =, /=, >, >=, IN).
12013 Fri Dec 4 13:54:58 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
12015 * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
12016 Pascal-required ones, since C++ no longer needs them. When
12017 Chill's public, a comment can be added to the effect that
12018 SET_LE_EXPR is also used by Chill.
12020 Fri Dec 4 12:05:01 1992 Bill Cox (bill@cygnus.com)
12022 * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
12024 Fri Dec 4 10:23:10 1992 Bill Cox (bill@cygnus.com)
12025 * Get *.def and *.c in sync.
12027 Fri Dec 4 06:48:41 1992 Fred Fish (fnf@cygnus.com)
12029 * ch-actions.c (lang_init): Change types "long" and
12030 "ulong" from 16 bits to 32.
12031 * dwarfout.c (fundamental_type_code): Use FT_signed_char
12032 for type "byte" and FT_unsigned_char for type "ubyte".
12034 Thu Dec 3 15:13:24 1992 Bill Cox (bill@cygnus.com)
12035 * ch-actions.c, ch-tree.def, ch-parse.y: preparation
12036 for powerset expressions.
12038 Tue Dec 2 17:02:30 1992 Bill Cox (bill@cygnus.com)
12039 * ch-actions.c: sketch code for exceptions generated
12040 by builtin routines.
12042 Tue Dec 2 12:49:50 1992 Bill Cox (bill@cygnus.com)
12043 * ch-actions.c, ch-parse.y: add support for lower()
12044 upper() builtin functions.
12046 Wed Dec 2 12:03:30 1992 Fred Fish (fnf@cygnus.com)
12048 * Makefile.in (chillrt0.o, install-chillrt0): Remove.
12049 * chill (library): Remove chillrt0.o.
12050 * chillrt/Makefile: Remove maintenance of chillrt0.o as a
12051 separate file. Now gets put in libchill.a.
12053 Tue Dec 2 10:100:20 1992 Bill Cox (bill@cygnus.com)
12055 * ch-parse.y, ch-actions.c: add support for num()
12058 Wed Dec 2 09:52:06 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
12060 * ch-decl.c (fixup_unknown_type): New function.
12061 (push_newmode,push_synmode): Call `fixup_unknown_type' when we
12062 see a declaration that uses `unknown_type_node'. FIXME.
12064 * ch-grant.c (decode_constant): New function.
12065 (decode_decl): Call `decode_constant' for CONST_DECLs.
12067 * ch-lex.l (char action): Use ridpointers instead of
12068 lookup_name to get "char"'s declaration.
12070 * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
12071 when we need to build a TYPE_DECL.
12073 Tue Dec 2 09:44:05 1992 Bill Cox (bill@cygnus.com)
12075 * ch-typeck.c: clean up a gcc warning with a forward
12076 declaration of build_string_type.
12078 Tue Dec 1 16:51:05 1992 Bill Cox (bill@cygnus.com)
12080 * ch-actions.c: completely remove those builtin calls
12081 that are duplicated in c-decl.c
12083 Tue Dec 1 16:38:51 1992 Fred Fish (fnf@cygnus.com)
12085 * ch-actions.c (lang_init): Ifdef out initializations for
12086 __builtin_abs and __builtin_fabs, since they are duplicates of
12087 initializations in c-decl.c, and trigger spurious warnings.
12089 Tue Dec 1 16:35:18 1992 Bill Cox (bill@cygnus.com)
12091 * ch-parse.y: make size() work with a typename argument.
12093 Tue Dec 1 16:15:56 1992 Bill Cox (bill@cygnus.com)
12095 * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
12096 functions min, max, card.
12098 Tue Dec 1 12:35:56 1992 Bill Cox (bill@cygnus.com)
12100 * ch-lex.l: fix char-type
12102 Tue Dec 1 11:10:56 1992 Bill Cox (bill@cygnus.com)
12104 * ch-parse.y, ch-actions: added parsing and processing
12105 for upper, lower, and length built-ins.
12107 Tue Dec 1 09:40:49 1992 Fred Fish (fnf@cygnus.com)
12109 * dwarf.h (LANG_CHILL): Add as GNU extension.
12110 * dwarfout.c (output_compile_unit_die): Test language_string and
12111 set LANG_CHILL if appropriate.
12112 * ch-parse.y (language_string): New for chill.
12113 * chillrt: Renamed directory chill to chillrt.
12114 * chill: Renamed chillsh to chill.
12115 * Makefile.in: Adjust for renamings.
12116 * chillrt/Makefile: Adjust for directory renaming.
12118 Mon Nov 30 17:35:33 1992 Fred Fish (fnf@cygnus.com)
12120 * chillsh: New script frontend (ala g++), installed as "chill".
12121 Can't be called "chill.sh" because make tries to cat it into the
12122 "chill" directory. Can't be called just "chill" cause that's
12123 already there as a directory.
12124 * Makefile.in: Add rules to install chillsh as "chill".
12125 * chill/libchill.c: Temporarily ifdef out stuff that wants
12126 to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
12127 which itself causes linkage to fail.
12129 Mon Nov 30 16:28:19 1992 Bill Cox (bill@cygnus.com)
12131 * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
12132 conversion routines.
12133 * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
12134 Added production for SIZE(expr).
12135 * ch-actions.c: Add semantic routine chill_sizeof ().
12137 Mon Nov 30 16:20:40 1992 Per Bothner (bothner@cygnus.com)
12139 * ch-lex.l, ch-parse.y: Translate token PFEIL into English ARROW.
12140 * ch-parse.y (op6): Remove handling of string repetition operator,
12141 until we can figure out a way to parse it correctly.
12142 * ch-parse.y (optmodename): New non-terminal.
12143 * ch-parse.y (tuple): Merge the two variants using optmodename.
12144 * ch-parse.y (location): Add semantic actions for
12145 dereferencing operator ->.
12147 Mon Nov 30 08:01:29 1992 Bill Cox (bill@cygnus.com)
12149 * ch-actions.c: removed compile warning, better code for abs.
12151 * ch-parse.y: add productions for builtin functions succ, pred,
12152 abs, and size. Add %tokens also. Sort %tokens alphabetically.
12154 * ch-lex.l: add parsing for builtin function names, such as abs,
12155 pred, succ, etc. Put flex -a option into Makefile.in, so we can
12156 clean up the lexer soon.
12158 Tue Nov 24 14:18:48 1992 Per Bothner (bothner@rtl.cygnus.com)
12160 * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
12161 New functions, for code common to CASE actions and expressions.
12162 * chill.y: Replace some code by calls to chill_handle_case_label
12163 and chill_handle_case_default.
12164 * ch-typeck.c (chill_expand_case_expr): Add semantics.
12166 * tree.c: Change doing_chill_thang from extern to common.
12168 Mon Nov 23 18:34:22 1992 Per Bothner (bothner@rtl.cygnus.com)
12170 * ch-tree.def: New CASE_EXPR type, for case expressions.
12171 * ch-expr.c (chill_expand_expr): Hook for CASE_EXPR.
12172 * ch-typeck.c (chill_expand_case_expr): New function.
12173 Placeholder to implement case expressions.
12174 * ch-typeck.c (chill_expand_result, chill_expand_return):
12175 Handle mode-unspecified tuples and case expressions in
12176 the context of RETURN and RESULT actions.
12177 * chill.y (assignaction): Handle case expressions in the
12178 context of the RHS of an assignment action.
12179 * chill.y (caseaction): Remove spurious duplicate OF in grammar.
12180 * chill.y: Handle labeled structure tuples.
12181 * chill.y: New rules to parse CASE expressions.
12182 * tree.c (build_function_types): Allow Chill functions
12183 to return arrays and functions.
12185 Wed Nov 18 13:50:28 1992 Per Bothner (bothner@rtl.cygnus.com)
12187 * ch-typeck.c (chill_expand_tuple): New function. Expand a
12188 tuple (constructor) given an expected (context) type.
12189 * chill.y: Implement 'LHS := TUPLE' using expand_chill_tuple,
12190 using the mode of the LHS and the expected type of the TUPLE.
12191 * chill.y: Implement initialization.
12192 * chill.y: Fix some syntax bugs (forbidlist must be surrounded
12193 by parentheses), and remove or note ambiguities.
12194 * chill.y: Started converting layout style to be like c-parse.in.
12195 * chill.y: Implement IF expressions.
12196 * chill.y: Added syntax rules for tuples. Labelled and unlabelled
12197 array tuples should now work (in some contexts).
12198 * ch-actions.c: Initialize doing_chill_thang to 1.
12199 * ch-decl.c (do_decls): Set DECL_INITIAL if there is an
12200 initializer, to make pushdecl and finish_decl work.
12201 * c-decl.c (convert_for_assignment): If Chill, don't convert
12202 function and arrays into pointers. (Maybe functions should
12203 still be converted?)
12204 * c-typeck.c (grokdeclarator): Allow functions in Chill
12205 to return arrays and functions.
12207 Mon Nov 16 15:40:47 1992 Per Bothner (bothner@rtl.cygnus.com)
12209 * chill.y (exprlist_get_single): New function, used when
12211 * chill.y: Re-did parsing of tuples to remove ambiguities.
12214 Tue Nov 10 16:30:55 1992 Per Bothner (bothner@rtl.cygnus.com)
12216 * ch-typeck.c (chill_expand_result); Set TREE_SIDE_EFEFCTS
12217 flags on assignment to result.
12218 * ch-typeck.c (build_chill_array_ref): Subtract lower
12219 bound of domain if non-zero. Preliminary hook for range checking.
12220 * ch-tree.h, chill.l: Combine variables range_check and
12221 range_check_disabled into global variable range_checking.
12222 * ch-tree.h: Better definitions of CH_CLASS_IS_VALUE
12223 CH_CLASS_IS_DERIVED.