1 Tue May 18 00:21:34 1999 Zack Weinberg <zack@rabi.phys.columbia.edu>
3 * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
6 1999-05-10 18:21 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
8 * lang-specs.h: Pass -$ to the preprocessor.
10 Tue May 4 14:52:53 1999 Dave Brolley <brolley@cygnus.com>
12 * actions.c (chill_expand_assignment): Use powersetlen to calculate the
13 length of an array of packed bits.
15 Tue Apr 20 23:37:01 1999 Nathan Sidwell <nathan@acm.org>
17 * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
20 Wed Apr 14 21:07:30 1999 Mumit Khan <khan@xraylith.wisc.edu>
22 * config-lang.in (compilers): Add exeext.
23 (stagestuff): Likewise.
25 Fri Apr 2 15:49:44 1999 Jeffrey A Law (law@cygnus.com)
27 * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
29 Wed Mar 31 10:44:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31 * Makefile.in (hash.h): Generate using gperf language 'C', not
32 'KR-C', so gperf uses the `const' keyword on strings.
34 * gperf (resword): Const-ify a char*.
36 Sun Mar 28 00:30:36 1999 Jeffrey A Law (law@cygnus.com)
38 * Make-lang.in (CHILL.dvi): New target.
39 (CHILL.mostlyclean): Remove remnants of old runtime library structure.
41 1999-02-20 Craig Burley <craig@jcb-sc.com>
43 * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
44 target instead of the chill.texi file.
45 (ch/chill.info): New target, depends on the chill.texi source file.
46 Its command writes ch/chill.info instead of chill.info.
47 (CHILL.install-info): Install from ch/chill.info instead of
49 If any ch/chill.info* files exist, delete *all* chill.info* files
50 in $infodir first, not just the ones corresponding to the
51 files to be installed (just in case the docs get smaller).
53 Sun Jan 31 20:34:29 1999 Zack Weinberg <zack@rabi.columbia.edu>
55 * decl2.c: Don't define flag_no_ident here. Don't process
57 * ch-tree.h: Don't declare flag_no_ident here.
58 * lang-specs.h: Map -Qn to -fno-ident.
60 Tue Jan 19 23:24:36 1999 Jeffrey A Law (law@cygnus.com)
62 * Makefile.in (typeck.o): Depend on insn-codes.h.
63 * actions.c (chill_handle_multi_case_label): Initialize "expr".
64 * decl.c (poplevel): Initialize "block_previously_created".
65 * expr.c (chill_expand_expr): Initialize "size0" and "size1".
66 (fold_set_expr): Initialize "buffer1".
67 * inout.c (process_io_list): Initialize "to_assign".
68 (check_exprlist): Initialize "result".
69 * parse.c (expand_expr): Declare.
70 (parse_multi_dimension_case_action): Initialize "end_case_label".
71 * tasking.c (build_start_process): Initialize "struct_type_node".
72 * typeck.c (apply_chill_field_layout): Initialize "word".
73 (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
74 signed/unsigned comparison warning.
76 Mon Jan 18 11:55:06 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
78 * ch-tree.h: Remove conflicting prototypes for pedwarn,
79 warning_with_decl, and make_dcl_rtl.
81 Sun Jan 17 21:53:23 1999 Jeffrey A Law (law@cygnus.com)
83 * Makefile.in: Do not put ^Ls at the start of a line.
85 Wed Jan 6 02:53:38 1999 Jeffrey A Law (law@cygnus.com)
87 * Makefile.in: Add some missing $(exeext). Remove some obsolete
89 * Make-lang.in: Similarly.
91 Tue Nov 24 09:57:34 1998 Jeffrey A Law (law@cygnus.com)
93 * Makefile.in (lex.c): Do not depend on hash.h.
94 (lex.o): Depend on hash.h.
96 Mon Oct 19 12:13:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
98 * Makefile.in (lex.o): Depend on dwarfout.h.
100 * lang-specs.h: Add missing braces in initializer.
102 * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
104 Thu Oct 15 09:25:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
106 * expr.c (build_chill_card): Use &&, not &, when comparing truth
109 * parse.c (parse_spec_module): Remove unused variable
110 `module_name', but preserve function call from initialization.
111 (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
113 * inout.c (init_text_location): Remove unused variable `textlength'.
115 Wed Oct 14 22:19:48 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
117 * typeck.c (build_chill_cast): Fix typo in assignment statement.
119 * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
120 when printing a `tree'.
122 Fri Oct 9 13:01:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
124 * ch-tree.h (build_delay_case_end): Remove unused parameter.
125 (build_receive_case_end): Likewise.
126 (check_queue_size): Likewise.
128 * parse.c: Callers changed.
130 * satisfy.c: Likewise.
132 * tasking.c (build_receive_buffer_case_end): Remove unused
133 parameter `label_cnt'.
134 (build_receive_signal_case_end): Likewise.
135 (build_receive_case_end): Likewise.
136 (build_delay_case_end): Likewise.
137 (check_queue_size): Likewise for parameter `type'.
140 Thu Oct 8 05:57:41 1998 Jeffrey A Law (law@cygnus.com)
142 * typeck (type_for_mode): Only return TItype nodes when
143 HOST_BITS_PER_WIDE_INT is >= 64 bits.
144 (type_for_size): Similarly.
145 * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
146 when HOST_BITS_PER_WIDE_INT is >= 64 bits.
147 (init_decl_processing): Only create TItype nodes when
148 HOST_BITS_PER_WIDE_INT is >= 64 bits.
150 Wed Oct 7 12:19:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
152 * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
153 (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
155 Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
157 * lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
158 HANDLE_GENERIC_PRAGMAS.
159 (handle_generic_pragma): New function: Parse generic pragmas.
161 Wed Sep 30 20:22:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
163 * parse.c (emit_label): Fix return-type of prototype.
165 Wed Sep 30 19:41:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
167 * actions.c (chill_handle_multi_case_label): Always return a value
168 in function returning non-void.
170 * except.c: Include OS headers before any local ones.
172 * typeck.c (layout_chill_range_type): Change type of variable
173 `negprecision' to int.
174 (apply_chill_array_layout): Initialize variables `stepsize' and
176 (layout_chill_struct_type): Change type of variable `min_align' to
178 (smash_dummy_type): Change name of variable `main' to `main_tree'.
180 Wed Sep 30 19:24:41 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
182 * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
183 ensure enough bits for calculation.
185 * ch-tree.h (check_text_length): Remove unused parameter.
187 * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
188 function sprintf into the appropriate type for printing.
190 * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
192 (print_mode): Likewise.
193 (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
195 * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
196 the format specifier.
198 * inout.c (check_text_length): Remove unused parameter `type'.
199 (build_chill_associate): Initialize variables `arg1', `arg2',
200 `arg3', `arg4' and `arg5'.
201 (build_chill_modify): Likewise.
202 (scanformcont): Change type of variable `curr' to `unsigned char'.
204 * lex.c (maybe_downcase): Cast the argument of `tolower' to
207 * satisfy.c (satisfy): Remove unused parameter in call to
210 * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
211 as a `long' in call to function `error'.
212 (decl_tasking_code_variable): Likewise.
214 Wed Sep 30 19:03:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
216 * grant.c (decode_decl_selective): Cast switch's enum argument to
218 (really_grant_this): Add default case in switch.
220 * typeck.c (chill_resulting_class): Add default cases in switch.
221 Also add `break' statements after each case.
223 Tue Sep 29 21:37:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
225 * ch-tree.h (build_compare_expr): Change first argument's type
226 from `enum chill_tree_code' to `enum tree_code'.
227 (build_compare_discrete_expr): Likewise.
229 * expr.c (build_compare_set_expr): Likewise.
230 (build_compare_string_expr): Likewise.
231 (build_compare_expr): Likewise.
232 (build_compare_discrete_expr): Likewise. Also add default case in
234 (compare_int_csts): Add default case in switch statement.
236 Sun Sep 20 11:02:55 1998 Robert Lipe <robertl@dgii.com>
238 * except.c: Include system.h.
240 * Makefile.in (except.o): Depend on system.h.
242 Sun Sep 20 09:25:13 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
244 * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
245 lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
246 typeck.o): Depend on system.h and toplev.h.
247 (except.o): Depend on toplev.h.
248 (grant.o): Depend on system.h, toplev.h and output.h.
250 * actions.c: Include system.h and toplev.h. Remove redundant
252 (build_cause_exception): Add default case in switch.
253 (update_else_range_for_range): Add parentheses around && within ||.
254 (chill_handle_multi_case_label_list): Remove unused variable
256 (print_missing_cases): Reconcile format specifiers vs arguments in
259 * ch-tree.h: Don't include stdio.h. Wrap prototypes using FILE*
260 with macro BUFSIZ. Add missing prototypes.
262 * convert.c: Include system.h and toplev.h. Remove redundant
264 (convert): Remove unused variable `errstr'.
266 * decl.c: Include system.h and toplev.h. Remove redundant
268 (builtin_scope): Add missing initializers.
269 (clear_scope): Likewise.
270 (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
271 (copy_lang_decl): Likewise for parameter `node'.
272 (c_decode_option): Likewise for parameter `argc'.
273 (push_extern_function): Likewise for parameter `granting'.
274 (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
275 (pushdecl): Remove unused variable `t'.
276 (lookup_name_current_level): Make static and hide.
277 (lookup_name_for_seizing): Make static.
278 (finish_decl): Remove unused variable `type'.
279 (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
280 (complete_array_type): Mark parameters `type', `initial_value' and
281 `do_default' with ATTRIBUTE_UNUSED.
282 (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
283 (start_enum): Likewise.
284 (shadow_record_fields): Remove unused variables `type' and `parent'.
286 * except.c: Include toplev.h. Remove redundant prototypes.
288 * expr.c: Include system.h and toplev.h. Don't define NULL.
289 Remove redundant prototypes.
290 (internal_build_compound_expr): Mark parameter `first_p' with
292 (build_allocate_getstack): Remove unused variable `init'.
293 (build_chill_pred_or_succ): Likewise for variable `limit'.
294 (varying_to_slice): Likewise for variable `doamin' [sic].
295 (finish_chill_binary_op): Likewise for variables `code0' and
296 `code1'. Remove unused label `finish'. Add explicit braces to
297 avoid ambiguous `else'.
298 (build_chill_addr_expr): Remove extra parameter in call to `error'.
299 (build_chill_unary_op): Remove unused variables `class' and `type0'.
300 (powersetlen): Remove unused variables `domain' and `temp'.
302 * grant.c: Include system.h, toplev.h and output.h. Don't handle
303 strchr/strrchr. Remove redundant prototypes.
304 (decode_constant_selective): Remove unused variables `op' and `wrk'.
305 (push_granted): Mark parameters `name' and `decl' with
308 * inout.c: Include system.h and toplev.h. Remove redundant
310 (textlocation_mode): Use &&, not &, when comparing two truth
312 (scanformcont): Remove unused label `do_the_action'.
314 * lang.c: Include system.h and toplev.h. Remove redundant
316 (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
317 (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
318 (lang_print_xnode): Likewise for parameters `file', `node' and
320 (lang_decode_option): Explicitly declare `explicit_ignore_case'.
321 (incomplete_type_error): Mark parameters `value' and `type' with
324 * lex.c: Include system.h and toplev.h. Remove redundant
325 prototypes. Don't handle strchr/strrchr. Use CAPITALIZED
326 versions of ctype macros from system.h. Cast ctype arguments to
327 unsigned char when necessary.
328 (last_token, RETURN_TOKEN): Hide definition.
329 (push_back): Remove unused function.
330 (readstring): Change variable `i' to unsigned.
331 (yywrap): Remove unused variable `node'.
333 * loop.c: Include system.h and toplev.h. Remove redundant
335 (chill_unsigned_type): Hide prototype and definition.
336 (begin_loop_scope): Remove unused variable `firstp'.
337 (nonvalue_begin_loop_scope): Likewise.
339 * parse.c: Include system.h and toplev.h. Remove redundant
341 (quasi_signal): Hide.
342 (PEEK_TOKEN): Change return type to `enum terminal'.
343 (parse_mode_definition_statement): Remove unused variable `names'.
344 (parse_formpar): Remove unused parameter `in_spec_module'. All
346 (parse_formparlist): Likewise.
347 (parse_processpar): Remove unused variable `parms'.
348 (parse_definition): Add explicit braces to avoid ambiguous `else'.
349 (parse_multi_dimension_case_action): Initialize variable
350 `begin_test_label'. Remove unused variable `new_test'.
351 (parse_case_action): Remove unused variable `caseaction_flag'.
352 (parse_asm_clobbers): Remove unused variable `expr'.
353 (parse_delay_case_action): Initialize variable `label_cnt'.
354 (parse_action): Make function static.
355 (parse_tuple_element): Remove unused variable `list'.
356 (parse_primval): Add default case in switch.
357 (parse_variant_alternative): Remove unused variables `x' and
360 * satisfy.c: Include system.h and toplev.h. Remove redundant
363 * tasking.c Include system.h and toplev.h. Remove redundant
366 (get_struct_variable_name): Likewise.
367 (validate_process_parameters): Mark parameter `parms' with
369 (build_start_process): Initialize variable `tuple'.
370 (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
372 * timing.c: Include system.h and toplev.h.
373 (build_after_timeout_start): Remove unused variable `goto_where'.
375 * tree.c: Include system.h and toplev.h. Remove redundant
378 * typeck.c: Include system.h and toplev.h. Remove redundant
380 (extract_constant_from_buffer): Make function static. Add
381 explicit braces to avoid ambiguous `else'.
382 (expand_constant_to_buffer): Likewise.
383 (build_chill_slice): remove unused variable `is_static'.
384 (chill_compatible): Add explicit braces to avoid ambiguous `else'.
385 (apply_chill_array_layout): Remove unused variable `offset'.
386 (smash_dummy_type): Remove unused variable `save_lang_specific'.
387 (initializer_constant_valid_p): Add default case in switch.
389 Mon Sep 14 16:46:36 1998 Dave Brolley <brolley@cygnus.com>
391 * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
392 domain type of the array.
394 * expr.c (build_chill_function_call): Remove redundant call to
395 chill_convert_to_assignment
397 Thu Sep 10 17:52:36 1998 Dave Brolley <brolley@cygnus.com>
399 * actions.c (chill_convert_for_assignment): Make a copy of the result
400 node before modifying it.
402 Sat Sep 5 16:55:37 1998 John Carr <jfc@mit.edu>
404 * Make-lang.in: Comment ^L characters. Sun make doesn't like them.
406 Sat Sep 5 23:49:50 1998 Jeffrey A Law (law@cygnus.com)
408 * Makefile.in (INCLUDES): Update after recent reorganization at the
409 toplevel gcc directory.
411 Sat Sep 5 22:25:51 1998 Richard Henderson <rth@cygnus.com>
413 * Makefile.in: Update dependancies for top-level gcc files that moved.
415 Sat Sep 5 02:21:08 1998 Jeffrey A Law (law@cygnus.com)
417 * Makefile.in: Tweak to avoid building runtime. It's built
420 Thu Sep 3 15:32:03 1998 Dave Brolley <brolley@cygnus.com>
422 * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
424 Wed Sep 02 09:25:29 1998 Nick Clifton <nickc@cygnus.com>
426 * lex.c (check_newline): Change how HANDLE_PRAGMA is called.
427 Generate warning messages if unknown pragmas are encountered.
428 (pragma_getc): New function: retrieves characters from the
429 input stream. Defined when HANDLE_PRAGMA is defined.
430 (pragma_ungetc): New function: replaces characters back into the
431 input stream. Defined when HANDLE_PRAGMA is defined.
433 Mon Aug 31 15:35:16 1998 Dave Brolley <brolley@cygnus.com>
435 * decl.c (layout_chill_variants): Calculate nlables properly.
437 Mon Jul 27 17:21:01 1998 Dave Brolley <brolley@cygnus.com>
439 * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
442 Mon Jul 13 14:20:12 1998 Nick Clifton <nickc@cygnus.com>
444 * lang-options.h: Format changed to match changes in gcc/toplev.c
445 to implement a --help option.
447 Wed Jul 8 02:58:35 1998 Jeffrey A Law (law@cygnus.com)
449 * lang.c (lang_init_options): New function.
451 Wed Jun 10 12:08:09 1998 Dave Brolley <brolley@cygnus.com>
453 * lang-options.h: Remove -I.
454 * ch-tree.h (c_decode_option): New argc/argv interface.
455 * decl.c (c_decode_option): New argc/argv interface.
456 * lang.c (lang_decode_option): New argc/argv interface.
458 Wed May 27 10:33:41 1998 Dave Brolley <brolley@cygnus.com>
460 * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
461 chill_handle_multi_case_label_range were reversed.
463 * Make-lang.in (chill): Use the correct gcc in the driver script.
465 Thu May 21 14:40:44 1998 Dave Brolley <brolley@cygnus.com>
467 * convert.c (digest_array_tuple): Move conversion to
468 chill_convert_for_assignment.
470 * actions.c (chill_convert_for_assignment): Allow conversion of array
471 constructor to bitstring constructor for assignment to array of packed bits.
473 Thu May 14 13:57:51 1998 Dave Brolley <brolley@cygnus.com>
475 * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
477 Wed May 13 14:07:51 1998 Dave Brolley <brolley@cygnus.com>
479 * typeck.c (build_chill_slice): Adjust slice index to account for the
480 lower bound of the array.
482 * actions.c (chill_expand_assignment): Convert function arguments to the
484 (chill_expand_assignment): Ditto.
486 Mon May 11 16:20:57 1998 Dave Brolley <brolley@cygnus.com>
488 * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
489 of the array_type to the slice_type.
490 (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
493 * loop.c (build_loop_iterator): Disallow location enumeration for
496 * convert.c (digest_array_tuple): Allow conversion of an array tuple
497 to a bitstring for assignment to a packed array of bits.
499 Mon May 4 16:28:58 1998 Dave Brolley <brolley@cygnus.com>
501 * ch-tree.def (PACKED_ARRAY_REF): New tree code.
502 * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
503 (chill_location): Handle PACKED_ARRAY_REF.
504 (apply_chill_array_layout): Allow PACK for arrays of single bits.
505 * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
506 (invalid_operand): Check PACKED_ARRAY_REF operands.
507 * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
509 Thu Apr 23 15:33:20 1998 Dave Brolley <brolley@cygnus.com>
511 * typeck.c (apply_chill_field_layout): Only integral fields can be packed
514 Tue Apr 21 14:30:10 1998 Jeffrey A Law (law@cygnus.com)
516 * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
517 (init_decl_processing): Handle TI types.
518 * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
519 (type_for_size): Handle TI types.
520 (type_for_mode): Handle TI types.
522 Mon Apr 20 13:12:26 1998 Dave Brolley <brolley@cygnus.com>
524 * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
527 * actions.c (chill_convert_for_assignment): Check that the rhs is not
530 Tue Apr 14 13:17:44 1998 Dave Brolley <brolley@cygnus.com>
532 * lex.c (init_parse): Now returns char* containing the filename.
534 * typeck.c (get_type_precision): Declare.
535 (apply_chill_field_layout): Use the minimum number of bits necessary to
536 represent discrete types as the natural length of the field.
538 Thu Apr 9 12:46:55 1998 Dave Brolley <brolley@cygnus.com>
540 * lex.c (finput): Move definition here from toplev.c
541 (init_parse): New function replaces init_lex.
542 (init_parse): Add code to open source file.
543 (finish_parse): New function.
544 (close_input_file): File was being closed more than once.
546 * lang.c (finput): Declare.
547 * ch-tree.h (init_lex): Remove.
550 Wed Apr 8 14:47:33 1998 Dave Brolley <brolley@cygnus.com>
552 * actions.c (compute_else_range): Fix loop index error.
553 (chill_handle_multi_case_label_range): Move error checking to
554 chill_handle_multi_case_label.
555 (chill_handle_multi_case_else_label): Convert ELSE range values to
556 the type of the corrersponding CASE selector.
558 Wed Apr 8 13:02:50 1998 Jeffrey A Law (law@cygnus.com)
560 * actions.c (sizetype_tab): Do not declare.
561 * lang.c (lang_print_xnode): New function.
563 Mon Mar 23 14:43:06 1998 Dave Brolley <brolley@cygnus.com>
565 * grant.c (decode_layout): New function.
566 (grant_array_type): Call decode_layout to export layout information to
570 Fri Mar 20 16:06:41 1998 Dave Brolley <brolley@cygnus.com>
572 * parse.c (parse_tuple_element): Call had arguments in wrong order.
574 Thu Mar 19 13:42:33 1998 Dave Brolley <brolley@cygnus.com>
576 * typeck.c (apply_chill_array_layout): Use
577 TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
580 Wed Mar 18 16:25:48 1998 Dave Brolley <brolley@cygnus.com>
582 * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
585 * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
588 Tue Mar 17 14:16:08 1998 Dave Brolley <brolley@cygnus.com>
590 * parse.c (gen_label_rtx): Declare before use.
591 (emit_jump): Declare before use.
592 (emit_label): Declare before use.
593 (parse_case_label_list): Pass in CASE selector so we can mark it as having
594 an (ELSE) label if necessary.
595 (parse_case_label_specification): Pass in the CASE selector list so that
596 the CASE selectors can be passed to parse_case_label_list.
597 (parse_multi_dimension_case_action): Modify to generate branching code in
599 (parse_case_expression): Compute (ELSE) range before generating CASE expression.
600 (parse_variant_alternative): Remove error for (ELSE) specified.
602 * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
604 * decl.c (layout_chill_variants): Add code to check compatibility of ranges
605 and discrete mode names.
607 * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
609 * actions.h (build_multi_case_selector_expression): Make it extern.
610 (chill_handle_multi_dimension_case_label): Remove.
611 (compute_else_ranges): New function.
613 * actions.c (update_else_range_for_int_const): New function.
614 (update_else_range_for_range): New function.
615 (update_else_range_for_range_expr): New function.
616 (update_else_range_for_type): New function.
617 (compute_else_range): New function.
618 (compute_else_ranges): New function.
619 (chill_handle_multi_case_else_label): New function
620 (chill_handle_multi_case_label_range): Don't generate tests for conditions
621 which are always true or false.
622 (chill_handle_multi_case_label): Ditto.
623 (chill_handle_multi_case_label): Implement (ELSE) label support.
624 (chill_handle_multi_case_label): First argument is now the selector tree not
626 (chill_handle_multi_dimension_case_label): Removed.
627 (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
628 reversed on entry, so reverse it here.
630 Tue Mar 10 15:02:26 1998 Dave Brolley <brolley@cygnus.com>
632 * actions.c (chill_handle_multi_case_label_range): Add more error checking.
633 (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
634 (chill_handle_multi_case_label): Improve Error handling.
636 Mon Mar 9 12:39:00 1998 Dave Brolley <brolley@cygnus.com>
638 * actions.c (chill_handle_multi_case_label_range): Added.
639 (chill_handle_multi_case_label): Add support for discrete ranges and
642 * typeck.c (apply_chill_array_layout): Added more error checking.
643 (apply_chill_field_layout): Added more error checking.
645 Wed Mar 4 16:08:26 1998 Dave Brolley <brolley@cygnus.com>
647 * convert.c (convert): Call build_simple_array_type with new argument.
649 * ch-tree.h(build_simple_array_type): Add argument for array layout.
651 * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
652 (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
653 (apply_chill_array_layout): New function to implement array layout.
654 (layout_chill_array_type): Call apply_chill_array_layout and reset
655 TYPE_ATTRIBUTES to NULL_TREE.
656 (build_chill_array_type): Extend to handle one array layout per index mode.
657 (smash_dummy_type): Call build_simple_array_type with new argument.
659 * satisfy.c (satisfy): Call SATISFY on array layout tree.
661 Wed Feb 25 14:36:41 1998 Dave Brolley <brolley@cygnus.com>
663 * typeck.c (next_struct_offset): Added.
664 (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
665 or POS layout to a structure field.
666 (layout_chill_struct_type): Add call to apply_chill_field_layout.
668 * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
669 in the field layout tree.
671 * parse.c (pack_warn_printed): Remove.
672 (nopack_warn_printed): Remove.
673 (step_warn_printed): Remove.
674 (pos_warn_printed): Remove.
675 (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
677 * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
680 Thu Feb 19 17:33:06 1998 Dave Brolley <brolley@cygnus.com>
682 * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
683 (parse_opt_mode): Removed incorrect comment about association of array
684 layouts with nested array elements.
685 (parse_opt_mode): Allow for one layout per index mode specified.
687 Wed Feb 18 23:48:57 1998 Richard Henderson <rth@cygnus.com>
689 * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy.
691 Wed Feb 18 17:35:05 1998 Dave Brolley <brolley@cygnus.com>
693 * parse.c (parse_field): Get rid of warning for multiple case selectors.
695 * decl.c (layout_chill_variants): Fix loop indexing error.
697 Mon Feb 16 15:54:47 1998 Dave Brolley <brolley@cygnus.com>
699 * parse.c (parse_case_expression): Remove code which checked for
700 unimplemented (ELSE) label.
701 (parse_case_expression): Add code to handle multi dimensional case
704 * expr.c (check_case_selector_list): Fixed to return a list of the
705 selectors which were checked.
706 (chill_expand_case_expr): Remove "sorry" message for multi dimension
708 (chill_expand_case_expr): Reverse order of case alternatives.
709 (chill_expand_case_expr): Add "error" message for multiple case
712 * actions.h (build_chill_multi_dimension_case_expr): Added.
714 * actions.c (build_multi_case_selector_expression): Renamed from
715 build_multi_case_expression.
716 (chill_handle_multi_dimension_case_label): Call above function by its
718 (build_chill_case_expr): Don't reverse the list elements here. It may
720 (build_chill_multi_dimension_case_expr): New function implements multi
721 dimensional case expression.
723 Thu Feb 12 15:44:50 1998 Dave Brolley <brolley@cygnus.com>
725 * parse.c (parse_case_action): Implement multi-dimension CASE action.
726 (parse_multi_dimension_case_action): Added.
727 (parse_single_dimension_case_action): Added based on code moved from
730 * expr.c (check_case_selector_list): Added.
732 * ch-tree.h (check_case_selector_list): Added.
734 * actions.h (chill_handle_single_dimension_case_label): Added.
735 (chill_handle_multi_dimension_case_label): Added.
737 * actions.c (chill_handle_single_dimension_case_label): Added.
738 (chill_handle_multi_case_label): Added.
739 (chill_handle_multi_case_label_list): Added.
740 (build_multi_case_expression): Added.
741 (chill_handle_multi_dimension_case_label): Added
743 Fri Feb 6 16:43:41 1998 Dave Brolley <brolley@cygnus.com>
745 * actions.c (sizetype_tab): Fix declaration to match gcc changes.
747 Thu Feb 5 14:03:00 1998 Dave Brolley <brolley@cygnus.com>
749 * decl.c (chill_tree_code_type): Change this to be an array of char like
750 the tree_code_type in the rest of gcc.
752 * ch-tree.def (chill_tree_code_type): See decl.c.
754 Thu Jan 29 15:34:18 1998 Dave Brolley <brolley@cygnus.com>
756 * tasking.c (error_with_decl): Correct prototype.
757 (build_gen_ptype): Reverse arguments.
759 * lang.c (chill_real_input_filename): Add definition.
760 (chill_print_error_function): Correct second argument.
761 (lang_init): Set chill_real_input_filename.
763 * expr.c (NULL): Protect definition with #ifndef.
765 * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
766 (init_decl_processing): Change last argument to 'sizeof(char)'.
769 Tue Nov 25 10:44:19 1997 Nick Clifton <nickc@cygnus.com>
771 * Make-lang.in (mostlyclean): Use && to seperate commands, so that
772 if the directory change fails, the rule will not loop.
774 Mon Mar 3 12:08:19 1997 Fred Fish <fnf@cygnus.com>
776 * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
777 spaces and use single tab character on some lines.
780 Tue Nov 26 05:12:40 1996 Wilfried Moser <moser@rtl.cygnus.com>
782 * tasking.c (build_receive_buffer_case_label): Rework in a manner,
783 that the buffer location gets evaluated only once, in
784 build_receive_buffer_case_end.
786 * typeck.c (build_chill_bin_type): Rework.
787 (layout_chill_range_type): Process BIN mode.
788 (build_chill_array_type): Remove checking of layout. This is done
791 * parse.c (parse_on_exception_list): Don't allow ON name:.
792 (parse_opt_layout): Parse POS and STEP and return a tree instead
795 * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
797 * grant.c (print_integer_type): Take care of BIN.
799 * expr.c (build_chill_descr): Make descr static if requested
801 (build_chill_length): Process text mode name and text location as
802 described in Z.200/1992.
803 (build_compare_expr): Don't allow < <= > >= for composite modes.
805 * decl.c (grok_chill_fixedfields): Remove checking of
806 layout. This is done at the parser.
808 * convert.c (digest_structure_tuple): Take care of wrong (probably
809 array) tuple. Printing error may cause sigsegv.
811 * ch-tree.h: Change prototypes of grok_chill_fixedfields and
812 build_chill_array_type (layout is passed now as a tree instead of
815 Fri Nov 15 15:17:44 1996 Per Bothner <bothner@deneb.cygnus.com>
817 * convert.c (display_int_cst): Check that val is INTEGER_CST.
818 (digest_array_tuple): Some extra error checks (i.e. that indexes
819 are constant). If dynamic mode, result is not constant.
821 Mon Oct 28 12:48:06 1996 Jeffrey A Law (law@cygnus.com)
823 * typeck.c (signed_or_unsigned_type): If the given type already
824 as the correct signedness, then just return it.
826 * typeck.c ({un,}signed_type): If can't do anything, call
827 signed_or_unsigned_type.
829 Fri Sep 6 02:50:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
831 * typeck.c (build_chill_cast): In case of rangecheck, take care of
832 constant expression (when defining a SYN).
834 Thu Sep 5 04:30:32 1996 Wilfried Moser <moser@rtl.cygnus.com>
836 * parse.c (define__PROCNAME__): New function to define a SYNONYM
837 __PROCNAME__ (__procname__) which is a character string containing
838 the name of the current procedure. This is quit the same as
840 (parse_proc_body): Add call to define__PROCNAME__.
842 * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
843 modes on one side and procedures on the other side..
845 Wed Jul 24 01:13:51 1996 Wilfried Moser <moser@rtl.cygnus.com>
847 * typeck.c: Replace all local variables and arguments named `index'
848 with `idx', `index' gets replaced by `strchr' which makes debugging
850 (valid_array_index_p): New argument to indicate that we are processing
851 LENGTH (varying string) on the lefthand side of an assignment. The
852 index check is different in this case.
853 (build_chill_cast): In case of expression conversion do an OVERFLOW
854 check with the limits of the target mode.
856 * ch-tree.h: New prototype for valid_array_index_p.
858 * actions.c (expand_varying_length_assignment): Add new argument to
859 call to valid_array_index_p to indicate we are processing
860 LENGTH on the lefthand side of an assignment.
862 * loop.c: Rename loop_stack to loopstack to avoid clashes with
863 global variable ../stmt.c:loop_stack.
865 Tue Jun 18 23:04:06 1996 Per Bothner <bothner@deneb.cygnus.com>
867 * expr.c (resolve_component_ref): Set TREE_SIDE_EFFECTS properly.
869 Mon Jun 10 15:01:51 1996 Per Bothner <bothner@deneb.cygnus.com>
871 * typeck.c (build_chill_reference_type): Copy novelty for reference.
872 * satisfy.c (satisfy): If REFERENCE_TYPE, copy novelty.
874 Thu May 30 04:55:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
876 * typeck.c (valid_array_index_p): For varying character strings
877 we must check if the index is less then the actual length instead
880 Wed May 15 06:07:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
882 * ch-tree.h: Add prototype for test_range.
884 * inout.c (process_io_list): Fix duplicate function call if
885 writetext argument is a function returning a varying string.
887 Tue May 14 21:08:47 1996 Per Bothner <bothner@deneb.cygnus.com>
889 Re-do string comparisons. Old way could re-use temporary
890 (SAVE_EXPR created for an argumnet is variable) prematurely.
891 * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR): New codes.
892 * decl.c (init_decl_processing): Remove __eqstring, __gestring,
893 __gtstring, __lestring, __ltstring, __nestring declarations.
894 * expr.c (build_char_array_expr): Rename to build_compare_string_expr.
895 Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
896 (chill_expand_expr): Implement STRING_EQ_EXPR, STRING_LT_EXPR.
897 (build_compare_expr): Use new build_char_array_expr name.
899 Mon Apr 8 14:08:30 1996 Per Bothner <bothner@kalessin.cygnus.com>
901 Cleanup of April 5 fix:
902 * actions.c (test_range): New function.
903 (check_range): Simplify to use test_range.
904 * convert.c (digest_powerset_tuple): Move error message from here ...
905 (check_ps_range): ... to here. Also, simplify to use test_range.
907 Fri Apr 5 03:41:05 1996 Wilfried Moser <moser@rtl.cygnus.com>
909 * convert.c (check_ps_range): New function to perform range check
910 of powerset tuple elements. This is quite the same as check_range,
911 however, the actions on rangefail are different.
912 (digest_powerset_tuple): Call check_ps_range.
914 * loop.c (build_loop_iterator): Chaeck if location enumeration
915 is requested for BOOLS(n) and print an error message.
917 Wed Mar 6 17:46:48 1996 Per Bothner <bothner@kalessin.cygnus.com>
919 * parse.c (parse_primval): Emit error if !ignore (before: pass==2).
921 Implement parameterised array and string modes (using LANG_TYPE).
922 * parse.c (parse_opt_mode): Handle parameterized arrays and strings.
923 * grant.c (decode_mode): Support extended use of LANG_TYPE.
924 * satisfy.c (cycle_error_print): Ignore non-decls in chain.
925 (safe_satisfy_decl): No error if non-decl (pointer type) in cycle.
926 (satisfy): Return immediately if laid out non-pointer type.
927 (satisfy case LANG_TYPE): Handle paramertised mode.
928 (satisfy case POINTER_TYPE/REFERENCE_TYPE): Push type on chain;
929 return immediately if already in chain.
930 * typeck.c (smash_dummy_type): Handle parameterized modes and CHAR(N).
931 Change return type (can now return error_mark_node).
932 (build_readonly_type): Return return value from smash_dummy_type.
933 * ch-tree.h: Change smash_dummy_type return type.
935 Tue Mar 5 22:31:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
937 * typeck.c (build_chill_slice): Re-do index_type calculation.
938 * typeck.c (layout_chill_range_type): Use compare_int_csts rather
939 than tree_int_cst_lt to avoid signed/unsigned problems.
941 * typeck.c (copy_novelty): Use copy_node rather than build_type_node.
942 * typeck.c (smash_dummy_type): Use copy_novelty for NEWMODE of range.
944 * decl.c (init_decl_processing): More portable sizetype initialization.
946 * tree.c (build_string_type): Generalize to also create bitstrings.
947 Return error_mark_node if an argument is an ERROR_MARK.
948 (build_bitstring_type): Simplify - just call build_string_type.
950 Tue Mar 5 03:48:32 1996 Wilfried Moser <moser@blues.cygnus.com>
952 * actions.c (warn_unhandled): Add missing assignment.
954 * loop.c (build_loop_iterator): In case of IN, check if
955 expression has a mode, otherwise make an error.
957 Mon Mar 4 23:12:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
959 * convert.c (digest_powerset_tuple): Check tuple elements
960 for compatibility; if compatible, call convert.
962 Thu Feb 29 23:39:54 1996 Per Bothner <bothner@kalessin.cygnus.com>
964 Simplify NOVELTY representation.
965 * ch-tree.h (CH_NOVELTY): Re-implement as plain TYPE_CONTEXT.
966 (CH_NOVELTY_FLAG): Removed. (Just use CH_NOVELTY.)
967 * decl.c (push_modedef): Make copy even for SYNMODE.
968 but not for internal typedefs (indicated by make_newmode==-1).
969 * tasking.c: Call push_modedef with make_newmode==-1.
970 * typeck.c (chill_novelty): Remove.
971 (smash_dummy_type): Removed unused event/buffer stuff. Update.
972 * grant.c (decode_decl), inout.c (build_io_types),
973 expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
974 tasking.c (build_instance_type): Simplify using new CH_NOVELTY.
976 Solidify READ mode handling.
977 * decl.c (do_decl, push_syndecl, start_chill_function):
978 Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
979 * typeck.c (build_chill_slice): Set TREE_READONLY appropriately.
980 (build_chill_array_ref_1, build_chill_bitref): Likewise.
981 (build_chill_cast): Set TREE_READONLY depending on result type (only).
982 * convert (convert_from_reference, convert): Likewise.
983 * expr.c (resolve_component_ref): Set TREE_READONLY appropriately.
984 (build_chill_function_call): Error if OUT/INOUT arg is TREE_READONLY.
985 * actions.c (chill_expand_assignment): Also error if TREE_READONLY.
986 Use convert_from_reference.
988 Thu Feb 29 11:14:09 1996 Per Bothner <bothner@kalessin.cygnus.com>
990 * parse.c (parse_do_action): DO WITH expressions are evaluated in
991 outer scope. Also call save_if_needed.
992 * decl.c (shadow_record_fields); Fix and simplify.
994 Tue Feb 27 22:19:40 1996 Per Bothner <bothner@cygnus.com>
996 * convert.c (display_int_cst): Gereralize to wider range of ints.
998 Thu Feb 22 06:12:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1000 * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1002 * decl.c (do_decl): In case of chill_varying_type_p, check if
1003 type of fixed part is error mark and do nothing in this case.
1005 * lex.c (convert_bitstring): Don't complain when length of
1006 bitstring is 0 (BOOLS(0) is a valid mode).
1008 * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1009 (domain) is error mark.
1011 * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1012 error_mark_node, just return.
1014 Tue Feb 20 00:01:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
1016 * parse.c (parse_variant_alternative): When checking for ELSE take
1017 care of tagless variants.
1019 Mon Feb 19 05:54:45 1996 Wilfried Moser <moser@rtl.cygnus.com>
1021 * parse.c (parse_case_action): Check if ELSE was specified
1022 in a case label list (this is only valid for array tuples).
1023 (parse_case_expression): Deto.
1024 (parse_variant_alternative): Deto.
1026 Tue Feb 13 17:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1028 * typeck.c (chill_location): Cleanup. Neither SLICE_EXPR nor
1029 BIT_FIELD_REF are referable, even if their base strings are.
1031 Fri Feb 9 02:25:33 1996 Wilfried Moser <moser@rtl.cygnus.com>
1033 * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1034 checking the expression.
1036 * convert.c (convert): Set TREE_CONSTANT when taking the
1037 address of a function.
1039 * decl.c (start_chill_function): Check if the mode is really
1040 a mode to avoid subsequent segfaults.
1042 * typeck.c (string_assignment_condition): Add checking of
1045 Thu Feb 8 01:37:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1047 * actions.c (build_cause_exception): Print warning of unhandled
1048 exception only once for each exception.
1050 Mon Feb 5 22:17:13 1996 Per Bothner <bothner@kalessin.cygnus.com>
1052 * tree.c (discrete_count), ch-tree.h: New function.
1053 * expr.c (build_concate_expr, build_chill_repetition_op,
1054 chill_expand_expr): Use discrete_count; make sure arguments
1055 to size_binop are sizetype.
1056 (powersetlen): Trvialize using discrete_count.
1058 * inout.c (process_io_list): Use new assign_temp function.
1059 * inout.c (build_enum_tables): Avoid taking address of array_ref,
1060 which sometimes gets optimized to a constant.
1062 * expr.c (finish_chill_unary_op): Call convert_to_class on argument.
1063 Remove some obsolete TREE_UNSIGNED stuff.
1064 * lex.c (convert_integer): Removed more TREE_UNSIGNED stuff.
1066 Thu Feb 1 15:11:20 1996 Doug Evans <dje@charmed.cygnus.com>
1068 * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1070 Wed Jan 31 17:13:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1072 * decl.c (char_array_type_node, wchar_array_type_node): Removed.
1073 (init_decl_processing): Remove array_domain_type; don't set
1074 char_array_type_node or wchar_array_type_node.
1075 * decl.c (init_decl_processing): Use fixup_unsigned_type to
1076 simplify code to create boolean_type_node and char_type_node.
1078 Mon Jan 29 14:20:10 1996 Doug Evans <dje@charmed.cygnus.com>
1080 * lex.c (check_newline): Pass character after `#pragma' to
1081 HANDLE_PRAGMA. Don't call get_directive_line if at end of line.
1083 Fri Jan 26 05:56:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1085 * expr.c (build_chill_function_call): Add check and error for
1086 actual argument is a TYPE_DECL.
1088 * parse.c (parse_set_mode): Print a warning if the set mode contains
1089 numbered and unnumbered set elements.
1091 Wed Jan 24 05:10:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1093 * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1095 * decl.c (layout_enum): Add check for negative values if
1096 enum is numbered and duplicate values in an enum.
1098 Mon Jan 15 06:21:52 1996 Wilfried Moser <moser@rtl.cygnus.com>
1100 * actions.c (chill_expand_assignment): Add check for lefthand side
1101 of an assignment is a location.
1103 * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1106 * expr.c (is_really_instance): New function to check if a datum
1107 is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1109 (build_chill_component_ref): call is_really_instance.
1111 Wed Jan 10 13:47:14 1996 Per Bothner <bothner@kalessin.cygnus.com>
1113 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): Removed; now in ../tree.h.
1115 Mon Jan 8 15:29:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1117 * expr.c (build_char_array_expr): Add save_if_needed's if varying.
1118 Also, remove unused len0 and len1.
1120 Mon Dec 11 17:36:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1122 * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1123 build_chill_getassociation, build_chill_getusage,
1124 build_chill_gettextrecord, build_chill_gettextaccess: Simplify
1125 - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1127 * parse.c (parse_action): Minor simplification.
1129 Thu Dec 7 00:02:47 1995 Wilfried Moser <moser@rtl.cygnus.com>
1131 * parse.c (parse_action): In case of CALL, do a check if there
1132 is really a function call.
1134 Tue Dec 5 05:06:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1136 * convert.c (display_int_cst): Fix printing of control sequence.
1138 Thu Nov 30 21:07:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
1140 * grant.c (decode_constant, decode_constant_selective): Make work
1141 for REAL_IS_NOT_DOUBLE case.
1143 * decl.c (CHILL_INT_IS_SHORT): New macro.
1144 (init_decl_processing): Use CHILL_INT_IS_SHORT.
1145 Change name of integer_type_node from _cint to long.
1147 Mon Nov 27 17:07:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
1149 * loop.c (top_loop_end_check): Check while condition *after*
1150 getting next powerset element.
1152 Mon Nov 27 05:29:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
1154 * parse.c (parse_receive_case_action): Fix typo in error message.
1156 * convert.c (display_int_cst): Format characters like strings in
1157 grant.c(decode_constant).
1159 * grant.c: Remove the old forbid stuff.
1161 * lex.c (readstring): Fix reading of '^^'.
1163 * parse.c (parse_procedure_mode): nreverse param_types.
1165 Thu Nov 23 05:39:57 1995 Wilfried Moser <moser@rtl.cygnus.com>
1167 * actions.c (chill_expand_assignment): Check for assigning to
1168 location with non-value mode.
1170 * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1171 Add new and change some prototypes.
1173 * decl.c (init_nonvalue_struct): New function to generate
1174 initialisation code for non-value structs.
1175 (init_nonvalue_array): New function to generate initialisation
1176 code for non-value array's.
1177 (do_decl): Call one of the above mentioned functions in case
1178 we have a mode with the non-value property.
1179 (start_chill_function): Print error message if a non-value mode
1180 gets returned without LOC and check for arguments of non-value
1181 modes only gets passed by LOC.
1183 * grant.c (print_proc_tail): Fix for procedure returning LOC.
1185 * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1186 association_type_node.
1187 (invalidate_access_recordmode): New function to set the
1188 record mode of an ACCESS to error_mark_node in case of
1189 record mode has the non-value property.
1190 (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1191 (build_access_mode, build_chill_gettextaccess): Deto.
1192 (check_exprlist): Correct processing of repetition factor.
1194 * lex.c (readstring): Correct processing of control
1195 sequences of the form '^([H | D | O | B]'xx)'.
1197 * loop.c: Cleanup iterator handling (done by Per).
1198 (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1199 functions for starting and ending a loop scope in case
1200 of initialising an array with non-value property.
1202 * parse.c (check_end_label): Remove '\n' from error message.
1203 (parse_loc_declaration): Print error in case of loc-identity
1204 declaration without initialisation or with keyword INIT.
1205 (parse_do_action): Clean up iterator handling (done by Per).
1207 * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1208 message in case of TYPE_DECL is a signal and the mode has the
1210 (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1211 the array type if the array element mode has the non-value
1213 (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1214 type if one of the fields have the non-value property. If the
1215 record is a buffer mode and the element mode of the buffer has
1216 the non-value-p., invalidate it (see
1217 tasking.c (invalidate_buffer_element_mode). Same for access modes.
1219 * tasking.c (build_signal_descriptor): If the signal type have
1220 the non-value property, do nothing.
1221 (build_receive_signal_case_label): Don't do an assignment if the
1222 signal type have the non-value property.
1223 (build_receive_buffer_case_label): Add check for buffer element
1225 (expand_send_buffer): Deto.
1226 (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1227 (invalidate_buffer_element_mode): New function to set type of
1228 buffer element mode to error_mark_node.
1229 (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1231 Wed Nov 15 13:26:20 1995 Jeffrey A Law (law@cygnus.com)
1233 * inout.c (intsize_of_charsexpr): Move declaration to top
1234 of file to avoid error from solaris2.5 cc.
1236 Thu Nov 9 02:50:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
1238 * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1239 mode, temporarily reset maximum_field_alignment to 0 before
1240 layouting it to be compatible with the runtime library.
1242 * inout.c (build_chill_gettextaccess): Deto.
1244 Mon Nov 6 04:12:06 1995 Wilfried Moser <moser@rtl.cygnus.com>
1246 * decl.c (do_decl): If type is READonly, add check if an
1247 ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1248 and print an error if this is true. Variables of this modes
1249 may not be declared READonly.
1250 Add check for mode is one of the above and an init value was
1251 given. This is also not allowed.
1252 Add initialisation of variables of the above modes during
1253 runtime. This influence the mechanism for detecting to
1254 build a constructor.
1255 (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1256 BUFFER, and EVENT mode must not be READonly.
1257 (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1258 TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1259 (declare_predefined_file): Move to inout.c.
1260 (init_decl_processing): Add definitions for new built-in's.
1261 (finish_outer_function): Build a constructor only if
1262 build_constructor is set.
1264 * except.c: On Linux native, setjmp is __setjmp.
1266 * expr.c (build_chill_component_ref): New function. It gets called
1267 from parse.c instead of build_component_ref. Functions checks if the
1268 user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1269 EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1270 (build_chill_floatcall): New function to resolve CHILL's floating
1271 point builtin calls (SIN, COS, TAN, etc.).
1272 (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1273 build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1274 GETSTACK, and TERMINATE built-in's.
1275 (build_generalized_call): Process new built-in's.
1277 * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1278 (decode_mode_selective): deto.
1280 * inout.c: Completely rewritten for implementing Chapter 7 of
1281 Z.200 (input and output).
1283 * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1286 * lex.h (enum rid): Add RID_ASSOCIATION.
1288 * parse.c: New flag build_constructor to indicate if a constructor
1289 should be generated at the end of compilation or not. See
1291 (parse_begin_end_block): Don't emit a line note.
1292 (parse_primval): Call build_chill_component_ref instead of
1293 build_component_ref.
1294 (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
1295 modes, USAGE modes, WHERE modes.
1297 * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
1298 ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
1299 (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
1301 * typeck.c (extract_constant_from_buffer): Fix thinko in case
1302 of ! BYTES_BIG_ENDIAN.
1303 (build_chill_cast): Implement representation conversion between
1305 (chill_similar): Add check of ACCESSes.
1306 (layout_chill_range_type): Check for real ranges and print
1309 * Make-lang.in: Change compiler version.
1310 chill also depends on Makefile.
1312 * chill.in: Process command line option -Xlinker like -Tdata.
1314 * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
1315 CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
1316 Add some prototypes.
1317 (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
1318 BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
1319 Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
1321 * gperf, hash.h: Remove definition of WHERE.
1323 Thu Oct 5 06:22:19 1995 Wilfried Moser <moser@rtl.cygnus.com>
1325 * grant.c (decode_constant_selective): Add some newlines
1326 to generated SPEC MODULE.
1328 Wed Oct 4 18:16:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1330 * decl.c (pop_chill_function_context): Remove some bogosity.
1332 Wed Oct 4 05:14:00 1995 Wilfried Moser <moser@rtl.cygnus.com>
1334 * grant.c (print_integer_selective): In case of a RANGE of
1335 a SET mode, try to find and grant the parent mode.
1336 (grant_seized_identifier): Dont write it out, if the identifier
1337 doesn't have a seize file (it may come from a SPEC MODULE
1338 defined in the compilation unit).
1340 Fri Sep 22 14:04:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1342 * actions.c (check_non_null): Wrap expr in SAVE_EXPR if needed.
1344 Wed Sep 20 13:51:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1346 * expr.c (force_addr_of): Optimize an INDIRECT_REF using
1347 convert_to_pointer rather than convert (which in case of
1348 a REFERENCE_TYPE would losingly call convert_from_reference).
1350 Wed Sep 20 04:03:58 1995 Wilfried Moser <moser@rtl.cygnus.com>
1352 * inout.c (build_chill_writetext): In case of character string:
1353 Add processing of a concatenation including varying character
1355 (intsize_of_charsexpr, get_max_size): New functions to determine
1356 the maximum size of varying character strings.
1358 * grant.c (decode_constant, decode_constant_selective): Add
1359 processing of COMPONENT_REF.
1361 * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
1362 for SYNONYM's with STRUCT mode.
1364 Mon Sep 18 17:25:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1366 * expr.c (force_addr_of): Optimize of value is INDIRECT_REF.
1367 * typeck.c (build_chill_slice): Call mark_addressable.
1369 Mon Sep 18 14:38:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1371 * expr.c (chill_expand_expr): Make a copy before calling __psslice
1372 if the array is neither referable nor BLKmode.
1373 (build_set_expr): Renamed to ...
1374 (build_compare_set_expr): Allow one opperand to be boolean.
1375 (build_compare_expr): Check both operands for SET_EXPR,
1376 before checking for discrete types (for -fold-strings).
1378 Fri Sep 15 11:35:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1380 * satisfy.c (safe_satisfy_decl): For a CONST_DECL, set TREE_TYPE
1381 to error_mark_node or error.
1383 Fri Sep 15 00:26:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1385 * grant.c (decode_constant_selective): Add processing of
1386 TREE_OPERAND (val, 0).
1388 Wed Sep 13 14:24:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1390 * ch-tree.h (CH_IS_INSTANCE_MODE): Redefine to use CH_SIMILAR.
1391 * convert.c (convert): Use CH_IS_INSTANCE_MODE.
1392 * inout.c (build_chill_writetext): Likewise.
1393 * tasking.c (build_receive_case_start, build_delay_case_start): Ditto.
1394 * parse.c (parse_start_action): Remove redundant tests.
1395 * tasking.c (build_start_process): Also test that optset is instance.
1396 (build_copy_number, build_proc_type, expand_send_signal): Use
1397 CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
1398 * actions.c, convert.c (instance_type_node): Remove redundant
1401 Wed Sep 13 14:19:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1403 * regression.awk2: Use \ line-continuation-markers
1404 to remove gratuitous gawk dependency.
1406 Mon Sep 11 17:26:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1408 * typeck.c (build_chill_modify_expr): Use force_addr_of.
1409 (mark_addressable): Handle INDIRECT_REF of ADDR_EXPR.
1411 * typeck.c (check_case_value), ch-tree.h: Moved to ...
1412 * actions.c (check_case_value): ... here. Also check for
1413 compatibility with selector (which is passed as extra argument).
1414 (chill_handle_case_label_range): Take selector argument,
1415 and use it to call check_case_value.
1416 (chill_handle_case_label): Take extra selector argument.
1417 * ch-tree.h (chill_handle_case_labe): Add prototype.
1418 * except.c expr.c, parse.c: Remove chill_handle_case_label prototypes.
1419 * actions.c, except.c, expr.c, parse.c: Pass extra selector
1420 argument to function calls as needed.
1422 Mon Aug 28 02:47:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1424 * grant.c (decode_constant_selective): Fix a bug in writing items
1427 Thu Aug 24 04:52:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1429 * parse.c (parse_case_expression): Print warning only in
1432 * actions.c (print_missing_cases): Correct printing of
1435 Wed Aug 23 15:26:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1437 * parse.c (parse_case_label_list): Take extra parameter to
1438 indicate if we're parsing a tuple or a case-label-spec.
1439 If former, don't allow '(' EXPR ')' ',' but backup instead.
1440 (parse_case_label_specification, parse_tuple_element):
1441 Pass appropriate new argument to parse_case_label_list.
1443 Wed Aug 23 06:08:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1445 * inout.c (build_chill_readtext): Add processing of BOOL's and
1448 * grant.c (decode_constant): Process nonprintable characters
1451 Fri Aug 11 15:26:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1453 * except.c (initialize_exceptions): Name setjmp "setjmp" and not
1454 "__builtin_setjmp" (which is not recognized by expand_call).
1456 Wed Aug 9 23:35:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
1458 * loop.c (end_loop_scope): Need to call kept_level_p,
1459 in argument to poplevel.
1461 Wed Aug 9 05:48:30 1995 Wilfried Moser <moser@rtl.cygnus.com>
1463 * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
1464 file might be empty). Install chill.install instead.
1466 Tue Aug 8 21:46:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1468 * loop.c (end_loop_scope): Do poplevel *after* expand_end_bindings.
1470 Tue Aug 8 00:51:09 1995 Wilfried Moser <moser@rtl.cygnus.com>
1472 * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
1473 of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
1475 * decl.c (start_chill_function): Likewise ...
1477 Mon Aug 7 18:35:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1479 * tasking.c (build_process_wrapper): Also set DECL_ASSEMBLER_NAME
1480 of PARM_DECL, since otherwise dbxout_symbol_name may barf.
1482 Mon Jul 31 14:32:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1484 * loop.c: Re-written implementation of powerset iteration.
1485 (declare_temps): iter_var is now integer index into bitstring,
1486 and powerset_temp just uses save_expr (normally needs no temp).
1487 (top_loop_end_check): Pass index to start searching (from iter_var)
1488 to library function, instead of dependning on latter to clear old bits.
1489 (increment_temps): UNless DOWN, increment iter_var.
1490 * decl.c (init_decl_processing): Declare new types for
1491 __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
1493 Mon Jul 31 12:47:28 1995 Per Bothner <bothner@cygnus.com>
1495 * convert.c (digest_array_tuple): Set TREE_STATIC if possible.
1497 Fri Jul 28 05:11:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
1499 * lex.c (readstring): Process integer literals starting with
1500 H', D', or B' within a control sequence.
1502 Thu Jul 27 23:08:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
1504 * parse.c (parse_do_action): Don't call push_action, but defer
1505 push_handler until begin_loop_scope.
1506 Call parse_opt_handler here, to move handler scope inside loop block.
1507 (parse_action): After do_action, nothing to do now.
1508 * loop.c (begin_loop_scope): Also call push_handler here.
1509 (declare_temps): Copy derived flag to user_var.
1510 (declare_temps): For POWERSET, always copy to temporary (even if
1511 constant), since the runtime clears bits from it.
1513 * expr.c (build_chill_sizeof): Use convert_to_class.
1514 * satisfy.c (safe_satisfy_decl): Cleanup handling of CONST_DECL -
1515 set proper value of CH_DECL_FLAG on both the decl and its value.
1517 * convert.c (digest_array_tuple); Slightly better errors.
1519 Wed Jul 26 22:13:39 1995 Per Bothner <bothner@cygnus.com>
1521 * expr.c (expand_packed_set): Also allocate the CONSTRUCTOR itself.
1522 (fold_set_expr): Simplify accordingly.
1523 (build_concat_expr): Constant fold bitstring CONCAT_EXPRs.
1525 Thu Jul 13 12:21:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1527 * typeck.c (build_chill_slice): Use build1 instead of build.
1528 * typeck.c (xtract_constant_from_buffer): Pass correct precision
1531 * typeck.c (expand_constant_to_buffer): Handle RANGE_EXPR index.
1532 * convert.c (digest_array_tuple): Generate RANGE_EXPR as index
1533 for tuples with ranges.
1535 Thu Jun 29 23:41:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1537 * typeck.c (build_chill_slice): Re-implement to use casts
1538 instead of build_chill_array_ref_1 (which doesn't always work).
1539 * convert.c (convert): Remove old bugs code.
1541 Tue Jun 27 05:00:04 1995 Wilfried Moser <moser@rtl.cygnus.com>
1543 * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
1544 expression so that a possible handler at the if action will
1546 (parse_proc_body): New argument to indicate if the function
1547 raises exceptions or not. In case the function will raise
1548 exception: start a handler, parse the function and generate
1549 code for reraising the exceptions (call chill_reraise_exceptions).
1551 * except.c (chill_reraise_exceptions): New function to generate
1552 code for reraising exceptions are specified at the function
1555 * ch-tree.h: Add prototype for chill_reraise_exceptions.
1557 * decl.c (build_chill_function_type): When the function (type)
1558 raise an exception, generate two new arguments (additional to the
1559 formal parameters), the filename and linenumber of the caller.
1560 (start_chill_function): likewise...
1562 * expr.c (build_chill_function_call): If the called function raises
1563 exceptions, give current filename and linnumber as aditional
1566 * actions.c (build_cause_exception): Handle case when function
1567 propagates the exception.
1569 * grant.c (print_proc_tail, print_proc_tail_selective): If the
1570 function(type) raises exceptions, don't process the last to
1571 parmeters of the formal argument list, they are compiler
1574 * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
1575 the exception lists are equal.
1577 Thu Jun 22 19:27:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1579 * loop.c (flag_local_loop_counter): Change default to 1.
1580 (end_loop_scope): Set 'keep' parameter in poplevel call.
1581 (declare)_temps): Don't set IDENTIFIER_LOCAL_VALUE, since that
1582 is handled (correctly!) by pushdecl.
1583 (begin_loop_scope): Call pushlevel here,
1584 * parse.c (parse_do_action): Move pushlevel so only called for WITH.
1585 * decl.c (struct scope): Remove n_incomplete field and its uses.
1586 (pushdecl): Re-write to use proclaim_decl. Remove old C-isms.
1587 (init_decl_processing): Re-name integer_type_node as "_cint" to
1588 remove complaint from pushdecl about chill_integer_type_node as "int".
1590 Tue Jun 20 18:15:58 1995 Doug Evans <dje@canuck.cygnus.com>
1592 * Make-lang.in (chill-runtime): Restore patch to disable building of
1593 runtime libraries for cross compilers. This patch should remain
1594 until a build of a freshly checked out devo "just works".
1596 Mon Jun 19 06:01:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
1598 * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
1600 * decl.c (init_decl_processing): Remove builtin function
1601 __cause_exception. New builtin functions __cause_ex1 and
1604 * except.c (is_handled): Return 0 when no handler found,
1605 1, if the handler is in local scope and 2, if function
1606 may propagate the exception.
1608 * actions.c (build_cause_exception): New argument to
1609 indicate if a warning should be printed when
1610 causing an unhandled exception. Call is_handled here.
1612 * ch-tree.h: Change prototype for build_cause_exception.
1613 New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
1614 identifier already has been written to grant file.
1616 * grant.c (write_spec_module): If not GRANT ALL specified,
1617 write only this identifiers to grant file which are
1618 neccessary to form a prober grant file. This will shorten
1619 grant files and speed up compilation.
1620 (decode_constant_selective, decode_mode_selective,
1621 get_type_selective, decode_decl_selective,
1622 grant_array_type_selective, get_tag_value_selective,
1623 print_enumeral_selective, print_integer_selective,
1624 print_struct_selective, print_proc_tail_selective,
1625 grant_one_decl_selective): New functions.
1627 * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
1628 directives to grant file.
1630 * parse.c (parse_on_exception_list): Fis constructing of
1633 Wed Jun 14 15:21:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1635 * typeck.c (valid_array_index_p): Check for syntax error, where
1636 index is a mode, rather than a value.
1638 * expr.c (build_chill_binary_op_1): Remove unused function.
1640 Sat Jun 10 11:36:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
1642 * except.c (is_handled): New function.
1643 Various fixes here and there to make it work.
1645 * parse.c (parse_param_name_list): Set DECL_ASSEMBLER_NAME.
1646 (Otherwise dbxout may crash.)
1648 * satisfy.c (satisfy case FUNCTION_TYPE): Check for non-type result.
1649 * decl.c (start_chill_function): If result type was error_mark,
1650 kludge type chill_os result_decl to avoid extra errors.
1651 * actions.c (chill_expand_result, chill_expand_return): If type of
1652 chill_result_decl is error_mark, do nothing.
1654 * typeck.c (chill_similar): Fix thinko in recent change.
1656 * config-lang.in (diff_exclude): Remove ch/lex.c - now it's a
1657 true source file, and is never longer generated with [f]lex.
1659 * regression.sh: Pass -s to make clean (to make it silent).
1660 Explicitly call gawk, instead of depending of '#!' to work.
1661 Add --objdir flags. Never send mail to bill.
1663 Thu Jun 8 15:08:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1665 * typeck.c (chill_similar): Add extra parameter. Use to to prevent
1667 (chill_equivalent, chill_l_equivalent): Also add new parameter.
1668 * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT): Modify to match.
1670 Tue Jun 6 17:14:49 1995 Per Bothner <bothner@kalessin.cygnus.com>
1672 * loop.c (declare_temps): If -flocal-loop-counter, make sure to
1673 pushdecl the new variable (created with decl_temp1).
1674 And fix the type of the local variable for powerset iteration.
1676 Tue Jun 6 15:07:19 1995 Per Bothner <bothner@cygnus.com>
1678 * typeck.c (mark_addressable): Handle ADDR_EXPR inside
1679 NOP_EXPR inside INDIRECT_EXPR. For TRUTH_ANDIF_EXPR,
1680 TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
1681 (which is used for range-checks and suchlike).
1683 Thu Jun 1 02:45:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1685 * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
1686 GE_EXPR (don't do invert_truthvalue, just switch operands).
1688 Wed May 31 14:00:38 1995 Doug Evans <dje@canuck.cygnus.com>
1690 * lang-options.h: New file.
1691 * lang-specs.h: New file.
1693 Wed May 24 01:45:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1695 * actions.c (assign_stack_temp): Remove unneeded declaration.
1697 Tue May 23 00:17:38 1995 Per Bothner <bothner@kalessin.cygnus.com>
1699 * parse.c (parse_on_exception_list): Return list of exception
1700 names in pass 1, not in pass 2. (Return non-NULL dummy if pass 2.)
1701 (parse_on_alternatives): Call chill_handle_on_labels even if ignoring.
1702 (parse_opt_handler): Likewise for chill_start_default_handler.
1703 * except.c (push_handler): Clear on_alt_list only if pass 1.
1704 (chill_handle_on_labels): Build on_alt_list in pass 1,
1705 retrieve it in pass 2.
1707 Fix so that decl_temp1 does not expand_decl_init, which calls
1708 free_temp_slots, which loses in the middle on an expression.
1709 * decl.c (finish_decl): Don't call expand_decl_init.
1710 (do-decl): Do initialization assignment even if stack variable.
1711 * parse.c (parse_loc_declaration): Call free_temp_slots.
1713 * decl.c (finish_decl), ch-tree.h: Remove last two always-NULL
1714 parameters. Cleanup never-used code.
1715 * decl.c, except.c: Update calls to finish_decl.
1717 * decl.c (case_else_node): Define new variable.
1718 (init_decl_processing): Initialize it.
1719 (make_chill_variants): If variant label is case_else_node (i.e. it
1720 is (ELSE):), treat that as an ELSE variant.
1721 * ch-tree.h (case_else_node): Declare case_else_node.
1722 * parse.c (parse_case_label): Use case_else_node.
1724 Mon May 22 10:18:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1726 * grant.c (print_proc_tail): Also call print_proc_exceptions.
1727 (decode_decl): Don't explicitly call print_proc_exceptions for
1729 (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
1731 * actions.c (chill_convert_for_assignment): Use save_if_needed,
1732 instead of save_expr, in case value is a reference.
1734 * typeck.c (build_chill_slice): Fix old thinko (missing call to
1735 build_pointer_type).
1737 * actions.c (size_int): Remove unused and conflicting prototype.
1739 Wed May 17 16:23:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
1741 * actions.c (chill_convert_for_assignment): Call save_expr if
1742 range_checking (twice).
1744 Tue May 16 11:33:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
1746 * typeck.c (layout_chill_range_type): Re-organize error checking.
1747 Add extra parameter to indicate if non-constant bounds are allowed.
1748 If bounds are bad, set them to the min_value of the parent.
1749 * ch-tree.h (layout_chill_range_type): Update declaration.
1750 * satisfy.c (satisfy): Update call of layout_chill_range_type.
1751 * typeck.c (build_chill_range_type): Likewise.
1752 * tree.c (build_string_type): Likewise.
1754 Tue May 16 00:37:51 1995 Wilfried Moser <moser@rtl.cygnus.com>
1756 * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
1758 Mon May 15 12:54:32 1995 Per Bothner <bothner@kalessin.cygnus.com>
1760 * satisfy.c (satisfy): Supress error message for REF <error_mark>.
1761 * decl.c (push_modedef): Check for TREE_CODE != ERROR_MARK, instead
1762 of against error_mark_node. (smash_dummy_type can copy error marks.)
1763 (finish_decl): Simplify C-derived check for incomplete type,
1764 and suppress if it is an ERROR_MARK.
1765 Don't call rest_of_decl_compilation if type is an ERROR_MARK.
1767 Sun May 14 22:52:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1769 * convert.c (convert): Handle array types with different modes.
1771 Thu May 11 15:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1773 * loop.c (build_loop_iterator): Handle the case of a non-local
1774 loop counter having reference type.
1776 Thu May 11 07:04:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
1778 * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
1779 build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
1780 to avoid erros when assigning to (comparing with) NEWMODEd INT's.
1782 Mon May 8 15:27:16 1995 Per Bothner <bothner@kalessin.cygnus.com>
1784 * expr.c (build_chill_card): Do constant folding, if possible.
1785 (build_max_min): Do constant folding for MIN/MAX of powersets.
1787 Mon May 8 06:57:21 1995 Wilfried Moser <moser@rtl.cygnus.com>
1789 * expr.c (build_chill_sizeof): Add corect processing of a
1790 SIGNAL definition without data.
1792 Sat May 6 16:27:10 1995 Doug Evans <dje@canuck.cygnus.com>
1794 * Make-lang.in (maintainer-clean): Renamed from realclean.
1796 Tue May 2 06:16:23 1995 Wilfried Moser <moser@rtl.cygnus.com>
1798 * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
1799 otherwise "handler stack" will get out of sync.
1801 Mon Apr 24 09:51:07 1995 Per Bothner <bothner@rtl.cygnus.com>
1803 Fixes to support module-level non-static temporary variables.
1804 * parse.c (parse_loc_declaration): If all_static_flag and not
1805 resursive, tell do_decls to make new decl static.
1806 * decl.c (do_decl): Don't use maybe_static function to force static.
1807 (do_decl): Don't let initialization count as "using" the variable.
1808 (maybe_static): Removed.
1809 (finish_decl): Call expand_decl and expand_decl_init if needed
1810 (as it will be for non-static temporaries).
1812 Fri Apr 21 21:02:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1814 * convert.c, expr,c typeck.c (expand_decl): Remove usused declaration.
1816 Fri Apr 21 02:27:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
1818 * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
1819 LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
1820 GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
1822 Thu Apr 20 15:29:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
1824 * parse.c (yytext, finput): Remove unused declarations.
1826 * parse.c (proc_action_level): New variable.
1827 (parse_proc_body): New function. Common code from
1828 parse_procedure_definition and parse_process_definition moved here.
1829 Save, set, and restore proc_action_level from action_nesting_level.
1830 (parse_action case RETURN): Pass proc_action_level to
1831 expand_goto_except_cleanup.
1833 Thu Apr 20 06:02:20 1995 Wilfried Moser <moser@rtl.cygnus.com>
1835 * grant.c (really_grant_this): Add processing of LABEL_DECL's
1838 Tue Apr 18 18:16:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1840 * lex.c ( convert_bitstring): Use BYTES_BIG_ENDIAN rather
1841 than BITS_BIG_ENDIAN to layout bits within bitstring.
1842 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
1845 Sun Apr 16 19:55:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
1847 * decl.c (finish_chill_function): If currently global_function_decl,
1848 don't set outer_function to global_function_decl.
1850 Wed Apr 12 22:45:06 1995 Per Bothner <bothner@kalessin.cygnus.com>
1852 * decl.c (start_chill_function): Normal functions are nested.
1853 (finish_chill_function): No longer takes a 'nested' parameter.
1854 Normal functions are nested.
1855 Never call permanent_allocation, since it does little good (all normal
1856 functions are nested), and trashes some things we need.
1857 (finish_outer_function): Update call to finish_chill_function.
1858 * grant.c (chill_finish_compile): Likewise.
1859 * tasking.c (build_process_wrapper): Likewise.
1860 * parse.c (end_function): Likewise.
1861 * ch-tree.h (finish_chill_function): Update declaration.
1863 * parse.c (parse_asm_clobbers): Re-enable.
1864 (expand_asm_operands): function.
1865 (parse_asm_action): Re-enable. Don't do anything in pass 1.
1867 * typeck.c (build_chill_slice): Do constant folding.
1868 Also, work around problem where expand_expr constant folds ARRAY_REF.
1869 (sort_constructor): Remove unused function.
1871 * expr.c (chill_expand_expr case CONCAT_EXPR): Make sure we
1872 emit_block_move if needed with correct size.
1874 * inout.c (build_chill_io_list_type): Simplify.
1876 * lex.c (check_newline): Uncomment some dwarf stuff,
1877 which needs get_directive_line, which we no longer have.
1879 Wed Apr 5 16:05:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1881 * Makefile.in (C_OBJS, xcc1chill): Removed. We no longer
1882 link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
1884 * expr.c (build_chill_component_ref): Renamed to build_component_ref.
1885 (chill_truthvalue_conversion): Renamed to truthvalue_conversion.
1886 * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
1887 typeck.c: Update accordingly.
1888 * typeck.c (valid_array_index_p): We only need to save_expr (index)
1889 if we're range-checking.
1890 * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
1891 mark_addressable, initializer_constant_valid_p, check_case_value,
1892 type_for_size, type_for_mode): New functions, copied from
1893 ../c-common.c and ../c-typeck.c.
1895 * lang.c (incomplete_type_error): New. (Was in c-common.o.)
1896 * decl.c (constant_expression_warning): New. (Was in c-common.o.)
1898 * lang.c (string_index_type_dummy): Remove definition from here.
1899 * tree.c (string_index_type_dummy): Define here instead.
1900 * lang.c (lang_init): Move init of string_index_type_dummy
1901 (which is too late) from here ...
1902 * decl.c (init_decl_processing): ... to here.
1904 * decl.c (signed_boolean_type_node): New variable.
1905 (init_decl_processing): Initialize it.
1907 * parse.c: Comment out ASM action support, for now.
1909 * loop.c (maybe_skip_loop): Make return void, not int.
1910 Use build_compare_discrete_expr.
1911 (increment_temps): Use chill_expand_assignment.
1913 Thu Mar 30 23:28:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1915 * decl.c (do_decl): If default-initializing variable-length
1916 string to "" (or []), make it lifetime_bound.
1918 Thu Mar 30 02:51:59 1995 Wilfried Moser <moser@rtl.cygnus.com>
1920 * parse.h, hash.h, gperf: New compiler directives
1921 EMPTY_ON and EMPTY_OFF.
1923 * lex.c: New variables empty_checking and runtime_checking_flag.
1924 (ch_lex_init): Initialize empty_checking and range_checking
1925 when switching from pass 1 to 2.
1926 (read_directive): Add processing of EMPTY_OFF/ON.
1928 * expr.c (build_chill_indirect_ref): New argument do_empty_check
1929 to indicate if null pointer checking should be done or not.
1930 It's not always necessary to do a null pointer check.
1932 * decl.c (lookup_name): Add argument to call to
1933 build_chill_indirect_ref.
1934 (shadow_record_fields): ...
1935 * parse.c (parse_primval): ...
1936 * tasking.c (build_process_wrapper): ...
1937 (build_receive_buffer_case_label): ...
1939 * ch-tree.h: Change prototype of build_chill_indirect_ref.
1940 Add declaration of runtime_checking_flag and empty_checking.
1942 * actions.c (check_non_null): Do null pointer checking only
1943 when enabled (empty_checking != 0).
1945 Wed Mar 29 15:18:23 1995 Per Bothner <bothner@kalessin.cygnus.com>
1947 * actions.c (chill_expand_assignment): Add 'else' so we don't do
1948 regular assignment in addition to spacial assignment (e.g. for slices).
1950 * ch-tree.h (convert_to_discrete): Add declaration.
1951 * typeck.c (convert_to_discrete): New function.
1952 (valid_array_index_p): Use convert_to_discrete. Also simplify.
1953 (build_chill_slice): Say sorry if variable-length bitstring.
1954 (build_chill_slice_with_length): Re-do bounds check.
1955 * expr.c (check_case_selector): Re-write to use convert_to_discrete.
1956 (build_chill_num, build_chill_pred_or_succ): Use convert_to_discrete.
1958 * decl.c (do_decl): Don't do redundant chill_convert_for_assignment.
1960 Wed Mar 29 00:00:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
1962 * expr.c (build_chill_num): need_unsigned have to be set for
1963 characyer strings of length 1 too. Happens when compiling
1964 with -fold-strings and do NUM(a(i)).
1966 * parse.c (parse_loc_declaration): Print error message only
1968 (parse_mode): Likewise ...
1970 * tasking.c (build_tasking_message_type): Temporarily reset
1971 maximum_field_alignment to get proper aligned temp. variables
1972 gets passed to runtime system.
1974 Tue Mar 28 00:08:06 1995 Per Bothner <bothner@cygnus.com>
1976 * typeck.c (my_build_array-ref): Merged into build_chill_array_ref_1.
1977 But don't convert index to integer_type_node. And we don't need to
1978 check the we're given an array.
1979 * typeck.c (valid_array_index_p): If flag_old_strings, convert
1980 chars(1) to char and bools(1) to bool before index checking.
1982 Sun Mar 26 22:42:39 1995 Per Bothner <bothner@cygnus.com>
1984 * ch-tree.h (struct module): Added next module field.
1985 * decl.c (first_mdoule, next_module): New global variables.
1986 (switch_to_pass_2): Re-initialize next_module.
1987 (push_module): In pass 2, reuse the same module objects from pass 1.
1989 * decl.c (declare_predefined_file): Set DECL_IN_SYSTEM_HEADER.
1991 * typeck.c (valid_array_index_p): Do range check on original index,
1992 before we convert to domain type.
1994 Fri Mar 24 11:43:39 1995 Per Bothner <bothner@kalessin.cygnus.com>
1996 * parse.c (parse_fixed_field): New function.
1997 (parse_variant_field_list): New function replaces parse_simple_fields.
1998 (parse_variant_alternative, parse_field): Update to use new functions.
1999 (parse_field): Error message if neither CASE nor NAME.
2001 * actions.c (check_non_null): New function - checks for NULL pointers.
2002 * ch-tree.h (check_non_null): New declaration.
2003 * tasking.c (expand_send_signal): Call check_non_null.
2004 * expr.c (build_chill_indirect_ref, build_chill_function_call): Same.
2005 * lex.h (enum rid): Add RID_EMPTY.
2006 * lex.c (init_lex): Initialize ridpointers[RID_EMPTY].
2008 * lex.c (read_directive): Remove 2 calls of to_global_binding_level
2010 Wed Mar 22 16:36:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
2012 * tasking.c (tasking_list): Change to chain of TREE_VEcs, rather than
2013 chain of (nested) TREE_LIST nodes.
2014 (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2015 TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE): New macros.
2016 (tasking_setup, tasking_registry, add_taskstuff_to_list): Use them.
2018 * ch-tree.h (C_TYPE_FIELDS_READONLY): Rename to TYPE_FIELDS_READONLY.
2019 (TYPE_READONLY_PROPERTY): New macro, to match Z.200 concept.
2020 * typeck.c (build_chill_modify_expr): Don't check for read-only-ness,
2021 since it is redundant for chill_expand_assignment and breaks
2022 reach-bound initialization in do_decl.
2023 (my_build_array_ref): Simplify by using TYPE_READONLY_PROPERTY.
2024 (layout_chill_array_type): Set TYPE_FIELDS_READONLY if appropriate.
2025 * actions.c (chill_expand_assignment): Check TYPE_READONLY_PROPERTY
2026 instead of TREE_READONLY of the target's type.
2027 * expr.c (build_chill_function_call): Likewise.
2028 * inout.c (build_chill_readtext): Likewise.
2029 * decl.c (do_decl): Likewise, to check if init is required.
2031 * typeck.c (build_chill_bitref): Removed unused RANGE_EXPR hack.
2033 Wed Mar 22 07:52:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
2035 * tasking.c (build_start_process): Get a unique identifier for
2036 the start arguments.
2038 Tue Mar 21 07:36:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
2040 * expr.c (fold_set_expr): At label build_result: Add setting unused
2041 bits to 0. This is the same as the runtime library does.
2043 * parse.c (expect): Function returns now int, 0, if the expected
2044 token was not got, 1 when it was found.
2045 (parse_synonym_definition): In case of syntax error (missing =),
2046 set expr to NULL_TREE and mode to error_mark to avoid subsequent
2049 * chill.texi: Add chapter about differences to Z.200/1988.
2051 Mon Mar 20 18:01:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2053 * lang.c (chill_print_error_function): New function, to report
2054 module name if not inside a function.
2055 (lang_init): Set print_error_function to chill_print_error_function.
2057 * tasking.c (max_queue_size, buffer_element_mode): Cleanup
2058 to remove unreachable code.
2060 * grant.c (chill_finish_compile): Avoid doing a lookup_name
2061 to find init function (which got broken by recent nesting re-org).
2063 * decl.c (poplevel): Push and pop function context around
2064 call to output_inline_function (as done for C and C++).
2066 Thu Mar 16 17:56:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2068 * parse.c (parse_pass_1_2): If unknown top-level token, skip pass 2.
2070 Wed Mar 8 13:54:33 1995 Doug Evans <dje@canuck.cygnus.com>
2072 * Make-lang.in (chill-runtime): Temporarily disable building of
2073 runtime libraries for cross compilers.
2075 Mon Mar 6 23:36:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2077 * parse.c, decl.c: Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2079 * configure: Merge in tolerance for new flags (e.g. --x-libraries).
2081 Sat Mar 4 15:47:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2083 * expr.c (build_chill_arrow_expr): Error if pass == 1.
2085 Thu Mar 2 19:28:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2087 * decl.c (do_decl): Setting seen_action must be done in pass 1.
2088 (save_decl): Don't set DECL_CONTEXT to global_function_decl.
2089 (start_chill_function): Simplify due to above change.
2091 * parse.c (parse_case_label): Hack to distinguish (ELSE) from (*).
2092 * grant.c (decode_constant): Emit ELSE in case label.
2094 * parse.c (serious_errors): New global variable.
2095 * parse.c (to_global_binding_level): Set serious_errors.
2096 (parse_pass_1_2): Exit after pass 1 if serious_errors > 0.
2097 * lex.c (readstring): Recover from unterminstaed control sequence.
2099 Tue Feb 28 17:08:08 1995 Per Bothner <bothner@kalessin.cygnus.com>
2101 Re-write of module-level actions. No longer generate a module
2102 function for module-level actions. Instead, put them inside
2103 a new global dummy function. Nest everything logically inside it.
2105 * lex.h, grant.c (chill_module_name): Removed declaration.
2106 * grant.c (write_spec_module): Instead use current_module->name.
2107 * grant.c (chill_start_module_code, chill_finish_module_code):
2109 * grant.c (chill_finish_compile): Make rtl for global function.
2111 * actions,c (push_action): Don't call chill_start_module_code.
2112 * expr.c (build_chill_function_call, build_generalized_call):
2114 * parse.c (INIT_ACTION): Likewise.
2116 * parse.c (seen_action): New variable.
2117 * parse.c (end_function): Always call pop_chill_function_context.
2118 (parse_procedure_definition): Always call push_chill_function_context.
2119 (parse_modulion): Parse optional handler.
2120 (parse_modulion, parse_spec_module): Do find_granted_decls.
2121 (parse_action): Set seen_action if global and a real action.
2122 ([arse_program): Call start_outer_function and finish_outer_function.
2124 * ch-tree.h: Appropriate updates.
2126 * tasking.c (generate_tasking_code_variable): Make it lifetime-bound.
2127 (build_process_header): Always push_chill_function_context;
2128 we are now always nested.
2129 (build_process_wrapper): Always pop_chill_function_context.
2131 * tasking.c (build_start_process): Only expand_start_bindings and
2132 expand_end_bindings if pass 2.
2134 * decl.c (global_function_decl): New variable.
2135 (do_decl): Implement reach-bound initialization of static variables.
2136 (start_chill_function): Set DECL_CONTEXT to NULL if
2137 it would be global_function_decl (so as to not confuse gcc backend).
2138 (start_chill_function, finish_chill_function): If compiling
2139 global_function_decl in pass 2 and !seen_action, suppress it.
2140 (set_module_name): New function.
2141 (global_bindings_p): Re-defined to check against global_function_decl.
2142 (start_outer_function, finish_outer_function): New functions.
2144 Tue Feb 28 16:00:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
2146 * typeck.c (build_chill_modify_expr): Inline logic from
2147 chill_expand_array_assignment,
2148 * actions.c (chill_expand_array_assignment): Removed.
2149 (chill_expand_assignment): Remove call to removed function.
2151 * lex.c (reinit_parse_for_function): Removed empty unused function.
2152 * decl.c (start_chill_function): Don't call removed function.
2154 Tue Feb 28 00:29:51 1995 Per Bothner <bothner@cygnus.com>
2156 * configure: Merge in code for calculating host, build, and
2157 target and canon_{host,build,target} from ../configure.
2158 Fix calculation of mainsrcdir. Host canon_* variables
2159 to merge in build-make (as in ../configure).
2161 Sun Feb 26 18:59:02 1995 Per Bothner <bothner@kalessin.cygnus.com>
2163 * typeck.c (expand_constant_to_buffer): Use new function
2164 get_set_constructor_bytes.
2166 Tue Feb 21 01:41:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
2168 * inout.c (build_chill_writetext): Add processing of
2169 conditional expressions in argument list.
2171 * parse.c (parse_opt_name_string): Print error message only
2174 * chill.texi: Add chapter about compiler directives.
2176 Tue Feb 14 16:45:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2178 * decl.c (start_chill_function): Set FUNCTION_NEEDS_STATIC_CHAIN
2181 * decl.c (decl_temp1): Make lifetime_bound iff static.
2183 Fri Feb 3 04:30:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
2185 * grant.c (really_grant_this, search_in_list): New static
2186 functions to determine if a decl should be written to
2188 (write_spec_module): Add call to really_grant_this.
2190 Fri Jan 27 00:06:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2192 * actions.c (check_expression): Apply Per's patch.
2193 (chill_expand_result): New argument to indicate if we come
2194 from a RETURN or RESULT action. Change various error messages.
2196 * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2197 New argument for chill_expand_result.
2199 * chill.in: In case of -fgrant-only, clear library, libpath and
2200 startfile to avoid warnings from gcc.
2202 * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2204 * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2206 * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2207 and subsequent SEIZEs to grant file, if the seize file is
2210 * lex.c (read_directive): Process new compiler directive
2211 USE_SEIZE_FILE_RESTRICTED.
2212 (handle_use_seizefile_directive): Same as above.
2213 (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2214 if this seize file is used restricted.
2216 * parse.c (parse_action, case RETURN): Change RETURN expr action
2217 to RESULT expr; RETURN. This enables range checking and
2218 exception delivery in case of rangefail.
2220 Tue Jan 17 07:38:27 1995 Wilfried Moser <moser@rtl.cygnus.com>
2222 * decl.c (init_decl_processing): Add definition of
2223 library function __inbitstring (see expr.c).
2225 * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2226 __inpowerset fir POWERSET's and function __inbitstring for
2227 BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2228 in case of BITSTRING's we have to do one.
2229 (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2230 statement with no effect).
2232 Fri Jan 13 13:35:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2234 * actions.c (check_expression): Simplify result.
2236 * ch-tree.h (SET_CH_NOVELTY_NONNIL): New macro.
2237 * expr.c, timing.c, typeck.c: Use SET_CH_NOVELTY_NONNIL.
2239 * typeck.c (valid_array_index_p), ch-tree.h: Change interface
2240 to return modified index expression. Call error if out-of-range.
2241 * actions.c, typeck.c: Modify
2242 for new valid_array_index_p interface.
2244 * actions.c (build_chill_slice): Copy novelty of index type.
2246 Fri Jan 13 13:04:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
2248 * convert.c (digest_array_tuple): Allow mode name in array
2249 tuple label. Print error message instead of aborting.
2251 * parse.c (parse_body): Error message only if pass 1.
2253 * decl.c (check_identifier), ch-tree.h: Remove. Unused.
2255 Wed Jan 11 14:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
2257 * parse.c (parse_modulion): Undo yesterday's change (to allow
2258 an ON-handler to follow) until we re-implement module.
2260 Tue Jan 10 17:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
2262 * loop.c (declare_temps): Remove bogus prohibition against
2263 iterating over BOOL arrays.
2265 * parse.c (parse_semi_colon): Make it a pedwarn (instead of an
2266 error) if a semi-colon is missing before an END.
2267 (parse_action): Likewise.
2268 * parse.c (parse_modulion): Allow an ON-handler to follow.
2270 * parse.c (parse_set_mode): Use parse_expression to get
2271 values for number set elements.
2273 * expr.c (build_compare_expr): Make sure result has
2274 CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2275 (finish_chill_binary_op): Likewise for IN_EXPR.
2277 Tue Jan 10 04:46:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
2279 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2280 checking the argument.
2281 (chill_expand_assignment): Take care of a newmoded dst_offset
2282 when calling __pscpy and a newmoded from_pos when calling
2285 * expr.c (chill_expand_expr): When calling __psslice take care
2286 of a newmoded min_value.
2288 * parse.c (parse_name_string): Print error message only in
2291 Tue Jan 3 19:56:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
2293 * typeck.c (build_chill_array_ref_1): Use varying_to_slice
2294 instead of building a VRAY_ARRAY_REF node.
2295 * ch-tree.def (VARY_ARRAY_REF): Removed.
2296 * actions.c (chill_expand_assignment): Will never call
2297 expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
2298 (expand_assignment_to_varying_array): Removed.
2299 * convert.c (convert): Remove unneeded VARY_ARRAY_REF support.
2300 * expr.c (chill_expand_expr): Likewise.
2302 Tue Jan 3 19:50:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
2304 * parse.c (parse_iteration): Set step_value to NULL if missing.
2305 * loop.c (ITER_TYPE): Remove DO_RANGE.
2306 (build_loop_iterator): Implement old DO_RANGE in terms of DO_STEP.
2307 (begin_loop_scope): Don't return on error.
2308 (build_loop_iterator): Calculate loop variable type using
2309 resulting classes (as in Z200), rather than precision.
2311 * loop.c (initialzie_iter_var, bottom_loop_end_check): For DO_STEP,
2312 make iter_var one less to avoid overflow.
2313 * loop.c (build_loop_iterator): If !flag_local_loop_counter,
2314 declare a new variable if needed, as allowed by Z200 (1984).
2316 * ch-tree.h (ch_class): Add typedef.
2318 * typeck.c (chill_resulting_class): New function.
2319 (chill_root_resulting_class): Remove.
2320 * ch-tree.h (CH_RESULTING_CLASS): New macro.
2321 (CH_ROOT_RESULTING_CLASS): Re-implement using CH_RESULTING_CLASS.
2323 Tue Jan 3 19:36:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
2325 * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
2326 Change interface to take IDENTIFIER tree node, rather char char*.
2327 (check_expression): Change (simplify) callers appropriately.
2328 * parse.c (parse_action), typeck.c (valid_array_index_p): Likewise.
2329 * lex.h (enum rid): Add RID_ASSERTFAIL.
2330 * lex.c (init_lex): Enter RID_ASSERTFAIL.
2331 * parse.c (parse_action case ASSERT): Fix thinko TRUTH_ANDIF_EXPR
2332 to TRUTH_ORIF_EXPR. Use RID_ASSERTFAIL.
2334 * typeck.c (discrete_type_p): Re-implement using INTEGRAL_TYPE_P.
2336 Tue Jan 3 19:20:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2338 Move checking for modeless tuples in invalid contexts from parser
2339 to semantic function check_have_mode (for better error recovery):
2340 * expr.c (check_have_mode), ch-tree.h: New function.
2341 * satisfy.c (safe_satisfy_decl): Use check_have_mode.
2342 * expr.c (build_compare_expr, finish_chill_binary_op,
2343 finish_chill_unary_op): Likewise.
2344 * parse.c (parse_primval): Don't complain about mode-less tuple here.
2346 Tue Jan 3 17:36:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
2348 * expr.c (varying_to_slice): Support varying arrays whose
2349 lower bound is non-zero.
2351 * parse.c (parse_body): Allow (with warning) definition to
2354 * expr.c (check_case_selector), ch-tree.h: New function.
2355 (chill_expand_case_expr): Use it.
2356 * parse.c (parse_case_action): Likewise.
2358 Fri Dec 23 00:47:54 1994 Wilfried Moser <moser@rtl.cygnus.com>
2360 * actions.c (chill_expand_return): Change error message.
2362 * ch-tree.h: Change prototypes of do_decl and do_decls.
2364 * convert.c (convert): Add missing initialisation of
2365 variable orig_e_constant.
2367 * decl.c: Change all calls to do_decl.
2368 (maybe_static): New function to process the ALL_STATIC_ON/OFF
2369 compiler directives.
2370 (do_decls): New argument.
2371 (do_decl): New argument and process reachbound and lifetime
2372 bound initialisation.
2374 * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
2377 * grant.c: Change all calls to do_decl.
2379 * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
2382 * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
2385 * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
2387 * tasking.c: Change all calls to do_decl.
2389 Mon Dec 19 23:13:58 1994 Wilfried Moser <moser@rtl.cygnus.com>
2391 * parse.c (parse_procedure_definition): Save chill_at_module_level
2392 flag, set ot to 0 and restore it at the end of function.
2393 A sequence BEGIN x: PROC () RETURN; END x; END; at module level
2394 have produced an error.
2396 * expr.c (build_chill_repetition_op): Fix typo in error message.
2398 Tue Dec 13 12:26:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2400 * actions.c (expand_assignment_to_varying_array): Fix thinko:
2401 build_chill_array_ref -> build_chill_array_ref_1.
2403 Sun Dec 11 23:04:27 1994 Per Bothner <bothner@rtl.cygnus.com>
2405 * actions.c (chill_expand_assignment): Simplify the lhs if it is
2406 a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
2408 Thu Dec 8 13:45:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2410 * loop.c, ch-tree.h (build_loop_iterator): Fix to return void.
2411 If start_exp is ERROR_MARK, return.
2412 * expr.c (build_generalized_call): More robust on syntax errors.
2414 Tue Dec 6 02:33:23 1994 Wilfried Moser <moser@rtl.cygnus.com>
2416 * inout.c (build_chill_readtext): In case of reading a SET mode
2417 pass ignore_case flag to runtime library.
2419 Tue Nov 29 14:41:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2421 * parse.c (parse_receive_case_action): Print error only if pass==1.
2422 * decl.c (push_scope_decls): Use error_with_file_and_line
2423 to get correct line number of SEIZE.
2425 Mon Nov 28 16:59:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
2427 * expr.c (resolve_component_ref): Call fold on result.
2429 * expr.c (resolve_component_ref): Use check_expression.
2430 * actions.c (chill_convert_for_assignment): Likewise.
2431 * actions.c (cond_exception), ch-tree.h: Removed.
2432 * actions.c (check_expression): First part of COMPOUND_EXPR
2433 should be boolean_type_node; void_type_node loses in SAVE_EXPRs.
2435 * actions.c (chill_convert_for_assignment):
2436 Check string_assignment_condition for varying strings too.
2438 * typeck.c (build_chill_cast): If the types have different sizes,
2439 don't allow nondiscrete->discrete conversion, and only allow
2440 discrete->nondiscrete if input expression is constant.
2442 * typeck.c (chill_similar): Don't use losing array_type_nelts.
2444 * ch-tree.h (ELSE_VARIANT_NAME): New.
2445 * convert.c, decl.c, grant.c: Use ELSE_VARIANT_NAME.
2446 * decl.c (handle_one_level): Recurse on ELSE_VARIANT_NAME too.
2448 Reduce dependencies on ../c-typeck.c:
2449 * expr.c: Fix c_expand_start_case -> expand_start_case.
2450 Fix c_expand_expr_stmt -> expand_expr_stmt.
2451 (build_chill_indirect_ref): Call convert instead of build_c_cast.
2452 * loop.c (bottom_loop_end_check): Don't use build_modify_statement.
2453 * expr.c, except.c, typeck.c: Don't call default_conversion.
2454 * typeck.c (string_assignment_condition): Fix build_component_ref ->
2455 build_chill_component_ref.
2456 * decl.c: Fix build_indirect_ref -> build_chill_indirect_ref (twice).
2457 * decl.c: Don't set unused constructor_no_implicit (from c-typeck.c).
2458 * decl.c: Don't call declare_function_name.
2460 * parse.c: Don't always keep a valid token in terminal_buffer[0].
2461 The extra look-ahead may have made the parser faster, but caused
2462 some problems synchronizing with the lexer. Specifically:
2463 (PEEK_TOKEN): Now calls an optimized variant of peek_token_(0).
2464 (next_token_): Don't call peek_token_. Renamed to forward_token_.
2465 (NEXT_TOKEN): Renamed to FORWARD_TOKEN.
2466 (parse_program): Don't call yylex yet.
2468 * parse.c (parse_action): Re-do case ASSERT.
2469 Fix c_expand_expr_stmt -> expand_expr_stmt.
2471 * lex.l: Re-written to not use [f]lex, and renamed to ...
2472 * lex.c: ... new lexer.
2473 * Makefile.in, Make-lang.in: Remove [f]lex crud.
2475 * lex.h (enum rid), lex.c (init_lex): Added RID_ELSE.
2477 Tue Nov 22 15:19:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2479 * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
2481 Fri Nov 18 14:27:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
2483 * parse.c (parse_structure_node): Simpler, and more robust.
2485 Wed Nov 16 14:40:52 1994 Ian Lance Taylor (ian@cygnus.com)
2487 * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
2488 not at compile time.
2489 * typeck.c (expand_constant_to_buffer): Likewise.
2490 extract_constant_from_buffer): Likewise.
2492 Tue Nov 15 14:41:53 1994 Per Bothner <bothner@kalessin.cygnus.com>
2494 * convert.c (convert): Call build_chill_range_type rather than
2495 build_index_2_type (which has obstack and canonicalization problems).
2496 * expr.c (build_chill_pred_or_succ): Convert expr to root class
2498 * loop.c (declare_temps): If location iterated over is not
2499 a location, make a temporary variable for it.
2501 Mon Nov 14 16:33:47 1994 Per Bothner <bothner@kalessin.cygnus.com>
2503 * typeck.c, ch-tree.h (chill_equivalent): Change to return
2504 a tree (a Boolean expression). Also, add some missing tests.
2505 * ch-tree.h (CH_EQUIVALENT): Modify accordingly.
2507 * expr.c (chill_expand_expr case CONCAT_EXPR): When the 2nd operand
2508 is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
2509 Also, replace MEM (which is not a mode) by Pmode.
2511 * ch-tree.h, typeck.c (chill_comptypes): Removed.
2512 * convert.c (convert): Remove calls to chill_comptypes.
2514 Fri Nov 11 13:06:29 1994 Wilfried Moser (moser@rtl.cygnus.com)
2516 * grant.c (write_grant_file): Call pfatal_with_name instead
2517 of abort when something goes wrong when opening or writing
2519 unlink grant file if something goes wrong during writing
2522 * Make-lang.in (CHILL_SRCS): Add timing.c
2524 * ch-tree.h: Add prototype for chill_tasking_type_node.
2525 * lex.l (equal_number): Use chill_tasking_type_node instead of
2526 integer_type_node for converting the result.
2527 Print error messages in pass 2, in pass 1 no error will be
2529 * tasking.c: New variable chill_tasking_type_node for all
2530 generated tasking related variables.
2531 Use chill_tasking_type_node instead of chill_unsigned_type_node.
2533 * expr.c (chill_expand_expr): Apply Per's change.
2535 * expr.c (build_chill_sizeof): In case of error just
2536 return error_makr_node.
2537 Set CH_DERIVED_FLAG at the result.
2539 * timing.c (build_after_timeout_start): Clear the the timeout
2540 level to know if we are in the action part of AFTER statement
2541 or in the TIMEOUT part.
2543 * typeck.c (build_chill_slice_with_length): Convert the class
2544 of the result to class of first value in expression.
2546 * inout.c (build_chill_writetext, build_chill_readtext): Use stack
2547 temporary variables for the iolist so that they can get reused in
2548 subsequent calls. Emit code immediately instead of building a
2551 Fri Nov 4 12:00:54 1994 Per Bothner <bothner@kalessin.cygnus.com>
2553 * expr.c (build_chill_function_call): Don't set TREE_TYPE
2554 of assignment to void_type_node - it confuses save_expr.
2555 * decl.c (init_decl_processing): Removed unused code.
2556 * parse.c: Changes to avoid warnings.
2558 * grant.c (chill_finish_module_code): Minor simplification.
2559 * lex.l (readstring): Set *len to 1 on error.
2561 Thu Nov 3 01:05:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2563 * grant.c (decode_decl): Add granting of BASED declarations.
2565 Wed Nov 2 12:14:31 1994 Per Bothner <bothner@kalessin.cygnus.com>
2567 * expr.c (build_chill_lower_or_upper): Take more care to
2568 ensure result has the right class.
2569 (build_chill_pred_or_succ): Be more careful to get the right
2570 resulting class, and check bounds using *root* mode.
2572 * typeck.c (build_chill_slice_with_range): Check that array
2573 really is an array or string.
2574 (build_chill_slice_with_length): Likewise.
2576 * typeck.c (extract_constant_from_buffer): Fix calculation of
2577 SET_TYPE size. (Cannot depend on 1-byte TYPE_PRECISION field.)
2579 Wed Nov 2 05:33:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2581 * Make-lang.in: Change version of compiler.
2583 * ch-tree.h: Add new prototypes.
2585 * decl.c (init_decl_processing): Remove timing related
2586 initialisations. Add call to timing_init.
2588 * parse.c (parse_action): Process AFTER action.
2590 * tasking.c (build_receive_case_start,
2591 build_receive_signal_case_label, build_receive_buffer_case_label,
2592 build_delay_case_start, build_delay_action, expand_send_buffer):
2593 Add processing of timesupervision.
2594 (tasking_init): Change definitions of runtime functions.
2596 * timing.c (timing_init): New function for initialisation of
2597 timing related stuff.
2598 (build_cycle_start, build_cycle_end): Changed due to
2599 implementation of timesupervision.
2600 (build_after_start, build_after_timeout_start, build_after_end):
2601 Implement the AFTER action.
2602 (build_timeout_preface, build_timesupervised_call): New functions
2603 to handle timesupervision in case of blocking system calls (i.e.
2604 SEND buffer action, RECEIVE CASE action etc.).
2606 Thu Oct 27 12:50:24 1994 Per Bothner <bothner@kalessin.cygnus.com>
2608 * expr.c (build_chill_repetition_op): Fix repeating all-zero
2609 bitstring with orig_len!=1. Also, call build_boring_bitstring
2610 if original string was all ones, using one range. Also:
2611 Cannot use one-bit TYPE_PRECISION to get bitstring length.
2613 Tue Oct 25 14:11:07 1994 Per Bothner <bothner@kalessin.cygnus.com>
2615 * convert.c (convert): When converting BOOL constant to
2616 bit-string, bit_one_node and bit_zero_node were switched.
2617 * actions.c (chill_expand_assignment): Use force_addr_of,
2618 not build_chill_addr_expr - latter yields bogus error.
2620 Fri Oct 21 14:26:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
2622 * expr.c (build_chill_indirect_ref): Check for POINTER_TYPE (only)
2623 after converting from REFERENCE_TYPE.
2624 * expr.c (build_compare_expr): Convert to common mode *after*
2625 we've checked compatibility.
2627 Fri Oct 21 02:29:15 1994 Wilfried Moser (moser@rtl.cygnus.com)
2629 * lex.l (check_newline): Use getc instead of getlc to read
2630 the filename in a # line name directive to avoid possibly
2631 downcaseing of a filename.
2633 Thu Oct 20 05:37:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2635 * expr.c (build_chill_indirect_ref): Add check for really
2636 dereferencing a pointer.
2638 * convert.c (convert): Take care of TREE_CONSTANT of a
2639 SYNONYM having mode ARRAY () VARYING something.
2641 Mon Oct 17 02:30:38 1994 Wilfried Moser (moser@rtl.cygnus.com)
2643 * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
2644 boolean_true_node and boolean_false_node. TRUE and FALSE have
2645 the BOOL derived class.
2647 * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
2648 of NUM. NUM delivers the INT derived class.
2650 * grant.c (write_spec_module): Add writing of
2651 <> USE_SEIZE_FILE "x.grt" <>
2653 to generated grant file.
2655 Thu Oct 13 14:45:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2657 * convert.c (convert_from_reference): Make non-static.
2658 * ch-tree.h (convert_from_reference): Add prototype.
2659 * parse.c (parse_name): If the decl is a REFERENCE_TYPE, just
2660 call convert_from_reference - and not a full-scale convert.
2662 * convert.c (convert): Only call digest_array_tuple if ARRAY_TYPE.
2663 * typeck.c (chill_expand_tuple): Print error if type is
2664 neither array, struct, or powerset.
2666 * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
2667 UNDEFINED_EXPR): Call preserve_temp_slots for temp targets.
2668 If target is not MEM, make temp (even if not REG) to simplify
2669 - and don't copy original target to temp target first. (Not needed.)
2671 * lang.c (maybe_objc_comptypes): Just return -1.
2673 Wed Oct 12 12:24:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2675 * tasking.c (tasking_setup): Fix breakage from previous check-in.
2677 Tue Oct 11 16:00:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2679 * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
2680 timing.c, typeck.c: Change build1 (ADDR_EXPR, ptr_type_node, XX)
2681 to force_addr_of (XX). Add call to mark_addressable where needed
2682 for other calls to build 1 (ADDR_EXPR, TYPE, XX).
2684 Thu Oct 6 06:36:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
2686 * inout.c (build_chill_writetext): Remove processing
2689 Tue Oct 4 14:08:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2691 * convert.c (convert): If flag_old_strings, support converting
2692 CHARS(1) and BOOLS(1) to INT.
2694 Fri Sep 30 01:44:51 1994 Wilfried Moser (moser@rtl.cygnus.com)
2696 * inout.c (build_chill_readtext): Add check for item is
2697 referable and not READonly. Add processing of BITSTRINGs.
2699 Mon Sep 26 16:19:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
2701 * expr.c (build_chill_descr): Add missing call to mark_addressable.
2702 * loop.c (toop_loop_end_check): Replace build1 (ADDR_EXPR ...)
2703 with call to force_addr_of (which calls mark_addressable).
2704 * expr.c (build_chill_descr, build_chill_inttime): Likewise.
2705 * inout.c (build_chill_writetext): Likewise.
2707 Mon Sep 26 05:19:21 1994 Wilfried Moser (moser@rtl.cygnus.com)
2709 * grant.c (print_struct): Move printing of VARYING from
2711 * grant.c (grant_array_type): ... to here.
2713 Mon Sep 26 00:09:08 1994 Per Bothner (bothner@kalessin.cygnus.com)
2715 * ch-tree.h (force_addr_of): New prototype.
2716 * expr.c (force_addr_of): Call mark_addressable. Make non-static.
2717 * inout.c (build_chill_writetext): Use force_addr_of.
2719 Sun Sep 25 23:41:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2721 * except.c (push_handler), actions.h: Removed unused parameter.
2722 * actions.c (push_action): Remove unused paramater.
2723 * parse.c, actions.c: Remove no-longer-used parameter to
2724 calls to push_handler and push_action.
2726 * decl.c (push_extern_process): Only build types in pass 1.
2727 * tasking.c (build_process_header): Only build types in pass 1.
2728 * tasking.c (build_start_process): Do pushdecl/popdecl etc
2729 even after an error (to maintain consistency between passes).
2731 * convert.c (convert_to_boolean): Allow any integral input type.
2733 Sat Sep 24 22:47:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
2735 * typeck.c (extract_constant_from_buffer): Add (somewhat kludgey)
2736 support for UNION_TYPE. (Patch from Wilfried.)
2737 Also, reverse RECORD_TYPE constructor list.
2739 Fri Sep 23 19:06:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
2741 * expr.c (build_concat_expr): Fix calculation of result_size.
2743 Wed Sep 21 00:54:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2745 Give up on trying to use the cleanup mechanism in stmt.c to
2746 make sure the exception handler get unlinked on goto/exit/return.
2747 Instead, do it ourselves. (Much simpler.)
2748 * except.c, ch-tree.h (action_nesting_level): New global.
2749 * ch-tree.h (DECL_ACTION_NESTING_LEVEL): New macro.
2750 * decl.c (define_label): Set DECL_ACTION_NESTING_LEVEL.
2751 * except.c (expand_goto_except_cleanup): New function.
2752 (cleanup_chain): New variable.
2753 (push_handler, pop_handler): Adjust action_nesting_level.
2754 (emit_setup_handler): Push cleanup.
2755 (chill_finish_on): Pop cleanup.
2756 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
2757 Call expand_goto_except_cleanup.
2758 * parse.c (parse_action): Before RETURN, call
2759 expand_goto_except_cleanup.
2761 Mon Sep 19 00:59:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
2763 * lex.l (equal_number): Make sure converted synonym
2764 is on permanent obstack.
2765 * typeck.c (extract_constant_from_buffer): Fix INTEGER_TYPE
2766 loop to traverse in big-endian order.
2768 Sat Sep 17 20:48:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2770 * typeck.c (build_chill_cast): Call mark_addressable.
2771 * expr.c (build_chill_function_call): Call mark_addressable.
2773 Thu Sep 15 23:47:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
2775 * typeck.c (expand_constant_to_buffer): Fix an endian-ness
2776 problem for INTEGER_CST.
2777 (extract_constant_from_buffer): Likewise.
2779 Thu Sep 15 22:59:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
2781 * decl.c (pushlevel): Do different things depending on
2783 * decl.c, parse.c, tasking.c: Change argument to to pushlevel to 1.
2784 * actions.c (push_action): Take new parameter.
2785 * except.c (push_handler): Likewise.
2786 * parse.c: Change calls to push_action and push_handler.
2787 * loop.c (begin_loop_scope): Always call expand_start_bindings.
2788 * loop.c (end_loop_scope): Always call expand_end_bindings.
2789 * except.c (emit_setup_handler): Add a cleanup to
2790 unlink from exception stack if we return/exit/goto from here.
2791 * loop.c (begin_loop_scope): Move pushlevel from here ...
2792 * parse.c (parse_do_action): ... to here.
2794 Clean up do-decl interface (for decl_temp1).
2795 * parse.c (parse_loc_declaration): If global_bindings_p (),
2797 * decl.c (do_decl): Don't test global_bindings_p ().
2799 * decl.c (keep_next_level_flag, keep_next_if_subblocks):
2801 (struct scope::keep, scope::keep_if_subblocks): Likewise.
2802 (keep_next_level): Likewise.
2803 (kept_level_p, pushlevel, poplevel): Simplify.
2805 * decl.c (init_decl_processing): Don't call init_iterators.
2806 * Makefile.in (C_OBJS): Don't get ../c-iterator.o - not needed.
2808 Thu Sep 15 05:54:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
2810 * lex.l (readstring): Add processing of control sequence
2811 in character string literals. The granting mechanism writes
2812 this to grant files.
2814 Tue Sep 13 06:19:42 1994 Wilfried Moser (moser@rtl.cygnus.com)
2816 * expr.c (compare_records): In case of -fpack do always
2817 a memcmp instead of comparing each field of the
2818 structure. If the structure is a variant structure,
2821 Mon Sep 12 13:15:09 1994 Per Bothner (bothner@cygnus.com)
2823 * grant.c (write_spec_module): Add cast, to avoid PCC warning.
2824 * grant.c (header_template): Don't use ANSI-specific string
2825 literal concatenation.
2827 Fri Sep 9 01:53:30 1994 Wilfried Moser (moser@rtl.cygnus.com)
2829 * tasking.c (get_process_wrapper_name): New function.
2830 (add_taskstuff_to_list): Add a new argument, which is
2831 the entrypoint of a process.
2832 (build_process_header): Change PROCESS arguments to be
2833 like arguments of a function. There will be a wrapper
2834 which is the real entry point for a PROCESS. This wrapper
2835 is automatically build after a PROCESS definition and gets
2836 as argument a pointer to a structure looking like the
2837 arguments of the PROCESS. This wrapper will call the
2838 PROCESS (see build_process_wrapper).
2839 (build_process_wrapper): New function (see above).
2840 (build_start_process): Change processing of arguments.
2841 (tasking_setup): Add processing of a different entry point
2842 in case of PROCESSes.
2844 * parse.c (parse_process_definition): Add call to
2845 build_process_wrapper.
2846 * parse.c (end_function): Remove the poplevel() call.
2847 build_process_header no longer makes the corresponding
2850 * grant.c (print_proc_tail): Remove special processing
2851 of PROCESSes, they look now like normal functions.
2853 * decl.c (init_decl_processing): Add declaration of memcmp
2856 * ch-tree.h: Add new prototype for build_process_wrapper,
2857 change prototypes for add_taskstuff_to_list and
2858 build_process_header.
2860 * grant.c (write_spec_module): Write GNUCHILL and gcc
2861 version into grant file.
2863 * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
2864 GNUCHILL_VERSION to ch/Makefile.
2865 * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
2867 * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
2868 will get generated every time a new Makefile will get
2870 * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
2873 * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
2874 to the compiler to avoid generation of an object file.
2876 Thu Sep 8 12:07:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
2878 * convert.c (display_int_cst), ch-tree.h: New function.
2879 * convert.c (digest_array_tuple): Use digest_int_cst to
2880 provide better error messages. Return error_mark_node on error.
2881 * grant.c (decode_const): Simplify by using digest_int_cst.
2882 * grant.c (format_character, find_assoc): Removed.
2884 * decl.c (do_decl): Add missing TREE_CHAIN.
2886 * decl.c (finish_incomplete_decl): Removed.
2887 (init_decl_processing): Don't set incomplete_decl_finalize_hook.
2888 (finish_decl): Remove old C-specific code to deduce size of
2889 array from initialization.
2890 (complete_array_type): Just make it abort.
2892 * except.c (finish_handler_array): Avoid calling C-specific kludge
2893 complete_array_type.
2895 * convert.c (digest_constructor): Rename, and re-write to:
2896 (digest_array_tuple, convert): No longer use the code in
2897 ../c-typeck.c; use a Chill-only implementation (sigh).
2899 * typeck.c (chill_expand_tuple): Remove unneeded call to
2900 complete_array_type.
2902 * expr.c (fold_set_expr), grant.c (decode_constant),
2903 typeck.c (expand_constant_to_buffer): Update name of called
2904 function unpack_set_constructor to get_set_constructor_bits.
2905 * expr.c (powersetlen ): Remove redundant call to convert.
2907 * ch-tree.h (unpack_set_constructor): Removed obsolete declaration.
2909 * inout.c (build_chill_writetext): Handle 64-bit integer literals
2910 by trying to convert them to a smaller type.
2912 * lex.l (convert_number): Always use long long type (possibly
2913 unsigned) to avoid problems with constant folding truncation.
2915 Mon Sep 5 08:08:22 1994 Wilfried Moser (moser@rtl.cygnus.com)
2917 * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
2918 Add new prototype (see tasking.c).
2920 * expr.c (build_generalized_call): Add processing of
2921 BUILT_IN_QUEUE_LENGTH.
2923 * tasking.c (build_queue_length): New function.
2925 * tasking.c (tasking_init): Add new external function definition.
2927 Thu Sep 1 15:38:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
2929 * lex.l (default_lex): New function. Progress towards
2930 getting rid of [f]lex.
2932 * lex.l (convert_number): Use mul_double and add_double.
2933 Set result type to a reasonable type in which the literal
2934 will fit. Give error message if literal is too big.
2936 * lex.l (equal_number): Switch (temporarily) to permanent obstack.
2938 * typeck.c (build_chill_slice_with_range): Check for empty
2939 slice *after* we have checked for upper/lower limit in range.
2941 * grant.c (decode_mode): Remove unused code. (BOOL and
2942 CHAR ranges are represented as INTEGER_TYPEs.)
2944 * tasking.c (build_process_header): Add missing call to
2945 expand_start_bindings.
2946 * parse.c (end_function): Add missing expand_end_bindings.
2948 Wed Aug 31 17:25:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
2950 * decl.c (init_decl_processing): Set set_alignment.
2952 Tue Aug 30 16:40:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
2954 * actions.c (print_missing_cases, check_missing_cases,
2955 BITARRAY_TEST, BITARRAY_SET): New functions and macros,
2956 to check for completeness of case actions and expressions.
2957 * decl.c (c_decode_option, init_decl_processing):
2958 Don't set warn_switch.
2959 * expr.c (chill_expand_case_expr): Call check_missing_cases
2960 instead of check_for_full_enumeration_handling.
2961 * parse.c (parse_case_actions): Call check_missing_cases.
2963 * expr.c (build_chill_binary_op): Remove some dead code.
2964 * expr.c (chill_truthvalue_conversion): Call build_chill_binary_op
2965 instead of build_binary_op.
2966 * ch-tree.h (binary_op_error, build_binary_op): Unused. Removed.
2968 * parse.c (end_function): Use kept_level_p in parameter to
2969 poplevel. This reverts a June 13 change.
2971 Fri Aug 26 11:50:19 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2973 * configure: Ignore --without, as ../configure does.
2975 Wed Aug 24 01:17:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
2977 * lex.l: Change rule for decimal numbers to allow identifiers
2978 to start with an underscore (_).
2980 Fri Aug 19 16:38:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2982 * tasking.c (build_receive_signal_case_label): Remove backwards
2983 chill_convert_for_assignment (which converted whatever garbage
2984 was in the *target* to the type of the signal argument!).
2986 Fri Aug 19 07:10:43 1994 Wilfried Moser (moser@rtl.cygnus.com)
2988 * inout.c (build_chill_io_list_type, build_enum_tables),
2989 tasking.c (build_tasking_struct): Temporarily reset
2990 maximum_field_alignment to 0, so that the compiler-built
2991 data structures needed by the RTS can be independent of -fpack.
2993 Thu Aug 18 13:39:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
2995 * typeck.c (build_init_struct): Temporarily reset
2996 maximum_field_alignment to 0, so that the compiler-built
2997 data structures needed by the RTS can be independent of -fpack.
2999 Wed Aug 17 23:48:33 1994 Wilfried Moser (moser@rtl.cygnus.com)
3001 * parse.c (parse_primval, expect, parse_on_exception_list):
3002 Print error message only in pass 2.
3004 Wed Aug 17 13:47:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3006 * decl.c (switch_to_pass_2): Revert June 13 change,
3007 (Don't exit after pass 1 if an error was found.)
3009 * ch-tree.def (SLICE_EXPR): New tree-code.
3010 * typeck.c (build_chill_slice): For building a slice of a
3011 bit-string, just generate a SLICE_EXPR.
3012 * decl.c (init_decl_processing): Declare __pscpy.
3013 * actions.c (chill_expand_assignment): Handle a SLICE_EXPR
3014 on the LHS of assignment, by calling __pscpy.
3015 * expr.c (chill_expand_expr): Handle SLICE_EXPR (as a RHS
3016 value) by using __psslice to copy slice to a temp.
3018 Wed Aug 17 05:52:44 1994 Wilfried Moser (moser@rtl.cygnus.com)
3020 * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3021 * expr.c (build_chill_length): Enable LENGTH built-in to process
3022 Buffers and Events too (Z.200/1992).
3023 * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3024 a linux system the previous version was not able to run.
3025 * tasking.c: Correct processing of infinite buffer- and event-length
3026 to avoid RANGEFAIL warning.
3028 Thu Aug 11 11:46:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3030 * parse.c (parse_if_expression_body): Don't call the C-specific
3031 build_conditional_expr. Just do build_nt (COND_EXPR, ...).
3032 * convert.c (convert): Convert a COND_EXPR by converting
3035 * convert.c (convert): Don't call convert before
3036 convert_to_reference. It's apt to do weird and unneedful things.
3037 * convert.c (convert): If the expression is varying, just call
3038 varying_to_slice, which simplifies quite a bit.
3040 * ch-tree.h (varying_to_slice): Add prototype.
3041 * typeck.c (varying_to_slice): Remove prototype.
3043 * satisfy.c (satisfy): Move case PAREN_EXPR from type 'e'
3046 * except.c (emit_setup_handler): Temporarily reset the
3047 maximum_field_alignment to zero so the compiler's exception
3048 data structures can be compatible with the run-time system,
3049 even when we're compiling with -fpack.
3051 * expr.c (compare_records): Call saved_if_needed on operands.
3053 * expr.c (build_set_expr case NE_EXPR): Don't use __nepowerset
3054 which has been reimplemented to just call __eqpowerset and
3055 invert the result. Inline this new implementation by
3056 handling as EQ_EXPR, and inverting the result.
3057 * decl.c (init_decl_processing): Don't define unused __eqpowerset.
3059 * typeck.c (valid_array_index_p): The TRUTH_ANDIF_EXPR has
3060 type boolean_type_node, not void_type_node. (Fixing this
3061 avoids a crash in the back-end.)
3063 * grant.c (decode_constant): In a CALL_EXPR, if the argument
3064 list is not a TREE_LIST (as in string repetiation), don't
3067 Wed Aug 10 13:13:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3069 * decl.c (proclaim_decl): Use CH_DECL_ENUM to check that a
3070 CONST_DECL is from a SET definition. (This is safer than
3071 checking that the type is ENUMERAL_TYPE, because synonym
3072 definitions may have a NULL TREE_TYPE.)
3073 Also, if we have duplicate enums whose types are identical,
3075 * decl.c (proclaim_decl, pushdecllist, push_scope_decls): Add
3076 an extra 'quiet' parameter, which is true if we're called from
3077 bind_sub_modules. (In that case an error message about duplicated
3078 decls would be repeated later, so suppress it.)
3080 * parse.c (stmt_count): Removed, not used.
3081 (INIT_ACTION): Call emit_line_note only if !ignoring.
3082 (parse_begin_end_block): Do INIT_ACTION even if ignoring.
3084 Fri Aug 5 12:39:11 1994 Per Bothner (bothner@kalessin.cygnus.com)
3086 * parse.c (parse_untyped_expr): Add missing semi-colon.
3088 Thu Aug 4 17:40:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3090 * parse.c (parse_untyped_expr): Fix various problem for the
3091 case that we see a '(': Add missing 'case' keyword.
3092 Only recurse if '(' is followed by 'if', 'case' or '[',
3093 and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3095 * parse.c (parse_send_action): Remove extra nreverse.
3097 Thu Jul 28 04:00:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3099 * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3102 Tue Jul 26 22:48:15 1994 Michael Tiemann (tiemann@blues.cygnus.com)
3104 * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3105 Added a missing call to `require' as well.
3107 Tue Jul 19 10:30:12 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3109 * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3110 the extern declaration in the flex skeleton.
3112 Mon Jul 18 23:06:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3114 * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3115 Check the type of the instance expr using CH_COMPATIBLE,
3116 and not just == instance_type_node. (This allows
3117 the expression to have mode READ INSTANCE).
3118 * tasking.c (build_instance_type): Give instance_type_node
3119 a non-null novelty (i.e. different from a struct).
3120 * tasking.c (build_receive_case_start, build_delay_case_start):
3121 Check that for a location using CH_LOCATION_P.
3123 Mon Jul 18 13:22:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
3125 * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3126 to modify a tree code.
3128 Mon Jul 18 11:24:57 1994 Bill Cox (bill@rtl.cygnus.com)
3130 * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3133 Mon Jul 18 05:40:15 1994 Doug Evans (dje@canuck.cygnus.com)
3135 * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3137 Thu Jul 14 18:37:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3139 * parse.c (parse_send_action): Do tree_cons *before* checking
3142 Mon Jul 11 15:33:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3144 * convert.c (digest_structure_tuple): Don't use convert to
3145 coerce initial value, use chill_convert_for_assignment instead.
3146 (Thus we also get range_checking.)
3148 * expr.c (build_chill_card): Use force_addr_of instead of
3149 build_chill_addr_expr.
3151 * loop.c (build_temporary_variable): Stylistic tweak.
3152 * loop.c (maybe_make_for_temp): Initialize temp using
3153 explicitly, not using assignment. Avoids a problem if
3154 the expression is read-only.
3155 * typeck.c (smash_dummy_type): Always used the saved TYPE_NAME
3156 and CH_NOVELTY_FLAG.
3158 Wed Jul 6 20:12:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3160 * expr.c, ch-tree.h (finish_chill_unary_op): New function,
3161 based on code ripped out of build_chill_unary_op.
3162 (build_chill_unary_op): Call finish_chill_unary_op unless pass==1.
3163 * satisfy.c (satisfy): Call finish_chill_unary_op when needed.
3165 Mon Jun 27 11:29:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3167 * tree.c (save_if_needed), ch-tree.h: New function.
3168 * typeck.c (build_chill_slice_with_range,
3169 build_chill_slice_with_length): Call save_if_neeed on array arg.
3170 * expr.c (varying_to_slice): Re-write to use save_if_needed.
3172 * typeck.c (extract_constant_from_buffer): Handle BOOLEAN_TYPE.
3174 Mon Jun 27 01:11:10 1994 Wilfried Moser (moser@rtl.cygnus.com)
3176 * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3177 that it is always the same, regardless if compiled with -fpack
3180 Tue Jun 14 16:44:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3182 * lex.l (yywrap): Kludge to work around mis-synchronization
3183 between lexer (which read ahead) and parser: Don't emit
3184 (left-over) uze_seizefile directives at the end of file.
3186 * typeck.c (build_chill_array_ref): Allow the derived
3187 array indexing syntax for arrays of bit strings.
3188 Add a comment explaining why.
3190 * typeck.c, ch-tree.h (string_assignment_condition): Change
3191 the interface. Return a boolean expression (which can be
3192 used in a conditional at run-time); never expand anything.
3194 * actions.c (chill_convert_for_assignment): Check
3195 string_assignment_condition here, rather than in callers.
3196 * actions.c (chill_expand_assignment): Don't need to check
3197 string_assignment_condition here.
3198 * expr.c (build_chill_function_call): Likewise.
3199 * satisfy.c (safe_satisfy_decl): Update accordingly.
3200 * decl.c (do_decl): Simplify testing and conversion by
3201 deferring everything to chill_convert_for_assignment.
3203 * parse.c: Combine the two variables 'ignore_exprs' and
3204 'ignore_actions' into one variable called 'ignoring'.
3205 * ch-tree.h: Add 'extern int ignoring'.
3206 * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3207 Rename ignore_actions and ignore_exprs to ignoring.
3208 Remove unneeded extern declarations.
3209 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3210 build_chill_arrow_expr, build_generalized_call, build_delay_action,
3211 build_buffer_type, build_event_type): I changed my mind. It is
3212 cleaner to check for 'ignoring' in the parser, rather than here.
3213 * parse.c (parse_action, parse_primval, parse_opt_mode):
3214 Therefore we must check for ignoring here.
3215 * parse.c (parse_loc_declaration): Set ignoring in pass 2
3216 when parsing the mode.
3218 * tasking.c (generate_tasking_code_variable): Do arithmetic
3219 on signal_code etc using unsigned rather than signed shorts.
3221 * grant.c (static char* current_grant_modename): Removed.
3222 * grant.c (decode_decl case CONST_DECL): Remove error message.
3224 * Make-lang.in (CHILL_SRCS): Add $(srcdir)/ch/parse.c.
3225 * Makefile.in: Fix dependencies for parse.o.
3226 Remove some duplicate dependencies for $(TREE_H).
3228 Mon Jun 13 14:25:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3230 * typeck.c (build_chill_cast): Allow a value cast between
3231 non-discrete object of the same size, but with a pedwarn.
3232 * typeck.c (bit_string_assignment_condition,
3233 char_string_assignment_condition): Merge near-duplicate functions
3234 and place the code in string_assignment_condition.
3236 * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3238 * decl.c (start_chill_function, finish_chill_function): Make
3239 parameter level have same nesting level as body, as required by Z200.
3240 * decl.c (switch_to_pass_2): Always exit if an error has been found.
3241 * decl.c (pop_module): Copy DECL_SEIZEFILE to a new ALIAS_DECL
3242 generated from GRANT ALL.
3243 * decl.c (lookup_name_for_seizing): Don't seize from
3244 the nesting level of builtins (predefined objects).
3245 * decl.c (lookup_name_for_seizing): Make more robust on error.
3247 * decl.c (start_chill_function): MAKE DECL_NAME (chill_result_decl)
3248 be 'RESULT' (or 'result'). This makes it more accessible from gdb.
3249 Also, use do_decl to declare it, so that debugging symbols are
3250 generated. And, re-arrange so that actions that need to
3251 be done both passes (such as push_levels) use the same code.
3253 * parse.c (get_type_of): If ignore_exprs, don't lookup name.
3254 * parse.c (end_function): Fix poplevel params.
3255 * parse.c (expect): Don't read forwards on an error.
3256 * parse.c (parse_field): Don't define two tag_list locals!
3257 * parse.c (parse_pass_1_2): Better error message.
3259 * parse.c (parse_mode, parse_opt_mode): Have parse_mode call
3260 parse_opt_mode, rather than vice versa. If parse_opt_mode
3261 returns NULL_EXPR, then parse_mode gives an error.
3262 Change parse_opt_mode (and any functions it calls) to only
3263 return NULL_TREE if there is no mode (even on ignore_exprs).
3264 (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3265 Never return NULL_EXPR.
3266 * tasking.c (build_buffer_type, build_event_type): Return
3267 void_type_node instead of NULL_EXPR if ignore_exprs is true.
3269 * parse.c (parse_synonym_definition): Call parse_untyped_expr
3270 only if we have a mode.
3271 * parse.c (parse_send_action): Parse list of untyped_expr's,
3272 rather than a list of (typed) expressions.
3273 * parse.c (parse_primval): Emit error if '[' seen without
3274 preceding mode name. (If this is to be allowed, call
3275 parse_untyped_expr instead.)
3277 * parse.c (parse_array_index): Renamed to ...
3278 (parse_index_mode): ... to match Z200 terminology.
3279 Re-write to resolve some of the nastier ambiguities,
3280 and allow things like ' CHAR(10) : CHAR(20) '.
3282 * parse.c (parse_tuple_element): Change interface to return
3283 reversed list, so don't call nreverse.
3284 * parse.c (parse_tuple): No longer nreverse element list here.
3285 * parse.c (parse_opt_element_list): Do nreverse here instead.
3286 * parse.c (parse_case_label_list): Call nreverse at end.
3288 Fri Jun 10 15:36:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3290 * typeck.c (chill_similar): Remove bogus "else".
3292 Wed Jun 8 00:01:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
3294 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): New macro (and comment)
3295 to make it clearer that we are using TYPE_MAX_VALUE in a special way.
3296 * typeck.c (build_chill_slice): Use TYPE_ARRAY_MAX_SIZE.
3297 * expr.c (chill_expand_expr case CONCAT_EXPR): Likewise.
3298 * convert.c (convert): When converting a fixed string/array
3299 to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
3300 of (the type of) the padding.
3301 * convert.c (convert): If the concatenation is non-constant, use
3302 the low-level 'build' to set the type of the result (which is usually
3303 a fixed-size array) rather than depend on build_chill_binary_op
3304 to figure it out (it's unable to simplify the size to a constant).
3306 Mon Jun 6 18:16:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
3308 * lang.c (lang_decode_option): Let -fspecial_UC imply
3309 -fno-ignore-case without requiring it explicitly.
3310 * lang.c (lang_decode_option): Support (experimentally)
3311 the -fpack and -fno-pack flags.
3313 Thu Jun 2 20:49:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3315 * configure: Add support for --program-prefix and --program-suffix.
3317 Tue May 31 18:12:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3319 * convert.c (digest_constructor): Check that initial value
3320 is compatible with element mode before calling convert.
3321 * typeck.c (chill_compatible): A string mode is not compatible
3322 with an untyped constructor.
3323 * decl.c (do_decl): Clean up error messages. Use error_with_decl.
3325 * ch-tree.h: Fix inconsistencies: bool_true_node ->
3326 boolean_true_node, and bool_false_node -> boolean_false_node.
3327 * typeck.c (valid_array_index_): Minor simplification.
3329 Tue May 31 04:33:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3331 * inout.c (build_chill_writetext): Add correct processing
3332 of POWERSET RANGE (setmode).
3334 * lex.l (same_file): Add searching for file(s) in
3337 Fri May 27 14:22:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
3339 * Make-lang.c (CHILL.mostlyclean, CHILL.distdir): Don't list
3340 yacc/bison output files, since the grammer is no longer in yacc.
3341 * config-lang.in (diff_excludes): Likewise.
3343 Thu May 26 16:38:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3345 * gperf, hash.h, lex.l, parse.h: Rename PROCESS_TYPE token
3346 (in some files spelled PROCESS_TYPE_ to avoid clashes
3347 with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
3349 Thu May 26 02:18:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3351 * timing.c (build_cycle_start): Change call to __define_timeout.
3352 * decl.c (init_decl_processing): Change definitions of
3353 __define_timeout and __wait_timeout.
3355 Wed May 25 11:53:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
3357 Replace yacc-based parser with a recursive-decent parser.
3358 (This may seem backwards, but Chill [like C++] is not a
3359 language that is remotely LALR(1). Using a R-D parser
3360 allows us to use look-ahead and to back-up to resolve the
3361 difficult ambiguities.)
3363 * parse.c, parse.h: New files, containing new r-d parser.
3364 * Makefile.in: Update accordingly.
3365 * actions.c (chill_convert_for_assignment): Don't return
3366 NULL_EXPR if ignore_exprs is true. It simplifies the parser
3367 if we consistently reserve NULL_EXPR for a missing expression.
3368 * expr.c (build_chill_function_call): Likewise.
3370 * lex.l: Tweaks for new parser.
3371 * lex.l (prepare_paren_colon, paren_paren_colon_level,
3372 paren_level): Ugly hack no longer needed.
3374 * expr.c (build_chill_function_call): Cleanup.
3375 Call chill_convert_for_assignment to convert IN/INOUT
3376 paramaters on both input and output. For LOC parameters,
3377 give error if actual is a non-referable location.
3378 * actions.c (convert_for_assignment): Add new parameter (a
3379 "place" string used in error messages).
3380 * actions.c (adjust_parm_or_field): Removed.
3381 * actions.c (chill_expand_assignment): Take just a single LHS,
3382 and move support for multiple assignments to ...
3383 (expand_assignment_action): ... here. Some cleaning up.
3384 * timing.c (build_cycle_start): Adjust accordingly.
3385 * actions.c (expand_assignment_to_varying_array): Likewise.
3386 * tasking.c (many places): Ditto.
3387 * ch-tree.h: Fix declarations appropriately.
3389 * parse.c (parse_defining_occurrence_list): Return a single
3390 IDENTIFIER_NODE (instead of a singleton list) in the common
3391 case. Minor complication to save a minor amount of space.
3392 * decl.c (do_based_decls): Move guts of code into ...
3393 (do_based_decl): ... this new function.
3394 * decl.c (do_decls): Handle either IDENTIFIER_NODE or a TREE_LIST.
3395 * decl.c (push_syndecl): Replace by ...
3396 (push_syndecl): ... (which only supports a single name).
3397 (push_modedef): Only handle a single name.
3398 * tasking.c (build_process_header, build_signal_struct_type):
3401 * expr.c (build_generalized_call): Handle string repetition.
3402 * expr.c (build_chill_repetition_op): Change interface.
3403 * grant.c (decode_constant): Allow parameter list to be
3404 a non-TREE_LIST. (Used for string repetition.)
3406 Wed May 25 11:28:48 1994 Per Bothner (bothner@kalessin.cygnus.com)
3408 * lex.l (make_identifier): Replaced by ...
3409 (read_identifier, handle_name): ... new functions.
3410 * lex.l: Parse an identifiers using read_identifier using
3411 read_identifier and handle_name, rather than having [f]lex
3412 do it. (One reason is that lex uses a fixed-size buffer.)
3414 * lex.l (read_directive, skip_directive): New functions.
3415 Use them to parse compiler-directives, instead of rather
3416 ugly and useless use of lexer start conditions.
3418 Tue May 24 22:36:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
3420 * decl.c (unnamed_module_number): Renamed to ...
3421 (module_number): .. and make non-static.
3422 (push_module): Always increment module_number.
3423 * lex.l (yywrap): Print warning if no modules seen.
3425 * decl.c (pop_module): Don't set DECL_SEIZEFILE of granted
3426 decl to current_seizefile_name (which is unreliable).
3427 * grant.c (chill_grant): Set it here instead.
3429 * expr.c (fold_set_expr): Use int_size_in_bytes instead of
3430 TYPE_PRECISION (which is not defined for a SET_TYPE).
3432 Fri May 20 15:21:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
3434 Cleanup to remove need for variables in common storage.
3435 * decl.c: Remove unused use of current_obstack.
3436 * actions.c (maybe_chill_check_decl): Remove unused function.
3437 * actions.h, lang.c: Remove uses of doing_chill_thang.
3438 * ch-tree.h (void_list_node): Make extern (rather than common).
3439 * decl.c (void_list_node): Add definition.
3441 Thu May 19 06:54:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3443 * configure (build): Build canon_host and canon_target
3444 to pass it to all subsequently generated Makefiles (needed
3445 for testsuite/execute in case of cross build).
3447 Wed May 18 13:27:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3449 * grant.c (decode_mode): Remove. It checks the TYPE_NAME of
3450 the input type, which loses with the no-longer-new 2-pass
3451 implementation, since the input "type" could be an IDENTIFIER_NODE.
3452 * grant.c (raw_decode_mode): Rename to decode_mode.
3454 Tue May 17 13:19:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3456 * typeck.c (chill_location): Neither a STRING_CST nor a
3457 CONSTRUCTOR is a location.
3458 * typeck.c (chill_root_mode): Convert a function to a
3459 pointer-to-function.
3460 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3461 build_chill_arrow_expr): If ignore_exprs, return operand
3462 rather than NULL_EXPR. This makes it easier for the parser to
3463 distinguish missing expressions.
3464 * expr.c (build_max_min): Convert the lower bound of a
3465 set to a long before calling run-time routine.
3466 * expr.c (build_chill_pred_or_succ): Use discrete_type_p
3467 to check the argument type.
3468 * expr.c (build_chill_arrow_expr): If argument is not a location,
3469 do a predwarn if it is a STRING_CST or has function type.
3471 Tue May 17 06:05:13 1994 Wilfried Moser (moser@rtl.cygnus.com)
3473 * configure (build): Remove building of canon_host and canon_target.
3474 It doesn't work in any case.
3476 Mon May 16 02:10:35 1994 Wilfried Moser (moser@rtl.cygnus.com)
3478 * configure (build): Build canon_host and canon_target
3479 to pass it to all subsequently generated Makefiles (needed
3480 for testsuite/execute in case of cross build).
3481 * Make-lang.in (chill-runtime): Change chill to CHILL in the case
3482 statement to build chill-runtime automatically.
3484 Mon May 9 15:30:08 1994 Doug Evans (dje@canuck.cygnus.com)
3486 * Makefile.in (FLAGS_TO_PASS): Define.
3488 (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
3489 * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
3490 (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
3492 Sun May 8 13:05:00 1994 Per Bothner (bothner@cygnus.com)
3494 * Make-lang.in (cc1chill): Should not depend on libgcc.a.
3496 Thu May 5 18:58:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3498 * decl.c (copy_lang_decl): New (dummy) function.
3500 Mon May 2 14:33:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
3502 * parse.y (sendaction): Fix thinko (in sense of condition).
3503 * tasking.c (build_receive_case_label): Another thinko.
3505 * parse.y (optsigdest): Force ignore_exprs to 0 while parsing
3508 * decl.c (build_chill_function_type): Don't call layout_type
3509 (since that may prevent parameter or result types being
3510 properly satisfied).
3511 * satisfy.c (satisfy): Layout FUNCTION_TYPEs.
3512 * parse.y (procmode): Call build_chill_pointer_type, rather
3513 than build_pointer_type (which incorrectly sets TYPE_SIZE).
3515 * parse.y (get_type_of): Handle TYPE_DECL (again).
3516 * parse.y (optresultspec): Call build_chill_reference_type, rather
3517 than build_reference_type (which incorrectly sets TYPE_SIZE).
3518 * parse.y (range_or_mode): Rename to plain range, since it
3519 no longer matches modename.
3520 * actions.c (chill_handle_case_label_range): New function, with
3521 functionality moved out of chill_handle_case_label.
3522 * actions.c (chill_handle_case_label): Handle here the case that
3523 the label_value is a TYPE_DECL (modename). Also clean up some.
3524 * typeck.c (build_chill_slice_with_length): Convert max_index
3525 to the type of min_value. (Old code broke on varying strings.)
3527 Sun May 1 13:53:36 1994 Doug Evans (dje@canuck.cygnus.com)
3529 * Makefile.in (BC_OBJS): Delete all references
3530 (OBJS): Cat ../stamp-objlist to get language independent files.
3531 (../cc1chill): Delete dependency on $(OBJS).
3532 * Make-lang.in (cc1chill): Depend on stamp-objlist.
3534 Sat Apr 30 14:50:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
3536 * lex.h, lex.c: Remove lastiddecl.
3537 * lex.l (name_type_signal): Simplify. We no longer check for
3538 TYPENAME or SIGNALNAME (which was unreliable with two passes).
3539 Also rename to make_identifier.
3540 * parse.y: Cleaned up grammar to not need SIGNALNAME or TYPENAME.
3541 * Makefile.in (stamp-parse); One conflict fewer!
3542 * parse.y (rccase_label_flag): Moved to tasking.c.
3543 * parse.y (rccase_label): Move most of the logic to
3544 build_receive_case_label in tasking.c.
3545 * parse.y (sendaction): Re-write to not depend on SIGNALNAME.
3547 * parse.y (name): Do name lookup here (and not in location).
3548 * parse.y: Replace most uses of NAME by higher-level non-terminals:
3549 simple_name_string, name_string, defining_occurrence, or name.
3551 * tasking.c (build_receive_signal_case_label,
3552 build_receive_buffer_case_label): New functions, split out from
3553 build_receive_case_label.
3554 * tasking.c (build_receive_case_label): Change parameters
3555 and return type. Moved stuff here (from the parser).
3556 * tasking.c (struct rc_state_type): Removed had_errors.
3557 Return error_mark_node instead.
3558 * tasking.c (build_rccase_set_error), ch-tree.h: Removed.
3560 * expr.c (build_generalized_call): If func is a signal type,
3561 call build_signal_descriptor.
3563 * parse.y (arrayindex): Renamed to index_mode, to match Z.200.
3564 * parse.y (ioindexmode): Removed; use index_mode instead.
3565 * expr.c (build_generalized_call): If args is a RANGE_EXPR,
3566 we have either a slice or a range mode, depending on func.
3567 * parse.y (index_mode): If we got an 'expr', only allow a name,
3569 * parse.y (call): A slice with both end points can be a range
3570 mode, so defer handling to build_generalized_call (or index_mode).
3572 * typeck.c (build_chill_slice_with_length): Fix type-checking.
3573 * typeck.c (chill_novelty): Undo (part of) change of April 28:
3574 The novelty of a range mode is the novlety of the parent.
3575 * typeck.c (chill_root_mode): Don't return integer_type_node
3576 if argument has non-nil novelty.
3578 * decl.c (global_bindings_p): Return -1 as true, for the sake
3579 of variable_size (in ../stor-layout.c).
3581 Fri Apr 29 13:42:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
3583 * parse.y: Remove TYPENAME and modename. These are now plain
3584 NAMEs. Modify parsing actions appropriately.
3585 * expr.c (build_generalized_call): Handle the case that
3586 TREE_CODE (func) == TYPE_DECL (as in a cast).
3587 * lex.l (name_type_signal): Never return TYPENAME.
3588 * parse.y (get_type_of): If pass 1, just return the argument.
3590 * decl.c (do_decl): If an initializer has the wrong type,
3591 replace it by NULL_TREE, to avoid subsequent errors.
3593 Thu Apr 28 15:21:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3595 * Makefile.in: Add new file timing.c to rules.
3596 * timing.c: New file. Implements the timing actions AT,
3598 * decl.c (init_decl_processing): Add new builtin function
3600 * expr.c (build_chill_indirect_ref): Change error message and
3601 add check agains an IDENTIFIER_NODE.
3602 * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
3603 They are no longer needed.
3604 * grant.c (print_integer_type): Add processing of builtin types
3606 * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
3607 * parse.y (timingactions): split up to afteraction, ataction
3609 * parse.y (afteraction): New rule.
3610 * parse.y (ataction): New rule and put actions in.
3611 * parse.y (cycleaction): New rule and put actions in.
3612 * parse.y (sendaction): Add code for SEND buffer.
3613 * parse.y (rccase_label): Change error processing.
3614 * tasking.c (build_gen_inst): More checks.
3615 * tasking.c (build_gen_code): Add checking for argument is a
3616 PROCESS or a SIGNAL.
3617 * tasking.c (struct rc_state_type): Add new fields for easier
3619 * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
3620 * tasking.c (build_rccase_set_error), ch-tree.h: New function.
3621 * tasking.c (build_receive_case_label): Add processing of BUFFER's.
3622 * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
3623 New functions to process the end of a RECEIVE CASE action in case
3624 of BUFFER's and SIGNAL's.
3625 * tasking.c (build_receive_case_end): Do only general processing and
3626 call one of the above mentioned functions.
3627 * tasking.c (build_delay_case_start, build_delay_case_label,
3628 build_delay_case_end): Rewritten due to new implementation of events.
3629 * tasking.c (build_delay_action): Rewritten due to new implementation
3631 * tasking.c (expand_send_buffer), ch-tree.h: New function.
3632 * timing.c (build_at_action, build_cycle_start, build_cycle_end),
3633 ch-tree: New functions.
3635 Thu Apr 28 14:11:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
3637 * typeck.c (smash_dummy_type): Handle the special case of a
3638 NEWMODE of a range mode, as required by Z200, by creating a
3639 new parent mode with the new novelty (and casting the min
3640 and max of the range to teh new parent mode).
3641 * typeck.c (chill_novelty, chill_root_mode): Remove special
3642 kludges for of NEWMODE ranges.
3643 * expr.c (build_chill_lower_or_upper): New function, combining
3644 the "guts" of build_chill_lower and build_chill_upper.
3645 * expr.c (build_chill_lower_or_upper): Simplify; no longer
3646 need to kludge the novelties.
3648 * typeck.c (valid_array_index_p): A string index expression
3649 need not be Compatible with the index type; only similar.
3651 * decl.c (layout_chill_variants): If error seen, skip stuff
3652 (rather than aborting or crashing).
3653 * decl (push_modedef): If newdecl's type is an error mark,
3654 continue rather than aborting.
3656 Thu Apr 28 02:07:42 1994 Doug Evans (dje@cygnus.com)
3658 * Make-lang.in: Update of directory reorg from fsf.
3659 * config-lang.in: Ditto.
3661 Mon Apr 25 13:09:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
3663 * typeck.c (chill_similar): Check RECORD_TYPEs properly,
3664 * convert.c (convert): If all else fails, just call convert1.
3665 Thus we can now convert RECORD_TYPEs (assuming they are similar).
3667 * parse.y, lex.l: Remove BUFFERNAME (use location/expr instead).
3668 * parse.y: Re-do BUFFER handling (similar to previous EVENT change).
3669 * grant.c (raw_decode_mode): Re-do BUFFER mode handling.
3670 * ch-tree (lang_type_record): Removed max_queue_size field.
3671 * tasking.c (build_buffer_type): Re-write.
3672 * tasking.c (max_queue_size): Fix to support buffer modes.
3673 * tasking.c (buffer_element_mode), ch-tree.h: New function.
3674 * tasking.c ch-tree.h (expand_send_buffer): Now has 3 parameters.
3675 * parse.y (modename): No longer match SIGNALNAME. Instead, add it
3676 to name and simple_name_string. This removes a reduce/reduce conflict.
3677 * Makefile.in (stamp-parse): Expect fewer conlicts.
3679 * lex.l (yywrap): Move check for circularly seizeing current
3680 grant-file from here ...
3681 * lex.l (handle_use_seizefile_directive): ... to here.
3682 This is to avoid calling stat on a not-yet written grantfile,
3683 now that we're using same_file (which calls stat).
3684 * grant.c (set_use_this_gf): Removed.
3685 * grant.c (set_default_grant_file): Set grant_file_name here,
3686 because we need it earlier (due to above lexer change).
3688 * typeck.c (layout_chill_struct_type): Remove useless code to
3689 remove zero-width bitfield (which messes up CONST_DECLs).
3691 Sat Apr 23 13:16:39 1994 Bill Cox (bill@rtl.cygnus.com)
3693 * Makefile.in (check): Assure that 'ld' is available before checking.
3695 Thu Apr 21 13:23:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3697 * grant.c (print_an_int): Removed.
3698 (raw_decode_mode): Generalized to use decode_constant
3699 instead of print_an_int.
3700 (decode_constant): Print directly, instead of calling print_an_int.
3701 * parse.y (event_list): Fix syntax.
3702 * parse.y (optqueuesize): Default is NULL_TREE, not zero.
3703 * tasking.c (check_queue_size): New function, for error checking.
3704 * ch-tree.h: Add declaration for check_queue_size.
3705 * satisfy.c (satisfy case RECORD_TYPE): Satisfy constant fields
3706 (used for queue size of EVENT and BUFFER), and call check_queue_size.
3708 Tue Apr 19 13:42:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
3710 Re-implement EVENT modes to support general EVENT objects
3711 (and not just EVENT names), according to Z200. (Not finished!)
3712 * tasking.c, ch-tree.h (max_queue_size): New function.
3713 * parse.y (dcalternative, event_list, event_list_head): New
3714 implementation of DELAY CASE, avoiding parsing ambiguities.
3715 (call, locdec, delayaction): Remove old EVENTNAME kludges.
3716 * lex.l (name_type_signal): Remove EVENTNAME recognition.
3717 * tasking.c (build_event_type): Re-written.
3718 * typeck.c (chill_similar), decl.c (print_lang_type):
3719 Use new max_queue_size function.
3720 * typeck.c (layout_chill_struct_size): Ignore CONST_DECL.
3721 * tasking.c (build_delay_action): Preliminary changes - just to
3722 make it compile. FIXME!
3723 * grant.c (raw_decode_mode): Use new max_queue_size function.
3724 Move EVENT support from LANG_TYPE to RECORD_TYPE.
3725 * ch-tree.h (process_event_decls): Removed.
3727 Tue Apr 19 11:44:01 1994 Bill Cox (bill@rtl.cygnus.com)
3729 * regression.sh: Complete previous change - eliminate all
3730 references to objdir as a user parameter.
3732 Mon Apr 18 10:17:55 1994 Bill Cox (bill@cygnus.com)
3734 * Makefile.in (check): Simplified regression.sh call.
3735 * regression.sh: Change command-line parsing. Default
3736 srcdir to the script's path. Calculate objdir
3737 internally - don't pass it in.
3739 Thu Apr 14 13:30:19 1994 Wilfried Moser (moser@phishhead.cygnus.com)
3741 * expr.c (build_chill_duration): Add range checking.
3743 * lex.l (init_lex): Add predefined names DURATION and TIME.
3744 * lex.h (enum rid): Add RID_DURATION and RID_TIME.
3745 * ch-tree.h: Add prototypes and externals.
3746 * decl.c (init_decl_processing): Add builtin function
3748 * expr.c (build_generalized_call): Add processing of some
3750 * expr.c (build_chill_abstime): New function to process builtin
3752 * expr.c (build_chill_inttime_type): New function to built type
3753 for the INTTIME builtin.
3754 * expr.c (build_chill_inttime): New function to process builtin
3756 * expr.c (build_chill_duration): New function to process builtin's
3757 MILLISECS, SECS, MINUTES, HOURS and DAYS.
3759 Tue Apr 12 11:55:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
3761 * lex.l (chill_same_grant_file): Rename to same_file. Change to
3762 take two files names rather than two DECLs. Also check that the
3763 filesystems (st_dev) are equal. Finally, make static.
3764 * lex.l (handle_use_seizefile_directive): Check for duplicate
3765 USE_SEIZE_FILE directives using same_file.
3766 * decl.c (pop_module): Remove dubious call to chill_same_grant_file.
3768 Sun Apr 10 17:19:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
3770 * decl.c, ch-tree.h (chill_result_decl): New variable. Used to
3771 store RESULT value. (Cannot use DECL_RESULT; see comment in decl.c.)
3772 * actions.c (chill_expand_result, chill_expand_return):
3773 Use chill_result_decl appropriately.
3774 * ch-tree.h, decl.c, actions.c (saved_result_rtx): Removed.
3775 Subsumed by chill_result_decl.
3777 * expr.c (chill_expand-expr case CONCAT_EXPR): Generate temporary
3778 using the mode of the result type, and don't assume it is BLKmode.
3780 Fri Apr 8 17:46:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3782 * actions.c (chill_expand_assignment): Check for compatibility
3783 _after_ "expanding out" a binary operation. This fixes
3784 the case "STRING //:= CHAR".
3786 * lex.l (equal_number): Convert symbol to integer_type_node, to
3787 force the value to be INT-derived (and avoid novelty conflicts).
3789 Mon Apr 4 22:06:31 1994 Per Bothner (bothner@cygnus.com)
3791 * ch-tree.h (CH_FUNCTION_SETS_RESULT): New flag.
3792 * ch-actions.c (chill_expand_return), ch-tree.h: Extra
3793 parameter, indicates if implicit return at end of function.
3794 * ch-parse.y: Modify accordingly.
3795 * ch-actions.c (chill_expand_return): Various improvements.
3797 * decl.c, ch-tree.h (result_never_set): New variable.
3798 * actions.c (chill_expand_result, chill_expand_return): Clear it.
3799 * ch-parse.y (end_function): Warn if no RETURN or RESULT action.
3801 * decl.c, ch-tree.h (saved_result_rtx): New variable.
3802 * decl.c (start_chill_function): Use saved_result_rtx as return
3803 value if there is a RESULT in a REG that might get clobbered.
3804 * actions.c (chill_expand_result): Save result in saved_result_rtx
3805 or assign to DECL_RESULT as appropriate.
3806 * decl.c, ch-tree.h (current_function_returns_value,
3807 current_function_returns_null, current_extern_inline):
3808 Don't use. Only define first two to allow linking with ch-typeck.c.
3810 * typeck.c (chill_l_equivalent): Add forward declaration.
3812 Fri Apr 1 11:02:27 1994 Wilfried Moser (fs_moser at rcsw47)
3814 * lex.l (readstring): Handle control sequence in all cases (Z.200
3817 Fri Apr 1 13:11:27 1994 Per Bothner (bothner@kalessin.cygnus.com)
3819 * configure: Simplify and fix the logic for looping through
3822 Thu Mar 31 18:59:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
3824 * ch-tree.h (CH_L_EQUIVALENT): Moved from typeck.c.
3825 * typeck.c (chill_similar): Add support for checking
3826 FUNCTION_TYPEs for similarity. Also, treat
3827 pointer-to-function-type the same as function-type.
3829 Thu Mar 31 11:22:56 1994 Wilfried Moser (fs_moser at rcsw47)
3831 * ch-tree.h: Change prototype of function expand_send_signal.
3832 * parse.y: Change calls to expand_send_signal.
3833 * tasking.c (expand_send_signal): Change handling of optsetto
3834 argument. New argument signame to get a possible destination
3835 process for the signal.
3837 Wed Mar 30 14:54:48 1994 Wilfried Moser (fs_moser at rcsw1j)
3839 * tasking.c (make_process_struct): Change error message in case of
3840 a process argument has other attribute then IN or LOC.
3841 * tasking.c (build_start_process): Add check that the optset is
3842 referable in case it is specified (this makes
3843 noncompile/start_.ch working).
3845 Tue Mar 29 13:24:27 1994 Wilfried Moser (fs_moser at rcsw1h)
3847 * Makefile.in: Change version string to 1.2.1
3848 * ch-tree.h (enum chill_built_in_function): Delete no longer valid
3850 * ch-tree.h: Change prototype for build_chill_readtext.
3851 * decl.c (init_decl_processing): Add builtin_function _readstring,
3852 _readunixstd and READTEXT.
3853 * expr.c (build_generalized_call): Add processing of READTEXT.
3854 Delete handling of no longer valid builtin_functions.
3855 * gperf: Remove keyword READTEXT.
3856 * parse.y: Remove token READTEXT.
3857 * inout.c (build_chill_io_list_type): Add building type for
3859 * inout.c (build_chill_readtext): Implement the function
3861 * inout.c (build_chill_writetext): Do some cleanups.
3863 Tue Mar 29 12:30:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
3865 * typeck.c (build_chill_cast): Re-arrange, to support casts
3866 of const integer to type of different size, if there is
3867 an integral type of the desired size: Go through the
3868 const conversion code.
3870 * actions.c (adjust_parm_or_field): Move support for LOC to ...
3871 * expr.c (build_chill_function_call): ... here.
3872 Fix a number of bugs in OUT/INOUT handling.
3874 * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
3875 parse.y (location), typeck.c (chill_comptypes): Remove unused
3876 support for ENCAPSULATED_ARRAY_P.
3877 * typeck.c (build_chill_array_parm_type), ch-tree.h: Remove; unused.
3879 * ch-tree.h, decl.c (shadow_record_fields), decl.c
3880 (shadow_record_fields), expr.c (chill_expand_case_expr,
3881 build_chill_function_call), grant.c (chill_finish_compile),
3882 typeck.c (build_empty_string, build_init_struct): Rename magic
3883 identifiers of the form "<...>" to "__..." for better portability.
3885 * actions.c (adjust_parm_or_field): Remove extraneous
3886 call to build_chill_repetition_op.
3887 * expr.c (build_chill_function_call): Some simplifictions
3888 (since neither valtail nor typetail can be NULL).
3889 Clean up error message for OUT//INOUT not location to use only 1 line.
3890 Add error message for OUT/INOUT if type is READonly.
3891 * typeck.c (build_chill_modify_expr): Simplify.
3893 Sun Mar 27 19:30:25 1994 Bill Cox (bill@rtl.cygnus.com)
3895 * Makefile.in: Clean up generally. Assure that
3896 runtime is built before running regressions.
3897 Build correct parameters to regression.sh.
3898 Remove a lot of 'clean' cruft.
3899 * Make-lang.in, config-lang.in: New files for
3900 subdirectory architecture.
3902 Sat Mar 26 10:39:12 1994 Bill Cox (bill@rtl.cygnus.com)
3904 * Makefile.in (check): Build correct parameters for regression.sh.
3906 Fri Mar 25 10:13:06 1994 Bill Cox (bill@rtl.cygnus.com)
3908 * configure: Also mark regression.awk3 as executable.
3909 * regression.sh: Add comments about command-line options.
3910 Calculate srcdir correctly, defaulting to the script's path.
3911 Add OPT flag to pass to the Makefiles, to specify the
3912 compiler's optimization level, and -O and -O2 options.
3913 Delete GLOBAL flag and tests. Use a different make.log
3914 file for optimized and unoptimized test results. Add the
3915 compiler's host and target triples to the report header.
3917 Wed Mar 23 21:41:26 1994 Bill Cox (bill@rtl.cygnus.com)
3919 * expr.c (build_chill_function_call): Handle INOUT and OUT
3920 parameters better (for the rangefail test, at least).
3922 Wed Mar 23 14:13:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
3924 * regression.sh (srcdir, objdir): Fixed hard-wired paths.
3925 (grep args): Changed [XYZ-] to [-XYZ] for SCO.
3927 Wed Mar 23 13:34:18 1994 Bill Cox (bill@rtl.cygnus.com)
3929 * expr.c (build_generalized_call): Revert previous change.
3930 To do this correctly, we need a new parsing mechanism, and
3931 C++ initializer technology.
3933 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
3935 * expr.c (build_generalized_call): Be sure we're inside the
3936 module-level function before calling build_gen_inst, for
3939 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
3941 * regression.sh (dodirectory): Count the gcov and abort tests
3942 among the .dat files.
3944 Tue Mar 22 15:39:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3946 * satisfy.c (safe_satisfy_decl): When checking that a SYN
3947 value fits in a specified discrete type, don't convert first,
3948 and use compare_int_csts instead of tree_int_cst_lt.
3950 Tue Mar 22 15:25:38 1994 Bill Cox (bill@rtl.cygnus.com)
3952 * configure: Generate better .gdbinit files.
3954 Tue Mar 22 11:59:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3956 * actions.c (check_range): Don't emit dynamic checks
3957 if not current_function_decl.
3959 * parse.y (arrayindex): Allow expr (error is emitted
3960 at semantic level if not the NAME of a type).
3961 * typeck.c (build_chill_cast): Re-enable some casts.
3962 * satisfy.c (safe_satisfy_decl): Remove redundant CONST check.
3964 Tue Mar 22 11:46:28 1994 Bill Cox (bill@rtl.cygnus.com)
3966 * configure: Access the utils directory correctly.
3967 * expr.c (build_compare_expr): Reenable compatibility test.
3969 Tue Mar 22 11:24:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
3971 * typeck.c (valid_array_index_p): Call
3972 build_compare_discrete_expr instead of build_compare_expr.
3973 * typeck.c (build_chill_cast): Improve logic.
3974 * satisfy.c (safe_satisfy_decl): Simplify test.
3976 Tue Mar 22 10:17:58 1994 Bill Cox (bill@rtl.cygnus.com)
3978 * actions.c (chill_expand_assignment): Correct detection of
3979 string assignment case.
3980 * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
3981 the actual parameters need to be converted to the unsigned long
3982 type explicitly. Do that.
3983 * satisfy.c (safe_satisfy_decl): Correct range-checking code.
3985 Mon Mar 21 16:25:07 1994 Bill Cox (bill@rtl.cygnus.com)
3987 * Makefile.in: Correct prediction of grammar conflicts.
3988 * actions.c(check_range): Fix reference to NULL_TREE pointer.
3989 And allow compile-time errors even if range_checking is off.
3990 * parse.y: Clean up some comments.
3991 * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
3993 Mon Mar 21 13:29:23 1994 Per Bothner (bothner@kalessin.cygnus.com)
3995 * typeck.c (layout_chill_range_type): Instead of tree_int_cst_lt
3996 use compare_int_csts (which is more robust when signedness differs).
3997 Also, convert the bounds *after* doing range checking.
3999 * ch-tree.def (SET_IN_EXPR): New.
4000 * expr.c (chill_expand_expr): Code to expand SET_IN_EXPR,
4001 moved from expand_expr in ../expr.c. Also add some extra
4002 conversions (because we're now using build_chill_function-call).
4003 * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4004 Use SET_IN_EXPR in place of IN_EXPR.
4006 * expr.c (build_compare_discrete_expr), ch-tree.h: New function,
4007 with code moved from build_compare_expr.
4008 * expr.c (build_compare_expr): Re-enable compatibility test.
4010 Mon Mar 21 11:02:33 1994 Bill Cox (bill@rtl.cygnus.com)
4012 * Makefile.in: Rewrite byacc related rules.
4013 * actions.c (chill_convert_for_assignment): Use the
4014 referenced type only for generating range checks.
4015 * configure: Add 'utils' directory to SUBDIRS variable.
4017 Sun Mar 20 21:49:59 1994 Bill Cox (bill@rtl.cygnus.com)
4019 * actions.c (check_range): Call build_compare_expr rather than
4021 (adjust_parm_or_field): Call convert_for_assignment rathern than
4022 convert, to get the range-checking.
4023 * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4024 Generate a compile-time message if possible.
4025 (build_compare_expr): Comment out compatibility test - should
4026 not be needed in here. Fix a couple of typos. Add some types
4027 to some build calls.
4029 Sun Mar 20 11:48:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
4031 * decl.c (init_decl_processing): Clean up parameter type
4032 list for __setbitpowerset,
4034 * typeck.c (chill_compatible_classes): Allow the M-reference
4035 to be compatible with the N-value class, with suitable M and N.
4036 * typeck.c (build_chill_slice): Don't smash a void TREE_TYPE.
4037 (We don't need to, and it causes confusion.)
4039 * expr.c (build_compare_expr): Fix thinko. Add save_exprs.
4041 * expr.c (build_compare_expr): Fix a transcription bug
4042 (for converting NULL INSTANCEs). Also #include convert.h.
4044 * expr.c (compare_int_csts): New. Compare INTEGER_CSTs.
4045 Works even if their types have different TREE_UNSIGNED.
4046 * expr.c (finish_chill_binary_op): Moved code dealing with
4047 the comparison operators from here ...
4048 * expr.c (build_compare_expr): ... to new function here.
4049 Also, for discrete types, tries to Do The Right Thing, even for
4050 differing values of TYPE_PRECISION and TREE_UNSIGNED.
4052 * ch-tree.h: Declare new functions.
4053 * typeck.c (valid_array_index_p): Various cleanups,
4054 including using new build_parse_expr.
4055 * parse.y: Use new build_compare_expr.
4057 * inout.c (build_chill_writetext): Handle REFERENCE_TYPE args.
4059 Sun Mar 20 08:54:27 1994 Bill Cox (bill@rtl.cygnus.com)
4061 * actions.c (expand_assignment_to_varying_array):
4062 Call build_chill_array_ref to get index checking.
4063 (chill_convert_for_assignment): Delete unused errstr
4065 (chill_expand_assignment): Call build_chill_array_ref
4066 to get runtime index checking.
4067 (expand_varying_length_assignment): Use new interface
4068 to varying_array_index_p.
4069 * ch-tree.h (varying_array_index_p): New proto.
4070 * convert.c (convert): Call build_chill_array_ref
4071 to get runtime index checking.
4072 * expr.c (build_chill_pred_or_succ): Fix cond tree
4073 to have consistent operand types.
4074 * typeck.c (valid_array_index_p): Change interface to pass
4075 validity conditions back on caller's TREE_LIST. We
4076 cannot link the conditions to anything which a
4077 layout_type routine will expand, since that will occur
4078 before the exception handler is set up.
4079 Change calls to valid_array_index_p also.
4081 Fri Mar 18 14:40:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
4083 * actions.c, except.c, loop.c, tasking.c: Call
4084 build_chill_function_call instead of the C-specific
4085 build_function_call.
4086 * except.c (initialize_exceptions): Fix parmtype of __builtin_setjmp.
4087 * loop.c (top_loop_end_check): Coerce library function arg.
4088 * convert.c, expr.c: Re-write to avoid calls to C-specific
4089 function build_unary_op (e.g. by calling build1 directly).
4091 * typeck.c (chill_equivalent): Change to force failure
4092 for non-matching integral types (even if not ranges).
4094 * typeck.c, ch-tree.h (build_chill_slice): Make non-static.
4095 * expr.c (varying_to_slice): Call build_chill_slice (and not
4096 build_chill_slice_with_length, which does bunches of range
4097 checking and does not allow the length to be zero).
4098 * convert.c (convert): Fix off-by-one error.
4099 * actions.c (chill_expand_array_assignment): Minor cleaning up.
4101 Fri Mar 18 00:12:48 1994 Per Bothner (bothner@deneb.cygnus.com)
4103 * decl.c (init_decl_processing): __lepowerset and __ltpowerset
4104 take *two* pointer parameters, not one.
4105 * satisfy.c (satisfy): Only call the appropriate layout routine
4106 if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4107 * typeck.c (build_chill_slice_with_length): Fix Bill's previous fix.
4109 Thu Mar 17 17:29:43 1994 Bill Cox (bill@rtl.cygnus.com)
4111 * expr.c (build_chill_function_call): Give function call the correct
4113 * typeck.c (build_chill_slice_with_length): Restore dynamic range
4114 checking, so it doesn't obscure the CONSTANTness of the length.
4116 Wed Mar 16 17:23:31 1994 Per Bothner (bothner@kalessin.cygnus.com)
4118 * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4119 [case CONCAT_EXPR]): Remove kludge setting slice size upper bound
4120 in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4121 * typeck.c (build_chill_slice): Use TYPE_MAX_VALUE of
4122 array_type if needed for size upper bound of slice_type.
4123 * expr.c (build_concat_expr): Improve calculation of size upper bound.
4125 * typeck.c (valid_array_index_p): Check compatibility using
4127 * typeck.c (build_chill_slice_with_length); For now revert
4128 calling valid_array_index_p on length. (It makes it harder
4129 to realize when the slice is constant length.)
4130 * expr.c (build_chill_indirect_expr): Minor tweak. (This
4131 seems to work around a weird C compiler bug. ??)
4133 * expr.c (build_chill_function_call): Cleanup so it doesn't
4134 call build_function_call (in c-typeck.c).
4135 * typeck.c, expr.c: Use build_chill_function_call instead of
4136 build_function_call (in c-typeck.c).
4138 * parse.y (discrete_mode): Move some of the rules from
4139 non_array_mode into new non-terminal.
4140 (arrayindex): Use discrete_mode (with NAME and TYPENAME) to
4141 avoid some misparses.
4142 * ch-tree.h (SLICE_PTR, SLICE_LENGTH): Removed; unused.
4143 * convert.c (digest_structure_tuple): Add missing parameter.
4144 * decl.c (comptypes): Remove unused prototype.
4145 * decl.c (build_chill_function_type): Handle NULL return_type
4146 correctly (convert to void_type_node).
4147 * decl.c (init_decl_processing): layout boolean_type_node *after*
4148 we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4150 Wed Mar 16 16:08:22 1994 Bill Cox (bill@rtl.cygnus.com)
4152 * ch-tree.h: Add prototype.
4153 * convert.c (convert): Correct calculation of padding length.
4154 * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4155 parse.y where it belongs. This permits the removal of a kludge
4156 in make_process_struct.
4157 * lex.l, parse.y: Call to_global_level for several errors. Add
4158 code to output error in only one pass.
4159 * tasking.c (make_process_struct): Delete kludge inserted on
4161 (build_receive_case_end): Add Wilfried's check for errors.
4163 Tue Mar 15 08:42:12 1994 Bill Cox (bill@rtl.cygnus.com)
4165 * actions.c: Fix comment.
4166 (build_rts_call): Ifdef it out - never used.
4167 (expand_varying_length_assignment): call valid_array_index_p.
4168 rather than validate_varying_array_ref.
4169 * ch-tree.h: Fix prototype for valid_array_index_p.
4170 * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4172 (build_hill_lower, build_chill_upper): Return value now inherits
4173 the novelty of the input parameter.
4174 (varying_to_slice): Use CH_NOVELTY macro rather than calling
4175 chill_novelty directly.
4176 * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4178 (print_integer_type): Pass string value as APPEND's second parameter.
4179 (decode_decl): Pass a boolean expression as print_proc_tail's
4181 (chill_finish_module_code): Make xmalloc's parameter unsigned.
4182 * lex.l: Pass sizes to xmalloc as unsigned ints. Pass second
4183 parameter to in_word_set as unsigned.
4184 * loop.c (build_loop_start): Check top_loop_end_check return value.
4185 * parse.y: Add casts to int for third do_decls parameter, fifth
4186 build_loop_iterator parameter, etc.
4187 * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4188 * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4189 valid_array_index): Delete them. They're now unused.
4190 (valid_array_index_p): Add function, call it everywhere that an
4191 array index is checked.
4192 (build_chill_slice): Restore old functionality where varying_to_slice
4193 is called to handle slices of varying arrays, rather than handling
4195 (build_chill_slice_with_range, build_chill_slice_with_length):
4196 Check range limits for TREE_CONST before calling tree_int_cst_lt.
4197 Delete now-obsolete checks of constant indices.
4199 Mon Mar 14 17:26:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
4201 * parse.y (modeless_expr): New rule to allow ([...]) and (if...)
4202 to count as untyped_exprs. (This is not really permitted by the
4203 Blue Book, but has been requested by customers.)
4205 Thu Mar 10 10:11:02 1994 Bill Cox (bill@rtl.cygnus.com)
4207 * chill.texi: Document new command-line options.
4208 * expr.c (build_chill_num): Set unsigned parameter for
4209 type_for_size call correctly (unsigned for enums).
4210 * lang.c (lang_decode_option): Add command-line options to
4211 enable/disable runtime range-checking.
4212 * lex.l: Eat more whitespace.
4214 Thu Mar 10 09:41:37 1994 Bill Cox (bill@rtl.cygnus.com)
4216 * Makefile.in: Have rules to make parse.h, y.tab.c and other
4217 derived files. This allows the gcc/configure list of CHILL
4218 files machinery to work.
4219 * ch-tree.h (permanent_allocation): Add a parameter flag.
4220 * decl.c (finish_chill_function, finish_decl): Provide the
4221 new permanent_allocation flag.
4222 (poplevel): Return early, avoid a seg fault.
4223 * lex.l (NORMAL): Replace this whole state with the predefined
4224 INITIAL state. Force compilation state to global level after
4225 compiler directive error - prevents endless loop on error.
4226 (handle_use_seizefile_directive): Rewrite for readability.
4227 (chill_same_grant_file): Reindent.
4228 Generally handle whitespace differently.
4229 * regression.prpt: Print ten PR numbers per line. The report's
4232 Wed Mar 9 09:58:51 1994 Bill Cox (bill@rtl.cygnus.com)
4234 * decl.c (do_decl): Suppress the string-assignment-condition
4235 error - it was too often seen.
4236 * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4237 runtime-changing length (as in a slice), get the parent array's
4238 allocation size from its type tree.
4239 * typeck.c (build_chill_slice): Support VARYING arrays. Pass
4240 parent array's static allocation size along in the slice type.
4242 Wed Mar 9 08:54:24 1994 Bill Cox (bill@rtl.cygnus.com)
4244 * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4246 Tue Mar 8 11:51:10 1994 Bill Cox (bill@rtl.cygnus.com)
4248 * expr.c (build_chill_sizeof): Fix typo in error msg, add
4250 * lex.l (name_type_signal): Add debug output.
4251 * parse.y (call): Allow EVENTNAME and BUFFERNAME parameters
4252 to a call, so that SIZE () works on them.
4253 * tasking.c (make_process_struct): Force ignore_exprs non-zero
4254 when processing a SEIZEd PROCESS declaration. This prevents
4255 grox-fixed_fields from returning a NULL, and indirectly protects
4256 the chill_integer_type_node tree from corruption.
4258 Mon Mar 7 19:14:05 1994 Bill Cox (bill@rtl.cygnus.com)
4260 * Makefile.in: Use the 'all' target to build the runtime
4261 library and chillrt0.o.
4262 * README: Explain rules for files in this directory.
4263 * addtest, addtest.man, build-release,
4264 chill.regress.cron: Move to utils subdirectory.
4265 * expr.c (build_chill_function_call): Mark the INOUT
4266 temporary so it doesn't get optimized into a
4267 register. Fixes the execute/inout.ch bug.
4268 * typeck.c (layout_chill_range_type): Restrict it
4269 from complaining about an empty string type's
4272 Mon Mar 7 09:06:39 1994 Bill Cox (bill@rtl.cygnus.com)
4274 * Makefile.in (compiler): Restore this target.
4275 (OBJS, BC_OBJS): Delete unused variables.
4276 Add $(FLAGS_TO_PASS) to sub-make invocations.
4277 * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4278 tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4280 Sat Mar 5 18:37:50 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4282 * except.c (finish_handler_array): When computing address of
4283 the array ex_decl, don't call build_array_ref.
4285 Sat Mar 5 17:43:36 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4287 * loop.c (declare_temps): Force powerset temp to memory.
4289 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4291 * typeck.c (layout_chill_range_type): Convert highval and
4292 lowval to a common type before range-checking them.
4294 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4296 * ch-tree.h: Add loop-related prototypes.
4297 * decl.c, grant.c: Fix -Wall violations.
4298 * parse.y: Fix format of %type directives.
4300 Fri Mar 4 10:04:18 1994 Wilfried Moser (fs_moser at rcsw1h)
4302 * Makefile.in: Update version number.
4303 * expr.c: Fix a comment.
4304 * inout.c (build_chill_writetext): Add handling of a REAL.
4305 * lex.l (INITIAL): Remove all code to discard 'header lines'.
4307 * parse.y (optheader): Remove - it's obsolete, as is the
4308 HEADEREL token definition.
4310 Fri Mar 4 09:41:18 1994 Bill Cox (bill@rtl.cygnus.com)
4312 * addtest: Fix suffix removal when suffix is .c186.
4313 * regression.sh: Allow for underscores on PR filenames.
4314 * typeck.c: Check in the rewrite mentioned earlier.
4316 Thu Mar 3 09:42:10 1994 Wilfried Moser (fs_moser at rcsw1h)
4318 * tasking.c (build_process_header): Build a debug structure
4319 for easier access to PROCESS parameters.
4321 Thu Mar 3 09:42:10 1994 Bill Cox (bill@rtl.cygnus.com)
4323 * typeck.c (*string_assignment_condition): Complete rewrite
4324 of a verbose first draft.
4326 Wed Mar 2 16:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4328 * actions.c (adjust_return_value): Simplify.
4329 Delete references to CH_RETURNS_LOC, extra parameters to
4330 push_extern_function and start_chill_functions.
4331 (convert_for_assignment): Check whether to generate runtime
4332 range-checking code. Handle reference_type in convert call.
4333 (chill_expand_assignment): Produce an INDIRECT_REF for a
4334 reference_type on the LHS. Delete conversions subsumed by
4335 convert_for_assignment.
4336 * ch-tree.h: Delete parameters from prototypes.
4337 * decl.c (print_lang_decl): Print out signal flag.
4338 (push_extern_function, start_chill_function): Delete
4339 extra parameters, references to CH_RETURNS_LOC.
4340 * grant.c (chill_finish_compile): Delete extra parameter.
4341 * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
4342 push_extern_function and start_chill_functions.
4343 * regression.sh (checkprms): Skip PRMS discrepancies if we
4344 can't access PRMS for some reason.
4345 * satisfy.c: Correct indentation.
4346 * tasking.c (build_process_header): Delete extra parameters
4347 passed to push_extern_function and start_chill_functions.
4349 Wed Mar 2 10:33:50 1994 Bill Cox (bill@rtl.cygnus.com)
4351 * addtest: Require a fill filename. Be more careful about
4352 adding the same test twice.
4353 * expr.c: Add FIXME to comment.
4354 * regression.sh: Add configure script call.
4356 Tue Mar 1 16:24:20 1994 Wilfried Moser (fs_moser at rcsw1h)
4358 * Makefile.in: Change version of chill to 1.1.2
4359 * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
4361 Tue Mar 1 07:34:56 1994 Bill Cox (bill@rtl.cygnus.com)
4363 RETURN of LOC value is only half-baked. Stay tuned...
4364 * actions.c (adjust_parm_or_field): Add to comment.
4365 (adjust_return_value): New function for issuing errors about
4366 RETURN and RESULT expressions. Also converts them.
4367 (chill_expand_result, chill_expand_return): Call new
4368 adjust_return_value function.
4369 * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
4370 New parameter for push_extern_function and start_chill_function.
4371 * decl.c (push_extern_function, start_chill_function): New parameter
4372 to say whether return value is a LOC.
4373 * expr.c (build_chill_indirect_ref): Further qualify the issuing
4374 of the error message.
4375 * grant.c (raw_decode_mode): Move test for instance mode under
4377 (start_chill_module_code, chill_finish_compile): Add new
4378 parameter to start_chill_function calls.
4379 * parse.y (get_type_of): Do lookup_name more often.
4380 (quasi_pdef, procedure, procmode, optresultspec): Set
4381 CH_RETURNS_LOC flag.
4382 (optresultattr): Code keywords as a bitmask.
4383 * tasking.c (build_process_header): Add new parameter to
4384 start_chill_function call.
4386 Sat Feb 26 12:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4388 * Makefile.in: Replace undefined $(RM) with rm -f.
4389 * configure: Make sure scripts are executable.
4390 * regression.sh: Make variables to invoke make
4391 and awk. Don't process a directory if it
4394 Fri Feb 25 14:48:48 1994 Bill Cox (bill@rtl.cygnus.com)
4396 * Makefile.in (check): Force the building of ../gcov and
4397 ../xgcc before testing. Move the printf dependency here
4398 since we don't need it until we're testing.
4399 * addtest: Strip suffix from each input filename.
4400 * decl.c (do_decl): Correct error checking. Call
4401 string_assignment_condition for some of it.
4402 * tasking.c (build_gen_inst): Add ability to pass an integer
4403 for either the process ID or the copy number. If a number
4404 is passed, range-check it against the CHILL unsigned type
4406 (build_buffer_descriptor): Add draft code to check the buffer
4407 name for correctness.
4409 Wed Feb 23 15:07:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
4411 New cleaner solution to the following problem:
4412 Chill allows an action to be followed by an ON-handler.
4413 But we don't know if an action has a handler until we've parsed
4414 its end, yet we want to generate extra code to set up an
4415 exception handling contour only if needed. The old solution
4416 would generate code for the action into an rtl sequence, and then
4417 splice in the exception-setup code if we later found we needed it.
4418 This has a few problems (for example it confuses the management
4419 of stack temporaries), and is ugly. Now that the compiler is 2-pass
4420 we have a cleaner solution: In pass 1, we remember which actions
4421 were followed by ON-handlers. In pass 2, we use this information
4422 to generate appropriate code before an action.
4423 * except.c (push_handler, pop_handler): In pass 1, set up data
4424 structures (global_handler_list) to remember if an action has an
4425 ON-handler. In pass 2, digest this information, and setup
4427 * except.c, actions.h (pop_handler): Take an extra int arg.
4428 * except.c (emit_setup_handler): New function, with code (moved
4429 from chill_start_on) to emit code before an action that has a handler.
4430 * except.c (except_init_pass_2): New function.
4431 * parse.y (pass1_2): Call except_init_pass_2 before pass 2.
4432 * parse.y (POP_UNUSED_ON_CONTEXT): Don't call pop_sequence.
4433 * parse.y: Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
4434 in pass 1 as well as pass 2.
4435 * parse.y (BEGIN ... END): Re-arrange logic to avoid block_stack
4436 (local to ../stmt.c) getting out of sync.
4437 * actions.c (push_action): Don't need to emit a NOP,
4438 now that we're no longer moving sequences around.
4439 * actions.c (push_action): Call push_handler even in pass one.
4441 Wed Feb 23 11:06:14 1994 Bill Cox (bill@rtl.cygnus.com)
4443 * decl.c (do_decl): Check for possible overflow in initializing
4444 a declared variable.
4445 * expr.c (build-chill_indirect_ref): Add error message for
4446 a syntax error that C programmers converting to CHILL are
4447 quite likely to make.
4448 * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
4451 Tue Feb 22 17:54:43 1994 Bill Cox (bill@rtl.cygnus.com)
4453 * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
4454 defined. Build chill script differently, and build an install script.
4455 Add an action to run the regression test.
4456 * actions.c (chill_expand_assignment): Change
4457 string_assignment_condition call.
4458 * ch-tree.h: Add prototype.
4459 * expr.c (build_chill_function_call): Change
4460 string_assignment_condition call.
4461 * satisfy.c (safe_satisfy_decl): Add check that string INIT value
4462 will fit in the declared mode.
4463 * typeck.c (string_assignment_condition): Add flag to disable
4464 runtime code generation. Add code to generate runtime test.
4466 Mon Feb 21 14:04:20 1994 Bill Cox (bill@rtl.cygnus.com)
4468 * Makefile.in (check): Add target to trigger a regression test.
4470 Mon Feb 21 13:54:20 1994 Bill Cox (bill@rtl.cygnus.com)
4472 * decl.c (do _based_decls): Add error check for
4473 decls BASED on a PROC or PROCESS name.
4475 Mon Feb 21 13:24:02 1994 Bill Cox (bill@rtl.cygnus.com)
4477 * grant.c (chill_finish_compile): Bypass handling
4478 module-level code if an earlier error has made
4480 * tasking.c (build_start_process): Generate error,
4481 return if process name unknown.
4483 Mon Feb 21 14:29:41 1994 Wilfried Moser (fs_moser at rcsw47)
4485 * expr.c (build_generalized_call): Use
4486 build_arrow_expr semantics for ADDR () builtin.
4488 Mon Feb 21 12:49:14 1994 Bill Cox (bill@rtl.cygnus.com)
4490 * tasking.c (build_gen_inst): Output correct
4491 constructor for GEN_INST.
4493 Mon Feb 21 08:14:59 1994 Wilfried Moser (fs_moser at rcsw47)
4495 * lex.l (yywrap): Fix punctuation error.
4497 Sun Feb 20 19:58:14 1994 Bill Cox (bill@rtl.cygnus.com)
4499 * regression.sh: Fix cvs update-related commands.
4500 Have cron job always perform the update, so it's
4501 always reporting on the current state of the
4503 * typeck.c (string_assignment_condition): Allow a
4504 mis-match if the LHS is varying.
4506 Fri Feb 18 18:10:04 1994 Bill Cox (bill@rtl.cygnus.com)
4508 * actions.c (expand_chill_assignment): Add call to test the
4509 string assignment condition.
4510 * expr.c (build_chill_function_call): Add call to test the
4511 string assignment condition.
4512 * regression.awk2: Report WITHDRAWN PRs as well.
4513 * regression.sh: Delete extra commentary about FEEDBACK PRs.
4514 * typeck.c (string_assignment_condition): Add function to
4517 Fri Feb 18 16:30:40 1994 Bill Cox (bill@rtl.cygnus.com)
4519 * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
4520 and exclude them from the regression test report. Mark them
4521 in the list of PRs as 'W' status.
4523 Thu Feb 17 09:13:42 1994 Wilfried Moser (fs_moser at rcsw47)
4525 * Makefile.in: Define a version number. Build chill script
4526 differently. Makefile depends upon ../configure, not configure.
4527 * chill.in: Define some new flags.
4529 Wed Feb 16 19:44:33 1994 Bill Cox (bill@rtl.cygnus.com)
4531 * grant.c (decode_constant): Restore a 'return result' statement
4532 that seems to have gotten lost.
4534 Wed Feb 16 12:37:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
4536 * ch-tree.h (various STRING-type macros): Use new TYPE_STRING_FLAG.
4538 * typeck.c (make_chill_array_type): Remove unused args.
4539 Simplify to build only one-dimensionsal arrays, so change
4540 index list to single index. Call layout_chill_array_type
4541 if pass!=1. And rename to: build_simple_array_type.
4542 * typeck.c (layout_chill_array_type): Only recurse
4543 if TREE_TYPE has not been laid out.
4544 * typeck.c (build_chill_array_type): Update accordingly.
4545 * typeck.c (build_chill_slice): Replace calls to build_array_type
4546 (which does hash-canonicalization, which breaks if we later set
4547 the TYPE_STRING_FLAG) by calls to build_simple_array_type.
4548 * convert.c (convert): The same.
4550 * grant.c (decode_constant): Clean up. Remove remnants of switch
4551 on TREE_TYPE of the value, and fold those cases into first switch.
4553 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4555 * Makefile.in: Add printf as a dependency of ../cc1chill.
4556 * regression.sh: Make srcdir and objdir really work.
4558 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4560 * expr.c (build_char_array_expr): Fix spelling
4562 * tree.c (build_string_type): Make check for overlarge
4565 Wed Feb 16 02:37:43 1994 Mike Stump (mrs@cygnus.com)
4567 * grant.c (decode_constant): Remove useless tests
4568 for STRING_TYPE (which isn't used by anyone, including CHILL).
4570 Tue Feb 15 15:35:07 1994 Bill Cox (bill@cygnus.com)
4572 * build-release: Add refinements to checkout commands.
4573 * decl.c (init_decl_processing): Move initialization of
4574 chill_unsigned_type_node before 1st call to build_string_type.
4575 * tree.c (build_string_type): Add compile-time test of string
4577 * typeck.c (layout_chill_range_type): Add compile-time range limit
4580 Tue Feb 15 08:55:37 1994 Bill Cox (bill@cygnus.com)
4582 * Makefile.in: Add stamp-chill-objs as a dependency of ../cc1chill.
4583 * regression.sh: Rename test directory names.
4585 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4587 * Makefile.in: Change interface with parent directory's
4588 Makefile, decoupling the lists of each others' files.
4590 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4592 * lex.l: Delete obsolete comment.
4593 * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
4594 instance constructor.
4596 Mon Feb 14 04:04:16 1994 Bill Cox (bill@rtl.cygnus.com)
4598 * lex.l (maybe_number): Add octal to numbers
4599 handled by Feb 1 change.
4601 Sat Feb 12 16:24:22 1994 Bill Cox (bill@rtl.cygnus.com)
4603 * actions.c, convert.c, decl.c, expr.c, lex.l,
4604 tasking.c, typeck.c: gcc -Wall cleanups.
4605 * ch-tree.h: Change loop-related prototypes.
4606 * loop.c, parse.y: Rewrite to set up correct loop scope.
4607 Fix error path where loop variable not declared.
4609 Fri Feb 11 11:12:29 1994 Bill Cox (bill@rtl.cygnus.com)
4611 * Makefile.in: Add rule to build printf. Make it a dependency
4613 * printf.c: New tool for regression testing script.
4614 * regression.sh: Look for print in ${objdir}.
4616 Thu Feb 24 17:31:12 1994 Wilfried Moser (fs_moser at rcsw1j)
4618 * tasking.c (build_gen_inst): Allow integer expression as argument
4619 1 to this function. This was a change request to get rid of
4620 unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
4621 or STRUCT (t UINT, c UINT).
4623 Thu Feb 10 09:49:31 1994 Bill Cox (bill@rtl.cygnus.com)
4625 * regression.awk3: Recognize upper-case PRMS state names.
4627 Wed Feb 9 15:26:19 1994 Bill Cox (bill@cygnus.com)
4629 * parse.y (dowithaction): Allow EXIT from DO WITH.
4631 Tue Feb 8 13:13:54 1994 Bill Cox (bill@rtl.cygnus.com)
4633 * configure: Change to require grant.c for evidence that we've
4634 found the source directory.
4635 * decl.c (init_decl_processing): delete unused builtin_slice
4636 function declaration.
4637 * expr.c (chill_expand_expr): Calculate powerset's length
4638 correctly, calling powersetlen to do it.
4639 * regression.sh: Replace BASE references with objdir references.
4640 * typeck.c (build_chill_slice): Build the compound expression
4643 Mon Feb 7 15:56:07 1994 Bill Cox (bill@rtl.cygnus.com)
4645 * expr.c (build_chill_lower, build_chill_upper): Handle
4646 LOC parameter types.
4647 * regression.sh: Correct path to executable sub-shell-scripts.
4649 Mon Feb 7 11:33:47 1994 Bill Cox (bill@rtl.cygnus.com)
4651 * regression.sh: Pervasive changes to allow for separate
4652 source and object directories.
4654 Wed Feb 2 17:5620 1994 Bill Cox (bill@rtl.cygnus.com)
4656 * decl.c (find_implied_typed): Delete obsolete reference to
4658 * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
4661 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4663 * Makefile.in: Delete bogus runtime/Makefile lines.
4664 * configure: Build testsuite directory.
4666 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4668 * configure: Correct srcdir for chill.examples directory.
4670 Wed Feb 2 11:24:57 1994 Wilfried Moser (fs_moser at rcsw47)
4672 * ch-parse.y (rule call): Add
4673 BUFFERNAME LPRN untyped_expr RPRN
4674 to enable generating a descriptor same as for SIGNALS.
4675 * ch-tasking.c (generate_tasking_code variable,
4676 decl_tasking_code_variable): Implement overflow check of
4677 taskingcode in case a tasking code is specified with the
4678 compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
4681 Wed Feb 2 09:31:37 1994 Bill Cox (bill@rtl.cygnus.com)
4683 * configure: Add ${srcdir} to Makefile.in's path.
4684 * loop.c: Delete unused whitespace.
4686 Tue Feb 1 17:09:41 1994 Bill Cox (bill@rtl.cygnus.com)
4688 * expr.c (string_char_rep): Process STRING_CST correctly.
4690 Tue Feb 1 15:29:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
4692 * expr.c (build_boring_bitstring): New function.
4693 * expr.c (build_chill_repetition_op): Fix a number of bugs in
4694 implementation of bitstring repetition.
4695 Also, implement repetition of Booleans.
4697 Tue Feb 1 15:28:21 1994 Bill Cox (bill@rtl.cygnus.com)
4699 * configure: Delete code to check for gas or ld. Add code to
4700 store a config.status file in each configured subdirectory.
4701 * expr.c (): Spell concatbitstring as concatps, which is the
4702 runtime routine name.
4703 * regression.sh: Force use of GNU make.
4705 Tue Feb 1 15:22:12 1994 Bill Cox (bill@rtl.cygnus.com)
4707 * tasking.c: Mark compiler-generated temps to prevent
4710 Tue Feb 1 17:38:51 1994 Wilfried Moser (fs_moser at rcsw1j)
4712 * lex.l (equal_number): Improve check for number after = in a
4714 * tasking.c (build_tasking_struct): Make field TaskValue
4715 pointer to chill_unsigned_type_node.
4716 * tasking.c (generate_tasking_code_variable): Declare tasking
4717 code variable as chill_unsigned_type_node.
4718 * tasking.c (decl_tasking_code_variable): Declare tasking
4719 code variable as chill_unsigned_type_node.
4721 Mon Jan 31 14:01:58 1994 Bill Cox (bill@rtl.cygnus.com)
4723 * addtest (update_Makefile): No longer build actions - they're
4724 now in pattern rules.
4725 * ch_makedepend: Do the grep first, to avoid processing non
4726 USE_SEIZE_FILE lines.
4727 * configure: Pervasive rewrite to support configuring regression
4730 Mon Jan 31 04:35:53 1994 Michael Tiemann (tiemann@blues.cygnus.com)
4732 * typeck.c (build_chill_slice): Compute EXTENT correctly.
4734 Sun Jan 30 14:33:12 1994 Bill Cox (bill@rtl.cygnus.com)
4736 * tasking.c (build_gen_inst): Return a typed tuple with
4739 Sun Jan 30 12:01:07 1994 Bill Cox (bill@rtl.cygnus.com)
4741 * actions.c (chill_expand_assignment): Recognize LENGTH builtin
4742 in the left hand side, pass it to
4743 expand_varying_length_assignment.
4744 (expand_varying_length_assignment): Clean up bitrot.
4745 * convert.c (convert): Revert most recent change.
4746 * loop.c (maybe_skip_loop): New function, split out of
4747 begin_chill_loop. Add conditional to skip processing an empty
4749 * parse.y (assignaction): Delete code to recognize LENGTH
4751 * typeck.c (validate_varying_array_ref): Correct misleading comment.
4753 Sat Jan 29 10:54:06 1994 Michael Tiemann (tiemann@blues.cygnus.com)
4755 * typeck.c (build_chill_slice): Pass a valid identifier to
4756 `get_unique_identifier'.
4758 * convert.c (convert): Rename LENGTH variable to MAXIDX, and
4759 use correct value for VAR_LENGTH when initializing a varying array.
4761 * decl.c (do_decl): Set DECL_COMMON.
4763 * actions.c (check_range): Temporarily inhibit warnings so the
4764 compiler doesn't warn the user about useless range checks that it
4765 might create. It's far easier for the compiler to figure out that
4766 a range check need not be done than it is for us to try to figure
4767 it out for ourselves.
4769 * expr.c (build_concat_expr): Generalize to handle bitstrings.
4770 (scalar_to_string): New function.
4771 (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
4772 library call (__concatbitstring).
4774 Sat Jan 29 08:43:54 1994 Bill Cox (bill@rtl.cygnus.com)
4776 * ch_makedepend: Fix the 'sed' command so that seize file
4777 name can be delimited by double quotes as well as apostrophes.
4779 Thu Jan 27 17:26:19 1994 Per Bothner (bothner@kalessin.cygnus.com)
4781 * typeck.c (my_build_array_ref): Do constant folding.
4783 Thu Jan 27 16:24:24 1994 Bill Cox (bill@rtl.cygnus.com)
4785 * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
4786 decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
4787 lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
4788 tree.c, typeck.c: New 'Copyright' line for 1994.
4790 Thu Jan 27 14:12:07 1994 Mike Stump (mrs@cygnus.com)
4792 * configure: Don't configure this directory with this configure,
4793 just subdirectories and cleanup.
4794 * Makefile.in (Makefile): Run config.status in parent directory,
4795 if we need rebuilding.
4797 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
4799 * decl.c (bind_sub_modules): Need a parameter on the recursive call.
4802 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
4804 * expr.c (build_concat_expr): Fix SunOS portability problem.
4806 Wed Jan 26 14:57:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
4808 * convert.c (digest_powerset_tuple): New function, used to set
4809 TREE_CONSTANT and TREE_STATIC properly.
4810 (digest_structure_tuple, convert (NULL to instance, non-varying
4811 to varying)): Set TREE_CONSTANT and TREE_STATIC when appropriate.
4812 * expr.c (varying_to_slice): Preserve novelty of slice type.
4813 * expr.c (build_concat_expr): Make sure class of result is
4814 correct (including correct novelty).
4815 * satisfy.c (safe_satisfy_decl): If value of CONST_DECL is
4816 not TREE_CONSTANT, emit an error.
4817 * typeck.c (build_chill_slice): Preserve novelty of result.
4818 * typeck.c (build_chill_slice): Simplify for varying argument
4819 (by using varying_to_slice).
4820 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
4822 * typeck.c (build_chill_cast): Use above new functions to convert
4823 constant expressions.
4824 * typeck.c (copy_novelty), ch-tree.h: New function.
4825 * chill.texi: Update for new constant conversion semantics.
4827 Tue Jan 25 14:00:02 1994 Wilfried Moser (fs_moser at rcsw1j)
4829 * ch-decl.c (init_decl_processing): Add new builtin function
4830 DESCR. Add call to build_chill_descr_type.
4831 * ch-expr.c: Add function build_chill_descr_type, which actually
4832 build the type the DESCR builtin returns.
4833 Add function build_chill_descr, which process the DESCR builtin.
4834 * ch-expr.c (build_chill_length): Add code to enable
4836 * ch-expr.ch (build_generalized_call): Add processing of DESCR
4838 * ch-grant.c: Add code to avoid producing of unnecessary grant
4840 * ch-tree.h: Add enum for builtin function DESCR. Add prototype
4841 for build_chill_descr.
4842 * ch-inout.c (build_chill_io_list_type): Change generation of the
4843 type passed to runtime library according to the new definition.
4844 * ch-inout.c (build_chill_writetext): Change processing of format
4845 string that a character constant is allowed as format string if
4846 compiler gets called with -fold-strings option.
4847 * ch-inout.c (build_chill_writetext): Change processing of
4848 integers in case NEWMODE x = INT.
4849 * ch-inout.c (build_chill_writetext): Remove processing of ranges.
4850 * ch-inout.c (build_chill_writetext): Add processing of
4853 Tue Jan 25 09:07:10 1994 Mike Stump (mrs@cygnus.com)
4855 * Makefile.in (all, OBSTACK): Build interesting things be default,
4856 and make sure we include OBSTACK.
4858 Sun Jan 23 12:35:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4860 * grant.c (decode_constant): Handle RANGE_EXPR.
4861 Simplify handling of CONSTRUCTOR.
4863 * typeck.c (build_chill_slice): Use build_chill_array_ref_1,
4864 not build_chill_array_ref.
4866 Sat Jan 22 16:23:30 1994 Per Bothner (bothner@kalessin.cygnus.com)
4868 * parse.y: Generate a RANGE_EXPR (instead of a confusing
4869 TREE_LIST) to indicate a range in case and tuple lables.
4870 * actions.c (chill_handle_case_label), convert.c (digest_constructor):
4871 Update accordingly to handle these RANGE_EXPRs.
4872 * satisfy.c (satisfy): Don't call finish_chill_binary_op
4875 Fri Jan 21 15:39:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
4877 * expr.c (force_addr_of): New function, to encapsulate passing
4878 by reference a powerset or string to a library function.
4879 * expr.c (build_min_max, build_set_expr): Use force_addr_of.
4880 * expr.c (chill_expand_expr case CONCAT_EXPR): Fix passing of
4881 rtl modes. (Old code fails on 64-bit Alpha.)
4882 * expr.c (build_chill_function_call): Remove bogues check for
4883 READonly variable passed as parameter.
4884 * expr.c (build_set_expr): Merge common code.
4885 * parse.y (string repetition): Fix logic for 2-pass scheme.
4886 * expr.c (finish_chill_binary_op), grant.c (decode_constant),
4887 satisfy.c (satisfy): Handle REPLICATE_EXPR.
4888 * chill.texi: Fix typo.
4890 Mon Jan 17 13:55:48 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4892 * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
4893 tree.c can find ch-tree.h.
4895 Sat Jan 15 15:34:11 1994 Mike Stump (mrs@rtl.cygnus.com)
4897 * configure: Fix problem so that building in a separate directory
4900 Sat Jan 15 09:51:02 1994 Bill Cox (bill@rtl.cygnus.com)
4902 * Makefile.in: Recurse down into runtime to
4903 create its Makefile, and to clean up.
4904 * configure: Recurse into runtime to make its Makefile.
4906 Sat Jan 15 09:15:22 1994 Bill Cox (bill@rtl.cygnus.com)
4908 << This set of CHILL frontend sources is now the
4909 maintainable and master set. Accept no substitutes! >>
4910 * Makefile.in, configure: Completely rewritten
4911 to be invoked by gcc/Makefile.in and
4913 * addtest (update_ChangeLog): Fix insertion
4915 * regression.sh: Add global option to suppress results of
4917 * cpy.sh: Add necessary edits to files as they
4919 * actions.c, ch-tree.def, ch-tree.h, convert.c,
4920 decl.c, except.c, expr.c, grant.c, inout.c,
4921 lang.c, lex.h, lex.l, loop.c, parse.y,
4922 satisfy.c, tasking.c, typeck.c: Latest
4923 versions from the repository.
4925 Fri Jan 14 12:28:39 1994 Bill Cox (bill@rtl.cygnus.com)
4927 * addtest: Fix insertion of line into ChangeLog.
4928 * configure: Add a script.
4929 * Makefile.in: Hack from ../Makefile.in
4930 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
4931 * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
4933 Mon Jan 10 11:38:07 1994 Bill Cox (bill@rtl.cygnus.com)
4935 * build-release: Rewrite for easier tailoring.
4937 Wed Jan 5 08:38:21 1994 Bill Cox (bill@cygnus.com)
4939 * actions.c, convert.c, decl.c, except.c, expr.c,
4940 inout.c, loop.c, parse.y, satisfy.c, typeck.c:
4941 Current versions from devo/gcc.
4943 Wed Dec 29 14:07:10 1993 Bill Cox (bill@rtl.cygnus.com)
4945 * addtest: Don't add comment headers to source or .dat files
4946 if they're already present.
4948 Wed Dec 29 13:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
4950 * mktg_leads: New file.
4951 * regression.sh, regression.awk2: Updated status report scripts.
4952 * addtest: New script to add a test to a directory.
4953 * ch_makedepend: Add full path to ch_decomment.
4954 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
4955 lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
4956 Updated copies of actual sources.
4957 * chill.brochure, chill.texi: Update with current status.
4958 * cpy.sh: Script for updating copies of sources.
4959 * chill.patches: New script for creating a patch release.
4962 Wed Dec 8 09:35:54 1993 Bill Cox (bill@rtl.cygnus.com)
4964 * build-release: Delete lots of unused regression-testing cruft.
4965 * chill.brochure: Initial draft of marketing brochure.
4966 * chill.patches: Preliminary script for building patch sets
4968 * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
4969 building a tcov report on the CHILL compiler.
4971 Sun Nov 21 08:34:33 1993 Bill Cox (bill@rtl.cygnus.com)
4973 * Makefile.in: Adjust gperf rule for names in this directory.
4974 * ch_decomment.l: New file. Ignores CHILL comments.
4975 Executable is used bu ch_makedepend.
4976 * ch_makedepend: New script. Makes CHILL dependencies for
4978 * gperf, hash.h: New files about lexer tokens.
4979 * regression.sh: Delete notes justifying non-summing
4981 * regression.awk2: Report PRMS status when there are
4982 missing test results.
4983 * regression.awk3: Add #! line, so this can be used separately.
4984 * Other files: latest versions copied from devo/gcc.
4986 Sat Oct 30 15:02:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
4988 * chill.texi: Add new node about conversions.
4990 Fri Oct 29 14:17:31 1993 Bill Cox (bill@cygnus.com)
4992 * chill.regress.cron: Change path to executable, enable PR report.
4993 * regression.awk2: Add terminating periods to messages.
4994 * regression.sh: Change path to testsuites. Add disclaimer at end
4995 of report. Print explicit lists of resolved/unresolved PRs.
4997 Thu Oct 28 09:22:20 1993 Bill Cox (bill@rtl.cygnus.com)
4999 * regression.sh: More PR-related status is printed.
5001 Thu Oct 21 19:24:02 1993 Bill Cox (bill@rtl.cygnus.com)
5003 * regression.sh: Simplify the paths, make the source
5004 and test files accessed separately from the executables.
5006 Wed Oct 20 16:35:30 1993 Bill Cox (bill@rtl.cygnus.com)
5008 * regression.sh: Finally fix the file-delete problem.
5010 * build-release: Make more verbose, fix comment.
5012 Mon Oct 18 00:21:24 1993 Bill Cox (bill@cygnus.com)
5014 * regression.sh: Build linker if -U option. Put stderr
5015 into make.log files, too. Also report on Z.200 examples.
5016 * regression.awk3: New script to help build release note.
5018 Fri Oct 15 16:33:54 1993 Bill Cox (bill@cygnus.com)
5020 * regression.sh, regression.prpt: Output PR status only
5021 conditionally. Add command-line flag for CVS updates.
5023 Thu Oct 14 07:53:59 1993 Bill Cox (bill@rtl.cygnus.com)
5025 * regression.sh: Count PRs accurately.
5026 * Makefile.in: New file.
5028 Sat Oct 9 19:46:58 1993 Bill Cox (bill@rtl.cygnus.com)
5030 * regression.awk?: Add program fragments for
5031 report of PRMS/test exceptions.
5032 * regression.sh: Add options and PRMS reports.
5034 Fri Oct 8 06:44:41 1993 Bill Cox (bill@rtl.cygnus.com)
5036 Create chill frontend directory, populate it.
5037 Later, the chill-specific frontend files will be moved here.
5039 * chill: Moved here from gcc directory.
5040 * chill.regress.cron: Add crontab file for regression tests.
5041 * regression.sh: Add regression test control script.
5044 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5046 Sat Jan 15 14:54:07 1994 Bill Cox (bill@rtl.cygnus.com)
5048 * ch-*.*: All of these files are now moved to the ch subdirectory.
5049 Further update changes should be recorded in the ch/ChangeLog file.
5051 Fri Jan 14 21:09:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
5053 * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5054 ch-satisfy.c, ch-typeck.c: Undo all of initializer-related changes
5055 that Tiemann did earlier this month.
5056 * c-typeck.c (really_start_incremental_init): Save
5057 constructor_elements and (old value of) constructor_stack
5058 on constructor_stack, to allow for nested initializers.
5059 * ch-convert.c (digest_constructor): If we need a varying
5060 array, and have a constructor (for the array elements),
5061 make sure to use convert so that the constructor gets
5062 wrapped in an implicit record constructor.
5063 * ch-decl.c (do_decl): If there is no initializer for a
5064 varying array (or bitstring), create default constructor.
5066 * ch-expr.c (build_chill_lower): Fix thinko for ARRAY_TYPE.
5067 * ch-satisfy.c (safe_satisfy_decl): Make sure that we make
5068 original decl to check if we need to make an rtl.
5070 * ch-typeck.c (build_chill_array_ref_1), ch-tree.h: New function
5071 which does the actual work for build_chill_array_ref (which
5072 now just loops over an argument list).
5073 * ch-actions.c, ch-expr.c, ch-inout.c: Use build_chill_array_ref_1
5074 instead of build_chill_array_ref where appropriate.
5075 * ch-actions.c, ch-expr.c, ch-typeck.c: Make operand 1 of a
5076 VARY_ARRAY_REF is a single index, not an index list.
5078 * ch-grant.c (__init_list): Renamed to _ch_init_list, to
5079 avoid a conflict on the Alpha.
5081 Wed Jan 12 10:19:35 1994 Bill Cox (bill@rtl.cygnus.com)
5083 * ch-lex.l (WS): Add BS, VT and CR to definition of
5085 (convert_number): Allow for uppercase hex digits.
5087 Tue Jan 11 19:43:55 1994 Bill Cox (bill@cygnus.com)
5089 * ch-actions.c (lookup_and_handle_exit): Correct
5090 conditional so error messages are output.
5091 * ch-expr.c (build_chill_addr_expr): Add error message.
5092 * ch-grant.c (chill_finish_module_code): Avoid abort by
5093 giving the init_list constructor a type.
5094 (chill_finish_compile): Delete unused code.
5095 * ch-lex.l: Make most build_init_2 calls from the
5096 permanent obstack, so that enumeration values endure.
5097 * ch-loop.c (build_chill_iterator): Add several error
5100 Tue Jan 11 12:31:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
5102 * ch-expr.c, ch-typeck.c: Rewrite some instances of
5103 'struct ch_class class = chill_expr_class (expr);' to
5104 'struct ch_class class; class = chill_expr_class (expr);'
5105 to work around a bug in /usr/ucb/cc on SunOS4.
5107 Mon Jan 10 18:29:36 1994 Bill Cox (bill@rtl.cygnus.com)
5109 * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5110 * ch-expr.c (expand_packed_set): Add new parameter to pass
5111 set's minimum ordinal value. Fix loop invariant problem.
5112 (fold_set_expr): Change to add new parameter to
5113 expand_packed_set call.
5114 * ch-grant.c: Move extern declaration to ch-tree.h.
5115 * ch-lex.l (convert_bitstring): Also output the bitstring
5117 * ch-tree.h: Add prototype.
5119 Mon Jan 10 11:29:41 1994 Bill Cox (bill@rtl.cygnus.com)
5121 * ch-inout.c: Fix comment.
5122 * ch-tree.h: Add prototype.
5124 Sun Jan 9 18:22:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
5126 * ch-tree.h (chill_expr_class): New prototype.
5127 * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5128 Convert result to correct class.
5129 * ch-expr.c (build_chill_repetition_op): Preserve CH_DERIVED_FLAG.
5130 Also, fix some bugs for bitstrings (with ranges).
5132 (Patches from Tiemann.)
5133 * ch-convert.c (convert1): New function to force TREE_TYPE.
5134 (convert): Use convert1 where appropriate.
5135 * ch-typeck.c: Formatting change.
5136 * ch-parse.y (build_chill_constructor): Fix thinko.
5138 * ch-expr.c (varying_to_slice): If array is not referable,
5139 call save_expr on it, rather than stabilize_reference.
5140 * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5141 Don't force value to value class if mode is not explicitly
5142 specified. Also, make sure convert etc is only done once.
5144 Sat Jan 8 16:37:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
5146 * ch-decl.c (build_chill_function_type): Don't call
5147 build_function_type, because it does hash canonicalization,
5148 which once in a while looses badly.
5149 * tree.c (build_function_type): Remove no-longer-needed test
5150 for doing_chill_thang.
5152 * ch-tree.h (CH_DERIVED_FLAG): New flag.
5153 * ch-tree.h (enum ch_expr_class): Renamed to ch_class_kind.
5154 (struct ch_class): New type, used to represent a Chill
5155 'class' as a first-class value.
5156 (CH_ROOT_RESULTING_MODE): Replaced by CH_ROOT_RESULTING_CLASS.
5157 * ch-typeck.c (chill_expr_class): Change interface to return
5159 (chill_compatible, chill_compatible_classes): Update accordingly.
5160 (chill_root_resulting_mode): Replace by ....
5161 (chill_root_resulting_class): ... new function.
5162 * ch-convert.c (convert_to_class): New function.
5163 * ch-decl.c (layout_enum): Mark enum values with CH_DERIVED_FLAG.
5164 * ch-lex.l (string_or_int): Rename to string_or_char.
5165 * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5166 convert_float, convert_number): Set CH_DERIVED_FLAG for literals.
5167 * ch-expr.c (finish_chill_binary_op): Use convert_to_class.
5168 * ch-satisfy.c (safe_satisfy_decl): For CONST_DECL, make sure
5169 DECL_INITIAL gets set to result of convert.
5170 Also, clear CH_DERIVED_FLAG for SYN value.
5171 * expr.c (store_constructor): If a [power]set is exactly one
5172 word long, use single-word move.
5174 Sat Jan 8 08:38:29 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5176 * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5178 Wed Jan 5 05:18:46 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5180 * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5181 ARRAY_TYPE before assuming so. Also, subtract 1 from LENGTH in
5182 computation of SLICE_END.
5184 * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5186 * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5188 * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5189 for unary set operations).
5191 * ch-expr.c (build_chill_array_expr): Take new argument FORCE. All
5192 callers changed. All callers changed.
5194 * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5195 being NULL_TREE until we've started walking the list of values via
5196 the loop over VARIANTs.
5198 * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5199 treat it as an enum value (and hence constant). Also, only set
5200 TREE_STATIC if the constructor is indeed constant.
5201 * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5202 VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5203 recurse on the DECL_INITIAL.
5205 Wed Jan 5 01:24:50 1994 Bill Cox (bill@cygnus.com)
5207 * Makefile.in: Add CHILL to LANGUAGES variable.
5208 * ch-actions.c (check_range): Call build_binary_op instead of
5209 fold, build to get the common types chosen.
5210 (cond_range_exception, cond_overflow_exception,
5211 cond_type_range_exception): Delete, obsolete.
5212 (chill_convert_for_assignment): Enable this, get particular
5213 about when to generate rangecheck code.
5214 * ch-expr.c (build_chill_function_call): Sketch in where to
5215 perform chill_convert_for_assignment on actual parameters.
5216 (build_chill_addr_expr): Correct compiler warning.
5217 * ch-loop.c (build_chill_iterator): Add runtime check for
5218 negative loop step expression.
5219 * ch-tree.h: Add prototype.
5220 * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5221 A varying array's length field counts the NUMBER of active array
5222 array entries, not the byte-length of them.
5224 Tue Jan 4 17:57:39 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5226 * ch-decl.c (do_decl): Call `suspend_momenary' if the
5227 converted constructor must live on the permanent_obstack.
5228 * ch-convert.c (convert): When building a new SET_TYPE
5229 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5230 * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5232 * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5234 * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5235 on permanent_obstack if necessary.
5237 * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5238 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5240 * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5241 the patch below helped to mess up.
5243 * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5244 (build_chill_addr_expr): Take new argument ERRORMSG.
5245 All callers changed. Also, call `build_chill_addr_expr' where
5246 we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5247 that now calls `mark_addressable' automagically.
5249 * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5250 This is needed because variables may appear in initialization
5251 statements, and their DECL_INITIALs are their values at
5252 initialization time.
5253 * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5254 to handle VAR_DECLs as initializers.
5256 * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5257 they aren't destroyed for later use.
5259 Tue Jan 4 15:25:30 1994 Bill Cox (bill@cygnus.com)
5261 * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5262 parameter for varying_array_ref calculations.
5263 (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5264 * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5265 of bogus error in votrics.
5266 (build_chill_slice_with_length): Change for debug tracability.
5268 Tue Jan 4 02:43:37 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5270 * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5271 handling variant record initializers.
5272 (various places): Change `pop_init_level' calls to match
5273 `push_init_level' wrt implicit variable.
5275 * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5276 `integer_type_node' before using it in comparisons. FIXME: should
5277 this be done in `chill_max_vary_array_index' by default?
5279 Tue Jan 4 00:24:14 1994 Bill Cox (bill@cygnus.com)
5281 * ch-actions.c: Fix comments.
5282 * ch-parse.y: Define caseaction_flag.
5283 (caseaction): Create new caseaction_flag node at the start,
5284 then free it at the end. Check it before the ELSE code.
5285 (expanded_case_label): Check the flag here. If set in either
5286 place, generate a jump to the end of the case.
5287 * ch-typeck.c (build_chill_slice_with_length,
5288 build_chill_slice_with_range): Add lots of compile-time
5289 parameter range checking.
5291 Mon Jan 3 21:49:04 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5293 * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
5294 implicit==0 everywhere, not 1.
5295 (digest_constructor): Ditto.
5297 * ch-actions.c (check_range): Permit limits to be NULL_TREE.
5298 Also, hack out some dead code.
5299 * ch-typeck.c (build_chill_slice): Check varying and non-varying
5300 slice constructs for range failures.
5301 (build_chill_slice_with_range): Reindented, but not changed.
5303 * ch-typeck.c (chill_max_vary_array_index): New function.
5304 * ch-expr.c (chill_expand_expr): Call it.
5306 * ch-decl.c (var_data_id, var_length_id): New variables.
5307 (init_decl_processing): Initialize them. All calls to
5308 get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
5309 by references to these variables. This simplifies the code
5310 w/o obscuring anything.
5312 Mon Jan 3 21:24:44 1994 Bill Cox (bill@cygnus.com)
5314 * c-typeck.c: Fix comment.
5315 * ch-actions.c (chill_expand_assignment): Error assigning to
5316 READONLY location. (PR_3903) Pass filename, linenumber
5317 to setbitpowerset runtime routine.
5318 * ch-decl.c (init_decl_processing): Add filename, linenumber
5319 parameters to setbitpowerset prototype.
5320 * ch-expr.c (build_chill_function_call): Error when passing a
5321 READonly location as a LOC or INOUT parameter.
5322 * ch-parse.y (mode): Correct code marking type as readonly.
5324 Mon Jan 3 19:03:55 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5326 * ch-actions.c (chill_expand_assignment): Disable code that defeats
5327 building varying array references.
5328 * ch-expr.c (chill_expand_expr): Add rangecheck code to
5329 VARY_ARRAY_REF case.
5330 * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
5331 function (in this case, `validate_varying_array_ref') when we're
5332 doing a `build_' operation.
5334 * ch-typeck.c (validate_varying_array_ref): Simplify interface
5335 since INDEX parameter can never meaningfully be an INDEXLIST.
5336 * ch-actions.c (expand_varying_length_assignment): Caller changed.
5338 Mon Jan 3 07:29:45 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5340 * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
5341 * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
5342 if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
5343 (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
5344 call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD). This
5345 can happen when constructors are output incrementally.
5346 * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
5347 * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
5350 Sun Jan 2 08:17:09 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5352 * ch-convert (digest_structure_tuple): Handle SET_TYPEs. Also, call
5353 `convert' so we can handle INSTANCE types (and other anomolies)
5356 * ch-convert.c (digest_structure_tuple): Fixed variant
5357 structure initialization. Also fixed a typo (TYPE_NAME
5358 was being used on a FIELD_DECL instead of DECL_NAME).
5359 * c-typeck.c (initializer_constant_valid_p): Pass missing
5360 ENDTYPE argument on recursive call.
5361 (set_init_field): New function, needed by ch-convert.c change above.
5363 * ch-decl.c (layout_chill_variants): Added a FIXME next to an
5364 almost certain typo.
5366 * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
5367 TREE_CONSTANT for static references.
5368 * ch-except.c (chill_start_on): Change calls to
5369 `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
5370 which has CHILL semantics.
5371 * ch-convert.c (convert): Ditto (albeit in some disabled code).
5373 Sat Jan 1 21:26:43 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5375 * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
5376 TREE_CODE of DECL in case it's altered by actions in the switch.
5378 * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan. CVS log
5379 mentions where to find code that triggers this case.
5381 * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
5384 * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
5385 we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
5386 (digest_constructor): Ditto.
5388 Sat Jan 1 10:29:19 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5390 * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
5391 so that CONSTRUCTORS are properly handled before being used.
5393 * ch-convert.c (chill_start_init): New function. All callers to
5394 `start_init' changed to call this function instead.
5395 (digest_struct_tuple): Defend against initialization machinery
5396 mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
5397 IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots. This is
5398 needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
5399 can be refered to throughout the compilation unit. Also remove an
5400 extraneous call to `process_init_element' erroneously added to the
5401 variant record sub-loop.
5402 (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
5403 CONSTRUCTORS of SET_TYPE.
5404 * ch-parse.y (build_chill_constructor): Refix typo. Also set
5405 TREE_STATIC if at top level.
5407 * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
5408 TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
5409 should have been called.
5411 * ch-convert.c (digest_struct_tuple): Restore code which tracks
5412 field initializations so that the compiler can deduce what variant
5413 initializations to assume.
5415 * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
5416 when we push into a scope that has a DECL with a CONSTRUCTOR as its
5419 * ch-parse.y (build_chill_constructor): Change the name of the
5420 parameter to something more meaningful. Fix typo. Also, handle case
5421 where element is an untyped CONSTRUCTOR.
5423 * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
5424 constant ADDR_EXPRs.
5425 (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
5426 on JBUF_REF (instead of calling `build1' which does not).
5428 * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
5430 * ch-typeck.c (chill_expand_tuple): Deleted.
5431 * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
5432 instead, use initialization machinery for CONSTRUCTORS that
5434 * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
5435 that are created here.
5436 * ch-satisfy (satisfy): Abort in case we would have called
5437 chill_expand_tuple. FIXME: some other code is needed here,
5438 but I don't know what yet.
5440 * ch-parse.y (build_chill_constructor): New function to
5441 propagate TREE_CONSTANT bits to CONSTRUCTORS.
5442 (untyped_expr rule): Use it.
5443 (primval rule): Use it.
5445 * ch-decl.c (do_decl): Call `finish_init'.
5446 * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
5447 this function, make sure the initialization machinery is set up.
5449 * ch-convert.c (digest_structure_tuple, digest_constructor): Add
5452 Fri Dec 31 11:31:01 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5454 * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
5455 as being TREE_CONSTANT. Otherwise it gets bounded by the initializer
5458 * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
5459 * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
5460 rewritten to work with GCC's initialization code. The basic change
5461 was to keep the initializers in sync with the initialization
5462 machinery that `process_init_element' imposes. Both of these
5463 functions now return `void'.
5464 * ch-convert.c (convert): Changed calls to `digest_...' functions.
5466 FIXME: the code handling UNION_TYPE (and variant records) has not
5469 Fri Dec 31 15:32:56 1993 Bill Cox (bill@rtl.cygnus.com)
5471 * ch-lex.l (convert_number): Output the converted number if
5473 * ch-parse.y (signaldef): Set ignore_exprs correctly for a
5476 Fri Dec 31 13:17:48 1993 Bill Cox (bill@cygnus.com)
5478 * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
5479 a RETURN without a value (which cannot have an exception
5480 handler) from a RETURN with a value (which can). Eliminate
5481 some shift/reduce and reduce/reduce conflicts.
5483 Thu Dec 30 17:42:32 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5485 * ch-inout.c (build_chill_writetext): Deal with 2 cases where
5486 types returned from `type_for_size' are not expected. FIXME.
5487 * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
5488 This is required when range checking is enabled.
5490 Thu Dec 30 14:28:25 1993 Bill Cox (bill@rtl.cygnus.com)
5492 DELAY CASE works now.
5493 * ch-decl.c (init_decl_processing): Move rest of tasking-related
5494 initialization into tasking_init().
5495 * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
5496 (optsetprio): New non-terminal.
5497 * ch-tasking.c (get_task_name): Delete, obsolete.
5498 (build_instance_type): build pointer to instance type also.
5499 (build_receive_case_start): Cleanup per -Wall messages.
5500 (build_receive_case_label): Move between start and end functions.
5501 (build_delay_case_start): Pass SET name and priority also.
5502 Generally update to correct functioning.
5503 (build_delay_case_label): Move between start and end fucntions,
5504 correct its functioning.
5505 (build_delay_case_end): Correct the code.
5506 (tasking_init): Lots of tasking-related code moved here from
5507 init_decl_processing.
5508 * ch-tree.h: Update, add prototypes.
5510 Wed Dec 29 10:13:10 1993 Bill Cox (bill@rtl.cygnus.com)
5512 * ch-expr.c (build_chill_indirect_ref): Revert change which
5513 failed full regression testing.
5514 * ch-lex.l (name_type_signal): Add debug output.
5515 * ch-parse.y (structured_variable): Add a debug variable.
5517 Wed Dec 29 02:05:51 1993 Bill Cox (bill@rtl.cygnus.com)
5519 * ch-decl.c (get_next_decl): Revert change which failed full
5522 Tue Dec 28 18:20:14 1993 Bill Cox (bill@rtl.cygnus.com)
5524 DELAY actions work now.
5525 * ch-decl.c: Correct spelling in comments.
5526 (get_next_decl): NULL out the decl's TREE_CHAIN before returning
5527 it, to prevent accidental access to the remembered_decls.
5528 (init_decl_processing): Add wait_event to runtime functions.
5529 * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
5530 becoming a seg fault.
5531 * ch-grant.c: Correct a comment.
5532 * ch-loop.c: Delete/correct comments.
5533 * ch-parse.y (delaycaseaction): Add push/poplevel calls. Turn 'sorry'
5534 into rough draft of actual code.
5535 (delayaction): Don't make a new scope here, use get_unique_identifier
5537 (locdec): process event decls here, too.
5538 (mode): Add code to forbid READonly EVENT and BUFFER decls. Delete
5539 code which required EVENTs and BUFFERs to be declared at global scope.
5540 (simple_name_string): Add an EVENTNAME.
5541 * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
5542 becoming a seg fault.
5543 * ch-tasking.c (tasking_setup): Add the event queue's max. length
5544 as the 'entry_point' parameter in the list.
5545 (build_receive_case_start, build_receive_case_label): Defer
5546 calling runtime routine until we know whether we have a signal
5547 or a buffer to wait for.
5548 (build_delay_case_start, build_delay_case_end,
5549 build_delay_case_label, build_delay_action,
5550 process_event_decls): Added functions.
5551 * ch-typeck.c (chill_similar): Allow all integers of differing
5552 precisions to be similar.
5554 Thu Dec 23 18:00:40 1993 Bill Cox (bill@rtl.cygnus.com)
5556 * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
5557 options. Delete C-specific defines. Disable piping from
5558 pre-processor to cc1chill (even if -pipe is specified), since cc1chill
5559 rewinds its input for its second pass. Piping still works
5560 from cc1chill to as.
5562 Thu Dec 23 12:31:55 1993 Bill Cox (bill@rtl.cygnus.com)
5564 * ch-tasking.c (decl_tasking_code_variable): Assure that the
5565 tasking_code variable is allocated on the permanent obstack.
5566 (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
5567 queue length (passed as the entry_point parameter).
5568 Other changes to variable names to increase 'self-documentation'
5569 the only kind GNU CHILL will get, for a while..
5571 Wed Dec 22 10:46:31 1993 Bill Cox (bill@rtl.cygnus.com)
5573 * ch-decl.c (do_seize): Delete - it's unused. Fix comments.
5574 * ch-loop.c (build_chill_iterator): Convert BY expression
5575 so loop involving a SET works. Additional errors generated
5576 for numbered SET expression as start or end expression.
5577 * ch-tree.h: Prototypes for future DELAY functions.
5578 * ch-typeck.c: Standard indentation.
5580 Tue Dec 21 15:30:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
5582 * ch-actions.c (build_cause_exception): New function.
5583 (expand_cause_exception): Re-write to use build_cause_exception.
5584 (check_expression, check_range): New functions.
5585 (chill_convert_for_assignment): New function.
5586 * ch-expr.c (build_chill_pred_or_succ): New function.
5587 (build_chill_succ, build_chill_pred): Removed.
5588 (build_generalized_call): Use build_chill_pred_or_succ.
5589 * ch-lex.h, ch-lex.l (init_lex): Add RID_OVERFLOW and RID_RANGEFAIL.
5590 * ch-lex.l (init_lex): Use new macro to make more terse.
5591 * ch-typeck.c (chill_equivalent): New function.
5592 Also check that ranges have the same bounds.
5593 * ch-typeck.c (my_build_array_ref): Add optional range-checking.
5594 * ch-typeck.c (chill_location): Handle COMPOUND_EXPR properly.
5595 Return 2 if also a referable.
5596 * ch-typeck.c (chill_referable): Re-define to use chill_location.
5597 * ch-tree.h (CH_EQUIVALENT): Re-defined to use chill_equivalent.
5599 * dbxout.c (dbxout_type): Output the type attribute "@S;" to
5600 distinguish a string from a char array, and to distinguish a
5601 bitstring from regulat (power)set. (Needed for Chill.)
5602 * dbxout.c (dbxout_type): Only check for baseclasses in
5603 type.binfo is a vector. (It is used in Chill for tagged unions.)
5605 Fri Dec 17 09:56:07 1993 Bill Cox (bill@rtl.cygnus.com)
5607 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
5608 ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
5609 ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
5611 * ch-actions.c (chill_expand_assignment): Error if assigning
5612 a value to a BUFFER or EVENT variable.
5613 * ch-expr.c (invalid_left_operand): Delete, unused.
5614 * ch-grant.c (tasking_setup): Call build_enum_tables.
5615 * ch-inout.c (get_final_type_and_range, build_enum_tables,):
5617 (build_chill_writetext): Lots of changes to support other
5618 basic CHILL data types.
5619 * ch-loop.c (build_chill_iterator): Lots of new code to check
5620 the expressions in a STEP loop.
5621 * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
5622 names in receivecasealternative. Generate error messages
5623 if they're mixed in the same receive case.
5624 (process_buffer_decl): Renamed from build_buffer_decl.
5625 * ch-tree.h: Fix prototypes.
5626 * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
5627 correctly. Thanks Per!
5629 Wed Dec 15 15:05:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
5631 * ch-decl.c (push_scope_decls): Re-arrange some more, so
5632 that normal SEIZES (without ALL) are handled before SEIZE ALL.
5634 Wed Dec 15 13:01:22 1993 Bill Cox (bill@rtl.cygnus.com)
5636 * ch-loop.c (declare_temps): Calculate end-of-array pointer
5637 using correct type (NOT chill_integer_type).
5638 (begin_chill_loop): Build loop-bypass expression in the
5639 type of the start expression, not in the unsigned type.
5641 Tue Dec 14 15:41:32 1993 Per Bothner (bothner@kalessin.cygnus.com)
5643 * ch-decl.c (push_scope_decls): Re-arrange so that normal
5644 (non-seize) declarations are proclaim_decl'd *before* we
5645 handle the ALIAS_DECLs for seizes. The advantage is
5646 that we can now test for (an approximation) to the
5647 'seizeable' concept, thus avoiding duplicate definitions
5648 when a module has both GRANTs and SEIZE ALL.
5650 * ch-expr.c (build_chill_arrow_expr): No longer re-write
5651 addr-of-conversion to pointer-conversion-of-addr.
5652 * ch-expr.c (build_chill_addr_expr): Re-write to just use
5653 build_chill_arrow_expr.
5655 Mon Dec 13 16:44:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
5657 * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr): Don't re-write
5659 * ch-tree.h (chill_root_resulting_mode): Fix typo (missing '_').
5661 * ch-expr.c (finish_chill_binary_op): Use CH_ROOT_RESULTING_MODE
5662 macro (which works on expressions), rather than CH_RESULTING_MODE
5663 (which works on modes, and isn't quite correct).
5664 * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE): New macro.
5665 * ch-typeck.c (chill_read_compatible, chill_compatible):
5666 Use the new macro, which handles NEWMODEs of PTR correctly.
5667 * ch-typeck.c (chill_similar): Return 1 rather than 0 for
5668 dynamic-length array (and string) types (e.g. slices).
5669 * ch-typeck.c (chill_root_mode): If the mode has a Novelty,
5670 just return it as is. (This is still not 100% correct for
5671 NEWMODE of RANGEs, but is close enough.)
5673 Mon Dec 13 16:27:06 1993 Bill Cox (bill@rtl.cygnus.com)
5675 * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
5676 build_buffer_decl, which then seg faults.
5677 * ch-tasking.c (build_buffer_descriptor): Move declaration
5678 of bufdecl closer to its use.
5680 Mon Dec 13 14:57:55 1993 Bill Cox (bill@rtl.cygnus.com)
5682 * ch-actions.c (chill_expand_result): Use expand_expr_stmt
5683 to avoid C-specific conversions.
5684 * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
5685 * ch-parse.y (sendaction): Delete unused statement, use the 'name'
5687 * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
5689 (build_buffer_decl): Save the tasking_code_variable's decl
5690 in the buffer decl tree.
5691 (build_buffer_descriptor): Real, working version.
5693 Mon Dec 13 03:13:36 1993 Bill Cox (bill@rtl.cygnus.com)
5695 * ch-decl.c (print_lang_identifier): Delete code
5696 to print buffer size - it's no longer kept here.
5697 * ch-parse.y (expand_send_buffer): Renamed from
5699 (locdec): Enable building of a buffer decl.
5700 (optresultspec, optresultattr): Add optional
5701 result attributes such as LOC. Semantics
5703 * ch-tasking.c (expand_send_buffer): Renamed.
5704 * ch-tree.h (build_send_buffer): Renamed.
5705 * ch-typeck.c (chill_expr_class): Do more complete,
5706 job of classifying expressions. Thanks, Per.
5708 Mon Dec 13 00:59:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
5710 * ch-typeck.c (chill_expr_class): Return CH_DERIVED_CLASS
5711 for bitstring constants.
5712 * ch-typeck.c (chill_novelty): The novelty of an (unnamed)
5713 range mode is that of its parent mode; the novelty of READ M
5716 Sat Dec 11 15:14:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
5718 * ch-expr.c (varying_to_slice): Call stabilize_reference
5719 rather than save_expr.
5720 * ch-typeck.c (build_chill_slice): Don't emit warning
5721 if array is a SAVE_EXPR (it is effectively referable).
5722 * ch-typeck.c (chill_root_resulting_mode): Handle
5723 correctly the case that one operand is DERIVED and one is VALUE.
5725 Fri Dec 10 10:00:42 1993 Bill Cox (bill@rtl.cygnus.com)
5727 * ch-grant.c (decode_decl): Restore code mistakenly deleted.
5728 Move instance-handling code to raw_decode_mode.
5729 * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
5730 Add rough draft of DELAY statement handling.
5731 * ch-tasking.c (build_event_type): New function.
5732 * ch-tree.h (build_event_type): Add prototype.
5733 * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
5735 Wed Dec 8 18:02:26 1993 Bill Cox (bill@rtl.cygnus.com)
5737 Parse and grant BUFFER modes.
5738 * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
5739 Moved from decode_decl.
5740 * ch-parse.y: Fix several sorry() messages.
5741 * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
5744 Wed Dec 8 12:59:54 1993 Per Bothner (bothner@kalessin.cygnus.com)
5746 * ch-actions.c (chill_expand_assignment): In a multiple
5747 assignment, check that all the targets are equivalent.
5749 * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT): New function
5750 and macro to (partially) implement the relation l-equivalent.
5751 * ch-typeck.c (chill_read_compatible): Implement at least
5752 initial check of read-only-ness.
5753 * ch-typeck.c (build_readonly_type): Fix thinkos.
5755 Wed Dec 8 09:11:46 1993 Bill Cox (bill@rtl.cygnus.com)
5757 * ch-decl.c (pop_module): Only warn about duplicate grant
5758 statements if they inhabit different files, by examining
5759 inode numbers. Only report compatibility problems in pass 1.
5760 * ch-lex.l (chill_same_grant_file): New function to support the
5763 Tue Dec 7 17:10:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
5765 * ch-decl.c (start_chill_function): Handle attributes in pass 1,
5766 rather than in pass 2. (It seems to make more sense that way.)
5767 * ch-parse.y (procedureattr): Build attribute list if pass != 2.
5769 * ch-parse.y (mode): Don't call build_readonly_type in pass 2.
5771 Mon Dec 6 14:35:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
5773 This implements NOVELTY and READONLY checking.
5774 * ch-tree.def: Added comment about use of LANG_TYPE.
5775 * ch-typeck.c (build_readonly_type, smash_dummy_type): New functions.
5776 * ch-tree.h: New prototypes.
5777 * ch-decl.c (push_modedef): If newmode, lazily "copy" the given mode
5778 immediately (even if it's just a type name), using a LANG_TYPE.
5779 * ch-parse.y (mode): Call build_readonly_type to handle READ.
5780 * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
5781 ch-satisfy.c (satisfy): Handle a LANG_TYPE.
5782 * ch-decl.c: Remove chill_modes_equiv and other unused junk.
5783 * ch-satisfy.c (safe_satisfy_decl/CONST_DECL): Better
5784 mode compatibility checking for SYN declarations.
5786 * ch-typeck.c (chill_similar): Be more general when checking set
5787 modes for similarity - specifically support calling chill_similar
5788 BEFORE the modes have been satisfied (needed by proclaim_decl).
5789 * ch-decl.c (proclaim_decl): Allow duplicate definitions
5790 of set elements of similar set modes.
5792 * ch-parse.y (caseaction): Call language-independent
5793 expand_start_case rather than c_expand_start_case (which
5794 doesn't allow chars or booleans).
5796 Sat Dec 4 22:16:19 1993 Bill Cox (bill@rtl.cygnus.com)
5798 * ch-actions.c (cond_range_exception,
5799 cond_type_range_exception): Check command-line flag before
5800 generating code. Fix comments.
5801 * ch-expr.c (build_chill_num): Add generation of OVERFLOW
5802 code, commented out.
5803 * ch-loop.c (build_chill_iterator): Comment out
5804 exception code generation.
5805 * ch-parse.y: Delete quasi_signal flag, use
5806 current_module->is_spec_module instead.
5807 * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
5808 Delete quasi_decl flag. Look at current_module
5810 * ch-tree.h: Take quasi_decl flag out of buffer
5812 * ch-typeck.c (valid_array_index, chill_similar):
5813 Comment out runtime range checking for now.
5814 * expr.c (store_constructor): Fix word-size set problem.
5815 * varasm.c (emit_set_data): Fix word-size set problem.
5817 Wed Dec 1 19:08:12 1993 Bill Cox (bill@rtl.cygnus.com)
5819 * ch-actions.c: Delete unused prototype for build_compound_expr.
5820 * ch-loop.c (begin_chill_loop): Convert operands of the conditional
5821 expression to lp->iter_type before expanding it. Prevents an abort
5822 deep in expand_expr and friends.
5824 Wed Dec 1 17:00:44 1993 Bill Cox (bill@rtl.cygnus.com)
5826 * ch-actions.c (chill_expand_assignment): Comment out strange
5827 test and its error message.
5828 * ch-loop.c (begin_chill_loop): Correct call to generate conditional
5829 jump around the loop.
5830 * ch-typeck.c (build_chill_slice): Call correct temporary generator.
5832 Wed Dec 1 14:19:51 1993 Bill Cox (bill@rtl.cygnus.com)
5834 * ch-actions.c (cond_exception): Clarify that it generates
5835 an exception if the given expression is TRUE. Make it so, Number One.
5836 * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
5837 (print_lang_type): Print max queue size.
5838 Add casts to DECL_TASKING_CODE_DECL references. Fixes a
5839 portability problem.
5840 (init_decl_processing): Add filename and linenumber arameters
5841 to tasking and memory-allocate runtime prototypes.
5842 * ch-expr.c (finish_chill_binary_op): Check for division
5843 by a constant zero. Replace build_temporary_variable
5844 calls with decl_temp1 calls, to decouple from ch-loop.c.
5845 (build_chill_succ, build_chill_pred): Sketch code to generate
5846 exceptions. Add error check for numbered set.
5847 (build_generalized-call): Correct call for return_memory.
5848 Standardize whitespace before left parens.
5849 * ch-grant.c: Use new macro for checking for BUFFER mode.
5850 * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
5852 * ch-loop.c (build_temporary_variable): Make static, unavailable
5854 (declare_temps): Make user's variable for him/her, in the
5855 true Z.200 case, where it hasn't previously been declared.
5856 (begin_chill_loop): simplify control flow a bit.
5857 * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
5858 (rccase_label): Delete bogus error checks. Rough draft of
5859 BUFFER-related code.
5860 (assertaction): Remove logical negation - it's now in cond_exception.
5861 (locdec): Sketch of buffer-related code.
5862 (non_array_mode): Add EVENT and BUFFER modes here. Add setting of
5863 set-numbered flag for pred and succ functions.
5864 (optqueuesize): Default to integer_zero_node.
5865 (simple_name_string): Add BUFFERNAME.
5866 * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
5867 (build_chill_start_process, expand_send_signal,
5868 build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
5869 to tasking-related runtime calls. Sketches of BUFFER mode
5871 * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
5872 macro, for portability to non-gcc compilers. Add prototypes
5873 for buffer-related functions.
5874 * ch-typeck.c: Replace build_temporary_variable calls with
5875 decl_temp1 calls, to decouple from ch-loop.c.
5876 (chill_similar): Add tests for BUFFER and EVENT modes.
5878 Wed Dec 1 14:05:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
5880 * ch-actions.c (malloc prototype): Remove; can cause conflicts.
5882 Wed Dec 1 09:49:58 1993 Bill Cox (bill@rtl.cygnus.com)
5884 * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
5886 Tue Nov 30 14:05:23 1993 Bill Cox (bill@rtl.cygnus.com)
5888 * ch-decl.c (init_decl_processing): Add filename, line number
5889 parameters to tasking-related runtime routines.
5890 * ch-grant.c (decode_decl): Check for BUFFER mode differently.
5891 * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
5893 (quasi_locdec): Set/reset quasi_decl flag.
5894 * ch-tasking.c (build_start_process, expand_send_signal,
5895 build_receive_case_start, build_send_buffer): Add filename. linenumber to
5896 (build_buffer_decl, build_buffer-type): New rough-draft functions.
5897 generated runtime routine call.
5898 * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
5899 to mark a synchronization mode. Update the prototypes.
5900 * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
5903 Tue Nov 30 09:51:47 1993 Doug Evans (dje@canuck.cygnus.com)
5905 * cccp.c (main): Add missing chill sanitization.
5907 Sun Nov 28 15:50:10 1993 Bill Cox (bill@rtl.cygnus.com)
5909 * ch-loop.c (initialize_iter_var): Build count expression
5911 (bottom_loop_end_check): Call emit_line_note.
5912 (end_chill_loop): Delete emit_line_note call.
5913 * ch-parse.y (doaction): Move DO keyword
5914 after end_chill_loop call.
5916 Wed Nov 24 08:49:07 1993 Bill Cox (bill@rtl.cygnus.com)
5918 * c-typeck.c (c_expand_start_case): Back out previous
5921 Tue Nov 23 12:33:50 1993 Bill Cox (bill@rtl.cygnus.com)
5923 * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
5924 type as a CASE label.
5926 Tue Nov 23 11:37:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
5928 * ch-decl.c (grok_chill_variantdefs): Use NULL as the name
5929 of variant fields (not __CASE or anything based on it).
5930 * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
5931 Don't check for field name __CASE.
5933 Tue Nov 23 09:37:54 1993 Bill Cox (bill@rtl.cygnus.com)
5935 * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
5936 name for the FIELD_DECL.
5937 * ch-parse.y (optstartset): More error tests.
5938 * ch-tasking.c (make_process_struct): Only report error in pass 1.
5939 (build_start_process): Remove bogus restriction, allowing
5940 an INSTANCE expression as the optset parameter.
5942 Mon Nov 22 17:56:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
5944 * ch-tree.h (expand_function_end): Now is takes parameters, not 2.
5945 * ch-decl.c (finish_chill_function): Add 3rd parameter to
5946 call of expand_function_end.
5948 * ch-expr.c (chill_expand_expr): For set and strings ops,
5949 if target is in a register, use a stack temporary (since we must
5950 take its address). (Similar to Oct 29 change for store_constructor.)
5951 * ch-expr.c (resolve_component_ref): Fix variant field lookups.
5953 Mon Nov 22 14:23:13 1993 Bill Cox (bill@rtl.cygnus.com)
5955 * ch-expr.c (chill_expand_expr): Assure that emit_library_call
5956 parameter 1 and its mode are always in sync.
5957 (build_chill_pred, build_chill_succ): Allow pred/succ of a
5959 * ch-loop.c (chill_unsigned_type): New function, used instead of
5960 unsigned-type, since it understands the chill_integer_type.
5961 (decl_iteration_var): Delete, use build_temporary_variable
5963 (declare_temps): Use lp->iter_type for the temp evaluations.
5964 (initialize_iter_var): More careful calculation, to handle
5965 MININT to MAXINT loops w/o overflow/underflow.
5966 (begin_chill_loop): Use the original start/end expressions
5967 for the loop bypass test.
5969 Mon Nov 22 14:02:06 1993 Per Bothner (bothner@kalessin.cygnus.com)
5971 * ch-typeck.c (build_chill_slice): If the argument is
5972 is constant, use a read-only static variant, as the
5973 existing algorithm assumes addressability.
5974 * ch-typeck.c (chill_compatible): De-reference reference types.
5975 * ch-typeck.c (layout_chill_range_type): Set TREE_UNSIGNED.
5977 Sat Nov 20 20:17:15 1993 Bill Cox (bill@rtl.cygnus.com)
5979 * ch-decl.c (init_decl_processing): Add filename
5980 and linenumber to allocate, free memory calls.
5981 * ch-expr.c (build_allocate_memory_call,
5982 (build_allocate_global_memory_call): Add
5983 filename, linenumber to call.
5984 * ch-loop.c: Complete rewrite for maintainability.
5986 Sat Nov 20 17:30:05 1993 Per Bothner (bothner@kalessin.cygnus.com)
5988 * ch-except.c: Make it so that (by default at least) the
5989 code to push/pop the __exceptionStack is done using library
5990 functions __ch_link_handler and __ch_unlink_handler. This
5991 provides better flexibility (for e.g. multi-threading).
5993 * ch-decl.c (layout_chill_variants): Allow (useless) selectors
5994 even for tag-less variants.
5996 Fri Nov 19 14:32:20 1993 Bill Cox (bill@rtl.cygnus.com)
5998 * ch-decl.c (init_decl_processing): Add memmove builtin
5999 function definition.
6000 * ch-actions.c (chill_expand_array_assignment): Use memmove
6001 call to copy an array or slice across the assignment.
6003 Wed Nov 17 18:23:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
6005 * ch-satisfy.c (satisfy): If a CONTRUCTOR already has a
6006 TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6007 to force expansion (processing of the elements).
6008 * ch-grant.c (decode_constant): If a tuple (CONTRUCTOR) has
6009 a mode, write it out.
6010 * ch-decl.c (init_decl_processing): Add some missing inits.
6012 Wed Nov 17 17:13:20 1993 Bill Cox (bill@rtl.cygnus.com)
6014 * ch-loop.c: Fix unterminated strings in design comments.
6015 Add enumeration to the iterator structure for type of loop.
6018 Wed Nov 17 16:40:05 1993 Bill Cox (bill@rtl.cygnus.com)
6020 * ch-decl.c (init_decl_processing): Add long parameters to lots
6021 of powerset runtime routines.
6022 * ch-expr.c (chill_expand_expr): Change parameters to powerset
6023 runtimes so bitlengths are long unsigned ints.
6024 * ch-inout.c (build_chill_writetext): Add filename and linenumber
6025 as runtime parameters, for better error messages.
6026 * ch-loop.c: general pre-rewrite cleanup.
6027 * expr.c (store_constructor): Rewrite set interface to
6028 setpowersetbits for long bitnumbers, rather than shorts.
6030 Tue Nov 16 13:41:12 1993 Bill Cox (bill@rtl.cygnus.com)
6032 * ch-expr.c (build_chill_function_call): Stop generating empty
6033 copyback statements, which lead to a seg fault.
6035 Tue Nov 16 12:20:17 1993 Per Bothner (bothner@cygnus.com)
6037 * ch-satisfy.c (satisfy): If satisfying a type whose
6038 TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6039 * ch-actions.c (build_exception_variant): Remove some crud.
6040 * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6041 Remove unused first argument.
6042 * ch-decl.c (start_chill_function): Call build_exception_variant
6043 in pass 1, not in pass 2.
6045 Tue Nov 16 11:10:03 1993 Bill Cox (bill@rtl.cygnus.com)
6047 * ch-decl.c (shadow_record_fields): Call new function
6048 build_chill_arrow_expr, which returns a ptr-to-a-type.
6049 * ch-expr.c (build_chill_arrow_expr): New function, works like
6050 build_chill_addr_expr used to do, returning a typed ptr.
6051 (build_chill_addr_expr): Now returns unbound ref - analogous
6053 * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6054 (operand6): Call build_chill_arrow_expr. Reindent a bit.
6055 * ch-tree.h (build_chill_arrow_expr): New prototype.
6057 Mon Nov 15 16:38:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
6059 * stor-layout.c (layout_type): If a SET_TYPE needs more than
6060 INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6062 * ch-decl.c (start_chill_function): Set DECL_CONTEXT of params.
6064 Mon Nov 15 14:49:17 1993 Bill Cox (bill@rtl.cygnus.com)
6066 * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6067 build_function_call, etc.) to tasking_init.
6068 * ch-gperf, ch-hash.h: Add ASM keyword.
6069 * ch-parse.y: Add ASM statement rules.
6070 (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6071 * ch-tasking.c: Move tasking stuff here.
6073 Sun Nov 14 15:50:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6075 * ch-parse.y (mode2): Split into array_mode and non_array_mode
6076 to resolve layout ambiguity.
6077 * ch-parse.y (checked_name): Remove. Use name_string instead.
6078 * ch-parse.y (variantdef): Don't crash if no tag fields.
6079 * ch-typeck.c (build_chill_array_type): If varying_p,
6080 actually do build_varying_struct here (rather than in ch-parse.y).
6082 Fri Nov 12 15:37:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
6084 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6085 static names. (Let make_decl_rtl generate a unique name.)
6087 Sun Nov 14 13:15:26 1993 Bill Cox (bill@rtl.cygnus.com)
6089 * ch-expr.c (build_chill_lower, cuild_chill_upper):
6090 Rewrite for modes, values, etc.
6091 * ch-inout.c (build_chill_writetext): Add ability
6092 to write out characters.
6093 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6094 static names. (Let make_decl_rtl generate a unique name.)
6095 * varasm.c (unpack_set_constructor): Subtract
6096 lower domain value from a bit's index value,
6097 to match the runtime and allow powersets
6098 with negative lower bounds.
6100 Fri Nov 12 14:00:48 1993 Bill Cox (bill@rtl.cygnus.com)
6102 * ch-inout.c (build_chill_writetext): Save reserved words in
6103 uppercase if -fspecial_UC was specified.
6105 Fri Nov 12 13:27:12 1993 Per Bothner (bothner@rtl.cygnus.com)
6107 * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6108 string concatenation by treating varying strings as slices.
6109 (varying_to_slice): New function.
6110 * ch-typeck.c (build_chill_slice): Changed to support the above.
6112 Fri Nov 12 12:07:28 1993 Bill Cox (bill@rtl.cygnus.com)
6114 * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6115 * ch-expr.c (build_generalized_call): Start module before a
6116 writetext action, so its variables are inside the module-level
6118 * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6119 for enumeration loop on a varying array.
6121 Thu Nov 11 07:49:53 1993 Bill Cox (bill@rtl.cygnus.com)
6123 * cccp.c (main): Disable trigraphs for CHILL.
6124 * ch-decl.c (grok_chill_fixedfields): Add special_UC
6125 to conditional to determine case of reserved words.
6126 Make PACK/UNPACK warning more specific.
6127 * ch-expr.c (build_generalized_call): Enable recognition
6128 of WRITETEXT call here.
6129 * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6130 word. It's only predefined.
6131 * ch-inout.c: Add special_UC to conditionals
6132 to determine case of reserved words.
6133 (build_chill_writetext): Change for call from
6134 build_generalized_call. Add code to format
6136 * ch-lang.c (lang_decode_option): Add special_UC and
6137 special_LC flags and logic to interlock with
6139 * ch-lex.l: Add special_UC to conditionals
6140 to determine case of reserved words.
6141 * ch-parse.y: Delete WRITETEXT as reserved word.
6142 * ch-tasking.c: Add special_UC to conditionals
6143 to determine case of reserved words.
6144 (build_instance_type): Make components of INSTANCE
6145 unsigned 16-bit integers.
6146 * ch-tree.h (build_chill_writetext): Fix prototype.
6147 * ch-typeck.c (build_chill_array_type): Make PACK
6148 /UNPACK warning more specific.
6149 * toplev.c (lang_options): Add -fspecial_LC
6150 and -fspecial_UC flags.
6152 Wed Nov 10 02:29:53 1993 Bill Cox (bill@rtl.cygnus.com)
6154 * Makefile.in: Move ch-hash.h from ch-lex.o
6155 rule to ch-lex.c rule, so flex is rerun.
6156 * ch-actions.c (chill_expand_assignment): Error if
6157 user tries to assign to a LHS function.
6158 * ch-decl.c (grok_chill_fixedfields): Use of PACK
6159 /UNPACK is only a warning.
6160 (init_decl_processing): Add ADDR as a builtin function.
6161 * ch-expr.c (build_generalized_call): Add ADDR
6162 as a builtin function.
6163 (build_chill_addr_expr): Sanity check parameters.
6164 * ch-gperf: Remove ADDR as a reserved word,
6166 * ch-hash.h: gperf'd version of the above.
6167 * ch-inout.c (chill_stdio_p): Recognize upper/lower
6169 * ch-lex.l: Make ignore-case work. Downcase
6170 token before checking for reserved words.
6171 * ch-parse.y: Delete ADDR as a reserved word.
6172 (mode2, optlayout): Allow PACK/UNPACK specifier.
6173 (call): Use build_generalized_call for
6174 primval LPRN modename RPRN.
6175 (primval): Delete ADDR reference. It's now only
6176 predefined, not reserved.
6177 * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6178 * ch-typeck.c (build_chill_array_type): Just
6179 a warning for PACK/UNPACK usage.
6180 * toplev.c: Add -fignore-case and -fno-ignore-case.
6182 Tue Nov 9 15:07:02 1993 Bill Cox (bill@rtl.cygnus.com)
6184 * ch-actions.c: Reindent for readability.
6185 * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6186 a conversion to INSTANCE.
6187 * ch-decl.c: Change special_UC to ignore_case everywhere.
6188 (init_decl_processing): Add builtin_function calls for lots of
6189 predefined functions.
6190 * ch-expr.c: Change builtin function handlers back to accepting
6191 args, not a treelist.
6192 (route_to_predefined_function): Delete it and its call.
6193 (build_generalized_call): Add lots of builtin functions.
6194 * ch-gperf (backwards, duration, inttime, null): Delete them.
6195 * ch-hash.h: New version.
6196 * ch-inout.c: Change special_UC to ignore_case everywhere.
6197 * ch-lang.c: Delete special_UC flag.
6198 * ch-lex.l: Change special_UC to ignore_case everywhere.
6199 * ch-loop.c (high_domain_value, low_domain_value): Change
6200 interfaces to build_chill_upper and built_chill_lower.
6201 * ch-parse.y: Delete lots of stuff which should only be predefined.
6202 * ch-tasking.c: Change special_UC to ignore_case everywhere.
6203 Change builtin function handlers back to accepting args,
6205 * ch-tree.h: Add lots of builtin functions to the enumerator.
6207 Mon Nov 8 18:08:27 1993 Bill Cox (bill@rtl.cygnus.com)
6209 * ch-tasking.c (tasking_init): Disable last-minute change for now.
6211 Mon Nov 8 17:30:22 1993 Bill Cox (bill@rtl.cygnus.com)
6213 * Makefile.in: New commands to build ch-hash.h. Add ch-lex.h to
6214 dependencies where it's used.
6215 * ch-decl.c (init_decl_processing): Build predefined constants
6216 for TRUE, FALSE and NULL. Add declaration for abs builtin
6218 (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6219 stuff for builtin constant like TRUE.
6220 * ch-expr.c (route_to_predefined_function): Add a bunch of
6221 predefined functions to the list.
6222 * ch-gperf: Define the list of reserved words, minus the predefined
6223 words, using the special_UC flag. Remove NULL, TRUE, FALSE -
6224 these are only predefined, not reserved.
6225 * ch-hash.h: Check this into repository, even though it's derived
6226 from ch-gperf, for those users who don't have gperf.
6227 * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6228 to refer to the IO types. Standardize the indentation.
6229 * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6230 * ch-lex.l: Total rewrite of reserved-word recognition, using
6231 the ch-hash.h lookup routines.
6232 * ch-parse.y: Delete a bunch of unused rules for predefined
6233 procedures and their parameters.
6234 * ch-tasking.c (tasking_init): Build predefined functions
6235 for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE. Not
6236 complete yet. Change interface to builtin handlers to accept
6237 just an expression list.
6239 Wed Nov 3 18:07:08 1993 Bill Cox (bill@rtl.cygnus.com)
6241 * Makefile.in: Debug, activate rule to make CHILL hash table.
6242 * ch-actions.c: Compress parameter type lists per standard.
6243 * ch-decl.c: Correct spelling in comment, compress parameter lists.
6244 (init_decl_processing): Check special_UC flag to build builtin
6245 function declarations.
6246 * ch-expr.c (route_to_predefined_function): Check for upper OR
6247 lowercase function names.
6248 * ch-gperf: Update the list of keywords.
6249 * ch-inout.c (build_chill_io_list): Check for special_UC flag
6250 to build I/O list type. Compress parameter lists.
6251 (chill_stdio_p): Check for special_UC flag in recognizing
6253 * ch-lang.c (lang_decode_option): Add command-line options
6254 for upper-case keywords and user labels.
6255 * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6256 if special_UC flag is set.
6257 (downcase, getlc, check_newline): Don't do this if ignore_case
6259 * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6260 multiple selector expressions.
6262 Sat Oct 30 01:06:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6264 * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6265 STRUCTs (and INSTANCEs) for equality.
6266 * ch-expr.c (invalid_operand): New functions, combines most of
6267 the functionality of invalid_left_operand and invalid_right_operand.
6268 * ch-convert.c (digest_constructor): Set TREE_CONSTANT if it is.
6270 Sat Oct 30 11:12:47 1993 Bill Cox (bill@rtl.cygnus.com)
6272 * Makefile.in (chill): Add back in the commands to build chill
6273 (the script) from chill.in.
6275 Fri Oct 29 16:25:38 1993 Per Bothner (bothner@kalessin.cygnus.com)
6277 * expr.c (store_constructor): If SET_TYPE target is in a register,
6278 use a stack temporary (since we must take its address).
6280 * ch-expr.c (build_allocate_global_memory_call,
6281 build_allocate_memory_call): Cast argument pointer to PTR,
6282 if needed (using location cast). Also, some other cleanups.
6283 * ch-parse.y (bracketed_action): Re-arrange things so that
6284 a handler following BEGIN END comes before the final poplevel.
6285 * ch-typeck.c (build_chill_cast): Just return if already correct type.
6287 Re-do DO WITH so that build_component_ref for is done lazily
6288 (at each reference) instead of eagerly (at the beginning
6289 of DO WITH). This is needed for tagged variants,
6290 * ch-tree.def (WITH_DECL): New declaration tree code.
6291 * ch-decl.c (lookup_name): Recognize WITH_DECLs.
6292 * ch-decl.c (handle_one_level): Variant parts are currently
6293 indicacted with '__CASE'. Recognize that.
6294 Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
6296 Thu Oct 28 22:17:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6298 * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
6299 Remove some old crud.
6300 * ch-typeck.c (build_chill_cast): Another attempt at a
6301 compromise between robustness and generality for casts.
6302 Location conversions are now less likely to confuse things.
6303 * ch-parse.y (optactions): Allow further optactions following
6304 an initial semicolon.
6305 * ch-parse.y: Add error messages on EVENT and BUFFER.
6307 * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
6308 Undo some of the Oct 27 changes.
6310 Convert (some) builtin functions previously using reserved
6311 names to be just predefined.
6312 * tree.h (enum builtin_in_function): Added END_BUILTINS at end.
6313 * ch-decl.c: Add predefines for allocate_memory,
6314 allocate_global_memory, return_memory, writetext.
6315 * ch-expr.c (check_arglist_length): New function.
6316 * ch-expr.c (build_generalized_call): If "function" is
6317 a builtin, build the appropriate tree.
6318 * ch-parse.y, ch-lex.l: No longer recognize many pre-defined
6319 functions at the lexer/parser level.
6320 * ch-tree.h (enum chill_built_in_function): New type.
6322 Thu Oct 28 16:43:36 1993 Bill Cox (bill@rtl.cygnus.com)
6324 * ch-expr.c (allocate_memory, allocate_global_memory):
6325 Check for invalid parameters, issue errors.
6326 * expr.c (store_constructor): Calculate bitlength, startrtx
6327 and endrtx of powerset correctly. Define targetx, use it
6330 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6332 * ch-expr.c (build_max_min): Error for passing empty tuple
6335 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6337 * ch-decl.c (init_decl_processing): Make allocate
6338 builtins have a pointer-to-pointer-to-void
6339 first parameter, rather than a reference parameter.
6340 * ch-expr.c (build_allocate_memory_call,
6341 build_allocate_global_memory_call): Do automatic
6342 ADDR () on the first parameter, for backward
6344 * ch-grant.c (grant_one_decl): Don't grant if
6345 DECL_SOURCE_LINE is zero.
6346 (start_chill_module_code): Set DECL_SOURCE_LINE
6347 to zero so that module-level function isn't granted.
6348 * ch-parse.y (handleraction): Add return_memory action.
6349 * ch-typeck.c (chill_similar): Allow a void_type
6350 to be similar to anything. This makes allocate_memory
6351 and return_memory pointer parameters slide through.
6353 Tue Oct 26 00:12:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6355 * ch-typeck.c (build_chill_array_ref): Check for and complain
6356 if there are more index expressions than the array rank.
6358 * ch-actions.c (chill_expand_assignment): Emit appropriate
6359 error message if RHS of multiple assignment is tuple/case/if.
6360 * ch-tree.def (CONCAT_EXPR): Change TREE_CODE_CLASS from
6361 'e' to the more specific '2'. (Fixes a satisfy bug.)
6363 Thu Oct 21 17:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
6365 * ch-parse.y: Revert experimental error-generating change
6366 that was checked in by mistake.
6368 Thu Oct 21 12:15:30 1993 Bill Cox (bill@rtl.cygnus.com)
6370 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6371 code variables associated with a process or signal.
6372 (Apparently I forgot to actually check these in last time.)
6373 * ch-tasking.c: Replace last calls to get_tasking_code with
6374 working references to DECL_TASKING_CODE_DECL.
6376 Thu Oct 21 10:27:42 1993 Bill Cox (bill@rtl.cygnus.com)
6378 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6379 code variables associated with a process or signal.
6380 * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
6381 tasking_code_decl pointer, rather than trying to look it up
6382 in the hash table or linked scope list.
6384 Wed Oct 20 09:52:44 1993 Bill Cox (bill@rtl.cygnus.com)
6386 * ch-actions.c (lookup_and_handle_exit): Only output error message
6388 * ch-convert.c (convert): Correct conversion of VARYING array to/
6389 from non-VARYING one.
6390 * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
6392 (decl_tasking_code_var): Delete it. Its calls are replaced woth
6393 generate_tasking_code_variable calls, plus a little glue.
6394 (push_extern_process): generate tasking_code_variable as local
6395 static variable, point the process' function_decl at it for later
6396 reference by build_start_process.
6397 (print_mode): Use CHILL upper-case convention to print modes.
6398 * ch-lex.l: Must initialize tasking-related trees to NULL at start
6399 of each pass, or we lose the fact that the user did or did not
6400 specify a value for each of them.
6401 * ch-parse.y (check_end_label, action, exceptlist): Only output
6402 error message in pass 1.
6403 (sendaction): Add comments.
6404 (sigdef): Comment out special handling for external signals.
6405 Chain tasking_variable_decl onto signal structure decl, for
6406 easier non-symbol-table access later.
6407 * ch-tasking.c (generate_tasking_code_variable): Do work in both
6408 passes, using do_decl so we can pass the pass 2 value of the
6409 process_type or signal_code to it. Only update the process_type
6410 if the incoming pointer isn't null and pass == 2. Use a new
6411 parameter to know whether to include an init expression.
6412 (build_process_header): Attach tasking-code_variable to process
6413 function_decl for easy access later, not through the hash table.
6414 (build_start_process): Get tasking_code_variable out of the process'
6416 (build_signal_struct_type): Return the type decl, to be accessed by ...
6417 (build_signal_descriptor): .. this function.
6418 (build_receive_case_label): Get data buffer pointer not from hash
6419 table, but from Tiemann's current rc_state structure instead.
6420 * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
6421 macro for tasking_code_variable storage.
6423 Tue Oct 19 17:39:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
6425 * ch-lex.l (equal_number): If the "number" is a CONST_DECL,
6426 return its DECL_INITIAL.
6427 * ch-satisfy.c (safe_satisfy_decl): Change logic for rtl
6428 generation for decls to not use DECL_ASSEMBLER_NAME.
6429 * ch-decl.c: Set DECL_ASSEMBLER_NAME to DECL_NAME.
6430 This matches C, and allows dbxout to emit proper user-level names.
6431 (It would be cleaner to fix dbxout to use DECL_NAME ...)
6432 * ch-decl.c (outer_decls): New global list of the decls granted
6433 into the outer scope.
6434 (pop_module): Change code that grants into outer scope accordingly.
6435 (lookup_name_for_seizing): Similarly update.
6436 (push_scope_decls): Handle SEIZE ALL from the global scope
6437 by searching outer_decls.
6438 * ch-grant.c (grant_array_type): Fix thinko.
6439 * ch-inout.c (build_chill_writetext): Remove excessive TREE_TYPE.
6441 Mon Oct 18 15:57:00 1993 Per Bothner (bothner@kalessin.cygnus.com)
6443 * varasm.c (output_constructor): Add support for non-zero
6445 * c-typeck.c (output_init_element): Revert recent changes.
6446 * varasm.c (emit_set_data): Fix emitting set constant data.
6447 * ch-lex.l (yywrap): Reset line number to 0, not 1.
6448 It sets incremented to 1 by check_newline.
6449 * ch-tree.h: Restore old version.
6450 * ch-expr.c (finish_chill_binary_op): Convert TRUNC_DIV_EXPR
6451 to RDIV_EXPR if an operand is floating. (This functionality
6452 got dropped when hacking finish_chill_binary_op).
6454 * ch-actions.c (build_chill_case_expr): Set type to NULL_TREE.
6455 not error_mark_node.
6456 * ch-actions.c (chill_expand_assignment): Allow such borderline
6457 constructs as: LHS OR:= [X].
6458 * ch-convert.c (convert): Hande CASE_EXPR (and COND_EXPR)
6459 with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
6460 * ch-decl.c (do_decl): Remove CONSTRUCTOR kludge.
6461 * ch-typeck.c (chill_compatible): Allow expr to have NULL mode
6462 if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
6464 Mon Oct 18 13:20:53 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6466 * c-typeck.c (output_init_element): Limit previous changes to
6467 ARRAY_TYPE and SET_TYPE initializers.
6469 Sun Oct 17 23:15:00 1993 Bill Cox (bill@cygnus.com)
6471 * c-typeck.c (output_init_element): Handle NULL domain case.
6472 * ch-decl.c (do_decl): Revert bogus initializer type change.
6473 * ch-grant.c (chill_finish_module_code): Put module's decl onto
6474 the module_init_list, for chill_finish_compile's possible use.
6475 (chill_finish_compile): Rename variables for clarity, add
6476 commented-out code as example for assignment of module address to its
6479 Sun Oct 17 15:16:54 1993 Bill Cox (bill@cygnus.com)
6481 * ch-convert.c: Move semicolon to separate line - easier to see.
6482 * ch-decl.c (do_decl): Handle untyped_expr initializers by
6483 simply using the variable's declared type - no compatibility
6484 check can be made if the expression has no type.
6485 * ch-expr.c (expand_packed_set): Fix endless loop - increment
6487 (fold_set_expr): Fix two other endless loops by passing
6488 correct parameters to unpack_set_constructor.
6489 * varasm.c: Standardize 'for' loop.
6491 Sun Oct 17 12:16:21 1993 Bill Cox (bill@cygnus.com)
6493 * c-typeck.c (output_init_element): Handle initializer for
6494 array with non-zero lower index bound.
6496 Sat Oct 16 16:48:48 1993 Per Bothner (bothner@cygnus.com)
6498 * ch-expr.c (finish_chill_binary_op): Use TREE_SET_CODE
6499 to change TREE_CODE.
6501 Sat Oct 16 08:07:17 1993 Bill Cox (bill@rtl.cygnus.com)
6503 * ch-expr.c (finish_chill_binary_op): Disable
6504 rough-draft code, not intended for release.
6506 Fri Oct 15 21:44:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6508 * expr.c (store_constructor): use PROTO for pack_set_constructor
6510 Fri Oct 15 10:30:09 1993 Bill Cox (bill@cygnus.com)
6512 * ch-expr.c (finish_chill_binary_op): Activate some
6514 * expr.c (store_constructor): Subtract arrays minimum element.
6515 Makes orientexpress work.
6517 Fri Oct 15 09:26:24 1993 Bill Cox (bill@cygnus.com)
6519 * ch-convert.c, ch-expr.c: Add externs so it'll compile.
6520 * ch-tree.def: Add BASED_DECL definition.
6522 Thu Oct 14 13:20:02 1993 Bill Cox (bill@cygnus.com)
6524 * ch-actions.c (build_chill_cause_exception): Pass the
6525 *address* of the filename string to the runtime routine,
6526 rather than passing the string by value.
6528 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6530 * expr.c (store_constructor): Use a (usually) more efficient
6531 algorithm for setting SET types.
6533 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6535 Changes to better support 1984 version of Chill, which doesn't
6536 really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
6537 * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings): New flag.
6538 * ch-typeck.c (chill_similar): Support flag_old_strings.
6539 * ch-convert.c (convert_to_boolean): Generalize code to
6540 convert singleton bitstring to Boolean.
6541 * ch-convert.c (convert): Use string_one_type_node.
6542 * ch-convert.c (convert): Add code to convert Boolean to BOOLS(1).
6543 * ch-convert.c (convert): In code that converts fixed string to
6544 varying use new 'e' variable, rather than original 'expr' variable.
6545 Allows cascaded conversions: CHAR -> CHARS(1) -> varying CHARS.
6546 * ch-decl.c (string_type_node, const_string_type_node,
6547 int_array_type_node), ch-tree.h: Removed.
6548 * ch-decl.c (string_one_type_node, bitstring_one_type_node,
6549 bit_zero_node, bit_one_node), ch-tree.h: New globals tree nodes.
6550 * ch-decl.c (init_decl_precessing): Remove some junk.
6551 * ch-expr.c (build_generalized_call): If flag_old_strings,
6552 treat string index as string slice. Also, better error checking.
6554 Added support for (some kinds of) BASED declarations.
6555 * ch-tree.def (BASED_DECL): New tree code.
6556 * ch-decl.c (lookup_name): Implement BASED_DECL using
6557 build_chill_indirect_ref.
6558 * ch-decl.c (do_based_decls): Make a BASED_DECL.
6559 * ch-parse.y: Call do_based_decls for DCL ... BASED(...).
6560 * ch-satisfy.c (safe_satisfy_decl): Handle BASED_DECL.
6562 Improve handling of set binary operations.
6563 * ch-expr.c (expand_packed_set): New function.
6564 (fold_set_expr): Re-write. Simpler, more general algorithm.
6565 (build_set_expr): Only used for comparsions now.
6566 (finish_chill_binary_op): Handle set ops better (more directly).
6567 (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
6568 fold_set_ne, fold_set_xor): Removed. No longer needed.
6570 * ch-decl.c: Remove calls to allocate_lang_decl.
6571 * ch-tree.c (build_string_type): If const length, layout immediately.
6573 Mon Oct 11 17:23:02 1993 Bill Cox (bill@cygnus.com)
6575 * ch-decl.c (init_decl_processing): Define __whoami and
6576 __wait_buffer functions.
6577 * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
6578 * ch-parse.y (sigdef): Add new add_taskstuff_to_list
6580 * ch-tasking.c (get_tasking_code): Search tasking_list for
6581 tasking code name match. Can't use lookup_name.
6582 (get_task_name): New function.
6583 (generate_tasking_code_variable): Return if pass 1.
6584 Always update *tasking_code_ptr.
6585 (build_process_header): Add new add_taskstuff_to_list
6587 (tasking_setup): New code to unpack the tasking
6588 list entries no built by ..
6589 (add_taskstuff_to_list): Accept new parameter,
6591 * ch-tree.h (add_taskstuff_to_list): Add new
6594 Mon Oct 11 14:54:50 1993 Per Bothner (bothner@kalessin.cygnus.com)
6596 * Makefile.in (cc1chill): Also link in $(BC_OBJS).
6598 Mon Oct 11 06:28:39 1993 Doug Evans (dje@canuck.cygnus.com)
6600 * ch-decl.c (flag_allow_single_precision): New global,
6601 from ss-931002 merge.
6603 Sun Oct 10 09:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
6605 * Makefile.in: Remove references to chill.in and
6606 ch-hash.h. Remove bogus cc1chil : chill
6609 Fri Oct 8 16:00:04 1993 Bill Cox (bill@cygnus.com)
6611 * ch-actions.c (adjust_parm_or_field): Add parameter to
6613 *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
6615 (decl_temp1): Add parameter to signal 'make this external'.
6616 (shadow_record_fields): Add parameter to decl_temp1 call.
6617 * ch-expr.c (chill_expand_case_expr): Add parameter
6619 * ch-grant.c (chill_finish_compile): Add code to spoof
6620 get_file_function_name, so we don't get __tmp_s1_code,
6621 for example, as the module-level code's name.
6622 * ch-loop.c (build_temporary_variable, begin_for_range,
6623 init_loop_counter): Add parameter to decl_temp1 call.
6624 * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
6625 for easier maintenance.
6626 (sendaction): Rewrite to receive SIGNALNAME token correctly
6627 from ch-lex.l (name_type_signal).
6628 (signaldef): Don't clear quasi_signal here.
6629 * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
6630 to make the variable public (visible to linker).
6631 (build_start_process): Add parameter to decl_temp1 call.
6632 (tasking_setup): Comment out band-aid hack which calls
6633 generate_tasking_code_variable. Shouldn't be necessary.
6634 Use null_pointer_node rather than integer_zero_node in
6635 entry_point. More rewrites.
6636 (build_signal_descriptor): Name the non-signal in the error msg.
6637 Rewrite the building of the signal envelope - avoid seg fault.
6638 Add parameter to decl_temp1 call.
6639 (expand_send_signal, build_receive_case_start,
6640 build_receive_case_end, build_buffer_descriptor): Add parameter
6642 * ch-tree.h: Add parameter to decl_temp1 proto.
6643 * chill: Add new CHILL frontend directory
6645 Tue Oct 5 13:51:27 1993 Bill Cox (bill@cygnus.com)
6647 * ch-grant.c: Standardize indentation.
6648 * ch-parse.y (end_function): Unconditionally poplevel for processes.
6649 * ch-tasking.c (build_process_header): Unconditionally pushlevel.
6650 (generate_tasking_code_variable): Stop using pass number to
6651 force a one-time action.
6652 * ch-tree.h (build_chill_slice): Delete proto since function went static.
6654 Mon Oct 4 13:52:36 1993 Bill Cox (bill@cygnus.com)
6656 * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
6657 called here in both passes. Set DECL_ASSEMBLER_NAME.
6658 (lookup_name_for_seizing): Move NULL test forward to prevent
6660 * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
6661 to prevent a seg fault in telebras/dynsto.ch. Make indentation
6663 * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
6664 (build_send_signal): Rename to expand_send_signal.
6665 (generate_tasking_code_variable): Return the var's decl.
6666 (build_signal_struct_type): Move generate_tasking_code_variable
6667 and add_taskstuff_to_list calls to ..
6668 * ch-parse.y (sigdef): .. here. And make indentation changes.
6669 * ch-tree.h: Rename functions, add return values.
6671 Mon Oct 4 15:43:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
6673 * ch-convert.c (digest_constructor): Convert element to element_type.
6674 * ch-parse.y (end_function): Use DECL_ARGUMENTS to check
6675 for parameterless process.
6677 Fri Oct 1 13:57:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
6679 * ch-typeck.c (chill_location): New function.
6680 Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
6681 * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c: Use
6682 chill_location instead of lvalue_p.
6685 Fri Oct 1 11:28:42 1993 Bill Cox (bill@cygnus.com)
6687 * ch-convert.c (convert): Back out Michael's changes, unintentionally
6689 * ch-lex.l (handle_use_seizefile_directive): No longer downcase
6691 * ch-parse.y (sendaction): Fix a couple of seg faults. Comment out
6692 SEND BUFFER processing for now.
6693 * ch-tree.h: Fix comment.
6695 Thu Sep 30 17:00:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
6697 * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P): New macros,
6698 for recognizing singleton strings.
6699 * ch-tree.h (MARK_AS_STRING_TYPE): New macro.
6700 * ch-tree.c (build_string_type, build_bitstring_type),
6701 ch-convert.c (convert): Use it.
6702 * ch-typeck.c (build_chill_slice): Take length rather than upper
6703 bound. This makes it easier to recognize that A(X UP LENGTH)
6704 really has fixed length. Also, if the argument is string,
6705 mark the slice as a string too. Also, handle varying strings.
6707 * ch-typeck.c (conflate_singleton_strings): New global.
6708 * ch-typeck.c (chill_similar): If conflate_singleton_strings is
6709 set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
6710 to CHAR/BOOL, as required by the 1984 version of Z.200.
6711 * ch-convert.c (convert_to_char): Convert CHARS(1) to CHAR.
6712 * ch-convert.c ( build_array_type_for_scalar): If input is string,
6714 * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h: Removed.
6715 * ch-convert.c (convert): Convert CHAR to CHARS(1).
6717 This fixes 'X // := Y' and is also a general simplification.
6718 * ch-actions.c (chill_expand_assignment): Convert 'LHS OP := RHS'
6719 to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
6720 Also, call save_expr on RHS if a multiple assignment.
6721 * ch-parse.y (assignaction): Therefore, no longer need to call
6722 stabilize_reference on RHS.
6723 * ch-typeck.c (build_chill_modify_expr), ch-tree.h: Remove
6724 modifycode parameter. Make it the caller's responsibility to
6725 handle <assigning operator>.
6726 * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
6727 ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
6729 Wed Sep 29 18:02:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
6731 * ch-lang.c (string_index_type_dummy), ch-tree.h: New variable.
6732 * ch-decl.c (integer_minus_one_node), ch-tree.h: New variable.
6734 * ch-parse.y (arrayindex: modename): Remove useless code.
6735 * ch-satisfy.c (satisfy): Don't gag on string_index_type_dummy,
6736 * ch-tree.c (build_string_type): Pass string_index_type_dummy as
6737 the parent type of the index range.
6738 * ch-typeck.c (layout_chill_range_type): Recognize and handle
6739 string_index_type_dummy - specifically allow an empty range.
6741 Wed Sep 29 13:36:23 1993 1993 Bill Cox (bill@cygnus.com)
6743 * ch-convert.c (convert_to_reference): Check for loc-identity
6744 mismatches correctly (and remove one of those chill_compatible
6746 * ch-decl.c (decl_tasking_code_var): New function, called from
6747 push_extern_process and push_extern_signal.
6748 * ch-parse.y (end_function): Delete parameter. Check current_function_decl
6749 whether it's actually a process, and whether it has parameters.
6750 Make Michael's change simplifying the pass 2 test, preventing a seg
6752 (procedure, process): Change calls to end_function, remove
6753 code saving value from build_process_header. Delete redundant chill_
6754 phrases from some function calls.
6755 * ch-tasking.c: Remove some redundant _chill phrases from function
6757 * ch-tree.h: Remove some redundant _chill phrases from function
6758 names. Add the CH_VARYING_ARRAY_TYPE macro, call it from
6759 all relevant places.
6760 * ch-typeck.c: Use the new macro. Cast TREE_CODEs to chill_tree_code.
6762 Wed Sep 29 13:07:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
6764 * ch-convert.c (convert_to_reference): Remove redundancies.
6765 * ch-convert.c (convert): Handle convert_to_reference
6766 with a recursive convert call.
6767 * ch-decl.c (do_decl): Add missing compatibility-checking
6768 of initializer (don't depend on convert).
6770 Tue Sep 28 00:02:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
6772 * ch-tree.h (CH_LOCATION_P): New macro.
6773 * ch-typeck.c (layout_chill_range_type): Fix call to
6774 type_for_size, when figuring out a defaulted parent type.
6775 * ch-expr.c (build_chill_lower, build_chill_sizeof): Check
6776 for TREE_CODE_CLASS != 't' rather than == 'd'.
6777 * ch-expr.c (build_chill_function_call): Use CH_LOCATION_P
6778 to check for location, rather than TYPE_CODE_CLASS == 'd'.
6780 * ch-tree.c (build_string_type): Make 2-pass safe. Also,
6781 change parameter to be length, not index type.
6782 * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
6783 (build_chill_string): Modify callers of build_string_type accordingly.
6784 * ch-lex.l (check_newline): Don't look for # directive inside a
6786 * ch-grant.c (grant_array_type): Make more robust for char-
6787 and bit-strings (allow non-constant sizes). Change parameters
6788 and return types. (raw_decode_mode): Use grant_array_type
6789 for bitstrings. (otherwise): Fix grant_array_type callers.
6791 Mon Sep 27 16:57:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
6793 Remove changes of Sep 15.
6794 * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
6795 * ch-typeck.c (chill_similar): Don't allow a singleton
6796 powerset to be similar to its domain.
6797 * ch-convert.c (convert_to_boolean): Don't convert a singleton
6798 SET_TYPE constructor to a Boolean.
6800 * ch-actions.c (chill_expand_assignment): Handle IN_EXPR on
6801 LHS of assignment, which is what we're current (temporarily?) using.
6803 Mon Sep 27 06:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
6805 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6806 ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
6807 ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
6808 -Wall cleanup. Add prototypes where missing.
6809 Delete unused variables. Cast uses of tree_codes
6810 to chill_tree_code, which they are.
6812 Sun Sep 26 13:09:57 1993 Bill Cox (bill@rtl.cygnus.com)
6814 * ch-decl.c (do_decl): Save initializer in pass zero
6816 * ch-lex.l: Fix comments, indentation.
6817 * ch-parse.y: Standardize error messages to use
6818 uppercase for CHILL keywords rather than quoting them.
6819 Suggestion from docs department.
6820 * ch-tasking.c: Pervasive changes to get processes to
6822 * ch-tree.h: Delete prototypes for functions whic
6823 I made static inside ch-tasking.c.
6825 Sun Sep 26 02:40:02 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6827 * ch-lex.l (yywrap): Call `check_newline' in case the file
6828 started with a line directive.
6830 Sat Sep 25 13:54:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6832 * ch-decl.c: Expand pre-amble comment.
6833 * ch-decl.c (struct scope, push_module): Use new field
6834 tail_chain_module to build child-module list in order.
6835 (Just to make compiler debugging a little less confusing.)
6837 * ch-decl.c (struct scope): New field weak_decls.
6838 * ch-decl.c (find_implied_types): New interface. Now pre-pend
6839 new enum types to a given input list. This makes it easier to
6840 avoid duplicates, which should at least be more efficient.
6841 Also, handle FUNCTION_DECL.
6842 * ch-decl.c (bind_saved_names): Removed. Distribute its
6843 functionality over new functions (push_scope_decls, pop_scope_decls,
6844 build_implied_names, bind_sub_modules). The goal (which seems to
6845 have been more-or-less attained) was to fix weak name handling.
6846 * ch-decl.c (poplevel): Use new function pop_scope_decls.
6848 * ch-tasking.c (build_signal_struct, build_tasking_message_type):
6849 Use build_decl directly, rather than grok_chill_fixedfields
6850 (which depends on ignore_exprs and has more overhead).
6851 * ch-tasking.c (build_signal_struct): Construct the type
6853 * ch-typeck.c (build_chill_slice): Use my_build_array_ref rather
6854 than build_array_ref (which does C-specific "optimizations").
6855 (Hence move my_build_array_ref up earlier in the file.)
6857 Sat Sep 25 03:47:28 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6859 * ch-tasking.c: Declare static variable `void_ftype_void'.
6860 (chill_tasking_init): Initialize `void_ftype_void' here.
6861 (build_tasking_struct): Use, don't declare `void_ftype_void'.
6862 (generate_tasking_code_variable): Call `do_decl', not
6863 `decl_temp1' to declare TASKING_CODE_NAME.
6864 (tasking_setup): Drop into 1-pass mode so that all
6865 tasking-related declarations are installed in the global
6866 scope. Use correct CHILL types for initializers (since
6867 ptr_type_node doesn't have the right meaning for CHILL).
6868 Also, call `do_decl' instead of `decl_temp1' for
6870 (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
6871 `chill_finish_compile' in sync between passes.
6873 * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
6874 declarations on pass zero. Keep obstacks in sync, and always
6875 call `finish_decl' for pass zero declarations.
6876 (push_chill_extern_function): Keep obstacks in sync, and always
6877 call `finish_decl' for pass zero declarations.
6878 (build_enumerator): Ditto.
6879 (grok_chill_variantdefs): Change PASS test to exclude only
6881 (finish_struct): Ditto.
6882 * ch-expr.c (build_chill_component_ref): Ditto.
6883 (build_chill_binary_op): Ditto.
6884 * ch-tree.c (build_powerset_type): Ditto.
6885 (build_bitstring_type): Ditto.
6886 * ch-typeck.c (build_chill_range_type): Ditto.
6887 (build_chill_struct_type): Ditto.
6889 * ch-decl.c (build_chill_exception_decl): Clarify reasons for
6890 extra pushing and popping of obstacks.
6892 * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
6893 on IO_DESCRIPTOR. This causes IO_DESCRIPTOR to be laid out.
6895 * ch-grant.c (chill_finish_compile): Clear out both
6896 MODULE_INIT_LIST and TASKING_LIST if either contains stuff
6899 * ch-parse.y (rccase_label): Add NAME rules so that pass one
6900 works w/o knowing we're parsing a signal. Simplify SIGNALNAME
6901 rules since we only get SIGNALNAME tokens in pass two.
6902 (sendaction): Ditto.
6903 * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
6904 BUFFERNAME on pass two. The grammar now handles this.
6905 * ch-decl.c (lookup_remembered_decl): Deleted.
6907 Fri Sep 24 15:27:13 1993 Bill Cox (bill@cygnus.com)
6909 * ch-decl.c (lookup_remembered_names): Removed. It was being
6910 misused in ch-lex.l.
6911 * ch-lex.l (name_type_signal): Revert last change. Basically,
6912 we cannot use the C typedef/variable name trick in CHILL, due
6913 due to the language's 2-pass nature.
6914 * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
6916 * ch-tree.h (lookup_remembered_name): Comment out the prototype.
6918 Fri Sep 24 11:01:31 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6920 * ch-decl.c (do_decl, push_chill_extern_function): Change pass
6921 checks so the pass == 0 case is handled for built-in types.
6922 (push_modedef): Add check for error_mark_node.
6923 (lookup_remembered_decl): New function.
6924 (pushlevel, poplevel) Change pass checks.
6925 (pushdecl): Check type as well for NULL.
6926 (build_enumerator): Handle pass == 0 case.
6927 * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
6929 * ch-parse.y: Set pass to zero to indicate initial decl processing.
6930 Replace NAME references with SIGNALNAME references.
6931 (startaction): Only check copy number if not ignoring actions.
6932 Always call build_chill_start_process.
6933 (optstartset): Don't lookup the instance name.
6934 * ch-tasking.c (generate_tasking_code_variable): Replace
6935 do_decl call with decl_temp1 call.
6936 (build_chill_start_action): Check for ignore_actions here.
6937 (build_tasking_message_type): Layout the type.
6938 (rc_state_type): New structure to keep nested receive-case
6940 (build_chill_receive_case_start, build_chill_receive_case_end):
6944 Fri Sep 24 04:19:15 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6946 * ch-tasking.c (build_chill_receive_case_start): `namedecl'
6947 should be a _DECL, not an IDENTIFIER_NODE.
6949 Thu Sep 23 18:18:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
6951 * ch-decl.c (find_implied_types): Handle VAR_DECLs.
6953 * ch-decl.c (print_lang_identifier): Print IDENTIFIER_OUTER_VALUE.
6954 * ch-actions.c (chill_expand_result): Allow value-less RETURN.
6955 * ch-expr.c (resolve_component_ref): Recognize error_mark.
6957 * ch-convert.c (digest_constructor): Handle a nested powerset tuple.
6958 * ch-satisfy.c (satisfy): Use return value of layout_chill_range_type.
6959 * ch-typeck.c (chill_similar): Repeatedly get parent modes
6960 of ranges, not just once.
6961 * ch-typeck.c (chill_root_resulting_mode), ch-tree.h: New function.
6962 * ch-typeck.c (layout_chill_rang_type): Re-do type-checking
6963 to follow Blue Book better (check for Compatibility).
6965 * ch-tree.h (CH_ROOT_RESULTING_MODE): New macro.
6966 * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
6967 New variables. The latter replaces in_seizefile.
6969 Changes to store in the new DECL_SEIZEFILE field each seize
6970 ALIAS_DECL the name in the most recent use_seize_file directive.
6971 (This requires that use_seize_file directives written to the
6972 grant file be written before the SEIZEs that need it.)
6973 Allow clashing declarations granted into the global scope
6974 (produce a warning), but remember the seizefile case from
6975 (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
6976 The a SEIZE will select the granted decl that matches its
6977 DECL_SEIZEFILE (in other words: grants from the most recent
6978 use_seize_file will be preferred).
6979 * ch-tree.h (DECL_SEIZEFILE), ch-tree.def: New macro.
6980 * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE): Renamed
6981 to outer_value, IDENTIFIER_OUTER_VALUE.
6982 Changes to cause the use_seize_file directives to be written
6983 out in order as they're seen in source.
6984 * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
6985 Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
6986 * ch-lex.l (handle_use_seizefile_directive): Modify appropriately.
6987 Don't call grant_use_seizefile.
6988 * ch-lex.l (mark_use_seizefile_written): New function.
6989 * ch-grant.c (decode_decl): Write out use_seize_file directive,
6990 if needed, before writing a seize declarations.
6991 * ch-decl.c (pop_module): Handle decls granted into the global
6992 module specially, setting IDENTIFIER_OUTER_VALUE.
6993 * ch-decl.c (lookup_name_for_seizing): Check IDENTIFIER_OUTER_VALUE.
6995 Thu Sep 23 19:05:37 1993 Bill Cox (bill@cygnus.com)
6997 * ch-decl.c (push_chill_extern_process): Delete unused variables,
6998 declare the process' tasking_code variable as external.
6999 * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7001 * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7003 * ch-tree.h: Add prototype.
7004 * expr.c (store_constructor): Emergency first-aid. Rewrite later.
7006 Thu Sep 23 12:57:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7008 * ch-expr.c (build_chill_function_call): Move possible call to
7009 chill_start_module_code until we know we're not calling a builtin.
7010 * ch-decl.c (save_expr_under_name): Use pushdecllist,
7011 not proclaim_decl (which provide for popping the decl).
7012 * ch-parse.y (optname): Also allow TYPENAME.
7014 Thu Sep 23 09:18:35 1993 Bill Cox (bill@cygnus.com)
7016 * ch-decl.c (print_lang_decl): Make weak name output more standard.
7017 (print_lang_identifier): Make signal-data flag output more standard.
7018 (push_chill_extern_process): Pass correct arg tree to
7019 push_chill_extern_function.
7020 (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7021 Standardize function header layouts (Makes the tcov script
7023 * ch-except.c (chill_finish_on): Standardize function header.
7024 * ch-expr.c (fold_set_or): Standardize function header.
7025 * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7027 (decode_constant): Make sure that alpha operators are surrounded
7029 * ch-parse.y: Spell Z.200 correctly in comments.
7031 Wed Sep 22 10:42:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
7033 * ch-expr.c (build_chill_addr_expr), ch-tree.h: New function.
7034 * ch-parse.y, ch-decl.c (shadow_record_fields): Use it.
7035 * ch-lex.l (handle_use_seizefile_directive): Don't emit
7036 use_seize_file directive if in_seizefile.
7038 * ch-convert.c (digest_structure_tuple): Fix code that checks
7039 for excess init values.
7040 * ch-decl.c (layout_chill_variants): Move increment of nlabels
7041 inside the proper loop.
7042 * ch-grant.c (print_struct): Add missing loop for tag_list.
7043 (print_struct): Look for variant fields by checking for a
7044 UNION_TYPE, not a NULL name, since we must use a dummy name.
7045 * ch-parse.y (structured_variable): Various fixing.
7046 * ch-decl.c (shadow_record_fields): Rename arg decl -> struct_val.
7048 * ch-satisfy.c (safe_satisfy_decl): Disable copying of modes
7049 for NEWMODE (and hence novelty checking), until we figure out
7052 * ch-except.c (finish_handler_array): Use null_pointer_node,
7053 not integer_zero_node (which fails to type-check).
7055 * c-typeck.c (get_constructor_element_type): New function.
7056 * ch-tree.h (CH_NOVELTY_FLAG): Now also used in TYPE_DECLs.
7057 (CH_NOVELTY): Redefined to call new function chill_novelty.
7058 (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE): Removed.
7059 * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7060 Take extra output parameter (for M, as in M-value class).
7061 * ch-typeck.c (chill_novelty): New function. (Also de-references.)
7063 * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7064 New functions. Handle 2-pass and variant records.
7065 * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7066 * ch-satisfy.c (satisfy, case COMPONENT_REF):
7067 New case, call resolve_component_ref.
7069 * ch-expr.c (build_generalized_call): Extract single arg from
7070 arg list before calling build_chill_cast.
7072 * ch-parse.y (defining_occurrence_list): New non-terminal.
7073 Use it to replace locnamelist, synnames, and modenames.
7074 * ch-parse.y: Re-write parsing of variant records.
7076 * ch-decl.c (grok_chill_variantdefs): Now return a FIELD_DECL
7077 rather than just its type.
7078 * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7079 Change callers appropriately.
7081 * ch-tree.h (TYPE_TAG_VALUES): Add an extra level of TREE_LIST,
7082 to support multiple tag fields.
7083 * ch-grant.c (print_struct), ch-decl.c (layout_chill_variants):
7084 Support multiple tag fields.
7086 * ch-convert.c (remove_tree_element, digest_structure_tuple):
7087 New functions, to digest structure tuples, without calling the
7088 code in c-typeck.c. Handles variant tuples and tags (partially).
7089 * ch-convert.c (digest_constructor, convert): Call
7090 digest_structure_tuple when appropriate.
7091 * ch-convert.c (digest_constructor): Re-arrange a bit.
7093 * ch-decl.c (push_modedef): Defer copying of tree until ...
7094 * ch-satisfy (safe_satisfy_decl): ... here.
7096 * ch-decl.c (getdecls): Add kludge to help dbxout_init.
7098 Tue Sep 21 14:19:11 1993 Bill Cox (bill@cygnus.com)
7100 Partial tasking update - not done yet.
7101 * ch-actions.c: Comments, indentation.
7102 * ch-decl.c (push_chill_extern_process): No longer need to
7103 reformat the arg list for make_process_struct.
7104 (pop_module): Don't seg fault on null DECL_NAME.
7105 (handle_one_level): Error, not warning if tree not recognized.
7106 (shadow_record_fields): Rename formal param for readability.
7107 * ch-grant.c (decode_decl): Write proper header for a process.
7108 * ch-parse.y (quasi_pdef): process now uses processparlist,
7109 which doesn't change with the passes.
7110 (quasi_locdec): Call build_chill_reference_type to defer
7111 doing the type's layout.
7112 (processpar): Use paramnamelist, but reformat it into a
7113 list of identifiers in pass 2, so a processpar is the same
7114 structure in both passes.
7115 (locdec): Call build_chill_reference_type to defer doing the
7117 * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7118 build the decl. Only update the variable's tree in pass 2.
7119 (make_process_struct): Call build_chill_reference_type to defer
7120 doing the type's layout.
7121 (build_process_header): New code to call make_process_struct.
7122 New pass-2 code to make a PARM_DECL for start_chill_function.
7123 Pass a void_type_node, not a NULL_TREE for an empty list.
7124 Get input for shadow_record_fields from current_function_decl.
7125 (build_buffer_decl): Call do_decl not decl_temp1.
7126 * ch-typeck.c: Reindent to standards.
7127 * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7129 Mon Sep 20 12:00:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7131 * ch-typeck.c (classify_chill_expr): An expression with a
7132 REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7133 * ch-actions.c (adjust_parm_or_field):, ch-tree.h: Change last
7134 parameter, so we can reliably recognize LOC parameters.
7135 * ch-tasking.c, ch-expr.c: Change callers appropriately.
7137 Sun Sep 19 22:26:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7139 * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE): New macros.
7140 * ch-typeck.c (chill_referable, chill_read_compatible): New functions.
7141 * ch-typeck.c (chill_compatible): Allow un-resolved CONSTRUCTOR
7142 (with NULL TREE_TYPE), when reasonable. (Simplifies callers.)
7143 Also, handle case of expr being of reference class.
7144 * ch-actions.c (adjust_parm_or_field): Major re-arrange
7145 to handle conversions and LOC args better.
7146 * ch-actions.c (chill_expand_assignment): Simplify conversions.
7147 * ch-expr.c (build_chill_function_call): If needed, call
7148 chill_start_module_code.
7149 * ch-decl.c (declare_predefined_file): New function, used
7150 to pre-define stdin, stdout, and stderr.
7151 * ch-inout.c (chill_stdio_p): Change names of predefined
7152 files from chill-stdin etc to plain stdin (and change their types).
7153 * ch-lex.l: Remove some obsolete stuff.
7154 * ch-convert.c (convert): Move conversion from reference to
7155 to beginning of convert() so other conversion can work better.
7156 Also, remove bogus direct setting of TREE_TYPE.
7158 Fri Sep 10 12:23:41 1993 Wilfried Moser (fs_moser@cygnus.com)
7160 * Makefile.in: Change installation of the chill script. gcc will
7161 be called always with the full path. That made problems when
7162 somebody was using chill but didn't have the installation
7164 * ch-parse.y: Change parsing of WRITETEXT action.
7165 * ch-tree.h: Add some new prototypes according to the
7166 (partial) implementation of WRITETEXT.
7167 * ch-typeck.c: Add new function chill_varying_string_type_p. This
7168 functions checks a type for being CHAR(n) VARYING.
7169 * ch-decl.c (init_decl_processing): Add new built-in functions
7170 _writestring and _writeunixstd.
7171 Add call to build_chill_io_list_type in ch-inout.c.
7172 * ch-inout.c (build_chill_writetext): Add some code there.
7173 Add new function build_chill_io_list_type.
7174 Add new static function chill_stdio_p. This function checks
7175 the text argument for being chill_stdin, chill_stdout or
7178 Fri Sep 17 22:02:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
7180 * ch-decl.c (push_modedef): Fix TYPE_MAIN_VARIANT thinko.
7182 Thu Sep 16 18:38:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7184 * ch-decl.c (allocate_lang_decl): Do nothing.
7185 * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7186 No longer used; remove.
7188 * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7189 (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7190 (make_chill_variants, layout_chill_variants): Add (initial) part
7191 of support for multiple tags.
7192 * ch-decl.c (lookup_tag_fields): New function.
7193 * ch-parse.y (stmt_count): Not used; removed.
7194 * ch-parse.y (mode2): Clear current_fieldlist before
7195 parsing STRUCT fields; restore afterwards.
7197 * ch-parse.y (push_action): Moved to ch-actions.c.
7199 Wed Sep 15 18:19:37 1993 Bill Cox (bill@rtl.cygnus.com)
7201 * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7202 constructor to a boolean.
7204 Wed Sep 15 17:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
7206 * ch-decl.c (push_modedef): Enable novelty-setting code.
7207 * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7208 * ch-typeck.c (chill_similar): Add checking of singleton
7209 powerset against its base type.
7211 Tue Sep 14 17:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
7213 * ch-actions.c (adjust_parm_or_field): Create a
7214 temporary for an non-referencable actual parameter
7215 passed to a LOC formal parameter.
7216 (chill_expand_assignment): Correct compatibility checking.
7218 * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7219 * ch-parse.y (opsigdest): Only check for process name
7220 in pass 2, when we know.
7221 * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7222 * ch-typeck.c: Fix comment.
7224 Mon Sep 13 17:33:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
7226 * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7227 decl_seen_p, processed_decls, allocated, nr_decls): Removed
7228 no-longer-useful functions and variables that used to guard
7229 against writing a decl multiple times. Since we now just
7230 go through the decl list linearly, that is no longer an issue.
7231 * ch-satisfy.c (safe_satisfy_decl): Handle missing current_module.
7233 * ch-decl.c (start_chill_function): Clear DECL_ASSEMBLER_NAME.
7234 Don't make TREE_PUBLIC. Don't generate rtl yet.
7235 * ch-decl.c (pop_module): If a decl is granted, set TREE_PUBLIC,
7236 and its DECL_ASSEMBLER_NAME.
7237 * ch-decl.c (fix_identifier): New function.
7238 * ch-grant.c (grant_one_decl): Don't set TREE_PUBLIC.
7239 * ch-tree.h (struct module): New field prefix_name.
7240 * ch-satisfy.c (safe_satisfy_decl): If assembler_name isn't
7241 set, prefix it by the module name(s).
7242 * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7243 Call make_function_rtl if needed and !LOOKUP_ONLY.
7244 * ch-typeck.c (chill_similar): Flesh out substantially.
7245 * ch-typeck.c (chill_compatible): Re-structure.
7247 * ch-actions.c (adjust_parm_or_field): Use CH_COMPATIBLE
7248 instead of chill_comptypes to compare actual and formal.
7250 Sun Sep 12 21:10:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
7252 * ch-parse.y (labellist): Don't do anything if ignore_exprs.
7254 * c-typeck.c (output_pending_init_elements): Handle
7255 !constructor_incremental case of filling in empty positions.
7256 (Patch by Jim Wilson. CYGNUS LOCAL until we have approval.)
7257 * ch-decl.c (pop_module): Don't grant a seized name.
7258 * ch-grant.c (decode_constant): Support CALL_EXPR.
7259 * ch-tree.c (build_bitstring_type): Don't try to fold non-constant
7260 size if pass==1 (since it may be an unsatisfied name).
7263 Sun Sep 12 18:06:23 1993 Bill Cox (bill@rtl.cygnus.com)
7265 2-pass fixes for processes. Partially done.
7266 * ch-actions.c (chill_expand_assignment): Add real
7267 novelty-checking sketch, $ifdef'd out for now.
7268 * ch-decl.c: Generally fix indentation. Move tasking
7269 init code from init_decl_processing to ch-tasking.c.
7270 Delete ObjC-related cruft. More accurate parameter name
7271 for shadow_record_fields. Move debug_scope before
7273 * ch-expr.c (build_chill_function_call): Return if not
7275 * ch-grant.c (print_proc_tail): Avoid trying to format
7276 a VOID return type, or using a NULL pointer.
7277 (decode_decl): Minor changes for PROCESS arg access.
7278 * ch-lang.c (lang_decode_option): Use -itu flag to
7279 enable 'pedantic' mode.
7280 * ch-lex.l (init_lex): Initialize compiler-directive
7282 (name_type-signal): Disable the returning of SIGNAL and BUFFER
7284 * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
7285 All uses renamed also.
7286 (end_function): Always poplevel, not just in pass 2.
7287 (quasi_pdef): Check for end-label matching.
7288 (quasi_formparlist): Write more clearly.
7289 (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
7291 (rccase_label, sendaction): Use NAME, not SIGNALNAME
7293 (process): Handle like procedure.
7294 (mode): Add SIGNAL as a generic signal parameter. This
7295 is a client-specific extension, so pedantic is checked.
7296 * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
7297 * ch-tree.h (CH_NOVELTY): Make it an lvalue.
7298 * ch-typeck.c: Fix comment.
7300 Sun Sep 12 15:03:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
7302 * c-typeck.c (digest_init): Compare types using comptypes
7303 instead of comparing pointers. (Helps Chill front end.)
7304 * ch-expr.c (finish_chill_binary_op):
7305 * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
7306 ch-expr.c (finish_chill_binary_op): For now, prefer IN_EXPR
7307 over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
7308 (incomplete support for variable fields, and possible bug in
7309 optimize_bit_field_compare).
7310 * ch-expr.c (finish_chill_binary_op): Fix type-checking
7311 and appropriately coerce operands for IN_EXPR and comparsions.
7312 * expr.c (expand_expr, case ARRAY_REF): Coerce lower bound (if
7313 non-zero) to sizetype before subtraction.
7314 * expr.c (expand_expr): Remove Chills-specific calls to
7315 __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
7317 Fri Sep 10 15:47:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
7319 * ch-tree.def (UNDEFINED_EXPR): New kind of expression.
7320 * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
7321 ch-convert.c (convert): Handle UNDEFINED_EXPR.
7323 * ch-expr.c (build_char_array_expr): Move CONCAT_EXPR support to ...
7324 * ch-expr.c (build_concat_expr): ... here.
7325 Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
7326 Also, make result varying only if one of the operands are.
7328 * ch-expr.c (build_chill_binary_op): Move stuff from here to ...
7329 * ch-expr.c (finish_chill_binary_op): ... here, as needed for
7330 proper 2-pass split. Also, clean up and simplify heavily.
7332 * ch-tree.h (enum ch_expr_class): The 5 kinds of expression classes.
7333 * ch-typeck.c (classify_chill_expr): New function: Determine
7334 class of expression.
7335 * ch-typeck.c (chill_compatible_classes): Re-structure; fix
7337 * ch-tree.h (CH_CLASS_IS_XXX): Re-define to use classify_chill_expr.
7339 * ch-convert.c (maybe_turn_scalar_into_array): Complain
7340 unless scalar is a char constant (and we want a string).
7341 * ch-convert.c (convert): New code for converting to variable
7342 string/array. Avoid type errors by padding (with an UNDFIEND_EXPR).
7343 * ch-typeck.c (chill_expand_tuple): Don't do conversion to
7344 varying type here; that is handled by convert now.
7345 * ch-decl.c (digest_constructor): Moved to ...
7346 * ch-convert.c (digest_constructor): ... here.
7347 * ch-decl.c (do_decl): Simplify; just use convert for initializer.
7348 * ch-decl.c (chill_digest_init): Merged into convert, and removed.
7349 * ch-decl.c (init_decl_processing): Set constructor_no_implicit flag.
7350 * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
7351 Replace chill_digest_init by convert.
7352 * ch-actions.c (chill_expand_array_assignment): Simplify; use convert.
7353 * ch-lex.l (build_chill_string): Make string type be derived
7354 from integer, not sizetype, because upper bound can be -1.
7356 Thu Sep 9 18:21:46 1993 Bill Cox (bill@rtl.cygnus.com)
7358 * ch-typeck.c (my_build_array_ref): Delete pedantic
7359 C-specific error message.
7361 Thu Sep 9 17:44:20 1993 Jeffrey Wheat (cassidy@eclipse.cygnus.com)
7363 * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
7365 Thu Sep 9 12:22:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
7367 * ch-typeck.c (build_chill_array_ref): Remove redundant and
7368 broken call to my_build_array_ref.
7370 Wed Sep 8 13:03:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
7372 * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
7373 Don't use store_init_value, since it calls digest_init instead
7374 of chill_digest_init.
7375 * ch-except.c (finish_handler_array): Use build1 (ADDR_EXPR, ...)
7376 instead build_unary_op to avoid C-specific optimizations.
7377 * ch-typeck.c (my_build_array_ref): Don't use default_conversion
7378 to convert array to pointer.
7379 * c-typeck.c (process_init_default): New function, to support
7380 default values for array tuples in Chill.
7381 * c-typeck.c (default_conversion): Don't convert array to pointer
7383 * ch-decl.c (digest_constructor): New function; used to be guts
7384 of chill_digest_init. Now recursive, to handle nested tuples.
7386 * ch-decl.c (chill_digest_init): Handle struct labels.
7387 * ch-grant.c (get_tag_value): Use decode_constant in general case.
7388 * ch-grant.c (decode_constant): Add support for lots of missing
7389 binary and unary operators.
7391 Wed Sep 8 10:11:04 1993 Bill Cox (bill@rtl.cygnus.com)
7393 * ch-lang.c: Look for '-I' option for seize file path.
7394 * ch-lex.l: Fix comment about above option.
7396 Wed Sep 8 00:37:32 1993 Per Bothner (bothner@rtl.cygnus.com)
7398 * ch-satisfy.c: Move code to set (and restore) file-and-line
7399 from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
7400 alias decls that refer to real decls with errors.
7401 * ch-actions.c (lang_init): Move to ch-lang.c.
7402 * ch-decl.c (init_decl_processing): Move code to initialize
7403 file-and-line from here ...
7404 * ch-lang.c (lang_init): ... to here, to avoid clobbering.
7406 * ch-decl.c (chill_digest_init): Add support for SET_TYPE,
7408 * ch-typeck.c (chill_expand_typle): Just call chill_digest_init.
7409 * c-typeck.c: Fix various things that got broken
7410 in the latest merge.
7412 Tue Sep 7 15:45:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
7414 * ch-decl.c (build_enumerator): Handle a "unnamed set element"
7415 (obsolete feature) by generating a dummy name.
7416 * ch-decl.c (finish_decl): Call rest_of_decl_compilation with
7417 "correct" value of top-level (to get better debugging output).
7418 * ch-decl.c (bind_saved_names): Allow a null DECL_NAME.
7420 Tue Sep 7 15:48:35 1993 Bill Cox (bill@rtl.cygnus.com)
7422 * ch-actions.c (chill_expand_return): Correct breakage
7423 due to recent fsf merge.
7425 Tue Sep 7 11:16:10 1993 Bill Cox (bill@rtl.cygnus.com)
7427 * .cvsignore: Add multilib.h.
7428 * ch-decl.c (chill_digest_init): New function. Calls were
7429 changed, since it has fewer parameters than old digest_init.
7430 * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
7432 (elementlist): Delete unused code.
7433 * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
7434 * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
7435 * ch-tree.h: Delete digest_init prototype.
7436 * ch-typeck.c (digest_init): Much new code.
7438 Tue Sep 7 12:06:28 1993 Bill Cox (bill@rtl.cygnus.com)
7440 * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
7441 files to their pre-init-change state.
7443 Mon Sep 6 15:28:27 1993 Bill Cox (bill@rtl.cygnus.com)
7445 Preliminary adaptation to rms' new initializer code.
7446 * ch-decl.c (do_decl): Call chill_digest_init, not
7447 digest_init, which rms made static.
7448 * ch-expr.c (chill_truthvalue_conversion): Delete C-
7450 * ch-loop.c (init_loop_counter): Indent for readability.
7451 * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
7452 * ch-tree.h: Prototype changes for new init code.
7453 * ch-typeck.c (chill_expand_tuple): Call new init code.
7454 * chill.texi: Add necessary '-f' prefix on options.
7456 Wed Sep 1 13:21:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7458 * ch-convert.c (build_array_type_for_scalar),
7459 ch-tasking.c (build_chill_receive_case_end): Index type
7460 specification is now chain of types (not chain of TREE_LIST).
7461 * ch-satisfy.c (satisfy): Don't try to satisfy the
7462 abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
7463 * ch-expr.c (build_chill_binary_op): If pass 1, do NOT
7464 call finish_chill_binary_op.
7465 * ch-parse.y (arrayindex): Simplify.
7467 Tue Aug 31 14:57:35 1993 Bill Cox (bill@rtl.cygnus.com)
7469 * ch-decl.c (print_lang_decl): Print weak-name status.
7470 (print_lang_identifier): Print signal_data as T or F.
7471 * ch-lex.l (convert_bitstring, convert_charliteral,
7472 convert_float, convert_number): Pass string directly to convert
7473 as a parameter. Return token code consistently, return 0
7475 (equal_number): Parse differently, allowing hex, binary
7476 and octal constants.
7477 * ch-parse.y (dowithaction, structured_variable): Only
7478 push/pop scopes once per DO WITH.
7479 (structured_variable_list): Check ignore_actions flag here.
7480 * gcc.c: Delete 'traditional' from string, add 'itu'
7481 as the standard flag's name.
7483 Mon Aug 30 15:12:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
7485 * ch-typeck.c, ch-tree.h (build_chill_range_type): Take 3
7486 parameters instead of 2 (explicit low and high bounds).
7487 * ch-parse.y (arrayindex): Build range type from low:high.
7488 (rangesize, optrangesize): Removed.
7489 (where appropriate): Use new build_chill_range_type interface.
7490 * ch-grant.c: Clean up writing of range and array types.
7491 * ch-satisfy.c (satisfy): Don't ignore the return value of
7492 layout_chill_array_type. (It may be an error mark.)
7493 * ch-typeck.c (build_chill_array_type): Simplify.
7494 * ch-typeck.c (layout_chill_array_type): Clean up checks.
7496 Fri Aug 27 12:55:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
7498 * ch-decl.c (decl_temp1): Set DECL_ASSEMBLER_NAME.
7499 (push_chill_extern_function) Don't set current_function_decl.
7500 * ch-parse.y (tupleelement): Don't wrap index is a TREE_LIST
7501 (i.e. a range), don't wrap a PAREN_EXPR around it.
7502 * ch-grant.c (decode_constant): For tuple CONSTRUCTORs,
7503 add support for ranges in purpose.
7505 Wed Aug 25 16:58:13 1993 Bill Cox (bill@rtl.cygnus.com)
7507 * .cvsignore: Add g++.sum
7508 * ch-actions.c (chill_expand_result): Stop building a temp.
7509 Assign the expression directly into function's DECL_RESULT.
7510 * ch-decl.c: Add formfeeds.
7511 (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
7512 (push_chill_function_context): Delete C pedwarn message.
7513 * ch-expr.c: Move builtin functions together.
7514 * ch-parse.y (end_function): Delete unused code.
7515 Reformat %union for readability. Delete _MAX and _MIN
7518 Wed Aug 25 13:24:06 1993 Bill Cox (bill@rtl.cygnus.com)
7520 * ch-actions.c (get_result_tmp_name): Delete unused function.
7521 (chill_expand_result, chill_expand_return): Rewrite for
7523 * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
7524 chain field, so we can make a temp, evaluate a RESULT action's
7525 expression into it, and hang it on here.
7526 * ch-parse.y (end_function): Look for RESULT temps to emit.
7527 (assertaction): Indentation.
7529 Wed Aug 25 08:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
7531 * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
7532 It wasn't used anyway.
7534 Tue Aug 24 17:51:18 1993 Bill Cox (bill@rtl.cygnus.com)
7536 * ch-actions.c (chill_expand_result, chill_expand_return):
7537 No need to make a temp for the value, just use DECL_RESULT.
7539 Tue Aug 24 16:38:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7541 * ch-tree.c (layout_powerset_type): Remove redundant code.
7542 Generalize (in error message) to also handle bitstrings.
7543 * ch-tree.c (build_bitstring_type): Remove all layout-like
7544 stuff, and defer that to layout_powerset_type.
7545 * ch-expr.c (chill_expand_expr): For various SET_xxx_EXPRs,
7546 allocate stack temp for target using correct mode.
7548 Tue Aug 24 10:27:19 1993 Bill Cox (bill@rtl.cygnus.com)
7550 * ch-actions.c, ch-decl.c, ch-except.c,
7551 ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
7552 ch-typeck.c: Change build_modify_expr calls to
7553 build_CHILL_modify_expr calls.
7554 * ch-expr.c (build_chill_modify_expr): Adapted from
7555 build_modify_expr in c-typeck.c.
7557 Mon Aug 23 16:48:39 1993 Bill Cox (bill@rtl.cygnus.com)
7559 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7560 ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
7561 ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
7562 Major re-allocation of functions to files.
7564 Mon Aug 23 12:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
7566 Thanks for the tip, Jim.
7567 * Makefile.in: Add dependency lines for ch-except.o and
7568 ch-satisfy.o. Correct dependency lines for ch-convert.o,
7569 ch-expr.o, ch-inout.o, and ch-loop.o.
7570 (chill, install-common): Add clean-up commands.
7572 Sat Aug 21 17:11:26 1993 Bill Cox (bill@rtl.cygnus.com)
7574 * ch-decl.c (get_type_precision): New function.
7575 (layout_enum): Call it.
7576 * ch-tree.c (layout_powerset_type, build_bitstring_type):
7579 Sat Aug 21 13:59:40 1993 Bill Cox (bill@rtl.cygnus.com)
7581 * ch-decl.c (init_decl_processing): Define setbitpowerset
7583 * ch-expr.c (chill_expand_assignment): Call setbitpowerset
7585 * ch-parse.y: Indentation.
7587 Fri Aug 20 17:29:56 1993 Bill Cox (bill@rtl.cygnus.com)
7589 * ch-parse.y: Delete unused %type declaration.
7590 * ch-tasking.c (build_signal_struct): Delete return, since
7591 function returns void.
7592 * ch-typeck.c: Indent to standard.
7593 * stor-layout.c: Fix comment.
7594 * toplev.c: Change -L option ti -I.
7595 * varasm.c (emit_set_data): Align set constant to word
7598 Fri Aug 20 08:20:07 1993 Bill Cox (bill@rtl.cygnus.com)
7600 * ch-actions.c: Fix indentation, comments.
7601 * ch-decl.c (push_chill_extern_signal): Use same interface
7602 as build_signal_struct.
7603 * ch-parse.y (quasi_signaldef): Move build_signal_decl
7604 here to sigdef. Add quasi_signal to distinguish contexts
7605 where sigdef gets used.
7606 * ch-tasking.c: Replace make_signal_struct and build_signal_decl
7607 with build_signal_decl, which doesn't loop through a
7609 * ch-tree.h: Fix protos.
7611 Wed Aug 18 17:36:53 1993 Bill Cox (bill@cygnus.com)
7613 * ch-actions.c: Fix comments.
7614 * ch-decl.c (push_modedefs): Return the new decl.
7615 (shadow_record_fields): Move pushlevel (0) calls into
7616 the grammar, so they'll get done in both passes.
7617 * ch-parse.y (dowithaction): Always compute & save # of
7618 'with' variables seen (both passes), and always pop that
7620 (structured_variable_list): Always chain variables into a list.
7621 (structured_variable): Put pushlevel here (from shadow_record_fields).
7622 * ch-tasking.c: Indentation fixes.
7623 * ch-tree.h: Change proto.
7624 * chill.texi: Add Blue Book section numbers to unimplemented
7627 Wed Aug 18 15:48:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
7629 * ch-actions.c (build_generalized_call): New function.
7630 Classifies semantically (if pass 2) this that look like calls.
7631 * ch-parse.y (call): Invoke build_generalized_call.
7632 * ch-parse.y (sigdef): Use defining_occurrence instead of NAME.
7633 * ch-parse.y (opt_untyped_exprlist): New non-terminal.
7634 * ch-satisfy.c (satisfy): Handle CALL_EXPR.
7636 Tue Aug 17 16:36:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
7638 * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
7640 Mon Aug 16 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
7642 * ch-tree.h (TUPLE_NAMED_FIELD): New macro.
7643 * ch-parse.y (labelled structure tupleelement):
7644 Set TUPLE_NAMED_FIELD flag.
7645 * ch-grant.c (decode_constant): Check for TUPLE_NAMED_FLAG.
7646 * ch-satisfy.c (satisfy): Check for TUPLE_NAMED_FLAG.
7647 Do satisfy the elements of a CONSTRUCTOR even if call
7648 chill_expand_tuple isn't correct.
7649 * ch-satisfy.c (satisfy): Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
7650 * ch-parse.y (label_spec): Defer any semantic checking until ...
7651 * ch-decl.c (layout_chill_variants): ... here.
7652 Also make sure to call layout_type on the union type.
7653 * ch-decl.c (bind_saved_names): For weak names, allocate an
7654 ALIAS_DECL, rather than a CONST_DECL.
7656 Add support for implied (weakly visible) names.
7657 * ch-tree.h (DECL_WEAK_NAME): New macro.
7658 * ch-satisfy.c (satisfy of IDENTIFIER_NODE): Don't complain
7659 if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
7660 * ch-decl.c (proclaim_name): Handle DECL_WEAK_NAME appropriately.
7661 * ch-decl.c (concat_lists, find_implied_types): New functions.
7662 * ch-decl.c (bind_saved_names): Search for implied names.
7663 * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
7664 * ch-lang.c (layout_chill_struct_type): Don't use
7665 C_DECL_VARIABLE_SIZE.
7667 Mon Aug 16 16:10:43 1993 Bill Cox (bill@rtl.cygnus.com)
7669 * ch-actions.c: Delete extra space in error message.
7670 * ch-parse.y: Fix comment.
7671 * expr.c (store_constructor): Avoid passing NULL to convert,
7672 and getting back an error_mark_node and trying to process
7675 Mon Aug 16 14:41:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
7677 * ch-decl.c: Add more overview comments.
7678 * ch-decl.c (proclaim_decl): New function.
7679 * ch-decl.c (temp_pushdecl, struct shadowing): Removed.
7680 * ch-decl.c (bind_saved_names): Remove blevel parameter;
7681 use current_scope global instead. Do some other cleanups.
7682 * ch-decl.c (save_expr_under_name): Create an ALIAS_DECL.
7683 * ch-decl.c (pushdecllist, save_expr_under_name): Use proclaim_decl.
7684 * ch-satisfy.c (satisfy, safe_satisfy_decl): Be more careful
7685 to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
7687 * chill.texi: Start collecting Chill documentation here.
7688 * ch-parse.y (mode): Ignore READ specifier, for now.
7690 Mon Aug 16 11:13:07 1993 Bill Cox (bill@rtl.cygnus.com)
7692 * ch-actions.c (chill_comptypes): Correct handling reference
7694 (build_chill_length, build_chill_num,
7695 build_chill_sizeof): Convert result to CHILL integer.
7696 (build_chill_function_call): Clean up INOUT and OUT
7698 * ch-decl.c (build_chill_function_type): Handle INOUT and
7700 * ch-loop.c: Fix up comments.
7701 * ch-parse.y: Fix up comments.
7703 Sun Aug 15 15:06:01 1993 Bill Cox (bill@rtl.cygnus.com)
7705 * ch-actions.c (build_chill_lower, build_chill_upper):
7706 Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
7707 * ch-decl.c (save_expr_under_name): New function to save
7708 addressing expressions for DO WITH and DO FOR handling.
7709 (handle_one_level): Call new function.
7710 * ch-loop.c (init_loop_counter): Call it here, too.
7711 Check lp->user_var before passing it to lookup_name.
7712 (high_domain_value, low_domain_value): Correct call
7713 to build_chill_upper and build_chill_lower.
7714 (begin_chill_loop, end_chill_loop): Move pushlevel,
7715 poplevel up into the grammar, so they're done in both
7717 * ch-parse.y (doaction): Unconditionally make a scope
7718 for a loop, pop it later.
7719 (controlpart, iteration): Save return from
7720 build_chill_iterator.
7721 * expr.c: Readability changes.
7723 Sat Aug 14 19:42:32 1993 Bill Cox (bill@rtl.cygnus.com)
7725 * ch-expr.c (chill_expand_case_expr): Complete rewrite
7726 for 2-pass. About 1/2 the size, too.
7727 * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
7728 This assures that a label preceding a module's first action
7729 is enclosed in the module-level function that's generated.
7731 Sat Aug 14 14:56:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
7733 Re-implement how EXIT is done.
7734 'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
7735 'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
7736 Hence we no longer need any support for EXIT in stmt.c.
7737 * stmt.c (stamp_nesting_label, expand_exit_labelled): Removed.
7738 * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
7739 * ch-tree.c, ch-tree.h (munge_exit_label): New function.
7740 * ch-parse.y: Re-write bracked actions to support EXIT new way.
7741 * ch-decl.c, ch-loop.c: Remove calls to stamp_nesting_level.
7742 * ch-parse.y: Replace SC by new token semi_colon, which
7743 resets the 'label' global. Also make sure that label gets
7744 reset whenever we might start a new action statement.
7745 * ch-parse.y (possibly_define_exit_label): New function.
7747 * ch-except.c (chill_start_on): Wrap an ADDR_EXPR round the jmpbuf.
7748 * ch-grant.c (chill_finish_compile): Make sure
7749 get_file_function_name is only called once.
7750 * ch-expr.c (chill_expand_array_assignment): Use store_expr,
7751 instead of incorrectly calling emit_block_move.
7753 * ch-parse.y (procedure): Call push_chill_function_context
7754 in *both* passes (if nested).
7755 * ch-parse.y (primval): Call get_type_of before chill_expand_type.
7756 * ch-parse.y (tupleelement): Only build PAREN_EXPR during pass 1.
7758 Fri Aug 13 16:36:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
7760 Re-implement GRANT and SEIZE, to support prefixes and prefix
7761 rename. All of the Blue Book semantics for these should
7762 now work (except FORBID).
7763 * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
7764 DECL_POSTFIX, DECL_POSTFIX_ALL): New ALIAS_DECL layout and macros.
7765 * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
7766 decl_check_rename): New functions.
7767 * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
7768 * ch-satisfy.c (satisfy_decl): Handle SYN initialized with tuple.
7769 * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
7770 * ch-decl.c (pushdecllist): ... instead of here, which is too late.
7771 * ch-grant.c (decode_prefix_rename): New function.
7772 Use to print out GRANT and SEIZE statements.
7773 * ch-decl.c (ALL_POSTFIX): New global variable.
7774 * ch-decl.c (bind_saved_names, pop_module): Change to use new
7775 ALIAS_DECL layout, and support general prefix rename and ALL.
7776 * ch-decl.c (various places): Don't barf if DECL_ANME is NULL.
7777 * ch-parse.y (build_prefix_clause): New function (handle PREFIXED).
7778 * ch-parse.y (optprogendname, optname): Rename to opt_end_label.
7779 * ch-parse.y: Add support for compound name strings, but defer
7780 using all over teh place, due to parser ambiguities.
7781 Howver, do use defining_occurrence where appropriate.
7782 * ch-parse.y: Re-write syntax and semantics of GRANT and SEIZE
7783 statements to support Blue Book functionality. Neato!
7785 Fri Aug 13 17:10:52 1993 Bill Cox (bill@rtl.cygnus.com)
7787 * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
7788 * ch-decl.c (decl_temp1): Rewrite to return generated decl.
7789 (decl_temp): Deleted.
7790 * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
7791 * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
7792 readability, add comment.
7793 * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
7794 * ch-tree.h: Delete decl_temp proto, change decl_temp1.
7796 Fri Aug 13 13:39:59 1993 Bill Cox (bill@rtl.cygnus.com)
7798 * ch-decl.c (decl_temp): Break the chain of decls. This
7799 prevents an infinite loop.
7800 * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
7801 * ch-lex.l (equal_number): Check passes in looking up a
7803 * ch-parse.y: Fix comments.
7804 * ch-tasking.c (tasking_setup): Only act in pass 2.
7805 (make_signal_struct, build_signal_decl,
7806 build_chill_receive_case_label): Don't go indirect
7807 thru NULL decl pointer.
7809 Thu Aug 12 11:02:34 1993 Bill Cox (bill@rtl.cygnus.com)
7811 * ch-actions.c (route_to_predefined_function): New function called
7812 from build_chill_function_call, to call the proper predefined routine.
7813 (build_chill_card, build_chill_length, build_chill_lower,
7814 build_chill_max, build_chill_min, build_chill_num,
7815 build_chill_pred, build_chill_sizeof, build_chill_succ,
7816 build_chill_upper): Rewritten to run only in pass 2.
7817 * ch-decl.c (init_decl_processing): Build predefined functions for card,
7818 length, lower, max, min, num, pred, sizeof, succ and upper. Delete
7819 unused builtin_function calls.
7820 * ch-grant.c (chill_finish_module_code): Save current_function_decl
7821 before calling finish_chill_function, and use that to build the
7822 initializer structure.
7823 * ch-lex.l: Remove following tokens, since they're now just predefined,
7824 not reserved: card, length, lower, max, min, num, pred, sizeof, succ
7826 * ch-loop.c: Readability, indentation changes.
7827 * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
7828 sizeof, succ and upper. Delete special rules for calls to these.
7829 Delete mode_location and upper_lower_arg non-terminals.
7830 (pmodearg): Eliminate convolutions.
7831 (call): Add rule for typename parameter.
7832 * ch-tasking.c: Readability changes.
7833 * ch-tree.h: Add prototypes.
7835 Thu Aug 12 00:38:17 1993 Per Bothner (bothner@kalessin.cygnus.com)
7837 * ch-decl.c (save_decl): Set DECL_CONTEXT (decl).
7838 * ch-grant.c (chill_finish_module_code): Call
7839 finish_chill_function with nested==0.
7840 * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y: Rename
7841 {push,pop}_c_function_context to {push,pop}_chill_function_context.
7842 * ch-parse.y (end_function): If nested, call
7843 pop_chill_function_context regardless of which pass we're in.
7845 Wed Aug 11 02:34:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
7847 * ch-actions.c (finish_chill_binary_op): Handle error marks.
7848 * ch-decl.c (do_decl): Laying out decl and generating rtl
7849 is too late to do here (if there are forward references), so ...
7850 * ch-satisfy.c (satify_decl): ... do it here instead.
7851 * ch-decl.c (finish_enum): Fixup types of enum decls now.
7852 * ch-satisfy.c (safe_satisfy_decl): New routine. Supports
7853 checking illegal cyclic definitions.
7854 All *satisfy* routines now take a 'chain' parameter (instead
7855 of 'lookup_only') used for checking cycles.
7856 * ch-satisfy.c (satisfy_decl): Return DECL_INITIAL if appropriate.
7857 * ch-satisfy.c (satisfy): Lots of little fixes.
7859 * ch-lex.l (init_lex): Make all the standard ridpointers be
7860 lowercase, so that lookup_name on lower-cased user input
7861 will find the standard types.
7862 * ch-lex.l: Remove all the standard types, in effect
7863 converting them from reservered anmes to predefined names.
7864 * ch-lex.l, ch-parse.y: Remove PREDEF_MODEDECL - no longer used.
7865 * ch-grant.c (gfile): Rename to grant_file_name.
7866 * ch-lex.l (yywrap): Don't try to seize current grant_file_name.
7868 * initname.c: Removed. get_file_function_name is now in tree.c
7869 * Makefile.in (CHILL_OBJS): Remove initname.o
7871 * ch-decl.c (do_decl): New function, based on loop body of do_decls,
7872 * ch-decl.c (do_decls): Just call do_decl.
7873 * ch-grant.c (chill_finish_module_code): Minor cleasnups.
7874 Use new do_decl routine. Clear init_entry_decl's source line.
7875 * ch-grant.c (print_proc_tail): Fix for new param list structure.
7876 * ch-parse.y (whatpdef): Removed. Cleaned up procedure
7877 and process, allowing proper end-label-checking.
7878 * ch-typeck.c (build_chill_cast): Remove decl->type conversion.
7880 Wed Aug 11 00:33:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
7882 * ch-decl.c (layout_enum): Don't call rest_of_type_compilation.
7884 * ch-lex.l (RETURN_PREDEF): Don't call lookup_name.
7885 * ch-expr.c (build_chill_indirect_ref): Call get_type_of.
7886 * ch-parse.y (call): Call get_type_of before build_chill_cast.
7888 Tue Aug 10 21:33:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
7890 * ch-actions.c (build_char_array_expr): If a concat operand is
7891 a constant char, convert it to a STRING_CST.
7892 * ch-decl.c (finish_decl): Call rest_of_decl_compilation
7894 * ch-typeck.c (build_chill_cast): Allow type to be TYPE_DECL.
7896 * ch-parse.y (actionlabel): Call define_label in both passes.
7897 * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
7898 New functions, using lookup_name to find LABEL_DECLs.
7899 * ch-parse.y (GOTO, EXIT): Use above new functions.
7900 * ch-tasking.c (struct rc_state_type *current_rc_state):
7901 Use to store state for the current receive case statement.
7902 (build_chill_receive_case_start, build_chill_receive_case_end):
7903 Don't generate temporary LABEL_DECL; just use gen_label_rtx.
7904 * ch-decl.c: Remove all stuff dealing with specific label scopes,
7905 including functions push_label_level, pop_label_level.
7906 * ch-decl.c (define_label): Re-write for 2-pass.
7907 * ch_tree.h (lang_identifier): Removed label_value.
7908 * ch-tree.h (IDENTIFIER_LABEL_VALUE): Removed.
7910 * ch-parse.y (modename): Changed to yield identifier, not type.
7911 This allows following changes, which work better for 2-pass:
7912 (location): primval ARROW optmodename -> primval ARROW optname.
7913 (primval): Tuple can now be prefixed by unsatisfied name.
7915 * ch-actions.c (chill_grant_only): Renamed to grant_only_flag.
7916 * ch-lex.l (yywrap): Don't read seizefiles if grant_only_flag.
7917 * ch-decl.c (switch_to_pass_2): Exit if grant_only_flag,
7919 * ch-satisfy.c (satisfy): Support CONSTRUCTOR, REFERENCE_TYPE.
7920 * ch-satisfy.c (satisfy_decl, satisfy): Kludge around
7921 to a TYPE_DECL can be simplified to its type.
7922 * ch-expr.c (build_chill_indirect_ref): New function.
7923 * ch-lex.l (prepare_paren_colon): Make kludge even uglier,
7924 since the left paran might already have been seen.
7925 * ch-lang.c (make_chill_pointer_type): Allow parameter
7926 to select pointer or reference type.
7927 (build_chill_reference_type): New function.
7928 Either function: Be more careful (in case arg is identifier).
7929 * ch-except.c (initialize_exceptions): Make
7930 exception_stack_decl be public.
7931 * ch-actions.c (build_char_array_expr): Can only
7932 constant fold if operands are STRING_CST.
7933 * ch-grant.c (raw_decode_mode): Allow TYPE_DECL.
7934 (chill_finish_compile: Set TREE_PUBLIC of init function to 1.
7936 Tue Aug 10 17:55:12 1993 Bill Cox (bill@rtl.cygnus.com)
7938 * ch-actions.c (build_char_array_expr): Set array sizes correctly.
7939 * ch-decl.c: Fix comment.
7940 * ch-parse.y (pmodearg): Build tree_list in all cases.
7941 * varasm.c (assemble_tasssking_entry): Delete unused code.
7943 Tue Aug 10 13:58:21 1993 Bill Cox (bill@rtl.cygnus.com)
7945 * ch-actions.c (build_char_array_expr): save/restore
7946 a tree's constant status.
7947 (build_chill_binary_op): Don't convert an expression
7948 if the type we're converting to is NULL.
7949 * ch-convert.c (maybe_turn_scalar_into_array): New functions.
7950 Call it from convert, and from ..
7951 * ch-expr.c (chill_expand_assignment): call new function.
7952 Move convert code earlier, too.
7953 * ch-decl.c (lookup_name): Delete bogus error message.
7954 * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
7956 * ch-typeck.c (valid_array_index): Comment out some strange code
7957 which now seg faults.
7958 (chill_expand_tuple): Re-enable prepending of VARYING
7960 (chill_similar): Return FALSE if either mode is NULL_TREE.
7962 Tue Aug 10 07:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
7964 * ch-decl.c: Delete proto for unused function shadow_tag_warned.
7965 Add commented-out calls to pushtag, in case we decide later
7966 to fill in TYPE_STUB_DECL for dbxout.
7967 * ch-lang.c (build_chill_struct_type): Add commented-out
7968 calls to pushtag, in case we decide later to fill in
7969 TYPE_STUB_DECL for dbxout.
7971 Mon Aug 9 23:09:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
7973 * ch-decl.c (chill_seize): Don't get_next_next in pass 2.
7974 * ch-decl.c (get_next_decl): Skip ALIAS_DECLs.
7975 * ch-decl.c (bind_saved_names): Handle SEIZE ALL.
7976 * ch-lang.c (layout_chill_struct_type): Don't call
7977 rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
7978 * initname.c (get_file_function_name): Get new file and
7979 function for language-independent constructor name generation.
7980 * ch-grant.c (get_init_function_id): Removed.
7981 * ch-grant.c (chill_finish_compile): Call get_file_function_name
7982 instead of get_init_function_id.
7984 Mon Aug 9 18:33:36 1993 Bill Cox (bill@rtl.cygnus.com)
7986 * ch-decl.c: Formfeeds and comments.
7987 * ch-parse.y (quasi_formpar): Treat just like real formpar.
7988 Eliminate restriction on single name.
7989 (pmodearg, pmodearglist): Remove ignore_exprs stuff.
7991 Mon Aug 9 17:21:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
7993 * ch-lex.h (enum rid), ch-lex.l (init_lex): Added RID_ALL.
7994 * ch-lang.c (build_chill_pointer_type): Layout the pointer type,
7995 if the pointee is laid out, even if pass==1.
7996 * ch-parse.y: Set ignore_exprs=(pass=2) for entire spec module.
7998 Mon Aug 9 15:44:01 1993 Bill Cox (bill@rtl.cygnus.com)
8000 This version compiles the 5-line program. Thanks, Per!
8001 * ch-decl.c (print_lang_decl, print_lang_identifier):
8002 Add appropriate calls to indent_to(). Rename reverse_scopes
8003 to switch_to_pass_2, and wait to set pass = 2 until
8005 * ch-grant.c (chill_finish_module_code): Set module_init_list
8006 non-NULL in pass 1; in pass2, chain on the module_init
8008 (chill_finish_compile): Clear module_init_list to NULL.
8009 * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8010 Rename reverse_scopes to switch_to_pass_2, delete setting
8012 * ch-tree.h: Rename reverse_scopes proto.
8014 Mon Aug 9 13:21:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
8016 * ch-decl.c (build_enumerator): If name is NULL,
8017 don't call save_decl or get_next_decl.
8018 * ch-decl.c (layout_enum): Fix calculation of next value.
8019 * ch-grant.c (print_enumeral): Re-do for new 2-pass scheme.
8020 * ch-grant.c (decode_constant): Better CONSTRUCTOR support.
8022 Mon Aug 9 11:59:12 1993 Bill Cox (bill@rtl.cygnus.com)
8024 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8025 ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8026 Lots of new prototypes.
8028 Mon Aug 9 01:00:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
8030 * ch-lex.h: Remove unused RID_'s. Make sure RID_MAX is last.
8031 * ch-decl.c (init_decl_processing): Moved ridpointers
8032 initialization to init_lex(). Use them consistently.
8033 * ch-lex.l (RETURN_PREDEF): New macro. Uses ridpointers
8034 for all preferedined types.
8035 * ch-lex.l (init_lex): Upper case all RIDs, so grantfiles
8036 (and error messages?) will use uppercase.
8037 * ch-decl.c (build_chill_enumerator): Merged into build_enumerator.
8038 * ch-lang.c (finish_chill_enum): Merged into ...
8039 * ch-decl.c (finish_enum): .... this function.
8040 * ch-decl.c (layout_enum): New function. Does all the pass-2
8041 stuff for enumerations.
8042 * ch-decl.c (finish_enum, start_enum): Only trivial pass-1 stuff.
8043 * ch-satisfy.c (satisfy): Support ENUMERAL_TYPE. Improve ranges.
8044 * ch-parse.y: Check ignore_exprs instead of ignore_decls when
8045 parsing and building types.
8047 Sun Aug 8 16:26:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8049 * ch-lex.h: Add some missing RID_'s.
8050 * ch-decl.c (init_decl_processing):
8052 Sun Aug 8 15:32:54 1993 Bill Cox (bill@rtl.cygnus.com)
8054 * ch-grant.c (module_has_actions): Delete this and all
8055 references. It was a botch.
8056 (chill_finish_module_code): Move finish_chill_function_call inside
8057 the test whether actions were found at module level.
8058 Use current_function_name in the initializer build,
8059 and init_entry_id in the module_list setup.
8060 (chill_finish_compile): Call lookup_name to get the
8061 decl from a module_init_list entry.
8062 * ch-parse.y: Revert module_has_actions additions.
8063 * ch-satisfy.c (satisfy): After satisfying the type referenced
8064 by a pointer_type, call layout type for the pointer.
8065 * ch-tasking.c (tasking_registry): Only active in pass 2.
8066 * ch-typeck.c: Call build_chill_pointer_type everywhere.
8068 Sun Aug 8 13:13:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
8070 * ch-tree.def (PAREN_EXPR): New unary op: '(' EXPR ')'.
8071 * ch-parse.y (primval): If pass 1, generate PAREN_EXRR.
8072 * ch-satisfy.c (satisfy): Reduce PAREN_EXPR to its operand.
8073 * ch-grant.c (decode_const): Handle PAREN_EXPR.
8074 * ch-decl.c (pop_module): Fix think. Inprove error message.
8076 Sun Aug 8 10:31:04 1993 Bill Cox (bill@rtl.cygnus.com)
8078 Generally, replace 'function' with 'procedure'
8079 and 'type' with 'mode' in error/warning messages.
8080 * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8081 * ch-decl.c: See Generally.
8082 (init_decl_processing): Call build_tasking_enum from here.
8083 Now, it doesn't need a flag to do its work only once.
8084 Also, build the TaskingStruct decl here.
8085 * ch-grant.c: Remove references to `current_grant_file';
8086 there's now only one. See Generally. Do gcc -Wall cleanup.
8087 * ch-lex.l: Remove references to `current_grant_file'
8088 and delete USE_GRANT_FILE token.
8089 * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8090 * ch-tasking.c (tasking_setup): Move TaskingStruct build
8091 to init_decl_procesing. Delete build_tasking_enum calls.
8092 * ch-tree.c: See Generally.
8093 * ch-tree.h: Add proto for build_tasking_struct.
8095 Sun Aug 8 08:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8097 * ch-decl.c: Make unnamed_module_number static, reset it to zero
8098 before pass 2, so same module names get generated in both passes.
8099 (push_module): Return user name or generated name.
8100 (init_decl_processing): Build __tmp_initializer_type.
8101 Code moved from chill_finish_module_code.
8102 * ch-grant.c: New flag module_has_actions. Set TRUE by push_actions,
8103 used, reset by chill_finish_module_code. Replaces test of
8104 module_function_name. Shuffled finish-up code to end of module.
8105 (chill_finish_module_code): Use global_bindings_p to determine
8106 'nested' parameter for finish_chill_function. Use new
8107 module_has_actions flag to trigger generation of module_init list
8108 entry. We now can handle not only multiple modules per file,
8109 but modules nested inside functions (I think).
8110 * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8111 * ch-parse.y (push_actions): Set module_has_actions flag.
8112 (modulion, spec_module): Save possibly-generated module name
8113 returned by push_module.
8114 * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8115 case for POINTER_TYPE.
8116 * ch-tasking.c: Replace build_pointer_type calls with
8117 build_chill_pointer_type calls.
8118 * ch-tree.h: Fix, add prototypes.
8120 Sat Aug 7 17:32:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8122 * ch-parse.y: Remove many useless tests for ignore_decls.
8123 * ch-parse.y: Remove obsolete support for _EXTERN and _INIT.
8124 * ch-parse.y: Reset ignore_exprs while parsing declarations,
8125 but handle initializers appropriately.
8126 * ch-grant.c (decode_constant): Update (for 2-pass) support
8127 for CONSTRUCTOR and SET_TYPE.
8128 * ch-grant.c (chill_initializer_name): Renamed to
8129 module_function_name.
8130 * ch-grant.c (function_generated): Removed;
8131 use module_function_name != NULL instead.
8132 * ch-tree.h, ch-parse.y: Removed unused current_locnamelist.
8133 * ch-decl.c (push_modedef): Simplify to take just one mode.
8134 * ch-tasking.c (make_process_struct, make_signal_struct):
8135 Change calls to push_modedef correspondingly.
8136 * ch-tree.c (build_powerset_type): Move the stuff that's
8137 suitable for pass 1 into new function make_powerset_type,
8138 and that for pass 2 into new function layout_powerset_type.
8139 * ch-lang.c: Move pass-1 stuff from build_chill_pointer_type
8140 into new function make_chill_pointer_type, and split
8141 build_chill_struct_type into make_chill_struct_type
8142 and layout_chill_struct_type.
8143 * ch-decl.c (grok_chill_variantdefs): Similarly split up
8144 into make_chill_variants and layout_chill_variants.
8145 * ch-satisfy.c (satisfy): Add support for SET_TYPE, and UNION_TYPE.
8146 Call layout_chill_struct_type for RECORD_TYPE.
8148 Sat Aug 7 09:59:55 1993 Bill Cox (bill@rtl.cygnus.com)
8150 Fixup previous check-in.
8151 * ch-decl.c: Restore unnamed_module_number, which *was*
8153 * ch-grant.c (get_init_function_id): Return type s.b. tree.
8155 Sat Aug 7 09:28:17 1993 Bill Cox (bill@rtl.cygnus.com)
8157 * ch-decl.c (print_lang_decl, print_lang_type): Add
8158 correct parameter list. Add print statements for
8159 nesting_level, signal_dest, buffer_size, and the
8161 (decl_temp, decl_temp1): Delete unused code.
8162 (init_decl_processing): Call build_instance_type and
8163 build_tasking_type in both passes.
8164 Generally change current_scope comparisons against
8165 global_scope to global_biidings_p calls.
8166 * ch-except.c (push_handler): Add space before parameter paren.
8167 * ch-grant.c (chill_start_module, chill_finish_module,
8168 chill_finish_compile): Complete re-write for 2-pass and
8169 multiple modules per source file.
8170 * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8171 * ch-tasking.c: Diffused small adaptations to 2-pass.
8172 * ch-tree.h (print_lang_decl, print_lang_type): Correct
8174 (chill_finish_module_code): Add module name parameter.
8175 * ch-typeck.c: Fix comments, add whitespace.
8177 Fri Aug 6 12:17:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
8179 * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8180 way I allocated the shadow_list on an obstack was too fragile,
8181 so just use xmalloc/free instead.
8183 Fri Aug 6 08:31:49 1993 Bill Cox (bill@rtl.cygnus.com)
8185 * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8186 TYPE_MAX_VALUE for vanilla integer type. Only need
8187 to satisfy TREE_TYPE for integer range type.
8189 Fri Aug 6 00:53:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
8191 * ch-lang.c (build_chill_range_type): Split up into two new
8192 functions (make_chill_range_type, layout_chill_range_type);
8193 only former part is done in pass 1.
8194 * ch-lang.c (build_chill_array_type): Split up in the same
8195 way (yielding make_chill_array_type, layout_chill_array_type).
8196 * ch-satisfy.c (satisfy): Handle array and range types.
8197 * ch-tree.h (TYPE_RANGE_PARENT): Removed. Not used.
8198 * ch-parse.y (mode2): Handle optional rangesize.
8200 Thu Aug 5 15:13:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
8202 * ch-grant.c (print_an_int): Re-enable (but don't search for SYN).
8203 * ch-grant.c (raw_decode_mode): Support printing
8204 of an IDENTIFIER_NODE (unresolved type name).
8205 * ch-grant.c (decode_constant): Support printing of an unresolved
8206 IDENTIFIER_NODE, as well as some kinds of binary operations.
8207 * ch-grant.c (grant_one_decl): Don't call globalize_decl.
8209 * ch-grant.c (decode_decl): Add support for ALIAS_DECLs
8210 (from SEIZEs and GRANTs).
8211 * ch-grant.c: Remove support for multiple grantfiles.
8212 * ch-grant.c, ch-parse.y: Removed grant_count, for now at least.
8213 * ch-lex.h (in_seizefile): Moved to ch-tree.h.
8214 * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c: Removed.
8215 * ch-tree.h (CH_DECL_GRANTED): Added.
8216 * ch-actions.c (build_chill_exception_decl): Use
8217 IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8218 * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8219 Change to accept list of remember_decls and granted_decls.
8221 Thu Aug 5 11:58:21 1993 Stan Shebs (shebs@rtl.cygnus.com)
8223 * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8225 Thu Aug 5 10:03:27 1993 Bill Cox (bill@rtl.cygnus.com)
8227 * ch-decl.c (init_decl_processing): Only build types
8228 in pass 2, since dbxout machinery is only ready for
8230 * ch-grant.c (chill_finish_module_code): Do most of the
8233 Thu Aug 5 06:54:10 1993 Bill Cox (bill@rtl.cygnus.com)
8235 * ch-parse.y (receivecaseaction): Pass label-group
8237 * ch-tasking.c (build_chill_receive_case_start):
8238 Generate unique labels for each case, pass back
8239 the label-group's number.
8240 (build_chill_receive_case_end): Accept label-group
8241 number from parser, use it to build labels
8242 * ch-tree.h: Change prototypes.
8244 Wed Aug 4 13:21:13 1993 Per Bothner (bothner@kalessin.cygnus.com)
8246 * ch-decl.c (decl_temp1): Call finish_decl().
8248 * ch-grant.c (chill_start_module_code): Don't call
8249 push_c_function_context - not needed since we're not nested.
8250 * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8251 with nested=0, not 1 (twice).
8252 * ch-grant.c (chill_finish_module_code): Clear function_generated.
8254 Tue Aug 3 20:06:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8256 * ch-decl.c (push_chill_extern_function): Set TREE_PUBLIC.
8258 Tue Aug 3 19:08:51 1993 Bill Cox (bill@rtl.cygnus.com)
8260 * ch-actions.c (build_chill_function_call): Handle parameter
8261 attributes better - LOC still not handled.
8262 * ch-tree.def: Amplify comment.
8264 Tue Aug 3 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8266 * ch-lex.l (handle_use_seizefile_directive): Update
8267 next_file_to_seize correctly.
8268 * ch-actions.c (build_chill_abs): Create an ABS_EXPR, not an rts_call.
8270 Tue Aug 3 14:03:50 1993 Bill Cox (bill@rtl.cygnus.com)
8272 First Aid, not real long-term fixes...
8273 * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8274 current_module pointer for NULL before using it.
8275 (init_decl_processing): Set up wchar_type_node before using it.
8276 * ch-grant.c (chill_finish_module_code): Don't build
8277 initializer_type or initializer_decl until pass 2.
8278 * ch-lex.l: Readability - single statement per line.
8279 * ch-tasking.c (make_process_struct): Hide get_parm_info
8280 call inside #ifdef for now.
8282 Tue Aug 3 09:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8284 * ch-decl.c (pushdecllist): Add forward decl.
8285 * ch-parse.y (handler): Add rules which allo
8286 empty onalternativelist.
8287 * ch-tasking.c (get_tasking_code_name): Add
8288 cast of alloca() result.
8290 Tue Aug 3 00:11:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8292 * ch-lex.l (handle_use_seizefile_directive): Make files_to_seize
8293 a queue. Check for duplicate use_seizefile-s immediately.
8294 * ch-lex.l (yywrap): Use this more portable mechanism,
8295 rather than the flex-specific <<EOF>>. Also, clear saw_eof.
8296 * ch-lex.l: Don't call push_module/pop_module automatically.
8297 * ch-decl.c (push_chill_extern_function: Modify for 2-pass.
8299 Mon Aug 2 14:24:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
8301 * ch-parse.y: Rename actionstatement -> nonempty_actionstatement.
8302 New actionstatement is now nonempty_actionstatement | SC. Use
8303 where appropriate. This is closer to Blue Book terminology.
8305 * ch-tree.def (ALIAS_DECL): New tree type.
8306 * ch-decl.c: Merged all the code we need (I hope) from c-decl.c,
8307 which is no longer used for cc1chill.
8308 * c-decl.c: Remove all Chill-related code.
8309 * Makefile.in (CHILL_OBJS): Don't use c-decl.o.
8310 * ch-decl.c: No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
8311 Introduce a 'nesting_level' level concept instead.
8312 * ch-decl.c: Merged push_scope into pushlevel; pop_scope into
8313 poplevel; struct scope and struct binding_level.
8314 * ch-decl.c: Other major name lookup algorithm changes.
8315 * ch-tree.h (struct lang_identifier): Remove granted_value field.
8316 * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro): Removed.
8317 * ch-tree.h (DECL_NESTING_LEVEL): New macro.
8318 * ch-satisfy.c (satisfy, satisfy_decl): New 'lookup_only' arg.
8319 * ch-tree.h (struct module): New fields nesting_level, granted_decls.
8320 * ch-grant.c (seize_implied_names, do_seize, chill_seize): Move ...
8321 * ch-decl.c: ... here.
8322 * ch-grant.c (start_chill_function2): Remove.
8323 * ch-grant.c (chill_start_module_code): Now called in both passes.
8324 * ch-actions.c (lang_init): Code moved to ...
8325 * ch-decl.c (init_decl_processing): ... here.
8326 * ch-actions.c (chill_expand_result, chill_expand_return):
8327 Handle being called during pass 1.
8328 * ch-lex.l (name_type_signal): Don't try lookup_name during pass 1.
8329 * ch-parse.y (PUSH_ACTION, push_action): Is now invoked during
8330 both passes, for the sake of chill_start_module_code. Change all
8331 actions rules to invoke PUSH_ACTION unconconditionally.
8332 * ch-parse.y, ch-decl.c (push_module): Module label is now optional.
8334 Mon Aug 2 15:02:32 1993 Bill Cox (bill@rtl.cygnus.com)
8336 * expr.c (store_constructor): Convert library function
8337 parameters to proper integer precision before calling
8340 Mon Aug 2 08:46:06 1993 Bill Cox (bill@rtl.cygnus.com)
8342 * ch-grant.c (seize_implied_names): Check POWERSET's
8343 base type for names to seize.
8345 Fri Jul 30 19:59:30 1993 Bill Cox (bill@rtl.cygnus.com)
8347 * ch-tree.h: Delete unused definition of JOINER
8348 macro. Expand comment about INSTANCE_TYPE.
8350 Thu Jul 29 14:57:11 1993 Bill Cox (bill@rtl.cygnus.com)
8352 * ch-convert.c (unreferenced_type_of): New function.
8353 (convert): Call new function.
8355 Thu Jul 29 07:34:57 1993 Bill Cox (bill@rtl.cygnus.com)
8357 * ch-lex.l: Allow C-style comments before the module
8358 header. Use #undef to assure that strchr isn't a
8359 macro (portability), and remove the extra paren-
8360 theses in its extern name.
8361 (check_newline): Call getlc less often, so that user
8362 labels aren't lowercased before their time. Add BEGIN
8363 INITIAL before starting pass 2, so the header is
8366 Wed Jul 28 14:23:24 1993 Bill Cox (bill@rtl.cygnus.com)
8368 * ch-grant.c (chill_start_module_code): Cast alloca()
8371 Wed Jul 28 12:39:51 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8373 * ch-grant.c: remove extra parens around extern function
8374 declarations (they confuse the DECstation compiler)
8376 Wed Jul 28 12:28:56 1993 Bill Cox (bill@rtl.cygnus.com)
8378 * Makefile.in: Stop deleting flex's #line lines.
8380 Wed Jul 28 07:05:25 1993 Bill Cox (bill@cygnus.com)
8382 Adjust after FSF merge:
8383 * calls.c (expand_call): Add comment.
8384 * ch-expr.c: Add newline.
8385 * expmed.c (store_split_bit_field): Add comment.
8387 Tue Jul 27 17:32:13 1993 Bill Cox (bill@rtl.cygnus.com)
8389 * ch-actions.c (build_chill_binary_op): Set code0 and
8390 code1 only in pass 2.
8391 (get_result_tmp_name): Cast alloca return for portability.
8392 * ch-decl.c (pop_module): Test current_module ptr before
8394 * ch-lex.l: Set lineno and input_filename for pass 2
8397 Tue Jul 27 15:14:06 1993 Bill Cox (bill@rtl.cygnus.com)
8399 * ch-lex.l: Fix the syntax error at line 329. Will I
8400 *ever* quit fixing these in the ch-lex.c file? Stay tuned..
8402 Tue Jul 27 15:01:25 1993 Bill Cox (bill@rtl.cygnus.com)
8404 * ch-lex.l: Pervasive rewrite for queueing seize files,
8405 then parsing them at the end of pass 1. Still some
8408 Tue Jul 27 07:40:39 1993 Bill Cox (bill@rtl.cygnus.com)
8410 * chill.in: Check for .i suffices only, and use -xchill
8411 to bracket the argument.
8413 Thu Jul 22 19:17:23 1993 Bill Cox (bill@rtl.cygnus.com)
8415 * c-decl.c (print_lang_identifier): Oops. Syntax error.
8417 Thu Jul 22 18:56:16 1993 Bill Cox (bill@rtl.cygnus.com)
8419 * c-decl.c (pushdecllist): Standardize loop for readability.
8420 * ch-decl.c (decl_temp): Call pushdecllist to store decl
8421 into hash table, move after current_scope declaration.
8422 (decl_temp1): Move also.
8423 * ch-lex.l (getlc): New function. Force char to lower case.
8424 (check_newline): Call it, so comparisons work on uppercase
8427 Wed Jul 21 22:17:22 1993 Bill Cox (bill@rtl.cygnus.com)
8429 * ch-decl.c (do_decls): Add saving of decl tree
8430 address into ID node in pass 2, reindent.
8431 * ch-grant.c (start_chill_function2): New function.
8432 (chill_start_module_code, chill_finish_module_code): Call it.
8433 * ch-loop.c (build_temporary_variable, begin_for_range):
8434 Replace start_decl, finish_decl pairs with decl_temp1 calls.
8435 * ch-parse.y (parnamelist): Eliminate warning by eliminating
8437 * ch-actions.c, ch-tasking.c: Replace do_decls calls with
8439 * ch-tree.h: New prototypes.
8440 * stmt.c (stamp_nesting_label): Check parameters for NULL.
8441 * toplev.c (lang_options): Add '-L' option.
8443 Wed Jul 21 21:06:18 1993 Bill Cox (bill@rtl.cygnus.com)
8446 * ch-decl.c (save_decl): Make definition match forward declaration.
8447 * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
8448 in the macro - Sun's compiler throws warnings. Thanks, Brendan.
8449 * ch-satisfy.c (satisfy): Add forward declaration.
8450 (SATISFY): Add outer parens for greater safety.
8452 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8454 * c-decl.c (pushdecllist): New function. Add a list of decls
8455 to the current scope, checking for duplicates.
8456 * c-decl.c (start_function): Remove some Chill junk.
8457 (This function should no longer be used for Chill.)
8458 * ch-lex.l (ch_lex_init): New function, to re-init for 2nd pass.
8459 * ch-lex.l (<<EOF>>): Cleanup, and re-start for 2nd pass.
8460 * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG): New flags.
8461 * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
8462 Implement. Add comments.
8463 * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
8464 Better Blue Book type checking.
8465 * ch-actions.c (finish_chill_binary_op): Handle folding
8466 and other stuff that couldn't be done in pass 1.
8467 * ch-actions.c (build_chill_binary_op): Bail out early if pass 1.
8468 Use new CH_ROOT_MODE macro to handle integer promotions etc.
8469 * ch-except.c (push_handler): Bail out if pass 1.
8470 * ch-tasking.c (make_process_struct): Defer making this work.
8471 * ch-parse.y (assignaction): Simplify, and move some code ...
8472 * ch-expr.c (chill_expand_assignment): ... here.
8473 * ch-typeck.c (chill_root_mode, chill_resulting_mode,
8474 chill_compatible_classes): New functions, implementing the
8475 correspondingly named Blue Book concepts.
8476 * ch-parse.y generally: Lots of little tweaks to support
8478 * ch-parse.y (push_module, pop_module): Moved to ...
8479 * ch-decl.c (push_module, pop_module): ... here.
8480 * ch-parse.y (push_action): New function.
8481 * ch-parse.y (pdef): Move complicated action to ...
8482 * ch-parse.y (end_function): ... new function here.
8483 * ch-parse.y (procedure): Major re-write.
8484 * ch-parse.y (paramname, paramnamelist): New, to avoid conflict (?).
8485 * ch-decl.c (do_decls, push_syndecls, push_modedef,
8486 start_chill_function, finish_chill_function): Do different things
8487 on each pass. Hence, can use code in c-decl.c to lesser extent.
8488 * ch-decl.c (build_chill_function_type): First arg is now
8489 just the return type, rather than a singleton list.
8490 * ch-decl.c (massage_param_node): Remove not needed (we
8491 now encode parameter attributes directly in the TREE_PURPOSE).
8492 * ch-decl.c (chill_munge_params): New function, called by parser.
8493 * ch-decl.c (push_parms): Removed function.
8494 * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
8495 New functions, to coordinate decls between passes.
8497 Wed Jul 21 14:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
8499 * ch-actions.c (lang_decode_option): Add option -Lpath
8500 to specify seize file path.
8501 (ch_singleton_set): Readability formatting.
8502 Add comment, move functions to easier found places.
8503 * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
8504 (register_seize_path): Use memcpy so pathlen has an effect.
8505 * gcc.c (default_compilers): Add -L option to chill
8508 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8510 * ch-satisfy: New file. Used for name lookup.
8511 * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
8513 Wed Jul 21 12:16:51 1993 Bill Cox (bill@rtl.cygnus.com)
8515 * toplev.c (main): Delete -L option handling - breaks
8516 non-chill compilers.
8518 Wed Jul 21 09:29:24 1993 Bill Cox (bill@rtl.cygnus.com)
8520 * ch-grant.c: #undef strchr and strrchr names in extern
8521 declarations, to prevent RS6000 compiler from reporting
8522 their misuse as macros.
8523 * ch-lex.l (setup_seizefile_read): Refer to list of paths
8524 for seizefiles specified by -L options on command line.
8525 (register_seize_path): Add a new path to the seize file list.
8526 * toplev.c (strip_off_ending): Recognize chill suffix.
8527 (main): Recognize -L option, specifying a seize file path.
8529 Tue Jul 20 12:41:52 1993 Bill Cox (bill@rtl.cygnus.com)
8531 * ch-lex.l (convert_float): Make it really portable,
8532 using the appropriate macros.
8534 Tue Jul 20 11:26:02 1993 Bill Cox (bill@rtl.cygnus.com)
8536 * ch-lex.l (convert_float): More casts for vxworks
8539 Tue Jul 20 11:01:30 1993 Bill Cox (bill@rtl.cygnus.com)
8541 * ch-lex.l (convert_float): Give variable `d' correct
8542 type so build_real call is correct. Should remove
8543 vxworks portability problem.
8544 (convert_float): Re-indent to standards.
8546 Mon Jul 19 17:32:10 1993 Bill Cox (bill@rtl.cygnus.com)
8548 * ch-actions.c (build_char_array_expr): Add field decls to
8549 constructor. Now, it generates the library call.
8550 * ch-expr.c (chill_expand_array_assignment): Make sure that all
8551 error messages say 'mode' not 'type'.
8553 Mon Jul 19 14:44:46 1993 Bill Cox (bill@rtl.cygnus.com)
8555 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
8556 ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
8557 Make sure that all error messages say 'mode' not 'type'.
8558 * ch-decl.c (push_modedef): Add novelty computation,
8559 storage in each newmode.
8560 * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
8561 Reformat slightly for readability. Fix comments.
8562 * ch-tree.h: Delete print_lang_type prototype.
8564 Mon Jul 19 06:43:51 1993 Bill Cox (bill@rtl.cygnus.com)
8566 * ch-actions.c (chill_expand_return): Disable
8567 error message which requires 2-pass analysis, for
8569 * ch-convert.c (convert): Build length-only constructor
8570 for empty string (PR 2930).
8572 Fri Jul 16 16:08:33 1993 Bill Cox (bill@rtl.cygnus.com)
8574 * ch-expr.c (chill_expand_array_assignment): Check
8575 non-varying string assignments for conformance to
8576 the "string assignment condition" (PR 2920).
8578 Thu Jul 15 13:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
8580 * ch-actions.c (build_chill_array_expr): Check parameters.
8581 Call convert to build unitary array from scalar if
8582 needed. Rewrite CONCAT_EXPR handling.
8583 * ch-convert.c (build_array_type_for_scalar): New functions.
8584 (convert): Call new function, to convert scalar to unitary
8585 array. Only call chill_expand_tuple if expression hass
8587 * ch-expr.c (chill_expand_expr): Allow a larger static
8588 varying array to be assigned to a smaller, with a runtime
8589 test (to be provided).
8590 * ch-parse.y (locdec): Comment out bogus error msg.
8591 (elementlist): Replace several lines with chainon call.
8592 * ch-tree.h (SCALAR_P): New macro. New prototype for
8593 build_array_type_for_scalar.
8594 * ch-typeck.c (build_chill_cast): Re-indent.
8595 (chill_expand_tuple): Comment out strange addition of
8596 varying string's length to front of constructor list.
8598 Thu Jul 15 05:58:46 1993 Bill Cox (bill@rtl.cygnus.com)
8600 * ch-except.c (start_handler_array): Use unique identifier for
8601 exception array, so we can have > 1 array per reach
8602 (PR 2931). The change was originally entered June 23, and
8605 Mon Jul 12 16:07:53 1993 Bill Cox (bill@rtl.cygnus.com)
8607 Get executable test cases running again...
8608 * c-typeck.c (build_function_call): Bypass default
8609 parameter promotions, format param syntax check for
8610 CHILL; they've already been converted in
8611 build_chill_function_call.
8612 * ch-actions.c (chill_expand-return): Correct tests
8613 for function which returns no value.
8614 * ch-convert.c (base_type_size_in_bytes): Check for
8615 NULL type parameter, just return.
8616 (convert): Allow conversion of CHAR to varying array
8618 Change error msg to "conversion" from "assignment".
8619 Remove default from case, which short-circuited before
8620 REFERENCE_TYPEs got converted. Deleted second copy
8621 of REFERENCE_TYPE code.
8622 * ch-lang.c (build_chill_range_type): Simply exit if
8623 NULL input parameter.
8624 * ch-loop.c: Fix comment.
8626 Sun Jul 11 11:27:08 1993 Bill Cox (bill@cygnus.com)
8628 * ch-actions.c (chill_expand_result, chill_expand_return):
8629 Move here from ch-typeck.c. Add a temporary to remember the
8630 result value in. Change return handler to fetch that
8631 temporary value, if there is one.
8632 * ch-parse.y (pdef): Call chill_expand_return to fetch
8634 * ch-tree.h, ch-typeck.c: Move return, result functions to
8635 ch-actions.c. And their prototypes.
8637 Fri Jul 9 15:47:51 1993 Bill Cox (bill@rtl.cygnus.com)
8639 * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
8640 ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
8641 ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
8642 ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
8644 Fri Jul 9 09:41:05 1993 Bill Cox (bill@rtl.cygnus.com)
8646 * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
8647 (print_integer): Delete old non-working INSTANCE code.
8648 * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
8649 * ch-parse.y (rccase_label): Move all actions inside if.
8650 Use BUFFERNAME to recognize receice case buffer clause,
8651 eliminate one shift-reduce conflict.
8652 * ch-tasking.c (build_buffer_descriptor): Check for
8653 CH_DECL_BUFFER flag, remove unused code.
8655 Thu Jul 8 11:17:32 1993 Bill Cox (bill@rtl.cygnus.com)
8657 Declaring and sending buffers.. first draft
8658 * ch-actions.c (lang_init): Define the send_buffer runtime
8660 * ch-decl.c (do_decls): Standardize loop, so stepping
8662 * ch-lex.l: Clean up prototypes for readability.
8663 * ch-parse.y (sendaction): Add send buffer action.
8664 (locdec): Add rule for buffer declaration.
8665 * ch-tasking.c (generate_tasking_code): standardize indentation.
8666 (make_signal_struct): Readability changes.
8667 (build_chill_send_buffer, build_buffer_decl,
8668 build_buffer_descriptor): New functions.
8669 * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
8670 buffer's maximum queue length in buffer decl.
8671 (CH_DECL_BUFFER): Add flag in decl. Clean up for
8672 readability. Add prototypes.
8673 * ch-typeck.c (build_chill_cast): Call convert rather
8674 than storing directly into TREE_TYPE field.
8676 Tue Jul 6 12:34:32 1993 Bill Cox (bill@rtl.cygnus.com)
8678 * ch-actions.c (lang_init): Set warn_switch so case labels
8679 get checked. Move build_chill_case_expr to ch-expr.c.
8680 * ch-expr.c (chill_expand_case_expr): Enable checking
8681 of expression case labels.
8682 * ch-grant.c: Move a comment.
8684 Mon Jul 5 10:02:27 1993 Wilfried Moser (fs_moser at rcsw1j)
8686 * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
8687 * ch-except.c (initialize_exceptions): Change the layout of the
8688 structure __ch_handler. The entry __jbuf is moved to the end
8689 of the structure and its size was changed to _JBLEN+10.
8690 * ch-decl.c (push_chill_extern_process): Add processing of
8691 processes with no arguments.
8692 * ch-grant.c (decode_decl, do_seize): Add processing of
8693 processes with no arguments.
8694 * ch-tasking.c (build_process_header, build_chill_start_process):
8695 Add processing of processes with no arguments.
8696 (make_process_struct): Add processing of IN attribute for
8698 (tasking_setup): Add NUL-character to name of a tasking
8699 element. The name must be NUL terminated.
8700 (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
8701 to 0 with a warning if -Wall specified on command-line.
8703 Fri Jul 2 16:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
8705 * ch-parse.y: Change 'empty' comments to new non-terminal
8706 so that exyacc doesn't discard them.
8707 * ch-lang.c (build_chill_range_type): New error messages.
8709 Fri Jul 2 12:43:25 1993 Bill Cox (bill@rtl.cygnus.com)
8711 * ch-parse.y (action): Catch and report actions which
8712 shouldn't have exception clauses, but do. Unfortunately,
8713 catching more than one of these per compilation will
8714 have to await the general addition of syntax error
8715 recovery to the parser.
8717 Fri Jul 2 10:45:35 1993 Bill Cox (bill@rtl.cygnus.com)
8719 * ch-parse.y (locdec): Issue error for initialization
8720 of bitstring with tuple, not for powerset init with
8723 Thu Jul 1 15:29:26 1993 Bill Cox (bill@rtl.cygnus.com)
8725 * ch-lang.c (build_chill_array_type): Check for indices
8726 that didn't fold into constants, issue error (PR 2924b).
8727 * ch-parse.y: Add novelty counter, alphabeticalize.
8728 * ch-tree.h: Define CH_NOVELTY for novelty checks later.
8730 Thu Jul 1 14:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
8733 * chill.in: Add -ansi switch at compiler call to avoid
8734 translation of i.e. sun to 1 by cpp.
8736 Wed Jun 30 22:21:33 1993 Bill Cox (bill@rtl.cygnus.com)
8738 * ch-grant.c (raw_decode_mode): Add code for
8739 integer and enumeral ranges. Standardize indentation.
8741 Wed Jun 30 14:02:23 1993 Bill Cox (bill@rtl.cygnus.com)
8743 * ch-grant.c (print_an_int): New function to print a
8744 decimal integer string or the CONST_DECL (SYN) which
8746 (print_integer): Call the above function. Replace
8747 calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
8748 comparisons, as suggested by Jim Wilson.
8749 (decode_decl): Set current_grant_modename sooner,
8750 be sure to clear it when done.
8752 Wed Jun 30 10:10:57 1993 Bill Cox (bill@rtl.cygnus.com)
8754 * ch-actions.c (build_max_min): Change interface to accept
8755 just a max/min flag. Get min/max values from an
8756 enumeral constructor.
8757 (build_chill_max, build_chill_min): Change calls to
8759 * ch-lang.c (deep_const_expr): Check for NULL_TREE
8760 arguments, don't seg fault.
8762 Wed Jun 30 09:20:09 1993 Bill Cox (bill@rtl.cygnus.com)
8764 * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
8765 to switch cases, preventing abort.
8767 Tue Jun 29 19:04:37 1993 Bill Cox (bill@rtl.cygnus.com)
8769 * ch-expr.c: Update comment.
8770 * ch-parse.y (range_or_mode): New non-terminal used in
8771 lexpr to implement mode as case label.
8773 Tue Jun 29 13:13:46 1993 Bill Cox (bill@rtl.cygnus.com)
8775 * ch-actions.c (build_chill_case_expr): Pass in the
8776 optional ELSE clause, error for multiple case-selector
8777 expressions, error for missing ELSE clause.
8778 * ch-expr.c (chill_expand_assignment): Error if multiple
8779 location assignment and locations not novelty
8781 * ch-parse.y (caseaction): Add range_list_clause non-
8782 terminal, sorry message for it.
8783 (assignaction): error if operator used on multiple
8785 (case_expr): Pass optional ELSE tree to
8786 build_chill_case_expr for checking.
8787 * ch-tree.h (build_chill_case_expr): Change proto.
8789 Fri Jun 25 17:22:41 1993 Bill Cox (bill@rtl.cygnus.com)
8791 * ch-actions.c (chill_comptypes, build_chill_binary_op):
8792 Allow PROC mode variables.
8793 * ch-convert.c (convert): Turn a NULL literal into a zero
8794 valued pointer-to-function, given such a type. Also
8795 build the ADDR_EXPR of a function variable.
8796 * ch-grant.c: Pervasive -Wall -pedantic cleanup.
8797 (print_enumeral, print_integer, print_struct) Moved these
8798 large functions out of the switch in raw_decode_mode for
8799 readability, and to encourage future code-sharing.
8800 (print_proc_tail, print_proc_exceptions): Moved these out
8801 of decode_decl, to share them. They're used also to
8803 * ch-parse.y (mode2): Enable PROC modes.
8804 (procmode): Represent PROC mode as a ptr-to-function type.
8805 (call): Recognize ptr-to-function as indirect call.
8806 Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
8808 Thu Jun 24 15:59:20 1993 Bill Cox (bill@rtl.cygnus.com)
8810 * ch-grant.c: (raw_decode_mode): Add support for unnamed
8811 and user-numbered enumeration members.
8813 Thu Jun 24 13:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
8815 * ch-actions.c (build_chill_array_expr, build_chill_length):
8816 Explicitly convert a varying array's length field to an
8817 integer_type_node, now that it's only a chill_integer_
8819 * ch-expr.c (chill_expand_expr,
8820 expand_assignment_to_varying_array,
8821 chill_expand_array_assignment,
8822 expand_varying_length_assignment): Explicitly
8823 convert a varying array's length field to an integer_type_node,
8824 now that it's only a chill_integer_type_node.
8825 * ch-loop.c (init_loop_counter, top_of_loop_test): Change
8826 to handle varying array location iterations.
8827 * ch-parse.y (mode2): Count number of named SET members,
8828 as opposed to '*' members. Issue error if there were none.
8829 (setelement): Count named set members. Generate a unique
8830 identifier for the '*' element.
8831 * ch-typeck.c (validate_varying_array_ref): Explicitly
8832 convert a varying array's length field to an integer_type_node,
8833 now that it's only a chill_integer_type_node.
8835 Wed Jun 23 19:18:28 1993 Bill Cox (bill@rtl.cygnus.com)
8837 * ch-lang.c (finish_chill_enum): Change test for too-
8839 * ch-parse.y (setelement, optsetvalue): Allow numbered,
8840 unnamed set elements.
8842 Wed Jun 23 16:25:06 1993 Bill Cox (bill@rtl.cygnus.com)
8844 * c-typeck.c (process_init_constructor): Suppress
8845 errors about un-initialized array elements if the
8846 array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
8847 * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
8848 enumerations *can* be only a byte in size.
8849 (adjust_parm_or_field): Convert untyped parameter before
8850 looking at its type to process it.
8851 * ch-convert.c (convert): Generate [ -1, -1 ] value for
8853 * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
8854 type, so that output_constant doesn't seg fault.
8855 * ch-except.c (start_handler_array): Use unique identifier for
8856 exception array, so we can have > 1 array per reach.
8857 * ch-lang.c (finish_chill_enum): Error if number of
8858 enumeration values exceeds 256.
8859 * ch-parse.y (check_end_label): Error, not warning if start
8860 and end labels don't match.
8861 (assignaction): Convert RHS. Allows untyped tuples to be
8862 passed to stabilize_reference.
8863 (exceptlist, onexceptprefix): Error if non-unique exception
8865 * ch-tree.c: Added form feeds, comment reformatted.
8866 * ch-typeck.c (chill_expand_tuple): Compare tree value to
8867 NULL_TREE, not zero. Add a constructor element for a
8868 VARYING array's length to the constructor list.
8869 (build_varying_struct): Mark the type as VARYING for
8870 process_init_constructor.
8871 * toplev.c (lang_options): Add '-lang-chill' and
8872 '-fchill-grant-only' options to table.
8874 Tue Jun 22 13:13:41 1993 Bill Cox (bill@rtl.cygnus.com)
8876 * ch-actions.c (build_chill_function_call): Add check
8877 to prevent calling a PROCESS like a PROCEDURE.
8878 * ch-parse.y (rcalternative): Add check for an
8879 receive case alternative after a RECEIVE CASE
8881 * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
8882 * ch-lang.c (lang_finish): Remove resetting errorcount
8883 and sorrycount for granting.
8885 Mon Jun 21 17:56:48 1993 Bill Cox (bill@rtl.cygnus.com)
8887 Receiving signals works.
8888 * ch-actions.c (lang_init): Add else_clause flag to
8889 __wait_signal parameter list.
8890 * ch-lex.l: Add SIGNALNAME token, return when appropriate.
8891 * ch-parse.y (SIGNALNAME): New token. Delete
8892 empty_untyped_exprlist token, no longer used. Add
8893 name_or_signal non-terminal. Standardize a few NULL
8894 tests. Add real RECEIVE CASE semantics. Add checks that
8895 SIGNALS, BUFFERs are only declared at global scope.
8896 (call): Add signal declarations with/without data fields.
8897 * ch-tasking.c (get_tasking_code_name, get_tasking_code,
8898 build_chill_receive_case_start, build_chill_receive_case_end,
8899 build_chill_receive_case_label): New functions.
8900 Replace build (CONSTRUCTOR, ... calls with build_nt
8901 (CONSTRUCTOR, calls.
8902 * ch-tree.h: New prototypes.
8904 Thu Jun 17 18:36:38 1993 Bill Cox (bill@rtl.cygnus.com)
8906 SIGNAL declaration compilation, seizing & granting,
8908 * ch-actions.c (lang_init): Move instance_type_node
8909 build to ch-tasking.c. Call build_tasking_message_type.
8910 Build a type for send_signal. Put builtin_function
8911 calls into alpha order.
8912 (adjust_proc_param): Rename to adjust_parm_or_field,
8913 add is_signal flag, so signal fields can use it. Rename
8914 calls to it, add flag to calls.
8915 * ch-decl.c (push_chill_extern_signal): Add function.
8916 * ch-grant.c (decode_decl): Correct signal decl output.
8917 (do_seize): Correct check for process seizure. Add
8918 code for seized signal decl.
8919 * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
8920 * ch-loop.c (get_unique_identifier): Standardize loop
8921 temporary's name to assure that it's not granted.
8922 * ch-parse.y (SIG_NAME): Delete unused token.
8923 (spec_declist): Delete silly printf.
8924 (quasi_signaldef): Add non-terminal.
8925 (sendaction, optsendwith, optsendto, optpriority):
8926 Implement actual working semantics.
8927 (call, empty_untyped_exprlist): Allow empty signal
8928 fields between parens.
8929 * ch-tasking.c: Rename adjust_proc_param calls, add
8930 is_signal flag to calls. Make instance_type_node a
8931 type, not a TYPE_DECL, change references. Fix all
8932 CONSTRUCTOR builds. Add make_signal_struct function.
8933 Move build_instance_type here from lang_init.
8934 (build_tasking_message-type, build_signal_descriptor,
8935 build_chill_send_signal): New functions.
8936 * ch-tree.h: Add, update protos.
8937 * ch-typeck.c (build_chill_cast): Check for NULL expression
8938 type as well as error_mark.
8940 Thu Jun 17 12:28:03 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
8942 * Makefile.in (STAGESTUFF): Add chill to list.
8944 Wed Jun 16 07:12:53 1993 Bill Cox (bill@rtl.cygnus.com)
8946 * Makefile.in: Complete the renaming of ch-process.c
8948 * ch-decl.c (push_chill_extern_function): Drop is_process
8949 parameter, and marking process decl trees.
8950 (push_chill_extern_process): New function for
8951 SEIZEd processes. Lotsa form feeds added for print
8953 * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
8954 (do_seize): New parameter seize_all. Handle sseizing
8956 (chill_seize): Pass seize_all parameter.
8957 (chill_grant): Check for __tmp_ prefix, to disable
8958 *either* seizing or granting.
8959 * ch-parse.y (quasi_pdef): Delete is_process parameter for
8960 push_chill_extern_functon, call push_chill_extern_process
8962 (specialinit): Comment these rules as needed only until
8963 2-pass compiler is operational.
8964 (extprocedure): Delete is_process parameter.
8965 (simpledec): Delete `sorry' about SIGNAL decls.
8966 (optsigdest): Correct check for process name.
8967 * ch-tasking.c (build_signal_decl): Finish coding.
8968 * ch-tree.h: Add macro to save a SIGNAL's destination
8969 process name in an id node. Add/change prototype.
8971 Mon Jun 14 18:17:13 1993 Bill Cox (bill@rtl.cygnus.com)
8973 * ch-actions.c (lang_init): Build instance_type_node.
8974 Change `this' to a runtime function call.
8975 * ch-grant.c (do_seize): Generate tasking-code
8976 variable for seized process.
8977 * ch-lex.l (equal_number): Also accept synonym
8978 name for numeric value.
8979 * ch-parse.y (primval): Add process-related
8981 (signaldef, etc.): Rough draft of SIGNAL definition
8983 (stopaction): Call runtime function.
8984 (pdef): Pop symbol level if ending a process
8985 and there were parameters.
8986 (primval): Call `whoami' runtime function for THIS.
8987 * ch-tasking.c (build_process_header): Be sure
8988 to define the tasking enum, if it hasn't already
8989 been done. Only call shadow_record_fields if there
8991 (build_tasking_enum): Only call start_enum *after*
8992 checking the already_built flag.
8993 (build_copy_number, get_tasking_code,
8994 build_gen_code, build_gen_inst, build_get_ptype,
8995 build_proc_type): New functions for process-related
8997 (build_signal_decl): New function for SIGNAL
8998 declaration - rough draft.
8999 * ch-tree.def (INSTANCE_TYPE): new tree code.
9000 * ch-tree.h: New prototypes. Defines for instance
9003 Sat Jun 12 21:15:02 1993 Bill Cox (bill@rtl.cygnus.com)
9005 Get start-process action working:
9006 * ch-actions.c (adjust_proc_param): new function,
9007 extracted from build_chill_function_call and called
9009 * ch-tree.h, ch-grant.c (do_seize): Add process_type
9010 parameter to add_taskstuff_to_list call, prototype.
9011 * ch-parse.y (start_parlist): New non-terminal for
9013 (startaction): Reference start_parlist, check for
9014 integer-valued process copy-number.
9015 (optstartset): Check instance parameter - must be
9016 an INSTANCE_TYPE location.
9017 * ch-tasking.c (generate_tasking_code_variable): New
9018 function, extracted from tasking_setup and called
9019 from there. Also called from build_process_header.
9020 (build_process_header): Add process_type parameter
9021 to add_taskstuff_to_list call. Remove incrementing
9022 of process_type (moved into generate_tasking_code
9024 (build_chill_start_process): Complete rewrite.
9025 (add_tasking_stuff_to_list): Add stuffnumber parameter
9028 Sat Jun 12 06:08:09 1993 Bill Cox (bill@rtl.cygnus.com)
9030 Getting processes compiled, initialized and granted:
9031 * .cvsignore: Add chill file.
9032 * c-decl.c (shadow_record_fields): Allow PARM_DECL
9033 as well as VAR_DECL.
9034 * ch-actions.c (lang_init): Move build of
9035 initializer_type into ch-tasking.c. Change
9036 definition of THIS to function call.
9037 * ch-decl.c (massage_param_node): Add comments.
9038 (start_chill_function): Set nested flag in
9039 start_function call based upon current_function_decl,
9040 not as constant zero.
9041 * ch-grant.c (decode_decl): lotsa code by Wilfried to
9042 GRANT process decls.
9043 (finish_chill_module): Completely rewrote interface
9045 * ch-lex.l (THIS): Just return the token code.
9046 * ch-parse: Add THIS token.
9047 (processpar, processparlist): New rules, to collect
9049 (pdef): Add code to pop the process' WITH scope.
9050 (procedure): Set process WITH scope flag to zero.
9051 (process): Move most code into build_process_header.
9052 (primval): Output function call for THIS.
9053 * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9054 make_process_struct, build_process_header): New code
9055 to handle process translation and interface to runtime.
9056 * ch-tree.h: New prototypes.
9058 Thu Jun 10 13:32:51 1993 Bill Cox (bill@rtl.cygnus.com)
9060 * Makefile.in: Change ch-process.c to ch-tasking.c.
9061 A delayed part of the last change..
9063 Thu Jun 10 11:14:59 1993 Bill Cox (bill@rtl.cygnus.com)
9065 * .cvsignore: Add 'chill' file.
9066 * ch-actions.c (lang_init): Add new runtime function
9068 * ch-decl.c (push_chill_extern_function): Add is_process
9070 * ch-grant.c (decode_decl): Recognize a process for
9072 (do_seize): Put seized processes onto the tasking_list.
9073 (chill_finish_module_code): Declare init_list entry,
9074 link it onto the init_list. Call tasking_setup and
9076 * ch-lex.l: Make tasking-related variables global,
9077 delete their initialized flags.
9078 * ch-parse.y: Add is_process flag to push_chill_extern_function
9079 calls. Put processes onto the tasking_list.
9080 * ch-process.c: Renamed to ch-tasking.c.
9081 * ch-tasking.h: New file.
9082 * ch-tree.h: New, adjusted prototypes.
9084 Wed Jun 9 10:59:27 1993 Wilfried Moser (moser@deneb.cygnus.com)
9086 * chill: This file is replaced by chill.in and will be
9087 generated during 'make' and 'make install'. This script
9088 now finds the correct chillrt0.o and libchill.a during
9090 * chill.in: New file that replaced chill.
9091 * Makefile.in: Add rules to make chill out of chill.in.
9093 Wed Jun 9 09:03:55 1993 Bill Cox (bill@rtl.cygnus.com)
9095 * .cvsignore: Add gfloat.h and xlimits.h.
9096 * ch-actions.c (lang_init): Create new type for module-
9097 level initializer list entry.
9098 * ch-grant.c (chill_start_module_code): Rename actual
9099 module-level code to just the modulename, which is
9101 (chill_finish_module_code): Allocate space for initializer
9102 list entry, build real initializer function, which puts
9103 the list entry on the runtime list. Name the init function
9104 as the module's constructor function.
9105 * ch-tree.h (build_init_struct): Add prototype.
9106 * ch-typeck.c (build_init_struct): Add function, called
9108 Note: these changes require a new devo/chillrt/chillrt0.c.
9110 Thu Jun 3 17:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9112 * c-decl.c: Fix comment.
9113 * ch-actions.c, ch-grant.c: Standardize front end:
9114 #define first, etc. Add comments.
9115 (lang_init): Delete unused flag, code for inapplicable
9116 gen-decls option. (lang_decode_option): Delete
9117 gen-decls option, add grant-only option, flag.
9118 * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9119 ch-typeck.c: Add form feed after front end.
9120 * ch-expr.c: Standardize testing for error_mark node.
9121 * ch-lang.c: Remove unused deep_fold function.
9123 Fri May 21 11:04:22 1993 Bill Cox (bill@rtl.cygnus.com)
9125 * c-typeck.c (build_binary_op, build_unary_op):
9126 Recognize BOOLEAN_TYPE.
9127 * ch-actions.c (build_chill_unary_op): Remove
9128 some crufty work-arounds.
9130 Thu May 20 19:03:48 1993 Per Bothner (bothner@deneb.cygnus.com)
9132 * ch-grant.c (decode_constant): If the granted value is a
9133 cast, make sure to emit an appropriate expression conversion.
9135 Thu May 20 16:35:35 1993 Bill Cox (bill@rtl.cygnus.com)
9137 * ch-lang.c (build_chill_range_type): Initialize the
9138 precision variable. Double-negative ranges work now.
9140 Thu May 20 11:24:42 1993 Bill Cox (bill@rtl.cygnus.com)
9142 * ch-actions.c (build_unary_op): Compound a wretched
9143 hack which hides a BOOLEAN_TYPE from the underlying
9146 Wed May 19 16:45:54 1993 Bill Cox (bill@rtl.cygnus.com)
9148 * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9149 from chill_comptypes. (build_chill_unary_op): Give
9150 better name to unsigned flag.
9151 * ch-expr.c (chill_expand_assignment): Correct calling
9152 sequence for setpowersetbits runtime routine.
9153 * ch-grant.c (raw_decode_mode): Give better name to
9154 unsigned flag. (decode_constant): Check for null
9155 'val' ptr, avoid seg fault.
9156 * ch-lex.l (convert_number): Give better name to
9157 unsigned flag. (convert_bitstring): Move increment
9158 of bl counter to emphasize that it increments once
9160 * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9161 * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9162 constructor if given a singleton set constructor.
9164 Thu May 13 17:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
9166 * c-decl.c (pushdecl): Complete May 9 change.
9167 * ch-actions.c (build_chill_unary_op): Set the
9168 TREE_UNSIGNED flag FALSE for raw_decode_mode.
9169 * ch-grant.c (grant_array_type): Correct the May 12
9170 check for circularity.
9171 (raw_decode_mode): Use TREE_UNSIGNED flag to
9172 control range's printing.
9173 (chill_grant): Remove useless, bogus code.
9174 * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9175 flag TRUE for raw_decode_mode.
9177 Wed May 12 18:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9179 * ch-decl.c (push_syndecls, push_modedef): Comment
9180 reminders to check for circular definitions. Later!
9181 * ch-grant.c (grant_array_type, decode_decl): Prevent
9182 circular definitions in the use of the array's
9185 Wed May 12 16:06:13 1993 Bill Cox (bill@rtl.cygnus.com)
9187 * ch-grant.c (grant_array_type): If array_type has
9188 a name, just use it.
9189 * ch-lang.c (build_chill_range_type): Don't force
9190 unsigned ranges on output.
9191 * expr.c (store_constructor): Preclude seg fault.
9193 Wed May 12 07:49:00 1993 Bill Cox (bill@rtl.cygnus.com)
9195 * ch-actions.c (fold_set_*): Correct tests for
9196 range set-constructor list entries.
9197 (lang_init): Define setpowersetbits function.
9198 * expr.c (store_constructor): Handle non-constant
9201 Tue May 11 18:25:40 1993 Per Bothner (bothner@cygnus.com)
9203 * ch-lang.c (build_chill_range_type): If the parent type
9204 is unknown, and the endpoints of the range are integer
9205 constants, use the smallest suitable integer type.
9206 * ch-lang.c (build_chill_range_type): Remove kludge
9207 for dealing with char ranges.
9209 Tue May 11 15:24:31 1993 Bill Cox (bill@rtl.cygnus.com)
9211 * ch-actions.c (build_chill_repetition_op): Build a
9212 range-type set constructor if there's only one value
9213 in the repeated constructor.
9214 (fold_set_*): Abort if range value seen, for now.
9215 * expr.c (store_constructor): Handle range-type by
9216 storing bytes rather than bits as much as possible.
9218 Mon May 10 18:45:18 1993 Bill Cox (bill@rtl.cygnus.com)
9220 * ch-actions.c (invalid{left right}_operand): Add
9221 handlers for REPLICATE_EXPR.
9222 (build_chill_repetition_op): Build constructor list
9223 for repetition of bitstring.
9224 * ch-parse.y (call): Recognize more trees as arrays,
9226 (operand5): Add count, string temporaries, use them.
9228 Mon May 10 16:49:08 1993 Per Bothner (bothner@cygnus.com)
9230 * ch-grant.c (seize_implied_names): Fix code that assumed
9231 a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9232 * ch-grant.c (generate_set, grant_parent_of_enum,
9233 grant_parent_enum): Removed unused functions.
9234 * ch-grant.c (raw_decode_mode): Remove commented-out code.
9236 Mon May 10 10:54:57 1993 Bill Cox (bill@rtl.cygnus.com)
9238 * ch-grant.c (do_seize, seize_implied_types): Move
9239 result and parameter processing to proper place.
9240 (chill_seize): Mark unseized identifier with
9241 error_mark_node, to avoid excessive errors.
9242 * ch-parse.y (call): Check for ERROR_MARK before
9245 Sun May 9 17:21:24 1993 Bill Cox (bill@rtl.cygnus.com)
9247 * c-decl.c (pushdecl): If a strongly-visible name is
9248 seen, in conflict with a weakly-visible name, take
9249 the strongly-visible one and don't complain.
9250 * ch-actions.c (chill_comptypes): Allow chain of ref-
9251 erence types > 1 in length.
9252 * ch-grant.c: Turn disguised for-loops into actual
9253 ones, so continue works. Delete redundant code in
9254 seize_implied_names. Reindent.
9255 * expmed.c (store_split_bit_field): Disable abort for
9258 Sun May 9 17:11:33 1993 Per Bothner (bothner@cygnus.com)
9260 * ch-convert.c (convert): Move handling of SET_TYPE until
9261 after we've handled de-referencing and such like.
9262 * ch-grant.c (grant_array_type): Simplify; remove (now-)
9263 bogus call to generate_set.
9264 * ch-grant.c (get_type): Remove obsolete stuff.
9266 Fri May 7 10:30:34 1993 Bill Cox (bill@rtl.cygnus.com)
9268 * ch-actions.c (lang_init): Add definition of psslice
9269 runtime routine. (build_chill_binary_op_1,
9270 build_chill_binary_op): Have result type of
9271 TRUTH_ANDIF_EXPR be boolean, not integer. Some
9273 * ch-convert.c (convert): Use consistent notation
9275 * ch-parse.y: Add front-end pass count. (locdec):
9276 Add syntax for other BASED declaration.
9277 * ch-tree.c: Fix comment.
9278 * ch-typeck.c (build_chill_slice): Implement a runtime
9279 call for bitstring slices. (build_chill_cast):
9280 Add code for BITS_BIG_ENDIAN bit loop.
9281 (chill_expand_tuple): Don't pass ref type to
9282 digest_init, only underlying type.
9284 Thu May 6 12:52:14 1993 Per Bothner (bothner@cygnus.com)
9286 * ch-typeck.c (build_chill_cast): type_for_size takes
9287 a size in bits, not bytes.
9289 Wed May 5 19:02:55 1993 Bill Cox (bill@rtl.cygnus.com)
9291 * ch-actions.c: Break out separate routines for set
9292 folding, handle ranges in set_fold_eq and set_fold_ne.
9293 Fix folding as req'd by TTC test.
9294 * ch-grant.c (raw_decode_more): Check for content match
9295 to decide output mode, not pointer identity.
9296 * ch-typeck.c: Add cross-reference comment.
9297 * varasm.c (emit_set_data): Clarify parameter name.
9298 Handle INTEGER_CST as set constructor.
9299 (output_constant): Handle CONSTRUCTOR node for sets.
9300 Apparently forgot to actually 'checkin' this one last
9303 Wed May 5 12:23:58 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9305 * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
9307 Tue May 4 15:47:44 1993 Bill Cox (bill@rtl.cygnus.com)
9309 * ch-actions.c (fold_set_expr): new function to fold
9310 set expressions. Calls inserted into
9311 build_chill_binary_op and build_chill_unary_op.
9312 (build_chill_repetition_op): New function, called
9313 from build_chill_function_call.
9314 * ch-expr.c (chill_expand_assignment): Call
9315 build_chill_repetition_op.
9316 * ch-grant.c (decode_constant): Comment out deep_fold
9317 call. The earlier fold_set_expr calls should make
9318 this one unnecessary. Prevent seg fault when name
9319 of structure field is NULL. Standardize for loop.
9320 * ch-parse.y: Fix comments.
9321 (operand5): build a REPLICATE_EXPR. Don't call
9322 build_repetition_op until we have a type.
9323 * ch-tree.def (REPLICATE_EXPR): Define tree-code.
9324 * ch-tree.h (build_chill_repetiton_op): Fix proto.
9325 * ch-typeck.c (chill_expand_result): Call
9326 build_chill_repetition_op if needed.
9327 * varasm.c (emit_set_data): Clarify parameter name.
9328 Handle INTEGER_CST as set constructor.
9329 (output_constant): Handle CONSTRUCTOR node for sets.
9331 Mon May 3 13:06:47 1993 Per Bothner (bothner@cygnus.com)
9333 * ch-typeck.c (build_chill_cast): Allow more liberality to
9334 casting: Any discrete type to any non-discrete type that is the
9335 same size as some other discrete type (and vice versa).
9336 * stor-layout.c (layout_type, case SET_TYPE): If the number
9337 of bits will fit in a char or short, only use that many bits.
9339 Mon May 3 08:22:45 1993 Bill Cox (bill@rtl.cygnus.com)
9341 * ch-grant.c (decode_constant): Revert interpretation
9342 of SET_TYPE as integer.
9344 Mon May 3 07:55:46 1993 Bill Cox (bill@rtl.cygnus.com)
9346 * chparse.y (casealternative): Allow empty action list.
9348 Sat May 1 15:07:01 1993 Bill Cox (bill@rtl.cygnus.com)
9350 * expr.c (expand_expr): Add parameter to __inpowerset
9351 runtime call, to match new runtime.
9353 Sat May 1 14:55:58 1993 Bill Cox (bill@rtl.cygnus.com)
9355 * ch-actions.c: Cleanup from -Wall. Reindent.
9356 Redefine __inpowerset to take a 'minval' parameter
9357 that matches the new runtime. Added comments.
9358 * ch-expr.c (chill_handle_case_label): Handle
9359 NULL or ERROR trees.
9360 * ch-grant.c (get_type): Survive bogus type params,
9361 return empty string.
9362 * ch-tree.c (build_powerset_type): Diagnose powerset
9363 of non-discrete type.
9364 * ch-typeck.c (discrete_type_p): Reindent.
9366 Fri Apr 30 16:08:54 1993 Bill Cox (bill@rtl.cygnus.com)
9368 * ch-grant.c (decode_constant): Interpret SET_TYPE
9369 with integer value, so we output the same stuff as
9371 * ch-parse.y: Fix indentation.
9373 Fri Apr 30 09:34:03 1993 Bill Cox (bill@rtl.cygnus.com)
9375 * ch-actions.c (chill_comptypes): Simplify, correct
9376 integer subrange analysis.
9377 * ch-grant.c (seize_implied_names): Add handling for
9378 PROCESS_DECL, PROCESS_TYPE.
9379 (do_seize): Call seize_implied_names for process,
9380 procedure parameters and return value.
9381 * ch-lang.c (finish_chill_enum): Canonicalize enum
9383 * ch-tree.def (PROCESS_TYPE): Add.
9384 * ch-typeck.c (valid_array_index): Call chill_comptypes
9385 rather than broken macro CH_COMPATIBLE. The logic
9386 in chill_comptypes will get moved to the macro later.
9388 Thu Apr 29 13:07:55 1993 Bill Cox (bill@rtl.cygnus.com)
9390 * ch-actions.c (build_chill_lower, build_chill_upper):
9391 Handle enumeration types.
9392 (build_chill_binary_op): Call chill_comptypes
9393 to error check IN arguments. Change error
9394 messages to say 'mode' rather than 'type'. Cast
9395 tree codes when build is called.
9396 * ch-expr.c (chill_expand_array_assignment): Call
9397 chill_comptypes to validate assignment args.
9398 * ch-lex.l: Add newline for readability.
9400 Wed Apr 28 15:22:18 1993 Bill Cox (bill@rtl.cygnus.com)
9402 * Makefile.in (ch-hash.h): Add rule to build this
9403 from chill.gperf. Not yet used.
9404 * ch-actions.c (build_chill_binary_op): Allow enum
9405 subranges on RHS of IN operator.
9406 * ch-grant.c (decode_constant): Recognize
9407 error_mark_node as empty powerset initializer,
9409 * ch-lang.c (deep_fold): Return error_mark_node for
9410 NULL input pointer or incoming error_mark_node.
9411 * ch-lex.l: Ignore PACK and UNPACK keywords. Return
9412 POS, ROW, and STEP as user-defined names.
9413 (name_or_type): New function for above.
9414 * ch-parse.y: Move token defs for following, comment
9415 them separately: NOPACK, PACK, POS, ROW, STEP
9416 * varasm.c (output_constant): Check for VAR_DECLs in
9417 records & unions, like arrays. Don't abort.
9419 Tue Apr 27 17:42:29 1993 Bill Cox (bill@rtl.cygnus.com)
9421 * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
9422 rewrite for generality.
9423 * ch-decl.c (grok_chill_variantdefs): Use chill
9424 comptypes, so that subrange compatibility is ok.
9425 (start_chill_function): Use lookup_name(), not
9426 IDENTIFIER_GLOBAL_VALUE, for full generality.
9427 * ch-expr.c (chill_expand_assignment): Need to
9428 handle non-NOP modify codes here, since C code
9429 in build_modify_expr won't understand powersets,
9432 Tue Apr 27 09:05:31 1993 Bill Cox (bill@rtl.cygnus.com)
9434 * ch-actions.c (build_max_min): Assign the set's
9435 base type to the function's return type.
9436 (build_chill_function_call): Before complaining
9437 about parameter mismatches, convert certain actual
9439 * ch-expr.c (chill_expand_assignment): Before
9440 complaining about LHS/RHS mismatches, convert
9441 certain RHS expressions.
9442 * ch-grant.c (decode_constant): Deep-fold incoming
9443 expression, so we can output it.
9444 * ch-lang.c (deep_const_expr): New function, called
9445 from const_expr, actually traverses the tree
9446 looking at its leaves for 'const'ness.
9447 (deep_fold): New function to fold already-built
9449 * ch-parse.y (case_expr): Add whitespace.
9450 * ch-tree.h: Add prototype for deep_fold.
9452 Tue Apr 27 07:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
9454 * ch-actions.c (chill_comptypes): Allow enumeration
9455 subranges as compatible with the parent enum.
9456 (build_chill_function_call): Before checking type
9457 compatibility, use convert on typeless expressions,
9459 * ch-expr.c (chill_expand_assignment): Before
9460 checking type compatibility, use convert on
9461 typeless expressions, like constructors.
9462 * ch-lex.l: Add comment.
9464 Thu Apr 22 17:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
9466 * .cvsignore: Add genopinit, insn-opinit.c
9467 * c-common.c (binary_op_error): Prevent seg fault on
9469 * ch-typeck.c (build_chill_array_ref): Remove old
9470 lower-bound-of-array-index-nonzero code.
9471 * expr.c (expand-expr, get_inner_reference): Remove
9472 old lower-bound-of-array-index-nonzero code.
9474 Thu Apr 22 16:01:09 1993 Bill Cox (bill@rtl.cygnus.com)
9476 * c-decl.c (shadow_record_fields): Add pushlevel for
9477 each PROCESS parameter, too.
9478 * ch-process.c (make_process_struct): First working
9480 * ch-tree.def: Add PROCESS_DECL definition.
9481 * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
9482 for make_process_struct.
9483 * expr.c (expand_expr): Add references to
9484 PROCESS_DECL. Add #include of ch-tree.h.
9485 * tree.c (decl_function_context): Add check for a
9486 PROCESS_DECL, and #include for ch-tree.h.
9488 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9490 * expr.c (expand_expr): Add missing prototypes, and
9491 parameters to expand_expr call.
9493 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9495 * c-decl.c (shadow_record_fields): Add ability to
9496 handle pointers to records/unions. For PROCESS
9499 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9501 * ch-expr.c (chill_expand_expr): Add missing
9502 parameters to expand_expr calls. Some trivial
9503 reformatting for readability.
9505 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9507 * ch-lex.l: Make send_*_prio externally visible,
9508 default them to zero, eliminate the init flags.
9509 Same for process_type.
9511 Sat Apr 17 10:59:50 1993 Bill Cox (bill@rtl.cygnus.com)
9513 * ch-actions.c (build_chill_binary_op): Build a
9514 BIT_FIELD_REF tree for IN_EXPR operations.
9515 * ch-typeck.c (build_chill_array_ref): Build a
9516 BIT_FIELD_REF tree for access to packed array of
9519 Fri Apr 16 12:33:34 1993 Bill Cox (bill@rtl.cygnus.com)
9521 * ch-parse.y (EXIT action): Improve error checking,
9523 * ch-typeck.c (chill_expand_tuple): Remove code to
9524 pack sets (moved to varasm.c long ago).
9525 * varasm.c (unpack_set_constructor): Rename size to
9526 bit_size, since 'size' always means bytes.
9527 (pack_set_constructor): Rename size to wd_size,
9528 since 'size' always means bytes.
9529 (output_constant): Set size to zero, so that extra
9530 bytes of padding aren't output after set constants.
9532 Fri Apr 16 11:57:50 1993 Bill Cox (bill@rtl.cygnus.com)
9534 * .cvsignore: Add .gdbinit.
9535 * ch-decl.c (start_chill_bindings): Add function name
9536 to binding contour's exit_label for EXIT stmt.
9537 * ch-parse.y (EXIT action): Call lookup_name to avoid
9538 inserting label for function name. Also check
9539 IDENTIFIER_LABEL_VALUE for label's decl.
9540 (caseaction, beginendblock, ifaction): Call
9541 stamp_nesting_label to put action's label into
9542 contour for EXIT to find.
9544 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9546 * expr.c (expand_expr): Unify, clean up handling of
9547 IN_EXPR, and handling of bit-string element ref.
9548 Now, all goes through IN_EXPR handler.
9549 * stmt.c (stamp_nesting_label, expand_exit_labelled):
9550 New functions, which allow either label or
9553 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9555 * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
9556 ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
9557 ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
9558 ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
9559 * ch-actions.c (build_chill_binary_op): Move runtime function call
9560 to expr.c. Just build a tree here. Clean up error checking.
9561 * ch-convert.c (convert): Simply store a type into an expression if
9562 TREE_TYPE (expr) == NULL. Prevent error if an enum is to be
9563 converted to a set of such enums.
9564 * ch-loop.c (init_loop_counter): Restore error msg for undeclared
9565 variable if no local scope is to be created for the loop.
9566 * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
9567 remove redundant code which wasn't ever called.
9569 Wed Apr 14 07:54:00 1993 Bill Cox (bill@rtl.cygnus.com)
9571 * .cvsignore (y.tab.c) : Add to list.
9572 * ch-convert.c (convert): Check pointers better - avoid NULL reference.
9573 Remove redundant check for ERROR_MARK - already checked earlier.
9574 * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
9577 Tue Apr 13 16:00:37 1993 Per Bothner (bothner@cygnus.com)
9579 * c-decl.c (start_function): If there is a previous
9580 function declaration of the same name, steal its RTL.
9581 This is a kludge needed for forward declarations of
9583 * ch-decl.c (push_chill_extern_function), ch-tree.h: New
9584 function, for external and seized function declarations.
9585 Make sure to use permanent obstack.
9586 * ch-parse.y (quasi_pdef, extprocedure): Use new function.
9588 * ch-grant.c (chill_finish_module_code): Since module
9589 function is no longer visible,, can't get it using
9590 lookup_name(). Use current_function_decl instead.
9592 * ch-decl.c (build_chill_function_type): Add void_type_node
9593 to end of parameter types list.
9595 * ch-grant.c (chill_start_module_code): Make sure module
9596 function isn't visible (and hence isn't granted).
9598 Tue Apr 13 15:48:25 1993 Bill Cox (bill@rtl.cygnus.com)
9600 * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
9601 current contour for DO FOR EVER loops.
9603 Tue Apr 13 14:37:39 1993 Bill Cox (bill@rtl.cygnus.com)
9605 * ch-parse.y (actionstatement): Add error rule. Delete
9606 POP_UNUSED_ON_CONTEXT. Add comments about label name usage.
9607 (nohandleraction): Better error check in EXIT processing.
9608 (optexprlist): Comment out make_function_rtl call.
9609 (seizestatement): Change error to warning.
9611 Tue Apr 13 08:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
9613 * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
9615 * ch-loop.c (begin_chill_loop): Take loop label as parameter. Stamp
9616 its name into the current contour's exit_label, for EXIT to use.
9617 * ch-parse.y: (actionlabel): Save label tree in global variable.
9618 (actionstatement): Clear label to NULL when action is finished.
9619 (handlerstatement, nohandlerstatement): Split actions into
9620 categories which do/don't permit exception handlers.
9621 (exitaction): Move code into nohandleraction, make it work.
9622 (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
9623 * ch-tree.h: Add parameter to begin_chill_tree prototype.
9624 * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
9625 Note: This implementation of EXIT only exits from loops, not yet
9626 from other bracketted statements.
9628 Mon Apr 12 13:41:55 1993 Per Bothner (bothner@rtl.cygnus.com)
9630 * ch-grant.c (chill_grant): Remove obsolete code.
9632 * ch-decl.c (push_synmode, push_newmode): Merged to yield ...
9633 * ch-decl.c (push_modedef): ... w/ slightly different interface.
9634 * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
9635 (modedefinition): Use new push_modedef function.
9636 * ch-parse.y (modedefinition): Don't depend on inherited
9637 attributes (- implemented incorrectly!): Use a global variable
9638 parsing_newmode to distinguish synmode and newmode.
9640 Mon Apr 12 08:10:34 1993 Bill Cox (bill@rtl.cygnus.com)
9642 * ch-loop.c: Diffuse cleanup after big functional changes.
9643 * ch-parse.y: Eliminate temporary variables, now unnecessary. Use
9644 parse-time stack instead.
9645 * ch-tree.h: Change build_chill_iterator prototype.
9647 Sun Apr 11 15:50:33 1993 Bill Cox (bill@rtl.cygnus.com)
9649 * ch-convert.c (convert): Replace an ERROR_MARK type - from a
9650 untyped_expr with the given type. Move chill_expand_case_expr
9651 call inside chill_expand_expr.
9652 * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
9653 chill_handle_case_label, chill_expand_case_expr): Move to ch-expr.c
9655 * ch-loop.c: Major reorganization to support multiple iterators in
9656 DO FOR loop, very little new code, just a re-org.
9657 * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
9659 Sat Apr 10 14:40:12 1993 Bill Cox (bill@rtl.cygnus.com)
9661 * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
9662 * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
9664 * ch-lex.l (equal_number): Add function to look in the input for '='
9665 followed by a decimal literal. Call it from directive scanning.
9666 (start state 'ccitt'): Deleted, unused. Moved unused, but reserved,
9667 tokens to NORMAL state.
9668 (compiler_directive): Replaced by equal_number. Now the only
9669 recursive call to yylex happens in check_newline at the beginning
9672 Sat Apr 10 09:55:50 1993 Bill Cox (bill@rtl.cygnus.com)
9674 * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
9675 * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
9677 * ch-parse.y (case_expr): Move code into ch-actions.c. There will
9678 need to be much more written.
9679 * ch-tree.def (VARY_ARRAY_REF): Add comment.
9680 * ch-tree.h (build_chill_case_expr): Add prototype.
9681 * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
9682 type to the expr. Check for CASE_EXPR, call expand_case_expr.
9684 Sat Apr 10 01:10:51 1993 Per Bothner (bothner@rtl.cygnus.com)
9686 * ch-parse,y (in_pseudo_module): New variable. Try if we're
9687 in a seizefile, but not in a module nested in the seizefile.
9688 Use for backwards compatibility with old grantfiles.
9689 * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
9690 If in_pseudo_module, grant new declaration.
9691 * ch-decl.c (pushd_newmode): If there is a granted previous
9692 incomplete type, fix it up.
9693 * ch-grant.c (seize_implied_names): Do remaining types.
9694 Guard against recursion.
9695 * ch-tree.h (IDENTIFIER_ENUM_VALUE): Removed, not used.
9696 * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
9697 (finish_chill_enum): Enum constants are marked with
9698 CH_DECL_ENUM so they don't get written to the grantfile.
9699 * ch-tree.h (IDENTIFIER_GRANTED_VALUE): Allow fast seizing.
9700 * ch-lex.l: Re-write to use start states, to avoid calling
9701 yylex() recursively.
9702 * ch-lex.l (compiler_directive); This is now obsolste. FIXME.
9703 * ch-lex.l: Call push_module and pop_module when reading a
9704 seizefile. This creates a pseudo-module.
9705 * ch-parse.y: Clean up handling of empty declarations and
9706 action statements; semicolons are now optional a number of
9708 * ch-parse.y: Remove some bogus tests for "statement
9709 out of sequence" (they're both legal and work).
9710 * varasm.c (mak_function_rtl): Remove kludge that may
9711 not be necessary (and loses anyway).
9713 Fri Apr 9 09:37:38 1993 Bill Cox (bill@rtl.cygnus.com)
9715 * ch-expr.c (chill_expand_array_assignment): Remove false error about
9716 arrays that are too small.
9717 * ch-parse.y (callaction): Don't pass an error_mark_node to
9720 Fri Apr 9 00:26:54 1993 Per Bothner (bothner@rtl.cygnus.com)
9722 * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
9724 * ch-actions.c (build_chill_function_call): Use latter.
9725 * ch-typeck.c (chill_similar): Fix typo.
9726 * ch-grant.c (raw_decode_mode): Handle ENCAPSULATED_ARRAY_P
9728 * ch-grant.c (seize_implied_names): Handle ranges of enums.
9729 * ch-grant.c (do_seize): Set DECL_SOURCE_FILE and _LINE of
9730 seized declaration to be the point of the seize itself.
9731 * ch-grant.c (chill_grant), ch-tree.h: Add a parameter
9732 which is the list (in order) of decls in the module.
9733 Don't reverse the getdecls() list; that is handled by caller.
9734 * ch-grant.c (chill_grant): Test that a declaration is
9735 visible before writing it.
9736 * ch-parse.y (push_module): Make sure to hide declarations
9737 from surrounding module.
9738 * ch-parse.y (pop_module): Restore those declarations.
9739 * ch-parse.y (pop_module): This function is now responsible
9740 for writing out for calling chill_grant() to the grant file.
9741 * ch-actions.c (lang_finish): Remove calls to chill_grant().
9743 Thu Apr 8 16:56:52 1993 Bill Cox (bill@rtl.cygnus.com)
9745 * ch-actions.c (build_char_array_expr): Add handling of varying
9746 arrays in relational expressions.
9747 * ch-decl.c: Add prototype for lookup_name_current_level.
9748 * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
9749 so its length is used as the temp's size.
9750 (chill_expand_array_assignment): Correct for varying := varying
9751 assignment, clean up.
9752 * ch-typeck.c: Add prototype for require_complete_type.
9754 Wed Apr 7 16:41:29 1993 Bill Cox (bill@rtl.cygnus.com)
9756 * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
9757 diffuse changes to fix location loops.
9758 * ch-parse.y (location): Remove ref through NULL ptr.
9760 Wed Apr 7 13:42:06 1993 Per Bothner (bothner@rtl.cygnus.com)
9762 * ch-decl.c (massage_param_node): New function.
9763 It handles the LOC/IN/OUT/INOUT parameter distinction,
9764 as well as calling build_chill_array_parm_type if needed.
9765 * ch-tree.h (massage_param_node): New prototype.
9766 * ch-decl.c (push_parms): Use new massage_param_node().
9767 * ch-parse.y (pmodearg): Use new massage_param_node().
9768 * ch-parse.y (formpar): Don't call build_chill_array_parm_type;
9769 now handled by massage_param_node.
9770 * ch-typeck.c (my_build_array_ref): Handle non-zero array
9772 * ch-actions.c (build_chill_function_call): If the formal
9773 parameter is a pseudo record wrapped around an array, make
9774 sure we wrap the actual parameter in a record CONSTRUCTOR.
9775 * ch-typeck.c (build_chill_array_parm_type): Make sure
9776 the pseudo struct type is allocated on the permanent_obstack.
9777 * ch-parse.y (location): Remove thinko.
9778 * ch-actions.c (chill_comptypes): Comment out test for
9779 NEWMODEness - it gets broken by the forward declaration hacks.
9781 Tue Apr 6 18:05:40 1993 Bill Cox (bill@rtl.cygnus.com)
9783 * ch-actions.c: Move build_varying_struct to ch-typeck.c.
9784 * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
9785 * ch-parse.y (location): Do build_component_ref for an array wrapped
9787 * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
9788 * ch-typeck.c (build_chill_array_parm_type): Add function, move
9789 build_varying_struct here from ch-actions.c.
9791 Mon Apr 5 19:56:56 1993 Bill Cox (bill@rtl.cygnus.com)
9793 * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
9794 rather than in-line code - tests LOW and HIGH values.
9795 * ch-lang.c: Use tree_int_cst_lt rather than inline code.
9796 * ch-typeck.c (my_build_array_ref): Handle case where array low bound
9799 Mon Apr 5 15:45:10 1993 Bill Cox (bill@rtl.cygnus.com)
9801 * ch-typeck.c (my_build_array_ref): Add some more code from
9802 build_array_ref. Change checks, error messages to mention
9803 'discrete types'. I.E. types which don't kiss and tell..
9805 Sat Apr 3 09:27:03 1993 Bill Cox (bill@rtl.cygnus.com)
9807 * ch-except.c, ch-expr.c: Turn externs into prototypes.
9808 * ch-grant.c (chill_grant): Remove orphan #else.
9809 * ch-tree.h: Add prototype for build_chill_bin_type.
9810 * ch-typeck.c: Turn externs into prototypes, delete code which
9811 was commented out in chill_expand_return; it will never be used.
9813 Fri Apr 2 21:55:14 1993 Per Bothner (bothner@rtl.cygnus.com)
9815 Major re-write of New module/seize/grant stuff.
9816 Now, a grantfile is a spec module and contains all the
9817 top-level declarations of the granting module, not just
9818 those that are granted. It also contains explicit grant
9819 statments naming those declared names that are granted.
9820 It also has seize statements and use_seize_file directives
9821 to correctly handle transitive dependencies.
9823 * ch-parse.y: Change to allow multiple modules per source file.
9824 Allow spec modules (including quasi definitions) as well as
9826 Allow spec modules inside normal modules; these behave as if
9827 they were outermost. This violates the Blue Book, but is
9828 needed by the new grantfile mechanism. (A grant file is a
9829 spec module that gets included by the use_seize_file directive.)
9830 * ch-parse.y (struct module *current_module, push_module,
9831 pop_module): Support module nesting (for spec modules only).
9833 * ch-tree.h (struct module): New.
9834 * ch-grant.c (granted_decls): New list of declarations
9835 that have been granted into the outermode pseudo-module.
9836 * ch-grant.c (decode_mode): If the decl has a name,
9837 always write the name, not just if the decl has already
9838 been written. Since we write out all decls, we can assume
9839 it will be written later, and depend on the forward
9840 declaration kludges to catch it.
9841 * ch-grant.c (decode_decl): Don't write out _EXTERN.
9842 Instead write out standard (Blue Book) quasi-definitions.
9843 * ch-grant.c (push_granted): New function.
9844 * ch-grant.c (seize_implied_names): New function. Re-write
9845 how set element names are seized when a set type is seized.
9846 * ch-grant.c (chill_seize): Work by seraching the
9847 granted_decls list and copying the declaration.
9848 * ch-grant.c (chill_grant): Write all declarations
9849 declared in this module. Write GRANT statements for
9850 those granted. seize statements for decls seized from
9851 other modules. Write extra syntax to make a complete
9853 * ch-grant.c (grant_use_seizefile): Copy use_seize_file
9854 directives into grant file.
9855 * ch-lex.l (setup_seizefile_read): Call grant_use_seizefile.
9857 * ch-lex.l (struct input_state, current_input_state,
9858 push_input_file, pop_input_file): New (type, variable,
9859 function*2). Used to save and restore state on an input file.
9860 * ch-lex.l: Clean up to handle nested input seizefiles
9861 (needed by new grant/seize mechanism.
9862 * ch-lex.l (skip_to_end_of_directive): New function.
9863 * ch-lex.l (compiler_directive: USE_SEIZE_FILE): Make sure
9864 we skip to the end of the directive *before* we switch
9866 * ch-lex.l (setup_seizefile_read): Prevent reading the
9867 same seizefile twice (otherwise likely with new grant/seize).
9868 * ch-lex.l: Recognize SPEC. Misc cleanups.
9870 * ch-parse.y: Fixed foreward references of types.
9871 Removed the unknown_type_node crock.
9872 * ch-decl.c: Remove all uses of unknown_type_node.
9873 Check for TYPE_SIZE zero instead.
9874 * ch-decl.c (fixup_unknown_type): Make sure new mode
9875 gets copied into old mode. Merge their variant chains.
9876 * c-decl.c (lookup_name_current_level): Make non-static.
9877 * ch-decl.c (lookup_name_current_level): No longer needed.
9879 * ch-parse.y (call): Allow an implicitly defined function
9880 name following the CALL keyword.
9881 * ch-tree.h (struct lang_identifier): Add implicit_decl,
9882 and make sure order of fields matches c-tree.h.
9884 * ch-actions.c (lang_init, build_allocate_memory_call,
9885 build_allocate_globals_memory_call): Fix names (add initial '_')
9886 and prototypes of _allocate_[global_]memory (2nd param is ref).
9887 Use build_chill_function_call, not build_function_call,
9888 so the reference parameter gets handled.
9889 * ch-actions.c. (lang_init): Make sure boolean_{true,false}_node
9890 have boolean_type_node as their types.
9891 * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
9892 work for arrays with BOOLEAN_TYPE ranges (and simplify some).
9894 * ch-except.c: Make sure an end_label is generated,
9895 and jump to it if there is no exception.
9897 * ch-convert.c (convert_to_reference): Strip off NOP_EXPR casts.
9898 * expr.c (expand_expr): Handle NOP_EXPR as Chill-style casts.
9899 (Need cleaning up and FSF installation!)
9900 * ch-parse.y: If taking the address of a cast, move the
9901 ADDR_EXPR inside the NOP_EXPR.
9903 * ch-typeck.c (my_build_array_ref): Simplified, more suitable
9904 versions of build_array_ref from c-decl.c. (E.g. don't barf
9905 if index type is char or bool.)
9906 * ch-typeck.c (build_chill_array_ref): Use my_build_array-ref.
9908 * ch-typech.c (build_chill_bin_type): New function.
9909 Support BIN(N) range type specification.
9910 * ch-parse.y (mode2), ch-lex.l: Recognize BIN(N).
9912 * ch-tree.h (CH_SIMILAR): Redefine in terms of chill_similar.
9913 * ch-typeck.c (chill_similar): New function. Recognize that
9914 that range types are similar to their parent types.
9916 * ch-tree.h: Declare flag_local_loop_counter.
9917 * ch-loop.c: Whether the loop variable is local to the loop
9918 in now controlled by flag_local_loop_counter, instead of
9919 #ifdef'd on CREATE_SCOPE.
9920 * ch-actions.c (lang_decode_option): Recognize flags
9921 "-f[no-]local-loop-counter".
9922 * toplev.c (lang_options): Add Chill flags -f[no-]local-loop-counter.
9924 * varasm.c (make_function_rtl): Due to problems with forward
9925 references, don't rename nested functions in Chill. (Kudge!)
9927 Sun Mar 28 10:12:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9929 * ch-lex.l (push_back, readstring): Fix prototypes.
9931 Fri Mar 26 18:32:15 1993 Bill Cox (bill@rtl.cygnus.com)
9933 * ch-parse.y: Put %type directives back into alpha order.
9934 (variant_alternative): Simplify error_mark test.
9935 (variantfields, varianthack): Add error_mark checks.
9937 Fri Mar 26 13:36:23 1993 Bill Cox (bill@rtl.cygnus.com)
9939 * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
9940 * ch-parse.y (get_type_of): Add function to deal with possible fwd
9941 declared type name. Call it from lotsa places. Add lotsa checks
9942 for error_mark_node. Standardize indentations.
9944 Thu Mar 25 15:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
9946 * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
9947 for array assignments.
9948 * ch-parse.y (action): Add recognition for allocate_memory and
9949 allocate_global_memory system calls.
9950 (mode2): Remove ill-conceived error check that broke REFs to
9951 as-yet-undeclared types. Check for IDENTIFIER_NODE, lookup its
9952 DECL if there, pass TREE_TYPE of decl to build_pointer_type.
9953 (variantfields, varianthack): Clean up.
9954 (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
9955 there, pass TREE_TYPE of decl to grok_fixedfields.
9956 (labellist): Explicitly assign error_mark_node to signal error.
9957 * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
9958 rather than seg faulting.
9960 Thu Mar 25 10:35:58 1993 Bill Cox (bill@rtl.cygnus.com)
9962 * ch-actions.c (lang_init): build_function_type for allocate_memory
9963 and allocate_global_memory runtime routines. Move discrete_type_p
9965 * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
9966 in build_chill_cast.
9968 Wed Mar 24 16:25:16 1993 Per Bothner (bothner@rtl.cygnus.com)
9970 * ch-grant.c: Don't grant previously seized names.
9972 Tue Mar 23 15:25:39 1993 Bill Cox (bill@rtl.cygnus.com)
9974 * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
9975 * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
9978 Tue Mar 23 09:03:35 1993 Bill Cox (bill@rtl.cygnus.com)
9980 * ch-actions.c (build_char_array_expr): Just build a type for the
9981 result of a CONCAT_EXPR, and pass the tree back.
9982 chill_expand_array_assignment can do a better job of
9984 * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
9987 Mon Mar 22 12:42:58 1993 Per Bothner (bothner@rtl.cygnus.com)
9989 * ch-except.c (start_handler_array): Make sure the handler
9990 array and its type get on the permanent obstack.
9991 * ch-grant.c (write_grant_file): Don't write the _INIT=name
9992 specifier: It isn't needed, and loses (because of funny
9993 characters in the chill_initializer_name).
9994 * ch-decl.c (push_synmode): Set TYPE_NAME(mode) = syndecl.
9995 * ch-lang.c (finish_chill_enum): Don't allocate a dummy
9996 TYPE_DECL for the enum. I don't think it is needed (?),
9997 and removing it is needed for the change above.
9999 * ch-grant.c (grant_array_type, decode_mode): Remove unused
10001 * ch-grant.ch (raw_decode_mode): New function, based on old
10003 * ch-grant.c (decode_mode); This is now just a wrapper around
10004 raw-decode_mode - but does not call raw_decode_mode if the
10005 type is named and has already been emitted.
10007 Fri Mar 19 11:55:35 1993 Bill Cox (bill@rtl.cygnus.com)
10009 * ch-actions.c: Add prototypes, remove unused variables. Attempt to
10010 continue generating grant file in presence of error (Wilfried's
10011 patch to lang_finish).
10012 * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10013 after each statement. Move convert call into
10014 chill_expand_assignment from ch-parse.y.
10015 * ch-grant.c: Generally re-order, clean up. Include Per's decode_mode
10016 simplification. Include commented-out hack in decode_mode to return
10017 type's name if type SEIZEd or already GRANTed in this file.
10018 * ch-lex.l: Add prototypes.
10019 * ch-parse.y (assignaction): Move convert call into
10020 chill_expand_assignment.
10022 Thu Mar 18 16:04:45 1993 Bill Cox (bill@rtl.cygnus.com)
10024 * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10026 * ch-decl.c: Add prototypes, correct error message spelling, remove
10028 * ch-lang.c (build_chill_range_type): Add error message. Add prototypes.
10029 Correct comment spelling.
10030 * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10031 assignment in conditional.
10032 * ch-loop.c: Add prototypes, remove unused variable.
10033 * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10034 parameter is seen, don't count it in structured_variable_list. Pre-
10035 vents seg fault when only WITH operand is invalid.
10036 * ch-parse.y (label_spec): Correct assignment within IF expression which
10037 was intended to be equality test. Remove unused variables.
10038 * ch-tree.h: Add prototype. Remove unused EXCP_CODE enumeration, and
10039 prototyping editorial comments.
10040 * ch-typeck.c: Disable generation of code to validate array index for
10041 now. Should be done as a call-back from more generic array_ref code.
10042 Clean up parameter checking. Remove unused variables.
10044 Fri Mar 12 11:57:32 1993 Bill Cox (bill@rtl.cygnus.com)
10046 * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10047 * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10048 build_char_array_expr.
10049 * ch-convert.c (convert): protect against seg fault, if type == NULL.
10050 * ch-expr.c (chill_expand_expr): Add FIXME comment.
10052 Fri Mar 12 11:04:02 1993 Bill Cox (bill@rtl.cygnus.com)
10054 * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10055 Thanks very much to dje!
10057 Thu Mar 11 21:06:55 1993 Bill Cox (bill@rtl.cygnus.com)
10059 * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10060 Move CONCAT_EXPR handling from binary_op to array_expr. Add
10061 handling for relationals between varying arrays to array_expr.
10063 Thu Mar 11 19:20:37 1993 Bill Cox (bill@rtl.cygnus.com)
10065 * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10066 *BIT* length of powersets and arrays of BOOLs.
10067 (invalid_left_operand, invalid_right_operand): Disallow relationals
10068 with arrays of BOOL as operands.
10069 * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10070 comparing pointers.
10071 * ch-decl.c (push_newmode): Re-indent.
10072 * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10073 and arrays of BOOLs.
10074 * ch-lang.c (build_chill_array_type): Add parameter error checking.
10076 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10078 * expr.c (store_constructor): Handle set construction.
10079 * varasm.c (output_constant): Prevent seg fault - terminate case
10080 alternative with a 'break'.
10082 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10084 * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10085 * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10086 * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10088 Mon Mar 8 13:16:05 1993 Bill Cox (bill@rtl.cygnus.com)
10090 * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10093 Mon Mar 8 10:13:57 1993 Bill Cox (bill@rtl.cygnus.com)
10095 * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10096 Correct some non-standard indentations.
10098 Fri Mar 5 14:58:35 1993 Bill Cox (bill@rtl.cygnus.com)
10100 * ch-actions.c: Fix up comment.
10102 Thu Mar 4 18:05:43 1993 Bill Cox (bill@rtl.cygnus.com)
10104 * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10105 negating the result of calling __eqpowerset. New function
10107 * ch-grant.c (get_tag_value): Don't seg fault referring to an
10108 anonymous enumeration's name.
10109 * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10110 * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10111 * ch-parse.y (label_spec): redefine variant structure label_spec
10112 to agree with the Z.200 spec.
10113 (locdec): Error if set/bitstring initialized with a tuple.
10114 (case_label, arrayindex): Use new discrete_type_p
10116 * ch-process.c: Fix typo.
10118 Wed Mar 3 14:30:53 1993 Per Bothner (bothner@rtl.cygnus.com)
10120 * ch-lang.c, ch-tree.h: Rename build_range_type to
10121 build_chill_range_type. Call new build_range_type() in tree.c.
10122 * ch-parse.y: Call build_chill_range_type as approriate.
10123 * ch-typeck.c (build_chill_cast); Clean up.
10125 Wed Mar 3 09:36:56 1993 Bill Cox (bill@rtl.cygnus.com)
10127 * ch-parse.y: Define CONTINUE_EVENT token.
10128 * ch-parse.y (mode2): Give error message for SYN modea = modeb
10129 where modeb is undefined.
10131 Tue Mar 2 20:16:37 1993 Bill Cox (bill@rtl.cygnus.com)
10133 * ch-actions.c: Add builtin function descriptions for memset and
10134 bitsetpowerset. Allow build_chill_num expression to exceed 16 bits,
10136 * ch-tree.h: Correct chill_handle_case_default prototype.
10137 * ch-actions.h, ch-lex.h: Add prototypes.
10138 * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10140 Thu Feb 25 17:35:46 1993 Bill Cox (bill@rtl.cygnus.com)
10142 * c-decl.c (init_decl_processing): Disable creation of C-specific
10143 builtin functions. They pollute the CHILL name space.
10144 * stor-layout.c (variable_size): Allow variable-size objects at file
10147 Fri Feb 26 07:14:34 1993 Bill Cox (bill@rtl.cygnus.com)
10149 * c-decl.c (finsh_decl): Don't output non-constant storage size
10151 * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10152 call in build_chill_cause_exception.
10153 * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10154 * ch-loop.c (build_temporary_variable): New function
10155 * ch-process.c: Call build_temporary_variable, spell start_process
10157 * ch-tree.h: Extern for build_temporary_variable
10159 Thu Feb 25 12:09:01 1993 Bill Cox (bill@rtl.cygnus.com)
10161 * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10162 builtins - they pollute the CHILL name space.
10163 * ch-typeck.c (valid_array_index): Correct upper-bound check.
10164 * expr.c (expand_expr): Use actual library name for __inpowerset
10166 * stor-layout.c (variable_size): Disable complaint about variable-
10167 size type or decl at file scope. Perhaps later this s.b. a warning.
10168 * varasm.c (emit_set_data): Add function.
10169 (output_constant): Call new emit_set_data function for VAR_DECLs,
10170 in addition to CONSTRUCTORs.
10172 Thu Feb 25 11:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
10174 * ch-actions.c: Change all builtin functions names to their
10175 actual library names. Change references to boolean_type_node
10176 to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10178 build_set_expr: Remove length parameter, call powersetlen() instead.
10179 remove handling of CHAR arrays - they're handled in build_char_array_expr.
10180 Call __eqpowerset to test for equality - we can't use a byte-length -
10181 need bitcount instead.
10182 build_chill_compound_expr, internal_build_compound_expr: Copy from C
10183 version that does stuff we don't want.
10184 build_binary_op: Check for in_size_in_bytes return < 0, indicating
10185 size is changeable at run time. Build two memcpy calls to implement
10186 string concatenation.
10187 powersetlen: Add function.
10188 build_chill_card: Call powersetlen.
10189 build_chill_max_min: Common code for powerset max/min.
10190 build_chill_length: Move VARYING array handling before regular char
10192 * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10193 the VARYING status of the target to do this correctly. Use powersetlen
10194 for the powerset operations, not a byte length.
10195 * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10196 for each CHILL loop, as Z.200 requires. Add powerset and error flags
10197 to loop structure. Evaluate user's powerset expression into a temp,
10198 scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10199 for powerset loop. Only do loop-end assignments if NOT a powerset
10200 loop, which has much less overhead now.
10201 * ch-tree.h: Add prototype for powersetlen.
10203 Fri Feb 19 08:40:24 1993 Bill Cox (bill@rtl.cygnus.com)
10205 * ch-lex.l (convert_number): Evaluate number and pass it as
10208 Fri Feb 19 08:56:44 1993 Michael Tiemann (fs_tie at rcsw18)
10210 * ch-typeck.c (build_chill_array_ref): Handle newmodes
10213 * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10214 we are going to return 0.
10216 * ch-convert.c (convert_to_reference): Don't use
10217 TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10218 (which must match the type of the expr).
10220 * ch-grant.c (chill_seize): Don't let a type be copied just
10221 because we are seizing it.
10223 * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10224 TYPE_MAX_VALUE to integer type.
10226 * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10227 tree type of the bounds.
10228 (build_loop_top): type of GE_EXPR and LE_EXPR is
10229 boolean_type_node, not lp->iter_type.
10230 (for_location): Ditto.
10232 * ch-action.c (build_chill_lower,build_chill_upper): Handle
10233 ENUMERAL_TYPE. Also, handle different kinds of arguments more
10236 * ch-parse.y (iteration): Convert start_exp and end_exp to
10237 match the type of modename.
10239 * ch-grant.c (chill_seize_aggr): Search also through anonymous
10242 * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10243 already been seized, and if so, do nothing.
10245 * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10246 comes out error_mark_node, set ERRONEOUS.
10248 * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10251 * ch-action.c (chill_comptypes): Test for structural
10252 equivalence of enums.
10254 * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10255 TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10257 * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10258 ARRAY_TYPE, seize the domain type if its a set.
10260 Thu Feb 18 20:02:15 1993 Per Bothner (bothner@rtl.cygnus.com)
10262 * c-typeck.c (process_init_constructor): Emit error if some
10263 array elements are not initialized.
10264 * c-typeck.c (process_init_constructor): Call digest_init()
10265 recursively to expand default_value.
10266 * ch-expr.c (chill_expand_array_assignment): Simplify, and
10267 handle the case that the lhs has dynamic size (e.g. a slice).
10268 * ch-parse.y (elementlist): Handle the case that tupleelement
10269 generates more than one TREE_LIST node.
10271 Thu Feb 18 12:40:56 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10273 * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10274 * c-typeck.c (lookup_field): add function, calls.
10275 * ch-actions.c (build_chill_binary_op): figure return_type differently.
10276 * ch-convert.c (convert_to_reference): return error_mark_node,
10277 STRIP_NOPS. (convert): Braces for readability.
10278 * ch-decl.c (build_chill_function_type): accept typespec as parm.
10280 (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10281 * ch-expr.c (chill_expand_assignment): handle references.
10282 * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10283 * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10284 call convert. Generally handle reference types.
10287 Thu Feb 18 09:30:11 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10289 * ch-actions.c (chill_comptypes): Figure out which newmode or
10290 synmode decls look most canonical.
10291 * ch-convert.c (convert): handle location conversions of records,
10293 * ch-decl.c (fixup_unknown_type): changes for variant records
10294 * ch-parse.y (tupleelement): avoid confusing digest_init.
10295 * ch-typeck.c (build_chill_array_ref): give element ref the
10296 type of the ELEMENT, not the array (Bill Cox).
10298 Wed Feb 17 11:52:20 1993 Bill Cox (bill@rtl.cygnus.com)
10300 * ch-parse.y: change push_newmode and push_synmode interfaces.
10301 * ch-actions.c (build_chill_binary_op): convert operands.
10303 Wed Feb 17 10:54:24 1993 Bill Cox (bill@rtl.cygnus.com)
10305 * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
10306 handle reference types.
10307 * ch-decl.c (push_newmode, push_synmode): rewritten
10308 * ch-process.c (make_process_struct): new push_newmode interface.
10309 * ch-typeck.c (build_chill_cast): change interface, error checks.
10311 Wed Feb 17 09:50:37 1993 Bill Cox (bill@rtl.cygnus.com)
10313 * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
10315 * ch-typeck.c (valid_array_index): new function.
10317 Tue Feb 16 22:36:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10319 * ch-convert.c (convert): Slightly more correct conversion
10320 for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
10321 * ch-expr.c (chill_expand_array_assignment): Invoke
10322 __builtin_memcpy using build_function_call, not directly at
10323 the rtx level (which doesn't work).
10324 * ch-typeck.c (build_chill_slice): First attempt at slices.
10325 * ch-tree.h, ch-typeck.c (build_chill_slice_with_range,
10326 build_chill_slice_with_length): New functions.
10327 * ch-parse.y: Use new slice-building functions.
10328 * expr.c (get_inner_reference): Subtract low bound of
10329 array when doing an ARRAY_REF.
10331 Tue Feb 16 14:17:55 1993 Bill Cox (bill@rtl.cygnus.com)
10333 * ch-actions.c (build_chill_function_call): better comments.
10334 * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
10335 * ch-parse.y: indentation cleanup
10337 Tue Feb 16 12:03:53 1993 Michael Tiemann (tiemann@cygnus.com)
10339 * ch-decl.c (grok_chill_variantdefs): Really implement variant
10341 * ch-grant.c (get_tag_value): New function.
10342 * ch-grant.c (decode_mode): Grant variant records.
10344 * ch-grant.c (chill_seize): If we seize a set, seize the set
10347 * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
10350 * ch-parse.y (EMPTY): New pseudo-token to disambiguate
10351 variant_alternatives.
10352 (current_fieldlist): New variable to help processing tag
10353 declarations in variant records.
10354 (fields): Renamed from structdef.
10355 (field): Renamed from fields.
10356 (varianthack): New non-terminal to handle parsing ambiguity
10357 for variant records.
10358 (optlabellist): Changed to preserve CONST_DECLs when they are
10361 * ch-tree.h (TYPE_TAGFIELD): New macro.
10362 (TYPE_TAG_VALUES): Ditto.
10364 Mon Feb 15 00:49:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10366 * ch-grant.c (decode_mode): Fix output for powerset modes.
10367 * ch-grant.c (decode_constant): Support grant output of
10369 * ch-actions.c (build_chill_binary_op): IN_EXPR fix.
10370 * expr.c (expand_expr): Add Chill-specific kludge for
10371 BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
10372 * ch-expr.c (chill_expand_assignment): Remove no-longer-needed
10373 special-case support for a BIT_FIELD_REF in right-hand-side.
10374 * ch-lang.c (finish_chill_enum): Patch up enum elements to
10375 have the correct type (instead of integers, as in C).
10377 * ch-lex.l, ch-parse.y: Add disgusting hack (involving
10378 context-dependent look-ahead) so we can parse exception
10379 handlers correctly.
10380 * c-typeck.c (digest_init): Set output type for SET_TYPEs.
10381 * varasm.c (unpack_set_constructor): Add support for
10382 (power-)set ranges (i.e. low_element:high_element).
10384 Sun Feb 14 13:37:52 1993 Bill Cox (bill@rtl.cygnus.com)
10386 * ch-inout.c: delete unused #include
10387 * ch-typeck.c (build_chill_slice): turn abort call into error msg.
10389 Sat Feb 13 13:13:31 1993 Bill Cox (bill@rtl.cygnus.com)
10391 * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
10393 Sat Feb 13 12:17:41 1993 Bill Cox (bill@rtl.cygnus.com)
10395 * Makefile.in: add lots of header files to the CHILL dependencies
10397 Fri Feb 12 15:48:27 1993 Per Bothner (bothner@rtl.cygnus.com)
10399 * ch-actions.c (build_chill_function_call): Don't return
10400 error_mark_node on empty parameter-list.
10402 Fri Feb 12 12:54:52 1993 Bill Cox (bill@rtl.cygnus.com)
10404 * ch-actions.c (build_chill_function_call): fix start_decl parms.
10405 * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
10407 Fri Feb 12 10:32:37 1993 Bill Cox (bill@rtl.cygnus.com)
10409 * ch-actions.c (build_chill_function_call): create temps, do
10410 assignments to handle INOUT and OUT parameters.
10411 * ch-decl.c (build_chill_function_type): better parameter name.
10412 * ch-parse.y (action): keep rules in alpha order.
10413 (pmodearg): turn INOUT, OUT parameter types into reference types.
10414 * ch-typeck.c (build_tree_slice): indentation change.
10416 Thu Feb 11 23:16:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10418 * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
10419 take a list of elements which are in the set. This corresponds
10420 better to the tuple input form in Chill (and Pascal).
10421 * varasm.c (unpack_set_constructor, pack_set_constructor):
10422 New functions, to expand SET_TYPE CONSTRUCTORs.
10423 * varasm.c (output_constructor): Use pack_set_constructor
10424 to assemble a SET_TYPE constant from a CONSTRUCTOR.
10426 * ch-grant.c (decode_constant): Better grant for strings,
10427 enumeral, and bitstring constants.
10428 * ch-grant.c: Fixes in seize to avoid duplicates, and emit
10429 things in the correct order.
10430 * c-typeck.c (chill_initializer_constant_valid_p): Kludge
10431 needed to export a static function.
10432 * ch-typeck.c (convert): Avoid needlessly (and lossingly) calling
10433 chill_expand_tuple to convert fix string to varying.
10434 * ch-actions.c (build_chill_binary_op): Promote short
10435 integer operands if needed (otherwise emit routines barf).
10436 * ch-tree.h (SET_WORD_SIZE): New macro.
10437 * ch-parse.y: Fix syntax for RECEIVE CASE.
10438 * ch-parse.y (location): If IDENTIFIER is a CONST_DECL
10439 return its value instead.
10441 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10443 * ch-actions.c (build_chill_max, build_chill_min): clean up
10444 * ch-typeck.c (chill_expand_tuple): correct set initialization from
10445 an enumeration tuple. Add sort_constructor function.
10447 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10449 * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
10450 BOOLEAN_TYPE w/out an abort.
10452 Wed Feb 10 14:59:53 1993 Bill Cox (bill@rtl.cygnus.com)
10454 * ch-actions.c: change most integer_type_node references to
10455 chill_integer_type_node. Rewrite _max and _min routines,
10456 redefine the signatures for those runtime routines. Move
10457 empty-set check into runtime.
10458 * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
10459 most integer_type_node references to chill_integer_type_node.
10461 Tue Feb 9 16:00:05 1993 Per Bothner (bothner@rtl.cygnus.com)
10463 * ch-except.c: New file. Stuff for exception handling.
10464 * ch-parse.y: Add working exception handling support.
10465 * ch-lex.l, ch-parse.y: Prefer standard type terminology
10466 (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
10467 * ch-grant.c: Fix various problems related to granting
10468 types such as bitsets.
10469 * ch-tree.c (build_bitstring_type): Set TYPE_MIN_VALUE
10470 to distinguish bitstrings from powersets (in the same way
10471 we distinguish char strings from char arrays).
10472 * ch-tree.h: New macro CH_BOOL_TYPE_P.
10473 * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
10474 Undo kludge where integer_type_node was hardwired to 16 bits.
10475 Make integer_type_node etc have the same size as in cc1.
10476 New types chill_integer_type_node and chill_unsigned_type_node
10477 that correspond to the Chill source types INT and UINT.
10478 For now, these match the C 'short' types, but that should
10479 become a configuration option later,
10481 Tue Feb 9 11:41:25 1993 Bill Cox (bill@rtl.cygnus.com)
10483 * ch-actions.c (build_chill_unary_op): allow NOT of a set.
10485 Tue Feb 9 08:27:18 1993 Bill Cox (bill@rtl.cygnus.com)
10487 * ch-actions.c (build_chill_function_call): add test for
10488 too many/few actual parameters (and avoid seg fault).
10489 * ch-decl.c (do_decls): code cleanup for readability.
10490 * ch-loop.c (begin_chill_loop, end_chill_loop): remove
10491 emit_nop() calls - they now (since exceptions) cause seg faults.
10492 Make derogation on poor CHILL compiler non-specific.
10493 * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
10494 * ch-tree.h: remove prototypes added to c-tree.h.
10495 * ch-typeck.c (build_chill_array_ref): correct getting domain
10496 subtree for a PARM_DECL. Subscripting a SET_TYPE is turned into
10499 Sun Feb 7 18:20:49 1993 Bill Cox (bill@rtl.cygnus.com)
10501 * ch-tree.def: add a new tree type - just for varying array
10502 references. We were using ARRAY_REF, but the underlying C
10503 code also generates that one.
10504 * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
10506 Sun Feb 7 17:33:17 1993 Bill Cox (bill@rtl.cygnus.com)
10508 * ch-convert.c: test given type against type of expr before
10509 calling chill_expand_tuple. We were getting lots of spurious
10512 Fri Feb 5 15:24:01 1993 Per Bothner (bothner@rtl.cygnus.com)
10514 * cccp.c: Merge in various Chill-specific changes.
10515 * gcc.c (default_compilers array): Pass -lang-chill
10516 to cpp, not -lang-ch.
10518 Fri Jan 29 17:18:22 1993 Per Bothner (bothner@rtl.cygnus.com)
10520 * Makefile.in (install-libchill, install-librmt): Removed.
10521 * ch-actions.c (build_chill_exception_decl): Change decl
10522 to initialized char array, rather than unitialized common.
10523 (Simplifies extracting string name of exception.)
10524 * ch-actions.c: Adjust interface to cause_exception accordingly.
10525 * ch-typeck.c (build_chill_array_ref): Cause rangefail if
10526 index > limit, not >= limit.
10528 * ch-actions.c (build_chill_function_call): Rename misleading
10530 * ch-decl.c (do_decls): Allow (again) general initializer exprs.
10531 * ch-parse.y (call): Test for function call needs to test for
10532 FUNCTION_TYPE, not FUNCTION_DECL.
10533 nreverse arg list to build_chill_array_ref.
10534 * ch-typeck.c (build_chill_array_ref): Do recursive call at end
10535 and only if multiple indexes.
10536 * ch-typeck.c: Cleanups.
10538 Fri Jan 29 11:05:58 1993 Bill Cox (bill@rtl.cygnus.com)
10540 * ch-decl.c (do_decls): handle set initializations better, more to do.
10541 * ch-loop.c (begin_for_range): correct interface to expand_start_cond
10542 and build_binary_op.
10543 * ch-tree.h: lots more prototypes
10544 * ch-typeck.c (build_array_from_set): added function.
10545 * ch-typeck.c (chill_expand_tuple): handle set initializations better.
10547 Thu Jan 28 17:41:58 1993 Per Bothner (bothner@rtl.cygnus.com)
10549 * ch-grant.c (set_default_grant_file): Change default.
10550 Normally, grant file should end up in cwd.
10551 * ch-lang.c (build_chill_struct_type): Call pushtag,
10552 for the sake of debugging.
10553 * ch-lex.l: Improve comment parsing.
10554 * ch-lex.l (readstring): Some improvements.
10555 Initial support for control sequences in string literals.a
10557 Thu Jan 28 16:16:00 1993 Bill Cox (bill@rtl.cygnus.com)
10559 * ch-convert.c (convert): correct fixed->varying conversion.
10560 * ch-parse.y (mode2): delete unesthetic newline.
10562 Thu Jan 28 10:32:55 1993 Bill Cox (bill@rtl.cygnus.com)
10564 * ch-actions.c: delete maybe_array_ref()
10565 * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
10567 * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
10568 supervision actions & builtins
10569 * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
10570 smaller actions directly (maybe_array_ref() used to call them).
10571 * ch-tree.h: add build_chill_function_call, build_chill_slice
10572 * ch-typeck.c: add build_chill_slice()
10574 Thu Jan 28 08:44:28 1993 Bill Cox (bill@rtl.cygnus.com)
10576 * ch-tree.h: bring up to date with ch-actions.c changes.
10578 Wed Jan 27 23:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10580 * ch-expr.c (chill_expand_assignment): handle an RHS varying array
10583 Wed Jan 27 22:28:36 1993 Per Bothner (bothner@rtl.cygnus.com)
10585 * ch-grant.c (decode_constant): Add REAL_TYPE support.
10586 * ch-actions.c (build_chill_exception_decl): New function.
10587 * ch-actions (build_chill_cause_exception, cond_exceptions):
10588 Convert to take a (char*) parameter (the exception name).
10589 * ch-actions.c, ch-expr.c, ch-typeck.c: Convert calls to
10591 * ch-parse.y (check_end_label): New function, to check if
10592 and end label matches start label.
10593 * ch-parse.y: Fix syntax to properly recognize and
10594 test optional end labels (using check_end_label).
10595 * ch-decl.c (finish_chill_function): Simplify, since
10596 we assume check_end_label has already been called.
10597 * ch-parse.y: Put in infrastructure for exception handling.
10599 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10601 * ch-actions.c: delete convert_chill_parameter, replace call with
10603 * ch-convert.c (convert): combine chill_give_type_to_expr in here.
10604 * ch-decl.c: call convert rather than chill_give_type_to_expr.
10605 * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
10606 * ch-expr.c (chill_expand_assignment): just call convert.
10607 * ch-loop.c (end_chill_loop): expand the end of the loop for a
10609 * ch-parse.y: call convert rather than chill_give_type_to_expr.
10610 * ch-process.c: checkpoint.
10611 * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
10613 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10615 * ch-grant.c (grant_array_type): new function to allow handling of
10616 VARYING array types.
10618 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10620 * ch-typeck.c (chill_give_type_to_expr): fix typo. Reorder to
10621 avoid checking types on CONSTRUCTORs. Correct typo.
10622 * ch-expr.c (expand_assignment_to_varying_array): use proper
10623 expansion function expand_expr_stmt.
10624 * ch-expr.c (expand_chill_assignment): only convert VARYING
10627 Wed Jan 27 15:32:21 1993 Bill Cox (bill@rtl.cygnus.com)
10629 * ch-actions.c (build_chill_length, build_chill_lower,
10630 build_chill_upper): accept parameters, too.
10631 * ch-expr.c (chill_expand_assignment): decipher ARRAY_REF on RHS.
10632 * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
10633 assign proper type to ARRAY_REF expression.
10635 Wed Jan 27 09:51:46 1993 Bill Cox (bill@rtl.cygnus.com)
10637 * ch-actions.c (build_chill_binary_op): delete unused variable,
10638 get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
10639 * ch-actions.c (build_chill_repetition_op): handle differently-built
10641 * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
10642 * ch-typeck.c (chill_give_type_to_expr): give type to constructor
10644 Tue Jan 26 11:32:38 1993 Bill Cox (bill@rtl.cygnus.com)
10646 * ch-parse.y (ifaction): re-add lost call to expand_end_code().
10647 * ch-parse.y (siezelist, grantlist): use 'name' rather than
10648 'checked_name'. It makes no sense to check sieze/grant names
10649 for WITH expansion.
10650 * ch-expr.c (chill_expand_expr): delete unnecessary (and
10651 seg-fault-causing) code.
10652 * ch-expr.c (chill_expand_assignment): make test for varying array
10653 on the LHS more specific.
10654 * ch-actions.c (invalid_left_operand, invalid_right_operand): error
10655 for use of MOD, REM operators.
10656 * ch-actions.c (build_chill_repetition_op): error for bit-field
10657 initializers (which will get handled in the lexer).
10659 Mon Jan 25 17:26:47 1993 Bill Cox (bill@rtl.cygnus.com)
10661 * ch-typeck.c (build_chill_array_ref),
10662 * ch-expr.c (chill_expand_expr, chill_expand_assignment):
10663 translate varying array ref into ARRAY_REF, defer processing
10664 until chill_expand_expr. Update array's length field in
10665 new function expand_assignment_to_varying_array.
10667 Mon Jan 25 14:57:24 1993 Bill Cox (bill@rtl.cygnus.com)
10669 * ch-parse.y (mode2): eliminate old method to mark varying arrays.
10670 * ch-expr.c (expand_varying_length_assignment): repair scaling of
10673 Mon Jan 25 11:44:21 1993 Per Bothner (bothner@cygnus.com)
10675 * ch-parse.y: Allow character and bitstring literals
10676 in string repetition operator.
10678 Sat Jan 23 14:18:11 1993 Per Bothner (bothner@cygnus.com)
10680 * ch-parse.y (primval): Re-recognize '(' expr ')'.
10681 * ch-parse.y (name): Remove call to check_identifier -
10682 this is not appropriate in certain contexts.
10683 * ch-parse.y (checked_name): Same as <name>, but *with* the
10684 call to check_identifier. Use where appropriate.
10685 * ch-parse.y (operand5): Only allow string repetition of
10686 string literals, because otherwise you get a conflict.
10688 Thu Jan 21 16:32:39 1993 Bill Cox (bill@rtl.cygnus.com)
10690 * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
10691 continue start_process development.
10693 Thu Jan 21 13:51:06 1993 Bill Cox (bill@rtl.cygnus.com)
10695 * ch-decl.c (do_decl): fix handling of multi-char initializer.
10697 Thu Jan 21 13:14:00 1993 Bill Cox (bill@rtl.cygnus.com)
10699 * .cvsignore: add CHILL files to be ignored
10701 Thu Jan 21 07:38:57 1993 Bill Cox (bill@cygnus.com)
10703 * ch-parse.y: rough draft of start_process handling.
10705 Wed Jan 20 17:11:05 1993 Bill Cox (bill@rtl.cygnus.com)
10707 * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
10709 Wed Jan 20 16:48:13 1993 Bill Cox (bill@rtl.cygnus.com)
10711 * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
10712 create new modules for I/O and process-related stuff.
10713 * ch-actions.c: move routines to new modules.
10714 call xmalloc, not malloc.
10715 * ch-lang.c (build_chill_struct_type): add parameter checking.
10716 * ch-lex.l (init_lex): remove redundant cast.
10718 Tue Jan 19 16:33:56 1993 Bill Cox (bill@rtl.cygnus.com)
10720 * ch-parse.y (operand5): delete unnecessary argument to
10721 build_chill_unary_op. Add rule for string repetition.
10722 * ch-parse.y (primval): delete string repetition attempt.
10723 * ch-parse.y (start_process): rough draft of action.
10724 * ch-actions.c (build_repetition_op): add it
10725 * ch-actions.c (build_chill_binary_op): handle constant arguments
10726 of CONCAT_EXPR, combine into a single string if possible.
10727 * ch-actions.c (invalid_left_operand, invalid_right_operand):
10728 allow single character arguments to CONCAT_EXPR.
10729 * ch-tree.h: add prototype for build_repetition_op
10731 Tue Jan 19 15:03:29 1993 Fred Fish (fnf@cygnus.com)
10733 * dwarfout.c (output_type): Add hack that matches the one in the
10734 chill front end to distinquish between true string types and
10735 arrays of char, since it uses ARRAY_TYPE for both, rather than
10736 trying to use the existing support for STRING_TYPE.
10738 Tue Jan 19 13:54:27 1993 Bill Cox (bill@rtl.cygnus.com)
10740 * ch-tree.h: added prototypes for all non-static CHILL functions.
10741 * ch-actions.c (lang_init): declare builtin type for start_process
10742 * ch-actions.c (build_chill_binary_op): combine string literals when
10744 * ch-actions.c (formpars2struct): added for later start_process
10746 * ch-actions.h: remove un-needed function declarations.
10747 * ch-decl.c: extern cleanup.
10748 * ch-expr.c (chill_expand_array_assignment): add missing first
10749 parameter to cond_exception call.
10750 * ch-lex.l: make build_chill_string non-static.
10752 Mon Jan 18 19:15:08 1993 Bill Cox (bill@rtl.cygnus.com)
10754 * ch-decl.c (do_decls): get varying array length initialized.
10756 Mon Jan 18 09:51:43 1993 Bill Cox (bill@rtl.cygnus.com)
10758 * ch-expr.c (chill_expand_array_assignment): fix the copy length
10759 in the memcpy call (it was just 4 bytes always). Simplify some
10762 Mon Jan 18 08:24:21 1993 Bill Cox (bill@rtl.cygnus.com)
10764 * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
10766 Mon Jan 18 08:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
10768 * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
10769 CHARS synonymous with CHAR, in the lexer. Delete unnecessary
10770 'bools' non-terminal.
10771 * ch-parse.y (assignaction): add lhs version of length() function
10772 * ch-actions.c: add builtin_concat function, lots of support for
10774 * ch-actions.c, ch-tree.h: make a function out of former
10775 macro CH_VARYING_TYPE_P
10776 * ch-expr.c: add expand_varying_length_assignment ().
10777 * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
10778 * ch-expr.c (chill_expand_array_assignment): call emit_library_call
10779 rather than build_rts_call, to eliminate a recursion problem.
10780 * ch-lang.c: eliminate 'sorry' about varying arrays.
10781 * ch-typeck.c (validate_varying_array_ref): re-enable constant
10784 Sun Jan 17 18:20:04 1993 Per Bothner (bothner@cygnus.com)
10786 * ch-grant.c, ch-lex.l: Major simplification of how
10787 seizes are done and how seizefiles are read.
10788 * ch-actions.h: Remove declaration of check_seize().
10789 * ch-decl.c (do_decls): Handle READONLY types.
10790 * ch-parse.y (mode2): Allow REF to be followed by any mode.
10791 * ch-parse.y (mode2): Allow literal expressions in string length.
10792 * ch-parse.y (tupleelement): Allow elemenst to be untyped_expr.
10793 * ch-parse.y (seizestatement, etc): Call chill_seize each
10794 time something is seized, rather than building a list first.
10796 Sat Jan 16 12:24:44 1993 Bill Cox (bill@rtl.cygnus.com)
10798 * chill.gperf, ch-hash.h: add Wilfried's tokens
10799 * ch-lex.l: fold in Wilfried's changes. Some tokens
10800 weren't getting recognized, and INSTANCE wasn't correctly
10801 reported to ch-parse.y as a PREDEF_MODEDCL.
10803 Thu Jan 14 15:02:39 1993 Per Bothner (bothner@cygnus.com)
10805 * ch-tree.h (CH_CHARS_TYPE_P): New macro. Add comment
10806 explaining difference between char strings and char arrays.
10807 * ch-tree.h (CH_STRING_TYPE_P): Add FIXME re bitstrings.
10808 * ch-tree.c (build_string_type): Add comment.
10810 Wed Jan 13 15:19:15 1993 Per Bothner (bothner@cygnus.com)
10812 * calls.c, expr.c, function.c, stmt.c, varasm.c: Set
10813 MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
10814 * expmed.c (store_bit_field, extract_field_field): Undo
10815 yesterday's removal of MEM_IN_STRUCT_P "sanity test".
10817 * ch-decl.c (do_decls): Put back support for initializing.
10818 (Was accidentally removed in Jan 8 change.)
10820 Wed Jan 13 14:13:11 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
10822 * ch-lex.l (convert_bitstring): Correct typo in cast.
10824 Tue Jan 12 20:29:08 1993 Per Bothner (bothner@cygnus.com)
10826 * ch-lex.l (convert_bitstring): Change to pack bits
10827 within words, not bytes, and to use machine bit-order
10828 (not always little-endian).
10829 * ch-parse.y: Allow BOOLS(n) as well as BITS(n).
10830 Use build_bitstring_type, not build_string_type.
10831 * expmed.c (store_bit_field, extract_field_field): Remove
10832 "sanity test" that prevents use with SET_TYPE.
10833 * tree.c (build_bitstring_type, build_powerset_type,
10834 build_string_type): Move (so far) Chill-specific functions to ...
10835 * ch-tree.c: ... new file.
10836 * ch-tree.c (build_powerset_type, build_bitstring_type): Re-write.
10837 * ch-typeck.c (build_chill_array_ref): Handle bit strings better.
10838 * ch-typeck.c (chill_expand_tuple): Kludge to handle SET_TYPE.
10839 * Makefile.in (CHILL_OBJS): Add ch-tree.o.
10840 * ch-decl.c (do_decls): Call expand_decl.
10841 * stor-layout.c (layout_type): Handle SET_TYPE.
10842 * expr.c (expand_expr): Add FIXMEs about IN_EXPR.
10843 * ch-actions.c (lang_init): Add type and decl for new
10844 function __builtin_setbitinstring.
10845 * ch-expr.c (chill_expand_assignmment): Special-case handling
10846 for BIT_FIELD_REF with non-constant bit position (which is
10847 not yet handled by expand_expr).
10848 * ch-convert.c (convert): Handle SET_TYPE.
10850 Tue Jan 12 12:49:13 1993 Fred Fish (fnf@cygnus.com)
10852 * chill: If -B arg is given, use to find gcc.
10854 Fri Jan 8 20:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
10856 * ch-decl.c: revert to avoid seg fault
10858 Fri Jan 8 14:20:42 1993 Bill Cox (bill@rtl.cygnus.com)
10860 * ch-decl.c: fix storage into correct offset in varying array.
10861 * ch-actions.c: define sizetype for everyone, use it to build
10863 * ch-parse.y: tiny cleanup.
10865 Wed Jan 6 13:25:33 1993 Bill Cox (bill@cygnus.com)
10867 * modules: use gdb rather than naked-gdb, to get opcodes
10868 in chill definition.
10870 Wed Jan 6 09:48:35 1993 Bill Cox (bill@cygnus.com)
10872 * ch-typeck.c: add code to handle references to elements of VARYING
10873 arrays. Simplify chill_give_type_to_expr. Add rough draft of run-
10874 time index checking for VARYING arrays (under #if 0).
10875 * ch-actions.c: new function cond_type_range_exception & calls.
10876 New function cond_range_exception, for more general range-checking.
10877 New function build_varying_struct, to do just that. Use the macros
10878 for the special varying field names.
10879 * ch-tree.h: define macros for varying field names.
10880 * ch-expr.c: use macros for varying struct names. Simplify
10881 chill_expand_array_assignment.
10882 * ch-parse.y: assure that build_varying_struct is called everywhere
10883 that it applies. Add a line-number note before the body of a DO
10885 * ch-loop.c: #ifdef out creation of new scope for DO loop body.
10887 Tue Jan 5 17:26:14 1993 Bill Cox (bill@cygnus.com)
10889 * c-decl.c: correct order of declaration of start_decl params,
10892 Tue Jan 5 15:59:36 1993 Per Bothner (bothner@cygnus.com)
10894 * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
10895 Move shared code into ...
10896 * ch-decl.c (start_chill_function): ... here.
10897 * ch-decl.c (start_chill_function): Add missing call to
10898 expand_start_bindings.
10899 * ch-decl.c (finish_chill_function): Add missing call to
10900 expand_end_bindings.
10902 Tue Jan 5 01:00:47 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10904 * Makefile.in: took out the rest of the runtime support
10906 Mon Jan 4 18:02:06 1993 Bill Cox (bill@cygnus.com)
10908 * ch-expr.c: make chill_expand_array_assignment not static.
10910 Mon Jan 4 17:57:48 1993 Per Bothner (bothner@cygnus.com)
10912 * ch-grant.c, ch-parse.y: Remove all code for explicitly
10913 calling initializer functions. This is not needed, since we
10914 use the same mechanism used for C++ static constructors.
10915 * ch-grant.c (chill_start_module_code): Make sure the
10916 init_name starts with the magic string also used for C++
10917 initializers. Also, don't embed the file name in the name,
10918 just use the module name.
10919 * ch-grant.c (chill_finish_module_code): Now that the
10920 initializer name follows the standard 'collect' convention,
10921 don't need to call assembler_constructor_alias, but can
10922 use the standard assemble_constructor instead.
10923 * varasm.c (assemble_constructor_alias): Remove no-longer-
10925 * ch-parse.y: Move code that is common to the beginning of
10926 all functions to a new macro INIT_ACTION.
10927 Make sure INIT_ACTION is also done for callaction, fixing a bug.
10928 * ch-parse.y (INIT_ACTION): Do chill_start_module_code()
10929 before emit_line_note(), not after.
10931 Mon Jan 4 11:43:12 1993 Bill Cox (bill@cygnus.com)
10933 * ch-parse.y: restore requirement for :upper-bound in array decl.
10934 * ch-actions.c: enhance upper, lower, length functions for VARYING.
10936 Mon Jan 4 09:28:44 1993 Bill Cox (bill@cygnus.com)
10938 * ch-actions.c: fix NOT of boolean expr.
10940 Mon Jan 4 08:42:57 1993 Bill Cox (bill@cygnus.com)
10942 * ch-actions.c: provide range-checking function
10943 * ch-lex.l: better compiler-directive error messages,
10944 allow underscores in exponents
10945 * ch-loop.c: prevent passing NULL ptr to printf
10947 Sun Jan 3 11:57:13 1993 Bill Cox (bill@cygnus.com)
10949 * ch-typeck.c: correct & enable array index range-checking
10951 Sun Jan 3 11:36:39 1993 Bill Cox (bill@cygnus.com)
10953 * ch-parse.y: define IGNORED_DIRECTIVE
10954 * ch-typeck.c: subtract array's lower domain value, even if
10955 index expression is constant.
10957 Sat Jan 2 23:05:14 1993 Fred Fish (fnf@cygnus.com)
10959 * ch-lex.l (convert_float): Fix misspelling in error message.
10961 Sat Jan 2 16:02:16 1993 Per Bothner (bothner@rtl.cygnus.com)
10963 * Makefile.in: Took out chill-runtime support.
10964 Chill run times are now in ../chillrt, not ./chillrt.p
10966 Sat Jan 2 15:04:13 1993 Bill Cox (bill@cygnus.com)
10968 * ch-hash.h, chill.gperf: cleanup. fewer keywords seen by ch-parse.y.
10970 Sat Jan 2 13:27:49 1993 Per Bothner (bothner@rtl.cygnus.com)
10972 * ch-lex.l (check_newline): Use the orginal versions (derived
10973 from the C code, not the simplified, special-case version).
10974 Also, fix that version of check_newline to not call yylex()
10976 * ch-lex.l (yy_input): Call check_newline to handle
10977 newlines and check for # directives.
10978 * ch-lex.l (syntax): Don't recognize #-directives; these
10979 are now handled by check_newline.
10980 * ch-actions.c (lang_init): Call the modified version of
10981 check_newline(). Do this at the *after* we've initialized
10982 standard types, so this can be done while lineno is still 0.
10984 Sat Jan 2 10:57:20 1993 Bill Cox (bill@cygnus.com)
10986 * ch-hash.h, chill.gperf: add remaining reserved words.
10988 Sat Jan 2 09:59:55 1993 Bill Cox (bill@cygnus.com)
10990 * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
10991 names for exceptions
10993 Fri Jan 1 12:30:31 1993 Fred Fish (fnf@cygnus.com)
10995 * ch-tree.h (JOINER): Define joiner character the same way
10997 * ch-grant.c (chill_start_module_code): Use JOINER character
10998 to implement name mangling for the initializer function name.
10999 Algorithm is designed to be simple, distinct from C++ mangled
11000 symbols, and easy to convert to demangled form.
11002 Thu Dec 31 10:30:51 1992 Bill Cox (bill@rtl.cygnus.com)
11004 * ch-expr.c: make array assignments work with indirect refs.
11005 * ch-actions.c: prepare for array parameter handling.
11006 * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11008 Thu Dec 31 15:29:20 1992 Per Bothner (bothner@rtl.cygnus.com)
11010 * ch-lex.l (yy_input): Re-write to return more than one
11011 character at a time (execpt when reading seize-files).
11012 Don't increment lineno until we start reading the next line.
11013 This fixes some off-by-one errors in lineno.
11015 Wed Dec 30 16:15:23 1992 Per Bothner (bothner@rtl.cygnus.com)
11017 * ch-convert.c: Assume use of new common.c.
11018 * ch-convert.c (convert_to_reference, convert_from_reference):
11019 New routines, to handle loc-identity declared variables and
11020 LOC parameters (both of which are implemented as references).
11021 * ch-lang.c (convert_to_boolean, convert_to_char): Move to
11022 ch-convert.c, where they would seem to belong.
11023 * ch-convert.c (convert): New function, since we no longer
11024 link in c-convert.c.
11025 * ch-expr.c (chill_expand_assignment): Handle by calling
11026 convert() instead of chill_comptypes().
11027 Also handle the LHS being a reference.
11028 * ch-parse.y: Add a procedure call as an action.
11029 * ch-parse.y (locdec, optlocinit): Move handling of
11030 loc-identity declarations from optlocinit to locdec
11031 - and add working semantics for it.
11032 * ch-parse.y (seizestatement, visibilty_stmt): Simplify.
11033 * ch-parse.y (grantstatement etc): Don't bother making list.
11034 * ch-lex.l: #include <sys/types.h> before <sys/stat.h>.
11036 Wed Dec 30 16:06:55 1992 Bill Cox (bill@rtl.cygnus.com)
11038 * ch-parse.y, ch-expr.c: add support for declaring & assigning
11040 * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11042 Tue Dec 29 15:28:48 1992 Bill Cox (bill@cygnus.com)
11044 * ch-actions.c: implement expressions of arrays of char,
11045 ( concatenation, relationals ), correct type of code parameters
11046 * ch-expr.c: correct type of code parameters
11048 Tue Dec 29 11:16:19 1992 Bill Cox (bill@cygnus.com)
11050 * ch-decl.c: cleanup.
11051 * ch-parse.y: put emit_line_note() calls in lotsa places,
11052 per Fred's request; be sure that statements get counted also.
11053 * ch-lex.l: standardize function headers.
11055 Tue Dec 29 10:41:56 1992 Fred Fish (fnf@cygnus.com)
11057 * ch-decl.c (start_chill_function): Always return 1, rather
11058 than a random value.
11059 * ch-lex.l (check_newline): Add a version for chill that
11060 just snarfs the right value for main_input_filename out of
11061 the first line of the input file, without disturbing the
11062 lexer state or requiring it's assistance.
11063 * ch-actions.c (lang_init): Call check_newline, like the
11064 other language frontends, to get main_input_filename set
11065 from first line of input file.
11067 Mon Dec 28 18:49:01 1992 Bill Cox (bill@cygnus.com)
11069 * ch-parse.y: clean up conflicts. The remaining one is
11072 Mon Dec 28 17:28:40 1992 Bill Cox (bill@cygnus.com)
11074 * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11075 clean up some parser conflicts.
11077 Mon Dec 28 15:00:20 1992 Bill Cox (bill@cygnus.com)
11079 * ch-parse.y, ch-lex.l: add keywords and parsing for most of
11082 Sat Dec 26 20:48:23 1992 Fred Fish (fnf@cygnus.com)
11084 * chillrt/chillrt0.c: Oops, SVR4 doesn't need leading '_'
11085 on build_exceptions.
11087 Sat Dec 26 11:00:36 1992 Fred Fish (fnf@cygnus.com)
11089 * ch-grant.c (chill_finish_module_code): Call
11090 assemble_constructor_alias rather than assemble_constructor.
11091 * varasm.c (assemble_constructor_alias): New function,
11092 like assemble_constructor, but also handles the case where
11093 ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11094 being used. Emits a symbol table alias name with the correct
11095 prefix for collect to find and add to the __CTOR_LIST__.
11096 * chillrt/chillrt0.c: Build on previous hack that gets
11097 _build_exceptions into the __CTOR_LIST__, to make it work
11098 for both the non GNU-ld case and for the SVR4 case.
11100 Tue Dec 22 18:24:55 1992 Bill Cox (bill@cygnus.com)
11102 * ch-loop.c: clean up location enumeration - one more
11105 Tue Dec 22 16:31:48 1992 Bill Cox (bill@cygnus.com)
11107 * ch-loop.c: Working version of location enumeration loop
11109 Tue Dec 22 14:42:14 1992 Bill Cox (bill@cygnus.com)
11111 * ch-lex.l: readability cleanup
11113 Mon Dec 21 14:58:39 1992 Bill Cox (bill@cygnus.com)
11115 * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11116 ch-loop.c: rough draft of location enumeration
11117 ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11118 ch-actions.c: finish making pred() and succ() work.
11120 Mon Dec 21 10:04:35 1992 Bill Cox (bill@cygnus.com)
11122 * ch-actions.c: allow pred(char) and succ(char).
11124 Sun Dec 20 16:04:28 1992 Bill Cox (bill@cygnus.com)
11126 * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11127 c-expr.c: make DO WITH work.
11129 Sun Dec 20 12:22:53 1992 Bill Cox (bill@cygnus.com)
11131 * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11134 Sat Dec 19 14:20:23 1992 Per Bothner (bothner@cygnus.com)
11136 * c-typeck.c (process_init_constructor): Add warning if
11137 there is a duplicate default initializer element.
11138 * ch-typeck.c (chill_give_type_to_expr): New function,
11139 to handle coercion of an expression to context-given type,
11140 Takes care of untyped tuples, and case expressions.
11141 * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11142 chill_expand_result), ch-parse.y <assignaction>:
11143 Use chill_give_type_to_expr().
11144 * ch-typeck.c (chill_handle_case_label): New parameter list,
11145 to handle the (new) conventions for <case_label>, including
11146 default elements and ranges.
11147 * ch-parse.y <expanded_case_label>, ch-typeck.c
11148 (expand_case_expr): Use new version of chill_handle_case_label.
11149 * ch-decl.c (push_syndecls): Change parameters: Instead of
11150 TREE_LIST representing a compete <synonym definition statement>,
11151 just pass the parts of a single <synonym definition> as 3
11152 different parameters. Also, use chill_give_type_to_expr(),
11153 to handle untyped tuples in the RHS.
11154 * ch-parse.y <syndeclist, syndef>: Don't bother trying to construct
11155 a tree - just call push_syndecls() on each <synonum_definition>
11157 * ch-parse.y (exprlist_get_single): Remove; no longer needed.
11158 * ch-parse.y: Handle <tuple> without mode name diferently from
11159 <tuple> with mode name. The latter is a <primval> that can be
11160 in most contexts, but if the <mode name> is missing, the <tuple>
11161 is only allowed in certain contexts. Use the new non-terminal
11162 <untyped_expr> to indicate those contexts where untyped tuples
11163 (and case expressions) are valid because the expression gets a
11164 type from its context (such as the RHS of an assignment).
11165 Use chill_give_type_to_expr in those contexts.
11167 Sat Dec 19 14:01:26 1992 Bill Cox (bill@cygnus.com)
11169 * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11171 Sat Dec 19 10:16:20 1992 Bill Cox (bill@cygnus.com)
11173 * ch-parse.y: clean up warning messages from byacc. bison
11174 still complains thrice.
11176 Fri Dec 18 12:33:29 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11178 * ch-actions.c (maybe_chill_comptypes): Delete unused
11180 (chill_comptypes): Add new parameter ERRSTR. All callers
11182 (build_chill_binary_op): Fix indentation to match GNU coding
11185 Fri Dec 18 08:18:13 1992 Bill Cox (bill@rtl.cygnus.com)
11187 * ch-parse.y, ch-expr.c, ch-actions.c, expr.c: major
11188 cleanup of expression and assignment handling.
11190 Thu Dec 17 10:16:32 1992 Bill Cox (bill@cygnus.com)
11192 * ch-parse.y: standardize indentation after c-parse.y
11194 Wed Dec 16 15:22:12 1992 Per Bothner (bothner@cygnus.com)
11196 * c-typeck.c (process_init_constructor): Add support for
11197 a default initializer element.
11198 * ch-parse.y: Implement default elements for tuples
11199 (as in '(else):' and '(*):' ).
11201 * ch-parse.y: Previous change to dis-ambiguate case-labels
11202 seems to have allowed getting rid of all of the expr_or_list hair.
11203 * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11204 initialization of multiple variables by a tuple" - the
11207 Wed Dec 16 11:17:53 1992 Bill Cox (bill@cygnus.com)
11209 * ch-parse.y: complete re-write of DO statement handling.
11210 now operational, except WITH is stubbed out. Improved
11211 syntax error message.
11212 * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11213 * ch-expr.c: fixes to IN_EXPR handling.
11215 Tue Dec 15 17:15:13 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
11217 * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11218 * ch-lex.c: Likewise.
11220 * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11221 by flex to avoid compiler error.
11223 Tue Dec 15 08:41:08 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11225 * ch-decl.c (do_decls): Handle initialization of multiple
11226 variables by a tuple.
11228 * ch-decl.c (do_decls,start_chill_function): Make DECL public
11229 if we're doing a GRANT ALL at top level.
11231 * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11234 * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11235 BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11237 Mon Dec 14 14:58:32 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11239 * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11240 (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11242 Mon Dec 14 13:36:44 1992 Bill Cox (bill@cygnus.com)
11244 * expr.c: install and test newer Pascal IN_EXPR code,
11245 but don't activate it - it's very verbose.
11247 Mon Dec 14 00:22:49 1992 Fred Fish (fnf@cygnus.com)
11249 * Makefile.in (LANGUAGES): Add chill.
11250 * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11251 New macros for chill native and cross installation names.
11252 * Makefile.in (COMPILERS): Add cc1chill.
11253 * Makefile.in (CHILL_OBJS): New macro, chill objects.
11254 * Makefile.in (CHILL_TREE_H): New macro, chill headers.
11255 * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11256 sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11257 install-librmt): New targets.
11258 * Makefile.in (install-native): Add install-libchill,
11261 Sun Dec 13 15:21:06 1992 Bill Cox (bill@cygnus.com)
11263 * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11265 Sun Dec 13 14:07:32 1992 Bill Cox (bill@cygnus.com)
11267 * ch-actions.c: fix unary operations, modulus ops,
11268 (discovered after extending regression tests).
11270 Sun Dec 13 12:16:32 1992 Bill Cox (bill@cygnus.com)
11272 * resync with Michael and Wilfried
11274 Sun Dec 13 09:11:25 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11276 * ch-parse.y (output_constant): Fixed some whitespace
11278 * ch-tree.h: Add declarations for new chill functions that
11279 have been implemented but not (yet) declared.
11281 Sat Dec 12 00:17:23 1992 Per Bothner (bothner@cygnus.com)
11283 * c-typeck.c (process_init_constructor): Warn about duplicate
11284 labels for labelled initializer elements.
11285 * ch-lex.l (various operator tokens, such as "+"): Don't
11286 set yylval.code to a TREE_CODE; this is better done in parser.
11287 * ch-parse.y: Some work with case labels and tuples.
11288 Get literal range as tuple (and case) labels working.
11289 Fix some problems introduced by recent grammar overhaul.
11291 Fri Dec 11 13:28:48 1992 Bill Cox (bill@cygnus.com)
11293 * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
11294 got long, real expressions working. We can also call a func-
11295 tion and use its return value.
11297 Thu Dec 10 14:45:17 1992 Per Bothner (bothner@cygnus.com)
11299 * ch-parse.y: Major change to remove or at least identify
11300 parser ambiguities. One result: We now allow actions that
11301 start with '(', as required by teh Blue Book. This does break
11302 some things; look for FIXME for things that need work.
11303 * ch-typeck.c (chill_expand_case_expr): We need an extra
11304 level of looping to (in the future) support <case label
11305 specification>s with more than one <case label list>.
11307 Thu Dec 10 09:21:41 1992 Bill Cox (bill@cygnus.com)
11309 * ch-actions.c, ch-expr.c: Implement string assignments
11312 Thu Dec 10 07:17:35 1992 Bill Cox (bill@cygnus.com)
11314 * ch-decl.c, ch-typeck.c: rest of previous commit.
11316 Wed Dec 9 18:26:29 1992 Bill Cox (bill@cygnus.com)
11318 * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
11319 regression test and fix bit arrays and set ops.
11321 Mon Dec 7 14:57:46 1992 Bill Cox (bill@cygnus.com)
11323 * ch-actions.c: implement crude relationals between
11324 non-exotic operands, such as integers.
11326 Mon Dec 7 10:42:35 1992 Bill Cox (bill@cygnus.com)
11328 * ch-actions.c: implement relational, logic operations
11329 on arrays of BOOLs.
11331 Mon Dec 7 08:55:20 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11333 * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
11334 indicate we are done with initialization.
11336 * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
11338 (start_chill_function): Ditto.
11340 * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
11341 (compiler_directive): Don't confuse compiler directives with
11342 equality comparison operators.
11344 * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
11346 Sun Dec 6 13:12:32 1992 Bill Cox (bill@cygnus.com)
11348 * ch-actions.c: repair set inequality code.
11350 Sun Dec 6 11:15:59 1992 Bill Cox (bill@cygnus.com)
11352 * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
11353 relational expressions, including (<, <=, =, /=, >, >=, IN).
11355 Fri Dec 4 13:54:58 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
11357 * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
11358 Pascal-required ones, since C++ no longer needs them. When
11359 Chill's public, a comment can be added to the effect that
11360 SET_LE_EXPR is also used by Chill.
11362 Fri Dec 4 12:05:01 1992 Bill Cox (bill@cygnus.com)
11364 * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
11366 Fri Dec 4 10:23:10 1992 Bill Cox (bill@cygnus.com)
11367 * Get *.def and *.c in sync.
11369 Fri Dec 4 06:48:41 1992 Fred Fish (fnf@cygnus.com)
11371 * ch-actions.c (lang_init): Change types "long" and
11372 "ulong" from 16 bits to 32.
11373 * dwarfout.c (fundamental_type_code): Use FT_signed_char
11374 for type "byte" and FT_unsigned_char for type "ubyte".
11376 Thu Dec 3 15:13:24 1992 Bill Cox (bill@cygnus.com)
11377 * ch-actions.c, ch-tree.def, ch-parse.y: preparation
11378 for powerset expressions.
11380 Tue Dec 2 17:02:30 1992 Bill Cox (bill@cygnus.com)
11381 * ch-actions.c: sketch code for exceptions generated
11382 by builtin routines.
11384 Tue Dec 2 12:49:50 1992 Bill Cox (bill@cygnus.com)
11385 * ch-actions.c, ch-parse.y: add support for lower()
11386 upper() builtin functions.
11388 Wed Dec 2 12:03:30 1992 Fred Fish (fnf@cygnus.com)
11390 * Makefile.in (chillrt0.o, install-chillrt0): Remove.
11391 * chill (library): Remove chillrt0.o.
11392 * chillrt/Makefile: Remove maintenance of chillrt0.o as a
11393 separate file. Now gets put in libchill.a.
11395 Tue Dec 2 10:100:20 1992 Bill Cox (bill@cygnus.com)
11397 * ch-parse.y, ch-actions.c: add support for num()
11400 Wed Dec 2 09:52:06 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11402 * ch-decl.c (fixup_unknown_type): New function.
11403 (push_newmode,push_synmode): Call `fixup_unknown_type' when we
11404 see a declaration that uses `unknown_type_node'. FIXME.
11406 * ch-grant.c (decode_constant): New function.
11407 (decode_decl): Call `decode_constant' for CONST_DECLs.
11409 * ch-lex.l (char action): Use ridpointers instead of
11410 lookup_name to get "char"'s declaration.
11412 * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
11413 when we need to build a TYPE_DECL.
11415 Tue Dec 2 09:44:05 1992 Bill Cox (bill@cygnus.com)
11417 * ch-typeck.c: clean up a gcc warning with a forward
11418 declaration of build_string_type.
11420 Tue Dec 1 16:51:05 1992 Bill Cox (bill@cygnus.com)
11422 * ch-actions.c: completely remove those builtin calls
11423 that are duplicated in c-decl.c
11425 Tue Dec 1 16:38:51 1992 Fred Fish (fnf@cygnus.com)
11427 * ch-actions.c (lang_init): Ifdef out initializations for
11428 __builtin_abs and __builtin_fabs, since they are duplicates of
11429 initializations in c-decl.c, and trigger spurious warnings.
11431 Tue Dec 1 16:35:18 1992 Bill Cox (bill@cygnus.com)
11433 * ch-parse.y: make size() work with a typename argument.
11435 Tue Dec 1 16:15:56 1992 Bill Cox (bill@cygnus.com)
11437 * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
11438 functions min, max, card.
11440 Tue Dec 1 12:35:56 1992 Bill Cox (bill@cygnus.com)
11442 * ch-lex.l: fix char-type
11444 Tue Dec 1 11:10:56 1992 Bill Cox (bill@cygnus.com)
11446 * ch-parse.y, ch-actions: added parsing and processing
11447 for upper, lower, and length built-ins.
11449 Tue Dec 1 09:40:49 1992 Fred Fish (fnf@cygnus.com)
11451 * dwarf.h (LANG_CHILL): Add as GNU extension.
11452 * dwarfout.c (output_compile_unit_die): Test language_string and
11453 set LANG_CHILL if appropriate.
11454 * ch-parse.y (language_string): New for chill.
11455 * chillrt: Renamed directory chill to chillrt.
11456 * chill: Renamed chillsh to chill.
11457 * Makefile.in: Adjust for renamings.
11458 * chillrt/Makefile: Adjust for directory renaming.
11460 Mon Nov 30 17:35:33 1992 Fred Fish (fnf@cygnus.com)
11462 * chillsh: New script frontend (ala g++), installed as "chill".
11463 Can't be called "chill.sh" because make tries to cat it into the
11464 "chill" directory. Can't be called just "chill" cause that's
11465 already there as a directory.
11466 * Makefile.in: Add rules to install chillsh as "chill".
11467 * chill/libchill.c: Temporarily ifdef out stuff that wants
11468 to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
11469 which itself causes linkage to fail.
11471 Mon Nov 30 16:28:19 1992 Bill Cox (bill@cygnus.com)
11473 * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
11474 conversion routines.
11475 * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
11476 Added production for SIZE(expr).
11477 * ch-actions.c: Add semantic routine chill_sizeof ().
11479 Mon Nov 30 16:20:40 1992 Per Bothner (bothner@cygnus.com)
11481 * ch-lex.l, ch-parse.y: Translate token PFEIL into English ARROW.
11482 * ch-parse.y (op6): Remove handling of string repetition operator,
11483 until we can figure out a way to parse it correctly.
11484 * ch-parse.y (optmodename): New non-terminal.
11485 * ch-parse.y (tuple): Merge the two variants using optmodename.
11486 * ch-parse.y (location): Add semantic actions for
11487 dereferencing operator ->.
11489 Mon Nov 30 08:01:29 1992 Bill Cox (bill@cygnus.com)
11491 * ch-actions.c: removed compile warning, better code for abs.
11493 * ch-parse.y: add productions for builtin functions succ, pred,
11494 abs, and size. Add %tokens also. Sort %tokens alphabetically.
11496 * ch-lex.l: add parsing for builtin function names, such as abs,
11497 pred, succ, etc. Put flex -a option into Makefile.in, so we can
11498 clean up the lexer soon.
11500 Tue Nov 24 14:18:48 1992 Per Bothner (bothner@rtl.cygnus.com)
11502 * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
11503 New functions, for code common to CASE actions and expressions.
11504 * chill.y: Replace some code by calls to chill_handle_case_label
11505 and chill_handle_case_default.
11506 * ch-typeck.c (chill_expand_case_expr): Add semantics.
11508 * tree.c: Change doing_chill_thang from extern to common.
11510 Mon Nov 23 18:34:22 1992 Per Bothner (bothner@rtl.cygnus.com)
11512 * ch-tree.def: New CASE_EXPR type, for case expressions.
11513 * ch-expr.c (chill_expand_expr): Hook for CASE_EXPR.
11514 * ch-typeck.c (chill_expand_case_expr): New function.
11515 Placeholder to implement case expressions.
11516 * ch-typeck.c (chill_expand_result, chill_expand_return):
11517 Handle mode-unspecified tuples and case expressions in
11518 the context of RETURN and RESULT actions.
11519 * chill.y (assignaction): Handle case expressions in the
11520 context of the RHS of an assignment action.
11521 * chill.y (caseaction): Remove spurious duplicate OF in grammar.
11522 * chill.y: Handle labeled structure tuples.
11523 * chill.y: New rules to parse CASE expressions.
11524 * tree.c (build_function_types): Allow Chill functions
11525 to return arrays and functions.
11527 Wed Nov 18 13:50:28 1992 Per Bothner (bothner@rtl.cygnus.com)
11529 * ch-typeck.c (chill_expand_tuple): New function. Expand a
11530 tuple (constructor) given an expected (context) type.
11531 * chill.y: Implement 'LHS := TUPLE' using expand_chill_tuple,
11532 using the mode of the LHS and the expected type of the TUPLE.
11533 * chill.y: Implement initialization.
11534 * chill.y: Fix some syntax bugs (forbidlist must be surrounded
11535 by parentheses), and remove or note ambiguities.
11536 * chill.y: Started converting layout style to be like c-parse.in.
11537 * chill.y: Implement IF expressions.
11538 * chill.y: Added syntax rules for tuples. Labelled and unlabelled
11539 array tuples should now work (in some contexts).
11540 * ch-actions.c: Initialize doing_chill_thang to 1.
11541 * ch-decl.c (do_decls): Set DECL_INITIAL if there is an
11542 initializer, to make pushdecl and finish_decl work.
11543 * c-decl.c (convert_for_assignment): If Chill, don't convert
11544 function and arrays into pointers. (Maybe functions should
11545 still be converted?)
11546 * c-typeck.c (grokdeclarator): Allow functions in Chill
11547 to return arrays and functions.
11549 Mon Nov 16 15:40:47 1992 Per Bothner (bothner@rtl.cygnus.com)
11551 * chill.y (exprlist_get_single): New function, used when
11553 * chill.y: Re-did parsing of tuples to remove ambiguities.
11556 Tue Nov 10 16:30:55 1992 Per Bothner (bothner@rtl.cygnus.com)
11558 * ch-typeck.c (chill_expand_result); Set TREE_SIDE_EFEFCTS
11559 flags on assignment to result.
11560 * ch-typeck.c (build_chill_array_ref): Subtract lower
11561 bound of domain if non-zero. Preliminary hook for range checking.
11562 * ch-tree.h, chill.l: Combine variables range_check and
11563 range_check_disabled into global variable range_checking.
11564 * ch-tree.h: Better definitions of CH_CLASS_IS_VALUE
11565 CH_CLASS_IS_DERIVED.