1 Sun Jan 31 20:34:29 1999 Zack Weinberg <zack@rabi.columbia.edu>
3 * decl2.c: Don't define flag_no_ident here. Don't process
5 * ch-tree.h: Don't declare flag_no_ident here.
6 * lang-specs.h: Map -Qn to -fno-ident.
8 Tue Jan 19 23:24:36 1999 Jeffrey A Law (law@cygnus.com)
10 * Makefile.in (typeck.o): Depend on insn-codes.h.
11 * actions.c (chill_handle_multi_case_label): Initialize "expr".
12 * decl.c (poplevel): Initialize "block_previously_created".
13 * expr.c (chill_expand_expr): Initialize "size0" and "size1".
14 (fold_set_expr): Initialize "buffer1".
15 * inout.c (process_io_list): Initialize "to_assign".
16 (check_exprlist): Initialize "result".
17 * parse.c (expand_expr): Declare.
18 (parse_multi_dimension_case_action): Initialize "end_case_label".
19 * tasking.c (build_start_process): Initialize "struct_type_node".
20 * typeck.c (apply_chill_field_layout): Initialize "word".
21 (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
22 signed/unsigned comparison warning.
24 Mon Jan 18 11:55:06 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26 * ch-tree.h: Remove conflicting prototypes for pedwarn,
27 warning_with_decl, and make_dcl_rtl.
29 Sun Jan 17 21:53:23 1999 Jeffrey A Law (law@cygnus.com)
31 * Makefile.in: Do not put ^Ls at the start of a line.
33 Wed Jan 6 02:53:38 1999 Jeffrey A Law (law@cygnus.com)
35 * Makefile.in: Add some missing $(exeext). Remove some obsolete
37 * Make-lang.in: Similarly.
39 Tue Nov 24 09:57:34 1998 Jeffrey A Law (law@cygnus.com)
41 * Makefile.in (lex.c): Do not depend on hash.h.
42 (lex.o): Depend on hash.h.
44 Mon Oct 19 12:13:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
46 * Makefile.in (lex.o): Depend on dwarfout.h.
48 * lang-specs.h: Add missing braces in initializer.
50 * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
52 Thu Oct 15 09:25:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
54 * expr.c (build_chill_card): Use &&, not &, when comparing truth
57 * parse.c (parse_spec_module): Remove unused variable
58 `module_name', but preserve function call from initialization.
59 (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
61 * inout.c (init_text_location): Remove unused variable `textlength'.
63 Wed Oct 14 22:19:48 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
65 * typeck.c (build_chill_cast): Fix typo in assignment statement.
67 * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
68 when printing a `tree'.
70 Fri Oct 9 13:01:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
72 * ch-tree.h (build_delay_case_end): Remove unused parameter.
73 (build_receive_case_end): Likewise.
74 (check_queue_size): Likewise.
76 * parse.c: Callers changed.
78 * satisfy.c: Likewise.
80 * tasking.c (build_receive_buffer_case_end): Remove unused
81 parameter `label_cnt'.
82 (build_receive_signal_case_end): Likewise.
83 (build_receive_case_end): Likewise.
84 (build_delay_case_end): Likewise.
85 (check_queue_size): Likewise for parameter `type'.
88 Thu Oct 8 05:57:41 1998 Jeffrey A Law (law@cygnus.com)
90 * typeck (type_for_mode): Only return TItype nodes when
91 HOST_BITS_PER_WIDE_INT is >= 64 bits.
92 (type_for_size): Similarly.
93 * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
94 when HOST_BITS_PER_WIDE_INT is >= 64 bits.
95 (init_decl_processing): Only create TItype nodes when
96 HOST_BITS_PER_WIDE_INT is >= 64 bits.
98 Wed Oct 7 12:19:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
100 * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
101 (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
103 Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
105 * lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
106 HANDLE_GENERIC_PRAGMAS.
107 (handle_generic_pragma): New function: Parse generic pragmas.
109 Wed Sep 30 20:22:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
111 * parse.c (emit_label): Fix return-type of prototype.
113 Wed Sep 30 19:41:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
115 * actions.c (chill_handle_multi_case_label): Always return a value
116 in function returning non-void.
118 * except.c: Include OS headers before any local ones.
120 * typeck.c (layout_chill_range_type): Change type of variable
121 `negprecision' to int.
122 (apply_chill_array_layout): Initialize variables `stepsize' and
124 (layout_chill_struct_type): Change type of variable `min_align' to
126 (smash_dummy_type): Change name of variable `main' to `main_tree'.
128 Wed Sep 30 19:24:41 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
130 * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
131 ensure enough bits for calculation.
133 * ch-tree.h (check_text_length): Remove unused parameter.
135 * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
136 function sprintf into the appropriate type for printing.
138 * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
140 (print_mode): Likewise.
141 (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
143 * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
144 the format specifier.
146 * inout.c (check_text_length): Remove unused parameter `type'.
147 (build_chill_associate): Initialize variables `arg1', `arg2',
148 `arg3', `arg4' and `arg5'.
149 (build_chill_modify): Likewise.
150 (scanformcont): Change type of variable `curr' to `unsigned char'.
152 * lex.c (maybe_downcase): Cast the argument of `tolower' to
155 * satisfy.c (satisfy): Remove unused parameter in call to
158 * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
159 as a `long' in call to function `error'.
160 (decl_tasking_code_variable): Likewise.
162 Wed Sep 30 19:03:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
164 * grant.c (decode_decl_selective): Cast switch's enum argument to
166 (really_grant_this): Add default case in switch.
168 * typeck.c (chill_resulting_class): Add default cases in switch.
169 Also add `break' statements after each case.
171 Tue Sep 29 21:37:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
173 * ch-tree.h (build_compare_expr): Change first argument's type
174 from `enum chill_tree_code' to `enum tree_code'.
175 (build_compare_discrete_expr): Likewise.
177 * expr.c (build_compare_set_expr): Likewise.
178 (build_compare_string_expr): Likewise.
179 (build_compare_expr): Likewise.
180 (build_compare_discrete_expr): Likewise. Also add default case in
182 (compare_int_csts): Add default case in switch statement.
184 Sun Sep 20 11:02:55 1998 Robert Lipe <robertl@dgii.com>
186 * except.c: Include system.h.
188 * Makefile.in (except.o): Depend on system.h.
190 Sun Sep 20 09:25:13 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
192 * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
193 lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
194 typeck.o): Depend on system.h and toplev.h.
195 (except.o): Depend on toplev.h.
196 (grant.o): Depend on system.h, toplev.h and output.h.
198 * actions.c: Include system.h and toplev.h. Remove redundant
200 (build_cause_exception): Add default case in switch.
201 (update_else_range_for_range): Add parentheses around && within ||.
202 (chill_handle_multi_case_label_list): Remove unused variable
204 (print_missing_cases): Reconcile format specifiers vs arguments in
207 * ch-tree.h: Don't include stdio.h. Wrap prototypes using FILE*
208 with macro BUFSIZ. Add missing prototypes.
210 * convert.c: Include system.h and toplev.h. Remove redundant
212 (convert): Remove unused variable `errstr'.
214 * decl.c: Include system.h and toplev.h. Remove redundant
216 (builtin_scope): Add missing initializers.
217 (clear_scope): Likewise.
218 (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
219 (copy_lang_decl): Likewise for parameter `node'.
220 (c_decode_option): Likewise for parameter `argc'.
221 (push_extern_function): Likewise for parameter `granting'.
222 (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
223 (pushdecl): Remove unused variable `t'.
224 (lookup_name_current_level): Make static and hide.
225 (lookup_name_for_seizing): Make static.
226 (finish_decl): Remove unused variable `type'.
227 (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
228 (complete_array_type): Mark parameters `type', `initial_value' and
229 `do_default' with ATTRIBUTE_UNUSED.
230 (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
231 (start_enum): Likewise.
232 (shadow_record_fields): Remove unused variables `type' and `parent'.
234 * except.c: Include toplev.h. Remove redundant prototypes.
236 * expr.c: Include system.h and toplev.h. Don't define NULL.
237 Remove redundant prototypes.
238 (internal_build_compound_expr): Mark parameter `first_p' with
240 (build_allocate_getstack): Remove unused variable `init'.
241 (build_chill_pred_or_succ): Likewise for variable `limit'.
242 (varying_to_slice): Likewise for variable `doamin' [sic].
243 (finish_chill_binary_op): Likewise for variables `code0' and
244 `code1'. Remove unused label `finish'. Add explicit braces to
245 avoid ambiguous `else'.
246 (build_chill_addr_expr): Remove extra parameter in call to `error'.
247 (build_chill_unary_op): Remove unused variables `class' and `type0'.
248 (powersetlen): Remove unused variables `domain' and `temp'.
250 * grant.c: Include system.h, toplev.h and output.h. Don't handle
251 strchr/strrchr. Remove redundant prototypes.
252 (decode_constant_selective): Remove unused variables `op' and `wrk'.
253 (push_granted): Mark parameters `name' and `decl' with
256 * inout.c: Include system.h and toplev.h. Remove redundant
258 (textlocation_mode): Use &&, not &, when comparing two truth
260 (scanformcont): Remove unused label `do_the_action'.
262 * lang.c: Include system.h and toplev.h. Remove redundant
264 (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
265 (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
266 (lang_print_xnode): Likewise for parameters `file', `node' and
268 (lang_decode_option): Explicitly declare `explicit_ignore_case'.
269 (incomplete_type_error): Mark parameters `value' and `type' with
272 * lex.c: Include system.h and toplev.h. Remove redundant
273 prototypes. Don't handle strchr/strrchr. Use CAPITALIZED
274 versions of ctype macros from system.h. Cast ctype arguments to
275 unsigned char when necessary.
276 (last_token, RETURN_TOKEN): Hide definition.
277 (push_back): Remove unused function.
278 (readstring): Change variable `i' to unsigned.
279 (yywrap): Remove unused variable `node'.
281 * loop.c: Include system.h and toplev.h. Remove redundant
283 (chill_unsigned_type): Hide prototype and definition.
284 (begin_loop_scope): Remove unused variable `firstp'.
285 (nonvalue_begin_loop_scope): Likewise.
287 * parse.c: Include system.h and toplev.h. Remove redundant
289 (quasi_signal): Hide.
290 (PEEK_TOKEN): Change return type to `enum terminal'.
291 (parse_mode_definition_statement): Remove unused variable `names'.
292 (parse_formpar): Remove unused parameter `in_spec_module'. All
294 (parse_formparlist): Likewise.
295 (parse_processpar): Remove unused variable `parms'.
296 (parse_definition): Add explicit braces to avoid ambiguous `else'.
297 (parse_multi_dimension_case_action): Initialize variable
298 `begin_test_label'. Remove unused variable `new_test'.
299 (parse_case_action): Remove unused variable `caseaction_flag'.
300 (parse_asm_clobbers): Remove unused variable `expr'.
301 (parse_delay_case_action): Initialize variable `label_cnt'.
302 (parse_action): Make function static.
303 (parse_tuple_element): Remove unused variable `list'.
304 (parse_primval): Add default case in switch.
305 (parse_variant_alternative): Remove unused variables `x' and
308 * satisfy.c: Include system.h and toplev.h. Remove redundant
311 * tasking.c Include system.h and toplev.h. Remove redundant
314 (get_struct_variable_name): Likewise.
315 (validate_process_parameters): Mark parameter `parms' with
317 (build_start_process): Initialize variable `tuple'.
318 (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
320 * timing.c: Include system.h and toplev.h.
321 (build_after_timeout_start): Remove unused variable `goto_where'.
323 * tree.c: Include system.h and toplev.h. Remove redundant
326 * typeck.c: Include system.h and toplev.h. Remove redundant
328 (extract_constant_from_buffer): Make function static. Add
329 explicit braces to avoid ambiguous `else'.
330 (expand_constant_to_buffer): Likewise.
331 (build_chill_slice): remove unused variable `is_static'.
332 (chill_compatible): Add explicit braces to avoid ambiguous `else'.
333 (apply_chill_array_layout): Remove unused variable `offset'.
334 (smash_dummy_type): Remove unused variable `save_lang_specific'.
335 (initializer_constant_valid_p): Add default case in switch.
337 Mon Sep 14 16:46:36 1998 Dave Brolley <brolley@cygnus.com>
339 * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
340 domain type of the array.
342 * expr.c (build_chill_function_call): Remove redundant call to
343 chill_convert_to_assignment
345 Thu Sep 10 17:52:36 1998 Dave Brolley <brolley@cygnus.com>
347 * actions.c (chill_convert_for_assignment): Make a copy of the result
348 node before modifying it.
350 Sat Sep 5 16:55:37 1998 John Carr <jfc@mit.edu>
352 * Make-lang.in: Comment ^L characters. Sun make doesn't like them.
354 Sat Sep 5 23:49:50 1998 Jeffrey A Law (law@cygnus.com)
356 * Makefile.in (INCLUDES): Update after recent reorganization at the
357 toplevel gcc directory.
359 Sat Sep 5 22:25:51 1998 Richard Henderson <rth@cygnus.com>
361 * Makefile.in: Update dependancies for top-level gcc files that moved.
363 Sat Sep 5 02:21:08 1998 Jeffrey A Law (law@cygnus.com)
365 * Makefile.in: Tweak to avoid building runtime. It's built
368 Thu Sep 3 15:32:03 1998 Dave Brolley <brolley@cygnus.com>
370 * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
372 Wed Sep 02 09:25:29 1998 Nick Clifton <nickc@cygnus.com>
374 * lex.c (check_newline): Change how HANDLE_PRAGMA is called.
375 Generate warning messages if unknown pragmas are encountered.
376 (pragma_getc): New function: retrieves characters from the
377 input stream. Defined when HANDLE_PRAGMA is defined.
378 (pragma_ungetc): New function: replaces characters back into the
379 input stream. Defined when HANDLE_PRAGMA is defined.
381 Mon Aug 31 15:35:16 1998 Dave Brolley <brolley@cygnus.com>
383 * decl.c (layout_chill_variants): Calculate nlables properly.
385 Mon Jul 27 17:21:01 1998 Dave Brolley <brolley@cygnus.com>
387 * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
390 Mon Jul 13 14:20:12 1998 Nick Clifton <nickc@cygnus.com>
392 * lang-options.h: Format changed to match changes in gcc/toplev.c
393 to implement a --help option.
395 Wed Jul 8 02:58:35 1998 Jeffrey A Law (law@cygnus.com)
397 * lang.c (lang_init_options): New function.
399 Wed Jun 10 12:08:09 1998 Dave Brolley <brolley@cygnus.com>
401 * lang-options.h: Remove -I.
402 * ch-tree.h (c_decode_option): New argc/argv interface.
403 * decl.c (c_decode_option): New argc/argv interface.
404 * lang.c (lang_decode_option): New argc/argv interface.
406 Wed May 27 10:33:41 1998 Dave Brolley <brolley@cygnus.com>
408 * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
409 chill_handle_multi_case_label_range were reversed.
411 * Make-lang.in (chill): Use the correct gcc in the driver script.
413 Thu May 21 14:40:44 1998 Dave Brolley <brolley@cygnus.com>
415 * convert.c (digest_array_tuple): Move conversion to
416 chill_convert_for_assignment.
418 * actions.c (chill_convert_for_assignment): Allow conversion of array
419 constructor to bitstring constructor for assignment to array of packed bits.
421 Thu May 14 13:57:51 1998 Dave Brolley <brolley@cygnus.com>
423 * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
425 Wed May 13 14:07:51 1998 Dave Brolley <brolley@cygnus.com>
427 * typeck.c (build_chill_slice): Adjust slice index to account for the
428 lower bound of the array.
430 * actions.c (chill_expand_assignment): Convert function arguments to the
432 (chill_expand_assignment): Ditto.
434 Mon May 11 16:20:57 1998 Dave Brolley <brolley@cygnus.com>
436 * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
437 of the array_type to the slice_type.
438 (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
441 * loop.c (build_loop_iterator): Disallow location enumeration for
444 * convert.c (digest_array_tuple): Allow conversion of an array tuple
445 to a bitstring for assignment to a packed array of bits.
447 Mon May 4 16:28:58 1998 Dave Brolley <brolley@cygnus.com>
449 * ch-tree.def (PACKED_ARRAY_REF): New tree code.
450 * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
451 (chill_location): Handle PACKED_ARRAY_REF.
452 (apply_chill_array_layout): Allow PACK for arrays of single bits.
453 * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
454 (invalid_operand): Check PACKED_ARRAY_REF operands.
455 * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
457 Thu Apr 23 15:33:20 1998 Dave Brolley <brolley@cygnus.com>
459 * typeck.c (apply_chill_field_layout): Only integral fields can be packed
462 Tue Apr 21 14:30:10 1998 Jeffrey A Law (law@cygnus.com)
464 * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
465 (init_decl_processing): Handle TI types.
466 * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
467 (type_for_size): Handle TI types.
468 (type_for_mode): Handle TI types.
470 Mon Apr 20 13:12:26 1998 Dave Brolley <brolley@cygnus.com>
472 * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
475 * actions.c (chill_convert_for_assignment): Check that the rhs is not
478 Tue Apr 14 13:17:44 1998 Dave Brolley <brolley@cygnus.com>
480 * lex.c (init_parse): Now returns char* containing the filename.
482 * typeck.c (get_type_precision): Declare.
483 (apply_chill_field_layout): Use the minimum number of bits necessary to
484 represent discrete types as the natural length of the field.
486 Thu Apr 9 12:46:55 1998 Dave Brolley <brolley@cygnus.com>
488 * lex.c (finput): Move definition here from toplev.c
489 (init_parse): New function replaces init_lex.
490 (init_parse): Add code to open source file.
491 (finish_parse): New function.
492 (close_input_file): File was being closed more than once.
494 * lang.c (finput): Declare.
495 * ch-tree.h (init_lex): Remove.
498 Wed Apr 8 14:47:33 1998 Dave Brolley <brolley@cygnus.com>
500 * actions.c (compute_else_range): Fix loop index error.
501 (chill_handle_multi_case_label_range): Move error checking to
502 chill_handle_multi_case_label.
503 (chill_handle_multi_case_else_label): Convert ELSE range values to
504 the type of the corrersponding CASE selector.
506 Wed Apr 8 13:02:50 1998 Jeffrey A Law (law@cygnus.com)
508 * actions.c (sizetype_tab): Do not declare.
509 * lang.c (lang_print_xnode): New function.
511 Mon Mar 23 14:43:06 1998 Dave Brolley <brolley@cygnus.com>
513 * grant.c (decode_layout): New function.
514 (grant_array_type): Call decode_layout to export layout information to
518 Fri Mar 20 16:06:41 1998 Dave Brolley <brolley@cygnus.com>
520 * parse.c (parse_tuple_element): Call had arguments in wrong order.
522 Thu Mar 19 13:42:33 1998 Dave Brolley <brolley@cygnus.com>
524 * typeck.c (apply_chill_array_layout): Use
525 TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
528 Wed Mar 18 16:25:48 1998 Dave Brolley <brolley@cygnus.com>
530 * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
533 * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
536 Tue Mar 17 14:16:08 1998 Dave Brolley <brolley@cygnus.com>
538 * parse.c (gen_label_rtx): Declare before use.
539 (emit_jump): Declare before use.
540 (emit_label): Declare before use.
541 (parse_case_label_list): Pass in CASE selector so we can mark it as having
542 an (ELSE) label if necessary.
543 (parse_case_label_specification): Pass in the CASE selector list so that
544 the CASE selectors can be passed to parse_case_label_list.
545 (parse_multi_dimension_case_action): Modify to generate branching code in
547 (parse_case_expression): Compute (ELSE) range before generating CASE expression.
548 (parse_variant_alternative): Remove error for (ELSE) specified.
550 * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
552 * decl.c (layout_chill_variants): Add code to check compatibility of ranges
553 and discrete mode names.
555 * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
557 * actions.h (build_multi_case_selector_expression): Make it extern.
558 (chill_handle_multi_dimension_case_label): Remove.
559 (compute_else_ranges): New function.
561 * actions.c (update_else_range_for_int_const): New function.
562 (update_else_range_for_range): New function.
563 (update_else_range_for_range_expr): New function.
564 (update_else_range_for_type): New function.
565 (compute_else_range): New function.
566 (compute_else_ranges): New function.
567 (chill_handle_multi_case_else_label): New function
568 (chill_handle_multi_case_label_range): Don't generate tests for conditions
569 which are always true or false.
570 (chill_handle_multi_case_label): Ditto.
571 (chill_handle_multi_case_label): Implement (ELSE) label support.
572 (chill_handle_multi_case_label): First argument is now the selector tree not
574 (chill_handle_multi_dimension_case_label): Removed.
575 (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
576 reversed on entry, so reverse it here.
578 Tue Mar 10 15:02:26 1998 Dave Brolley <brolley@cygnus.com>
580 * actions.c (chill_handle_multi_case_label_range): Add more error checking.
581 (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
582 (chill_handle_multi_case_label): Improve Error handling.
584 Mon Mar 9 12:39:00 1998 Dave Brolley <brolley@cygnus.com>
586 * actions.c (chill_handle_multi_case_label_range): Added.
587 (chill_handle_multi_case_label): Add support for discrete ranges and
590 * typeck.c (apply_chill_array_layout): Added more error checking.
591 (apply_chill_field_layout): Added more error checking.
593 Wed Mar 4 16:08:26 1998 Dave Brolley <brolley@cygnus.com>
595 * convert.c (convert): Call build_simple_array_type with new argument.
597 * ch-tree.h(build_simple_array_type): Add argument for array layout.
599 * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
600 (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
601 (apply_chill_array_layout): New function to implement array layout.
602 (layout_chill_array_type): Call apply_chill_array_layout and reset
603 TYPE_ATTRIBUTES to NULL_TREE.
604 (build_chill_array_type): Extend to handle one array layout per index mode.
605 (smash_dummy_type): Call build_simple_array_type with new argument.
607 * satisfy.c (satisfy): Call SATISFY on array layout tree.
609 Wed Feb 25 14:36:41 1998 Dave Brolley <brolley@cygnus.com>
611 * typeck.c (next_struct_offset): Added.
612 (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
613 or POS layout to a structure field.
614 (layout_chill_struct_type): Add call to apply_chill_field_layout.
616 * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
617 in the field layout tree.
619 * parse.c (pack_warn_printed): Remove.
620 (nopack_warn_printed): Remove.
621 (step_warn_printed): Remove.
622 (pos_warn_printed): Remove.
623 (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
625 * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
628 Thu Feb 19 17:33:06 1998 Dave Brolley <brolley@cygnus.com>
630 * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
631 (parse_opt_mode): Removed incorrect comment about association of array
632 layouts with nested array elements.
633 (parse_opt_mode): Allow for one layout per index mode specified.
635 Wed Feb 18 23:48:57 1998 Richard Henderson <rth@cygnus.com>
637 * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy.
639 Wed Feb 18 17:35:05 1998 Dave Brolley <brolley@cygnus.com>
641 * parse.c (parse_field): Get rid of warning for multiple case selectors.
643 * decl.c (layout_chill_variants): Fix loop indexing error.
645 Mon Feb 16 15:54:47 1998 Dave Brolley <brolley@cygnus.com>
647 * parse.c (parse_case_expression): Remove code which checked for
648 unimplemented (ELSE) label.
649 (parse_case_expression): Add code to handle multi dimensional case
652 * expr.c (check_case_selector_list): Fixed to return a list of the
653 selectors which were checked.
654 (chill_expand_case_expr): Remove "sorry" message for multi dimension
656 (chill_expand_case_expr): Reverse order of case alternatives.
657 (chill_expand_case_expr): Add "error" message for multiple case
660 * actions.h (build_chill_multi_dimension_case_expr): Added.
662 * actions.c (build_multi_case_selector_expression): Renamed from
663 build_multi_case_expression.
664 (chill_handle_multi_dimension_case_label): Call above function by its
666 (build_chill_case_expr): Don't reverse the list elements here. It may
668 (build_chill_multi_dimension_case_expr): New function implements multi
669 dimensional case expression.
671 Thu Feb 12 15:44:50 1998 Dave Brolley <brolley@cygnus.com>
673 * parse.c (parse_case_action): Implement multi-dimension CASE action.
674 (parse_multi_dimension_case_action): Added.
675 (parse_single_dimension_case_action): Added based on code moved from
678 * expr.c (check_case_selector_list): Added.
680 * ch-tree.h (check_case_selector_list): Added.
682 * actions.h (chill_handle_single_dimension_case_label): Added.
683 (chill_handle_multi_dimension_case_label): Added.
685 * actions.c (chill_handle_single_dimension_case_label): Added.
686 (chill_handle_multi_case_label): Added.
687 (chill_handle_multi_case_label_list): Added.
688 (build_multi_case_expression): Added.
689 (chill_handle_multi_dimension_case_label): Added
691 Fri Feb 6 16:43:41 1998 Dave Brolley <brolley@cygnus.com>
693 * actions.c (sizetype_tab): Fix declaration to match gcc changes.
695 Thu Feb 5 14:03:00 1998 Dave Brolley <brolley@cygnus.com>
697 * decl.c (chill_tree_code_type): Change this to be an array of char like
698 the tree_code_type in the rest of gcc.
700 * ch-tree.def (chill_tree_code_type): See decl.c.
702 Thu Jan 29 15:34:18 1998 Dave Brolley <brolley@cygnus.com>
704 * tasking.c (error_with_decl): Correct prototype.
705 (build_gen_ptype): Reverse arguments.
707 * lang.c (chill_real_input_filename): Add definition.
708 (chill_print_error_function): Correct second argument.
709 (lang_init): Set chill_real_input_filename.
711 * expr.c (NULL): Protect definition with #ifndef.
713 * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
714 (init_decl_processing): Change last argument to 'sizeof(char)'.
717 Tue Nov 25 10:44:19 1997 Nick Clifton <nickc@cygnus.com>
719 * Make-lang.in (mostlyclean): Use && to seperate commands, so that
720 if the directory change fails, the rule will not loop.
722 Mon Mar 3 12:08:19 1997 Fred Fish <fnf@cygnus.com>
724 * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
725 spaces and use single tab character on some lines.
728 Tue Nov 26 05:12:40 1996 Wilfried Moser <moser@rtl.cygnus.com>
730 * tasking.c (build_receive_buffer_case_label): Rework in a manner,
731 that the buffer location gets evaluated only once, in
732 build_receive_buffer_case_end.
734 * typeck.c (build_chill_bin_type): Rework.
735 (layout_chill_range_type): Process BIN mode.
736 (build_chill_array_type): Remove checking of layout. This is done
739 * parse.c (parse_on_exception_list): Don't allow ON name:.
740 (parse_opt_layout): Parse POS and STEP and return a tree instead
743 * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
745 * grant.c (print_integer_type): Take care of BIN.
747 * expr.c (build_chill_descr): Make descr static if requested
749 (build_chill_length): Process text mode name and text location as
750 described in Z.200/1992.
751 (build_compare_expr): Don't allow < <= > >= for composite modes.
753 * decl.c (grok_chill_fixedfields): Remove checking of
754 layout. This is done at the parser.
756 * convert.c (digest_structure_tuple): Take care of wrong (probably
757 array) tuple. Printing error may cause sigsegv.
759 * ch-tree.h: Change prototypes of grok_chill_fixedfields and
760 build_chill_array_type (layout is passed now as a tree instead of
763 Fri Nov 15 15:17:44 1996 Per Bothner <bothner@deneb.cygnus.com>
765 * convert.c (display_int_cst): Check that val is INTEGER_CST.
766 (digest_array_tuple): Some extra error checks (i.e. that indexes
767 are constant). If dynamic mode, result is not constant.
769 Mon Oct 28 12:48:06 1996 Jeffrey A Law (law@cygnus.com)
771 * typeck.c (signed_or_unsigned_type): If the given type already
772 as the correct signedness, then just return it.
774 * typeck.c ({un,}signed_type): If can't do anything, call
775 signed_or_unsigned_type.
777 Fri Sep 6 02:50:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
779 * typeck.c (build_chill_cast): In case of rangecheck, take care of
780 constant expression (when defining a SYN).
782 Thu Sep 5 04:30:32 1996 Wilfried Moser <moser@rtl.cygnus.com>
784 * parse.c (define__PROCNAME__): New function to define a SYNONYM
785 __PROCNAME__ (__procname__) which is a character string containing
786 the name of the current procedure. This is quit the same as
788 (parse_proc_body): Add call to define__PROCNAME__.
790 * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
791 modes on one side and procedures on the other side..
793 Wed Jul 24 01:13:51 1996 Wilfried Moser <moser@rtl.cygnus.com>
795 * typeck.c: Replace all local variables and arguments named `index'
796 with `idx', `index' gets replaced by `strchr' which makes debugging
798 (valid_array_index_p): New argument to indicate that we are processing
799 LENGTH (varying string) on the lefthand side of an assignment. The
800 index check is different in this case.
801 (build_chill_cast): In case of expression conversion do an OVERFLOW
802 check with the limits of the target mode.
804 * ch-tree.h: New prototype for valid_array_index_p.
806 * actions.c (expand_varying_length_assignment): Add new argument to
807 call to valid_array_index_p to indicate we are processing
808 LENGTH on the lefthand side of an assignment.
810 * loop.c: Rename loop_stack to loopstack to avoid clashes with
811 global variable ../stmt.c:loop_stack.
813 Tue Jun 18 23:04:06 1996 Per Bothner <bothner@deneb.cygnus.com>
815 * expr.c (resolve_component_ref): Set TREE_SIDE_EFFECTS properly.
817 Mon Jun 10 15:01:51 1996 Per Bothner <bothner@deneb.cygnus.com>
819 * typeck.c (build_chill_reference_type): Copy novelty for reference.
820 * satisfy.c (satisfy): If REFERENCE_TYPE, copy novelty.
822 Thu May 30 04:55:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
824 * typeck.c (valid_array_index_p): For varying character strings
825 we must check if the index is less then the actual length instead
828 Wed May 15 06:07:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
830 * ch-tree.h: Add prototype for test_range.
832 * inout.c (process_io_list): Fix duplicate function call if
833 writetext argument is a function returning a varying string.
835 Tue May 14 21:08:47 1996 Per Bothner <bothner@deneb.cygnus.com>
837 Re-do string comparisons. Old way could re-use temporary
838 (SAVE_EXPR created for an argumnet is variable) prematurely.
839 * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR): New codes.
840 * decl.c (init_decl_processing): Remove __eqstring, __gestring,
841 __gtstring, __lestring, __ltstring, __nestring declarations.
842 * expr.c (build_char_array_expr): Rename to build_compare_string_expr.
843 Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
844 (chill_expand_expr): Implement STRING_EQ_EXPR, STRING_LT_EXPR.
845 (build_compare_expr): Use new build_char_array_expr name.
847 Mon Apr 8 14:08:30 1996 Per Bothner <bothner@kalessin.cygnus.com>
849 Cleanup of April 5 fix:
850 * actions.c (test_range): New function.
851 (check_range): Simplify to use test_range.
852 * convert.c (digest_powerset_tuple): Move error message from here ...
853 (check_ps_range): ... to here. Also, simplify to use test_range.
855 Fri Apr 5 03:41:05 1996 Wilfried Moser <moser@rtl.cygnus.com>
857 * convert.c (check_ps_range): New function to perform range check
858 of powerset tuple elements. This is quite the same as check_range,
859 however, the actions on rangefail are different.
860 (digest_powerset_tuple): Call check_ps_range.
862 * loop.c (build_loop_iterator): Chaeck if location enumeration
863 is requested for BOOLS(n) and print an error message.
865 Wed Mar 6 17:46:48 1996 Per Bothner <bothner@kalessin.cygnus.com>
867 * parse.c (parse_primval): Emit error if !ignore (before: pass==2).
869 Implement parameterised array and string modes (using LANG_TYPE).
870 * parse.c (parse_opt_mode): Handle parameterized arrays and strings.
871 * grant.c (decode_mode): Support extended use of LANG_TYPE.
872 * satisfy.c (cycle_error_print): Ignore non-decls in chain.
873 (safe_satisfy_decl): No error if non-decl (pointer type) in cycle.
874 (satisfy): Return immediately if laid out non-pointer type.
875 (satisfy case LANG_TYPE): Handle paramertised mode.
876 (satisfy case POINTER_TYPE/REFERENCE_TYPE): Push type on chain;
877 return immediately if already in chain.
878 * typeck.c (smash_dummy_type): Handle parameterized modes and CHAR(N).
879 Change return type (can now return error_mark_node).
880 (build_readonly_type): Return return value from smash_dummy_type.
881 * ch-tree.h: Change smash_dummy_type return type.
883 Tue Mar 5 22:31:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
885 * typeck.c (build_chill_slice): Re-do index_type calculation.
886 * typeck.c (layout_chill_range_type): Use compare_int_csts rather
887 than tree_int_cst_lt to avoid signed/unsigned problems.
889 * typeck.c (copy_novelty): Use copy_node rather than build_type_node.
890 * typeck.c (smash_dummy_type): Use copy_novelty for NEWMODE of range.
892 * decl.c (init_decl_processing): More portable sizetype initialization.
894 * tree.c (build_string_type): Generalize to also create bitstrings.
895 Return error_mark_node if an argument is an ERROR_MARK.
896 (build_bitstring_type): Simplify - just call build_string_type.
898 Tue Mar 5 03:48:32 1996 Wilfried Moser <moser@blues.cygnus.com>
900 * actions.c (warn_unhandled): Add missing assignment.
902 * loop.c (build_loop_iterator): In case of IN, check if
903 expression has a mode, otherwise make an error.
905 Mon Mar 4 23:12:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
907 * convert.c (digest_powerset_tuple): Check tuple elements
908 for compatibility; if compatible, call convert.
910 Thu Feb 29 23:39:54 1996 Per Bothner <bothner@kalessin.cygnus.com>
912 Simplify NOVELTY representation.
913 * ch-tree.h (CH_NOVELTY): Re-implement as plain TYPE_CONTEXT.
914 (CH_NOVELTY_FLAG): Removed. (Just use CH_NOVELTY.)
915 * decl.c (push_modedef): Make copy even for SYNMODE.
916 but not for internal typedefs (indicated by make_newmode==-1).
917 * tasking.c: Call push_modedef with make_newmode==-1.
918 * typeck.c (chill_novelty): Remove.
919 (smash_dummy_type): Removed unused event/buffer stuff. Update.
920 * grant.c (decode_decl), inout.c (build_io_types),
921 expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
922 tasking.c (build_instance_type): Simplify using new CH_NOVELTY.
924 Solidify READ mode handling.
925 * decl.c (do_decl, push_syndecl, start_chill_function):
926 Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
927 * typeck.c (build_chill_slice): Set TREE_READONLY appropriately.
928 (build_chill_array_ref_1, build_chill_bitref): Likewise.
929 (build_chill_cast): Set TREE_READONLY depending on result type (only).
930 * convert (convert_from_reference, convert): Likewise.
931 * expr.c (resolve_component_ref): Set TREE_READONLY appropriately.
932 (build_chill_function_call): Error if OUT/INOUT arg is TREE_READONLY.
933 * actions.c (chill_expand_assignment): Also error if TREE_READONLY.
934 Use convert_from_reference.
936 Thu Feb 29 11:14:09 1996 Per Bothner <bothner@kalessin.cygnus.com>
938 * parse.c (parse_do_action): DO WITH expressions are evaluated in
939 outer scope. Also call save_if_needed.
940 * decl.c (shadow_record_fields); Fix and simplify.
942 Tue Feb 27 22:19:40 1996 Per Bothner <bothner@cygnus.com>
944 * convert.c (display_int_cst): Gereralize to wider range of ints.
946 Thu Feb 22 06:12:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
948 * convert.c (digest_array_tuple): Take care of type == error_mark_node.
950 * decl.c (do_decl): In case of chill_varying_type_p, check if
951 type of fixed part is error mark and do nothing in this case.
953 * lex.c (convert_bitstring): Don't complain when length of
954 bitstring is 0 (BOOLS(0) is a valid mode).
956 * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
957 (domain) is error mark.
959 * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
960 error_mark_node, just return.
962 Tue Feb 20 00:01:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
964 * parse.c (parse_variant_alternative): When checking for ELSE take
965 care of tagless variants.
967 Mon Feb 19 05:54:45 1996 Wilfried Moser <moser@rtl.cygnus.com>
969 * parse.c (parse_case_action): Check if ELSE was specified
970 in a case label list (this is only valid for array tuples).
971 (parse_case_expression): Deto.
972 (parse_variant_alternative): Deto.
974 Tue Feb 13 17:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
976 * typeck.c (chill_location): Cleanup. Neither SLICE_EXPR nor
977 BIT_FIELD_REF are referable, even if their base strings are.
979 Fri Feb 9 02:25:33 1996 Wilfried Moser <moser@rtl.cygnus.com>
981 * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
982 checking the expression.
984 * convert.c (convert): Set TREE_CONSTANT when taking the
985 address of a function.
987 * decl.c (start_chill_function): Check if the mode is really
988 a mode to avoid subsequent segfaults.
990 * typeck.c (string_assignment_condition): Add checking of
993 Thu Feb 8 01:37:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
995 * actions.c (build_cause_exception): Print warning of unhandled
996 exception only once for each exception.
998 Mon Feb 5 22:17:13 1996 Per Bothner <bothner@kalessin.cygnus.com>
1000 * tree.c (discrete_count), ch-tree.h: New function.
1001 * expr.c (build_concate_expr, build_chill_repetition_op,
1002 chill_expand_expr): Use discrete_count; make sure arguments
1003 to size_binop are sizetype.
1004 (powersetlen): Trvialize using discrete_count.
1006 * inout.c (process_io_list): Use new assign_temp function.
1007 * inout.c (build_enum_tables): Avoid taking address of array_ref,
1008 which sometimes gets optimized to a constant.
1010 * expr.c (finish_chill_unary_op): Call convert_to_class on argument.
1011 Remove some obsolete TREE_UNSIGNED stuff.
1012 * lex.c (convert_integer): Removed more TREE_UNSIGNED stuff.
1014 Thu Feb 1 15:11:20 1996 Doug Evans <dje@charmed.cygnus.com>
1016 * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1018 Wed Jan 31 17:13:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1020 * decl.c (char_array_type_node, wchar_array_type_node): Removed.
1021 (init_decl_processing): Remove array_domain_type; don't set
1022 char_array_type_node or wchar_array_type_node.
1023 * decl.c (init_decl_processing): Use fixup_unsigned_type to
1024 simplify code to create boolean_type_node and char_type_node.
1026 Mon Jan 29 14:20:10 1996 Doug Evans <dje@charmed.cygnus.com>
1028 * lex.c (check_newline): Pass character after `#pragma' to
1029 HANDLE_PRAGMA. Don't call get_directive_line if at end of line.
1031 Fri Jan 26 05:56:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1033 * expr.c (build_chill_function_call): Add check and error for
1034 actual argument is a TYPE_DECL.
1036 * parse.c (parse_set_mode): Print a warning if the set mode contains
1037 numbered and unnumbered set elements.
1039 Wed Jan 24 05:10:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1041 * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1043 * decl.c (layout_enum): Add check for negative values if
1044 enum is numbered and duplicate values in an enum.
1046 Mon Jan 15 06:21:52 1996 Wilfried Moser <moser@rtl.cygnus.com>
1048 * actions.c (chill_expand_assignment): Add check for lefthand side
1049 of an assignment is a location.
1051 * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1054 * expr.c (is_really_instance): New function to check if a datum
1055 is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1057 (build_chill_component_ref): call is_really_instance.
1059 Wed Jan 10 13:47:14 1996 Per Bothner <bothner@kalessin.cygnus.com>
1061 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): Removed; now in ../tree.h.
1063 Mon Jan 8 15:29:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1065 * expr.c (build_char_array_expr): Add save_if_needed's if varying.
1066 Also, remove unused len0 and len1.
1068 Mon Dec 11 17:36:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1070 * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1071 build_chill_getassociation, build_chill_getusage,
1072 build_chill_gettextrecord, build_chill_gettextaccess: Simplify
1073 - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1075 * parse.c (parse_action): Minor simplification.
1077 Thu Dec 7 00:02:47 1995 Wilfried Moser <moser@rtl.cygnus.com>
1079 * parse.c (parse_action): In case of CALL, do a check if there
1080 is really a function call.
1082 Tue Dec 5 05:06:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1084 * convert.c (display_int_cst): Fix printing of control sequence.
1086 Thu Nov 30 21:07:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
1088 * grant.c (decode_constant, decode_constant_selective): Make work
1089 for REAL_IS_NOT_DOUBLE case.
1091 * decl.c (CHILL_INT_IS_SHORT): New macro.
1092 (init_decl_processing): Use CHILL_INT_IS_SHORT.
1093 Change name of integer_type_node from _cint to long.
1095 Mon Nov 27 17:07:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
1097 * loop.c (top_loop_end_check): Check while condition *after*
1098 getting next powerset element.
1100 Mon Nov 27 05:29:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
1102 * parse.c (parse_receive_case_action): Fix typo in error message.
1104 * convert.c (display_int_cst): Format characters like strings in
1105 grant.c(decode_constant).
1107 * grant.c: Remove the old forbid stuff.
1109 * lex.c (readstring): Fix reading of '^^'.
1111 * parse.c (parse_procedure_mode): nreverse param_types.
1113 Thu Nov 23 05:39:57 1995 Wilfried Moser <moser@rtl.cygnus.com>
1115 * actions.c (chill_expand_assignment): Check for assigning to
1116 location with non-value mode.
1118 * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1119 Add new and change some prototypes.
1121 * decl.c (init_nonvalue_struct): New function to generate
1122 initialisation code for non-value structs.
1123 (init_nonvalue_array): New function to generate initialisation
1124 code for non-value array's.
1125 (do_decl): Call one of the above mentioned functions in case
1126 we have a mode with the non-value property.
1127 (start_chill_function): Print error message if a non-value mode
1128 gets returned without LOC and check for arguments of non-value
1129 modes only gets passed by LOC.
1131 * grant.c (print_proc_tail): Fix for procedure returning LOC.
1133 * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1134 association_type_node.
1135 (invalidate_access_recordmode): New function to set the
1136 record mode of an ACCESS to error_mark_node in case of
1137 record mode has the non-value property.
1138 (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1139 (build_access_mode, build_chill_gettextaccess): Deto.
1140 (check_exprlist): Correct processing of repetition factor.
1142 * lex.c (readstring): Correct processing of control
1143 sequences of the form '^([H | D | O | B]'xx)'.
1145 * loop.c: Cleanup iterator handling (done by Per).
1146 (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1147 functions for starting and ending a loop scope in case
1148 of initialising an array with non-value property.
1150 * parse.c (check_end_label): Remove '\n' from error message.
1151 (parse_loc_declaration): Print error in case of loc-identity
1152 declaration without initialisation or with keyword INIT.
1153 (parse_do_action): Clean up iterator handling (done by Per).
1155 * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1156 message in case of TYPE_DECL is a signal and the mode has the
1158 (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1159 the array type if the array element mode has the non-value
1161 (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1162 type if one of the fields have the non-value property. If the
1163 record is a buffer mode and the element mode of the buffer has
1164 the non-value-p., invalidate it (see
1165 tasking.c (invalidate_buffer_element_mode). Same for access modes.
1167 * tasking.c (build_signal_descriptor): If the signal type have
1168 the non-value property, do nothing.
1169 (build_receive_signal_case_label): Don't do an assignment if the
1170 signal type have the non-value property.
1171 (build_receive_buffer_case_label): Add check for buffer element
1173 (expand_send_buffer): Deto.
1174 (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1175 (invalidate_buffer_element_mode): New function to set type of
1176 buffer element mode to error_mark_node.
1177 (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1179 Wed Nov 15 13:26:20 1995 Jeffrey A Law (law@cygnus.com)
1181 * inout.c (intsize_of_charsexpr): Move declaration to top
1182 of file to avoid error from solaris2.5 cc.
1184 Thu Nov 9 02:50:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
1186 * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1187 mode, temporarily reset maximum_field_alignment to 0 before
1188 layouting it to be compatible with the runtime library.
1190 * inout.c (build_chill_gettextaccess): Deto.
1192 Mon Nov 6 04:12:06 1995 Wilfried Moser <moser@rtl.cygnus.com>
1194 * decl.c (do_decl): If type is READonly, add check if an
1195 ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1196 and print an error if this is true. Variables of this modes
1197 may not be declared READonly.
1198 Add check for mode is one of the above and an init value was
1199 given. This is also not allowed.
1200 Add initialisation of variables of the above modes during
1201 runtime. This influence the mechanism for detecting to
1202 build a constructor.
1203 (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1204 BUFFER, and EVENT mode must not be READonly.
1205 (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1206 TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1207 (declare_predefined_file): Move to inout.c.
1208 (init_decl_processing): Add definitions for new built-in's.
1209 (finish_outer_function): Build a constructor only if
1210 build_constructor is set.
1212 * except.c: On Linux native, setjmp is __setjmp.
1214 * expr.c (build_chill_component_ref): New function. It gets called
1215 from parse.c instead of build_component_ref. Functions checks if the
1216 user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1217 EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1218 (build_chill_floatcall): New function to resolve CHILL's floating
1219 point builtin calls (SIN, COS, TAN, etc.).
1220 (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1221 build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1222 GETSTACK, and TERMINATE built-in's.
1223 (build_generalized_call): Process new built-in's.
1225 * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1226 (decode_mode_selective): deto.
1228 * inout.c: Completely rewritten for implementing Chapter 7 of
1229 Z.200 (input and output).
1231 * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1234 * lex.h (enum rid): Add RID_ASSOCIATION.
1236 * parse.c: New flag build_constructor to indicate if a constructor
1237 should be generated at the end of compilation or not. See
1239 (parse_begin_end_block): Don't emit a line note.
1240 (parse_primval): Call build_chill_component_ref instead of
1241 build_component_ref.
1242 (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
1243 modes, USAGE modes, WHERE modes.
1245 * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
1246 ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
1247 (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
1249 * typeck.c (extract_constant_from_buffer): Fix thinko in case
1250 of ! BYTES_BIG_ENDIAN.
1251 (build_chill_cast): Implement representation conversion between
1253 (chill_similar): Add check of ACCESSes.
1254 (layout_chill_range_type): Check for real ranges and print
1257 * Make-lang.in: Change compiler version.
1258 chill also depends on Makefile.
1260 * chill.in: Process command line option -Xlinker like -Tdata.
1262 * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
1263 CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
1264 Add some prototypes.
1265 (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
1266 BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
1267 Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
1269 * gperf, hash.h: Remove definition of WHERE.
1271 Thu Oct 5 06:22:19 1995 Wilfried Moser <moser@rtl.cygnus.com>
1273 * grant.c (decode_constant_selective): Add some newlines
1274 to generated SPEC MODULE.
1276 Wed Oct 4 18:16:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1278 * decl.c (pop_chill_function_context): Remove some bogosity.
1280 Wed Oct 4 05:14:00 1995 Wilfried Moser <moser@rtl.cygnus.com>
1282 * grant.c (print_integer_selective): In case of a RANGE of
1283 a SET mode, try to find and grant the parent mode.
1284 (grant_seized_identifier): Dont write it out, if the identifier
1285 doesn't have a seize file (it may come from a SPEC MODULE
1286 defined in the compilation unit).
1288 Fri Sep 22 14:04:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1290 * actions.c (check_non_null): Wrap expr in SAVE_EXPR if needed.
1292 Wed Sep 20 13:51:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1294 * expr.c (force_addr_of): Optimize an INDIRECT_REF using
1295 convert_to_pointer rather than convert (which in case of
1296 a REFERENCE_TYPE would losingly call convert_from_reference).
1298 Wed Sep 20 04:03:58 1995 Wilfried Moser <moser@rtl.cygnus.com>
1300 * inout.c (build_chill_writetext): In case of character string:
1301 Add processing of a concatenation including varying character
1303 (intsize_of_charsexpr, get_max_size): New functions to determine
1304 the maximum size of varying character strings.
1306 * grant.c (decode_constant, decode_constant_selective): Add
1307 processing of COMPONENT_REF.
1309 * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
1310 for SYNONYM's with STRUCT mode.
1312 Mon Sep 18 17:25:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1314 * expr.c (force_addr_of): Optimize of value is INDIRECT_REF.
1315 * typeck.c (build_chill_slice): Call mark_addressable.
1317 Mon Sep 18 14:38:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1319 * expr.c (chill_expand_expr): Make a copy before calling __psslice
1320 if the array is neither referable nor BLKmode.
1321 (build_set_expr): Renamed to ...
1322 (build_compare_set_expr): Allow one opperand to be boolean.
1323 (build_compare_expr): Check both operands for SET_EXPR,
1324 before checking for discrete types (for -fold-strings).
1326 Fri Sep 15 11:35:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1328 * satisfy.c (safe_satisfy_decl): For a CONST_DECL, set TREE_TYPE
1329 to error_mark_node or error.
1331 Fri Sep 15 00:26:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1333 * grant.c (decode_constant_selective): Add processing of
1334 TREE_OPERAND (val, 0).
1336 Wed Sep 13 14:24:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1338 * ch-tree.h (CH_IS_INSTANCE_MODE): Redefine to use CH_SIMILAR.
1339 * convert.c (convert): Use CH_IS_INSTANCE_MODE.
1340 * inout.c (build_chill_writetext): Likewise.
1341 * tasking.c (build_receive_case_start, build_delay_case_start): Ditto.
1342 * parse.c (parse_start_action): Remove redundant tests.
1343 * tasking.c (build_start_process): Also test that optset is instance.
1344 (build_copy_number, build_proc_type, expand_send_signal): Use
1345 CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
1346 * actions.c, convert.c (instance_type_node): Remove redundant
1349 Wed Sep 13 14:19:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1351 * regression.awk2: Use \ line-continuation-markers
1352 to remove gratuitous gawk dependency.
1354 Mon Sep 11 17:26:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1356 * typeck.c (build_chill_modify_expr): Use force_addr_of.
1357 (mark_addressable): Handle INDIRECT_REF of ADDR_EXPR.
1359 * typeck.c (check_case_value), ch-tree.h: Moved to ...
1360 * actions.c (check_case_value): ... here. Also check for
1361 compatibility with selector (which is passed as extra argument).
1362 (chill_handle_case_label_range): Take selector argument,
1363 and use it to call check_case_value.
1364 (chill_handle_case_label): Take extra selector argument.
1365 * ch-tree.h (chill_handle_case_labe): Add prototype.
1366 * except.c expr.c, parse.c: Remove chill_handle_case_label prototypes.
1367 * actions.c, except.c, expr.c, parse.c: Pass extra selector
1368 argument to function calls as needed.
1370 Mon Aug 28 02:47:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1372 * grant.c (decode_constant_selective): Fix a bug in writing items
1375 Thu Aug 24 04:52:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1377 * parse.c (parse_case_expression): Print warning only in
1380 * actions.c (print_missing_cases): Correct printing of
1383 Wed Aug 23 15:26:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1385 * parse.c (parse_case_label_list): Take extra parameter to
1386 indicate if we're parsing a tuple or a case-label-spec.
1387 If former, don't allow '(' EXPR ')' ',' but backup instead.
1388 (parse_case_label_specification, parse_tuple_element):
1389 Pass appropriate new argument to parse_case_label_list.
1391 Wed Aug 23 06:08:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1393 * inout.c (build_chill_readtext): Add processing of BOOL's and
1396 * grant.c (decode_constant): Process nonprintable characters
1399 Fri Aug 11 15:26:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1401 * except.c (initialize_exceptions): Name setjmp "setjmp" and not
1402 "__builtin_setjmp" (which is not recognized by expand_call).
1404 Wed Aug 9 23:35:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
1406 * loop.c (end_loop_scope): Need to call kept_level_p,
1407 in argument to poplevel.
1409 Wed Aug 9 05:48:30 1995 Wilfried Moser <moser@rtl.cygnus.com>
1411 * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
1412 file might be empty). Install chill.install instead.
1414 Tue Aug 8 21:46:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1416 * loop.c (end_loop_scope): Do poplevel *after* expand_end_bindings.
1418 Tue Aug 8 00:51:09 1995 Wilfried Moser <moser@rtl.cygnus.com>
1420 * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
1421 of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
1423 * decl.c (start_chill_function): Likewise ...
1425 Mon Aug 7 18:35:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1427 * tasking.c (build_process_wrapper): Also set DECL_ASSEMBLER_NAME
1428 of PARM_DECL, since otherwise dbxout_symbol_name may barf.
1430 Mon Jul 31 14:32:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1432 * loop.c: Re-written implementation of powerset iteration.
1433 (declare_temps): iter_var is now integer index into bitstring,
1434 and powerset_temp just uses save_expr (normally needs no temp).
1435 (top_loop_end_check): Pass index to start searching (from iter_var)
1436 to library function, instead of dependning on latter to clear old bits.
1437 (increment_temps): UNless DOWN, increment iter_var.
1438 * decl.c (init_decl_processing): Declare new types for
1439 __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
1441 Mon Jul 31 12:47:28 1995 Per Bothner <bothner@cygnus.com>
1443 * convert.c (digest_array_tuple): Set TREE_STATIC if possible.
1445 Fri Jul 28 05:11:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
1447 * lex.c (readstring): Process integer literals starting with
1448 H', D', or B' within a control sequence.
1450 Thu Jul 27 23:08:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
1452 * parse.c (parse_do_action): Don't call push_action, but defer
1453 push_handler until begin_loop_scope.
1454 Call parse_opt_handler here, to move handler scope inside loop block.
1455 (parse_action): After do_action, nothing to do now.
1456 * loop.c (begin_loop_scope): Also call push_handler here.
1457 (declare_temps): Copy derived flag to user_var.
1458 (declare_temps): For POWERSET, always copy to temporary (even if
1459 constant), since the runtime clears bits from it.
1461 * expr.c (build_chill_sizeof): Use convert_to_class.
1462 * satisfy.c (safe_satisfy_decl): Cleanup handling of CONST_DECL -
1463 set proper value of CH_DECL_FLAG on both the decl and its value.
1465 * convert.c (digest_array_tuple); Slightly better errors.
1467 Wed Jul 26 22:13:39 1995 Per Bothner <bothner@cygnus.com>
1469 * expr.c (expand_packed_set): Also allocate the CONSTRUCTOR itself.
1470 (fold_set_expr): Simplify accordingly.
1471 (build_concat_expr): Constant fold bitstring CONCAT_EXPRs.
1473 Thu Jul 13 12:21:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1475 * typeck.c (build_chill_slice): Use build1 instead of build.
1476 * typeck.c (xtract_constant_from_buffer): Pass correct precision
1479 * typeck.c (expand_constant_to_buffer): Handle RANGE_EXPR index.
1480 * convert.c (digest_array_tuple): Generate RANGE_EXPR as index
1481 for tuples with ranges.
1483 Thu Jun 29 23:41:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1485 * typeck.c (build_chill_slice): Re-implement to use casts
1486 instead of build_chill_array_ref_1 (which doesn't always work).
1487 * convert.c (convert): Remove old bugs code.
1489 Tue Jun 27 05:00:04 1995 Wilfried Moser <moser@rtl.cygnus.com>
1491 * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
1492 expression so that a possible handler at the if action will
1494 (parse_proc_body): New argument to indicate if the function
1495 raises exceptions or not. In case the function will raise
1496 exception: start a handler, parse the function and generate
1497 code for reraising the exceptions (call chill_reraise_exceptions).
1499 * except.c (chill_reraise_exceptions): New function to generate
1500 code for reraising exceptions are specified at the function
1503 * ch-tree.h: Add prototype for chill_reraise_exceptions.
1505 * decl.c (build_chill_function_type): When the function (type)
1506 raise an exception, generate two new arguments (additional to the
1507 formal parameters), the filename and linenumber of the caller.
1508 (start_chill_function): likewise...
1510 * expr.c (build_chill_function_call): If the called function raises
1511 exceptions, give current filename and linnumber as aditional
1514 * actions.c (build_cause_exception): Handle case when function
1515 propagates the exception.
1517 * grant.c (print_proc_tail, print_proc_tail_selective): If the
1518 function(type) raises exceptions, don't process the last to
1519 parmeters of the formal argument list, they are compiler
1522 * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
1523 the exception lists are equal.
1525 Thu Jun 22 19:27:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1527 * loop.c (flag_local_loop_counter): Change default to 1.
1528 (end_loop_scope): Set 'keep' parameter in poplevel call.
1529 (declare)_temps): Don't set IDENTIFIER_LOCAL_VALUE, since that
1530 is handled (correctly!) by pushdecl.
1531 (begin_loop_scope): Call pushlevel here,
1532 * parse.c (parse_do_action): Move pushlevel so only called for WITH.
1533 * decl.c (struct scope): Remove n_incomplete field and its uses.
1534 (pushdecl): Re-write to use proclaim_decl. Remove old C-isms.
1535 (init_decl_processing): Re-name integer_type_node as "_cint" to
1536 remove complaint from pushdecl about chill_integer_type_node as "int".
1538 Tue Jun 20 18:15:58 1995 Doug Evans <dje@canuck.cygnus.com>
1540 * Make-lang.in (chill-runtime): Restore patch to disable building of
1541 runtime libraries for cross compilers. This patch should remain
1542 until a build of a freshly checked out devo "just works".
1544 Mon Jun 19 06:01:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
1546 * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
1548 * decl.c (init_decl_processing): Remove builtin function
1549 __cause_exception. New builtin functions __cause_ex1 and
1552 * except.c (is_handled): Return 0 when no handler found,
1553 1, if the handler is in local scope and 2, if function
1554 may propagate the exception.
1556 * actions.c (build_cause_exception): New argument to
1557 indicate if a warning should be printed when
1558 causing an unhandled exception. Call is_handled here.
1560 * ch-tree.h: Change prototype for build_cause_exception.
1561 New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
1562 identifier already has been written to grant file.
1564 * grant.c (write_spec_module): If not GRANT ALL specified,
1565 write only this identifiers to grant file which are
1566 neccessary to form a prober grant file. This will shorten
1567 grant files and speed up compilation.
1568 (decode_constant_selective, decode_mode_selective,
1569 get_type_selective, decode_decl_selective,
1570 grant_array_type_selective, get_tag_value_selective,
1571 print_enumeral_selective, print_integer_selective,
1572 print_struct_selective, print_proc_tail_selective,
1573 grant_one_decl_selective): New functions.
1575 * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
1576 directives to grant file.
1578 * parse.c (parse_on_exception_list): Fis constructing of
1581 Wed Jun 14 15:21:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1583 * typeck.c (valid_array_index_p): Check for syntax error, where
1584 index is a mode, rather than a value.
1586 * expr.c (build_chill_binary_op_1): Remove unused function.
1588 Sat Jun 10 11:36:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
1590 * except.c (is_handled): New function.
1591 Various fixes here and there to make it work.
1593 * parse.c (parse_param_name_list): Set DECL_ASSEMBLER_NAME.
1594 (Otherwise dbxout may crash.)
1596 * satisfy.c (satisfy case FUNCTION_TYPE): Check for non-type result.
1597 * decl.c (start_chill_function): If result type was error_mark,
1598 kludge type chill_os result_decl to avoid extra errors.
1599 * actions.c (chill_expand_result, chill_expand_return): If type of
1600 chill_result_decl is error_mark, do nothing.
1602 * typeck.c (chill_similar): Fix thinko in recent change.
1604 * config-lang.in (diff_exclude): Remove ch/lex.c - now it's a
1605 true source file, and is never longer generated with [f]lex.
1607 * regression.sh: Pass -s to make clean (to make it silent).
1608 Explicitly call gawk, instead of depending of '#!' to work.
1609 Add --objdir flags. Never send mail to bill.
1611 Thu Jun 8 15:08:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1613 * typeck.c (chill_similar): Add extra parameter. Use to to prevent
1615 (chill_equivalent, chill_l_equivalent): Also add new parameter.
1616 * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT): Modify to match.
1618 Tue Jun 6 17:14:49 1995 Per Bothner <bothner@kalessin.cygnus.com>
1620 * loop.c (declare_temps): If -flocal-loop-counter, make sure to
1621 pushdecl the new variable (created with decl_temp1).
1622 And fix the type of the local variable for powerset iteration.
1624 Tue Jun 6 15:07:19 1995 Per Bothner <bothner@cygnus.com>
1626 * typeck.c (mark_addressable): Handle ADDR_EXPR inside
1627 NOP_EXPR inside INDIRECT_EXPR. For TRUTH_ANDIF_EXPR,
1628 TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
1629 (which is used for range-checks and suchlike).
1631 Thu Jun 1 02:45:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1633 * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
1634 GE_EXPR (don't do invert_truthvalue, just switch operands).
1636 Wed May 31 14:00:38 1995 Doug Evans <dje@canuck.cygnus.com>
1638 * lang-options.h: New file.
1639 * lang-specs.h: New file.
1641 Wed May 24 01:45:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1643 * actions.c (assign_stack_temp): Remove unneeded declaration.
1645 Tue May 23 00:17:38 1995 Per Bothner <bothner@kalessin.cygnus.com>
1647 * parse.c (parse_on_exception_list): Return list of exception
1648 names in pass 1, not in pass 2. (Return non-NULL dummy if pass 2.)
1649 (parse_on_alternatives): Call chill_handle_on_labels even if ignoring.
1650 (parse_opt_handler): Likewise for chill_start_default_handler.
1651 * except.c (push_handler): Clear on_alt_list only if pass 1.
1652 (chill_handle_on_labels): Build on_alt_list in pass 1,
1653 retrieve it in pass 2.
1655 Fix so that decl_temp1 does not expand_decl_init, which calls
1656 free_temp_slots, which loses in the middle on an expression.
1657 * decl.c (finish_decl): Don't call expand_decl_init.
1658 (do-decl): Do initialization assignment even if stack variable.
1659 * parse.c (parse_loc_declaration): Call free_temp_slots.
1661 * decl.c (finish_decl), ch-tree.h: Remove last two always-NULL
1662 parameters. Cleanup never-used code.
1663 * decl.c, except.c: Update calls to finish_decl.
1665 * decl.c (case_else_node): Define new variable.
1666 (init_decl_processing): Initialize it.
1667 (make_chill_variants): If variant label is case_else_node (i.e. it
1668 is (ELSE):), treat that as an ELSE variant.
1669 * ch-tree.h (case_else_node): Declare case_else_node.
1670 * parse.c (parse_case_label): Use case_else_node.
1672 Mon May 22 10:18:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1674 * grant.c (print_proc_tail): Also call print_proc_exceptions.
1675 (decode_decl): Don't explicitly call print_proc_exceptions for
1677 (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
1679 * actions.c (chill_convert_for_assignment): Use save_if_needed,
1680 instead of save_expr, in case value is a reference.
1682 * typeck.c (build_chill_slice): Fix old thinko (missing call to
1683 build_pointer_type).
1685 * actions.c (size_int): Remove unused and conflicting prototype.
1687 Wed May 17 16:23:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
1689 * actions.c (chill_convert_for_assignment): Call save_expr if
1690 range_checking (twice).
1692 Tue May 16 11:33:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
1694 * typeck.c (layout_chill_range_type): Re-organize error checking.
1695 Add extra parameter to indicate if non-constant bounds are allowed.
1696 If bounds are bad, set them to the min_value of the parent.
1697 * ch-tree.h (layout_chill_range_type): Update declaration.
1698 * satisfy.c (satisfy): Update call of layout_chill_range_type.
1699 * typeck.c (build_chill_range_type): Likewise.
1700 * tree.c (build_string_type): Likewise.
1702 Tue May 16 00:37:51 1995 Wilfried Moser <moser@rtl.cygnus.com>
1704 * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
1706 Mon May 15 12:54:32 1995 Per Bothner <bothner@kalessin.cygnus.com>
1708 * satisfy.c (satisfy): Supress error message for REF <error_mark>.
1709 * decl.c (push_modedef): Check for TREE_CODE != ERROR_MARK, instead
1710 of against error_mark_node. (smash_dummy_type can copy error marks.)
1711 (finish_decl): Simplify C-derived check for incomplete type,
1712 and suppress if it is an ERROR_MARK.
1713 Don't call rest_of_decl_compilation if type is an ERROR_MARK.
1715 Sun May 14 22:52:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1717 * convert.c (convert): Handle array types with different modes.
1719 Thu May 11 15:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1721 * loop.c (build_loop_iterator): Handle the case of a non-local
1722 loop counter having reference type.
1724 Thu May 11 07:04:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
1726 * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
1727 build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
1728 to avoid erros when assigning to (comparing with) NEWMODEd INT's.
1730 Mon May 8 15:27:16 1995 Per Bothner <bothner@kalessin.cygnus.com>
1732 * expr.c (build_chill_card): Do constant folding, if possible.
1733 (build_max_min): Do constant folding for MIN/MAX of powersets.
1735 Mon May 8 06:57:21 1995 Wilfried Moser <moser@rtl.cygnus.com>
1737 * expr.c (build_chill_sizeof): Add corect processing of a
1738 SIGNAL definition without data.
1740 Sat May 6 16:27:10 1995 Doug Evans <dje@canuck.cygnus.com>
1742 * Make-lang.in (maintainer-clean): Renamed from realclean.
1744 Tue May 2 06:16:23 1995 Wilfried Moser <moser@rtl.cygnus.com>
1746 * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
1747 otherwise "handler stack" will get out of sync.
1749 Mon Apr 24 09:51:07 1995 Per Bothner <bothner@rtl.cygnus.com>
1751 Fixes to support module-level non-static temporary variables.
1752 * parse.c (parse_loc_declaration): If all_static_flag and not
1753 resursive, tell do_decls to make new decl static.
1754 * decl.c (do_decl): Don't use maybe_static function to force static.
1755 (do_decl): Don't let initialization count as "using" the variable.
1756 (maybe_static): Removed.
1757 (finish_decl): Call expand_decl and expand_decl_init if needed
1758 (as it will be for non-static temporaries).
1760 Fri Apr 21 21:02:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1762 * convert.c, expr,c typeck.c (expand_decl): Remove usused declaration.
1764 Fri Apr 21 02:27:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
1766 * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
1767 LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
1768 GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
1770 Thu Apr 20 15:29:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
1772 * parse.c (yytext, finput): Remove unused declarations.
1774 * parse.c (proc_action_level): New variable.
1775 (parse_proc_body): New function. Common code from
1776 parse_procedure_definition and parse_process_definition moved here.
1777 Save, set, and restore proc_action_level from action_nesting_level.
1778 (parse_action case RETURN): Pass proc_action_level to
1779 expand_goto_except_cleanup.
1781 Thu Apr 20 06:02:20 1995 Wilfried Moser <moser@rtl.cygnus.com>
1783 * grant.c (really_grant_this): Add processing of LABEL_DECL's
1786 Tue Apr 18 18:16:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1788 * lex.c ( convert_bitstring): Use BYTES_BIG_ENDIAN rather
1789 than BITS_BIG_ENDIAN to layout bits within bitstring.
1790 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
1793 Sun Apr 16 19:55:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
1795 * decl.c (finish_chill_function): If currently global_function_decl,
1796 don't set outer_function to global_function_decl.
1798 Wed Apr 12 22:45:06 1995 Per Bothner <bothner@kalessin.cygnus.com>
1800 * decl.c (start_chill_function): Normal functions are nested.
1801 (finish_chill_function): No longer takes a 'nested' parameter.
1802 Normal functions are nested.
1803 Never call permanent_allocation, since it does little good (all normal
1804 functions are nested), and trashes some things we need.
1805 (finish_outer_function): Update call to finish_chill_function.
1806 * grant.c (chill_finish_compile): Likewise.
1807 * tasking.c (build_process_wrapper): Likewise.
1808 * parse.c (end_function): Likewise.
1809 * ch-tree.h (finish_chill_function): Update declaration.
1811 * parse.c (parse_asm_clobbers): Re-enable.
1812 (expand_asm_operands): function.
1813 (parse_asm_action): Re-enable. Don't do anything in pass 1.
1815 * typeck.c (build_chill_slice): Do constant folding.
1816 Also, work around problem where expand_expr constant folds ARRAY_REF.
1817 (sort_constructor): Remove unused function.
1819 * expr.c (chill_expand_expr case CONCAT_EXPR): Make sure we
1820 emit_block_move if needed with correct size.
1822 * inout.c (build_chill_io_list_type): Simplify.
1824 * lex.c (check_newline): Uncomment some dwarf stuff,
1825 which needs get_directive_line, which we no longer have.
1827 Wed Apr 5 16:05:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1829 * Makefile.in (C_OBJS, xcc1chill): Removed. We no longer
1830 link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
1832 * expr.c (build_chill_component_ref): Renamed to build_component_ref.
1833 (chill_truthvalue_conversion): Renamed to truthvalue_conversion.
1834 * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
1835 typeck.c: Update accordingly.
1836 * typeck.c (valid_array_index_p): We only need to save_expr (index)
1837 if we're range-checking.
1838 * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
1839 mark_addressable, initializer_constant_valid_p, check_case_value,
1840 type_for_size, type_for_mode): New functions, copied from
1841 ../c-common.c and ../c-typeck.c.
1843 * lang.c (incomplete_type_error): New. (Was in c-common.o.)
1844 * decl.c (constant_expression_warning): New. (Was in c-common.o.)
1846 * lang.c (string_index_type_dummy): Remove definition from here.
1847 * tree.c (string_index_type_dummy): Define here instead.
1848 * lang.c (lang_init): Move init of string_index_type_dummy
1849 (which is too late) from here ...
1850 * decl.c (init_decl_processing): ... to here.
1852 * decl.c (signed_boolean_type_node): New variable.
1853 (init_decl_processing): Initialize it.
1855 * parse.c: Comment out ASM action support, for now.
1857 * loop.c (maybe_skip_loop): Make return void, not int.
1858 Use build_compare_discrete_expr.
1859 (increment_temps): Use chill_expand_assignment.
1861 Thu Mar 30 23:28:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
1863 * decl.c (do_decl): If default-initializing variable-length
1864 string to "" (or []), make it lifetime_bound.
1866 Thu Mar 30 02:51:59 1995 Wilfried Moser <moser@rtl.cygnus.com>
1868 * parse.h, hash.h, gperf: New compiler directives
1869 EMPTY_ON and EMPTY_OFF.
1871 * lex.c: New variables empty_checking and runtime_checking_flag.
1872 (ch_lex_init): Initialize empty_checking and range_checking
1873 when switching from pass 1 to 2.
1874 (read_directive): Add processing of EMPTY_OFF/ON.
1876 * expr.c (build_chill_indirect_ref): New argument do_empty_check
1877 to indicate if null pointer checking should be done or not.
1878 It's not always necessary to do a null pointer check.
1880 * decl.c (lookup_name): Add argument to call to
1881 build_chill_indirect_ref.
1882 (shadow_record_fields): ...
1883 * parse.c (parse_primval): ...
1884 * tasking.c (build_process_wrapper): ...
1885 (build_receive_buffer_case_label): ...
1887 * ch-tree.h: Change prototype of build_chill_indirect_ref.
1888 Add declaration of runtime_checking_flag and empty_checking.
1890 * actions.c (check_non_null): Do null pointer checking only
1891 when enabled (empty_checking != 0).
1893 Wed Mar 29 15:18:23 1995 Per Bothner <bothner@kalessin.cygnus.com>
1895 * actions.c (chill_expand_assignment): Add 'else' so we don't do
1896 regular assignment in addition to spacial assignment (e.g. for slices).
1898 * ch-tree.h (convert_to_discrete): Add declaration.
1899 * typeck.c (convert_to_discrete): New function.
1900 (valid_array_index_p): Use convert_to_discrete. Also simplify.
1901 (build_chill_slice): Say sorry if variable-length bitstring.
1902 (build_chill_slice_with_length): Re-do bounds check.
1903 * expr.c (check_case_selector): Re-write to use convert_to_discrete.
1904 (build_chill_num, build_chill_pred_or_succ): Use convert_to_discrete.
1906 * decl.c (do_decl): Don't do redundant chill_convert_for_assignment.
1908 Wed Mar 29 00:00:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
1910 * expr.c (build_chill_num): need_unsigned have to be set for
1911 characyer strings of length 1 too. Happens when compiling
1912 with -fold-strings and do NUM(a(i)).
1914 * parse.c (parse_loc_declaration): Print error message only
1916 (parse_mode): Likewise ...
1918 * tasking.c (build_tasking_message_type): Temporarily reset
1919 maximum_field_alignment to get proper aligned temp. variables
1920 gets passed to runtime system.
1922 Tue Mar 28 00:08:06 1995 Per Bothner <bothner@cygnus.com>
1924 * typeck.c (my_build_array-ref): Merged into build_chill_array_ref_1.
1925 But don't convert index to integer_type_node. And we don't need to
1926 check the we're given an array.
1927 * typeck.c (valid_array_index_p): If flag_old_strings, convert
1928 chars(1) to char and bools(1) to bool before index checking.
1930 Sun Mar 26 22:42:39 1995 Per Bothner <bothner@cygnus.com>
1932 * ch-tree.h (struct module): Added next module field.
1933 * decl.c (first_mdoule, next_module): New global variables.
1934 (switch_to_pass_2): Re-initialize next_module.
1935 (push_module): In pass 2, reuse the same module objects from pass 1.
1937 * decl.c (declare_predefined_file): Set DECL_IN_SYSTEM_HEADER.
1939 * typeck.c (valid_array_index_p): Do range check on original index,
1940 before we convert to domain type.
1942 Fri Mar 24 11:43:39 1995 Per Bothner <bothner@kalessin.cygnus.com>
1944 * parse.c (parse_fixed_field): New function.
1945 (parse_variant_field_list): New function replaces parse_simple_fields.
1946 (parse_variant_alternative, parse_field): Update to use new functions.
1947 (parse_field): Error message if neither CASE nor NAME.
1949 * actions.c (check_non_null): New function - checks for NULL pointers.
1950 * ch-tree.h (check_non_null): New declaration.
1951 * tasking.c (expand_send_signal): Call check_non_null.
1952 * expr.c (build_chill_indirect_ref, build_chill_function_call): Same.
1953 * lex.h (enum rid): Add RID_EMPTY.
1954 * lex.c (init_lex): Initialize ridpointers[RID_EMPTY].
1956 * lex.c (read_directive): Remove 2 calls of to_global_binding_level
1958 Wed Mar 22 16:36:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
1960 * tasking.c (tasking_list): Change to chain of TREE_VEcs, rather than
1961 chain of (nested) TREE_LIST nodes.
1962 (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
1963 TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE): New macros.
1964 (tasking_setup, tasking_registry, add_taskstuff_to_list): Use them.
1966 * ch-tree.h (C_TYPE_FIELDS_READONLY): Rename to TYPE_FIELDS_READONLY.
1967 (TYPE_READONLY_PROPERTY): New macro, to match Z.200 concept.
1968 * typeck.c (build_chill_modify_expr): Don't check for read-only-ness,
1969 since it is redundant for chill_expand_assignment and breaks
1970 reach-bound initialization in do_decl.
1971 (my_build_array_ref): Simplify by using TYPE_READONLY_PROPERTY.
1972 (layout_chill_array_type): Set TYPE_FIELDS_READONLY if appropriate.
1973 * actions.c (chill_expand_assignment): Check TYPE_READONLY_PROPERTY
1974 instead of TREE_READONLY of the target's type.
1975 * expr.c (build_chill_function_call): Likewise.
1976 * inout.c (build_chill_readtext): Likewise.
1977 * decl.c (do_decl): Likewise, to check if init is required.
1979 * typeck.c (build_chill_bitref): Removed unused RANGE_EXPR hack.
1981 Wed Mar 22 07:52:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
1983 * tasking.c (build_start_process): Get a unique identifier for
1984 the start arguments.
1986 Tue Mar 21 07:36:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
1988 * expr.c (fold_set_expr): At label build_result: Add setting unused
1989 bits to 0. This is the same as the runtime library does.
1991 * parse.c (expect): Function returns now int, 0, if the expected
1992 token was not got, 1 when it was found.
1993 (parse_synonym_definition): In case of syntax error (missing =),
1994 set expr to NULL_TREE and mode to error_mark to avoid subsequent
1997 * chill.texi: Add chapter about differences to Z.200/1988.
1999 Mon Mar 20 18:01:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2001 * lang.c (chill_print_error_function): New function, to report
2002 module name if not inside a function.
2003 (lang_init): Set print_error_function to chill_print_error_function.
2005 * tasking.c (max_queue_size, buffer_element_mode): Cleanup
2006 to remove unreachable code.
2008 * grant.c (chill_finish_compile): Avoid doing a lookup_name
2009 to find init function (which got broken by recent nesting re-org).
2011 * decl.c (poplevel): Push and pop function context around
2012 call to output_inline_function (as done for C and C++).
2014 Thu Mar 16 17:56:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2016 * parse.c (parse_pass_1_2): If unknown top-level token, skip pass 2.
2018 Wed Mar 8 13:54:33 1995 Doug Evans <dje@canuck.cygnus.com>
2020 * Make-lang.in (chill-runtime): Temporarily disable building of
2021 runtime libraries for cross compilers.
2023 Mon Mar 6 23:36:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2025 * parse.c, decl.c: Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2027 * configure: Merge in tolerance for new flags (e.g. --x-libraries).
2029 Sat Mar 4 15:47:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2031 * expr.c (build_chill_arrow_expr): Error if pass == 1.
2033 Thu Mar 2 19:28:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2035 * decl.c (do_decl): Setting seen_action must be done in pass 1.
2036 (save_decl): Don't set DECL_CONTEXT to global_function_decl.
2037 (start_chill_function): Simplify due to above change.
2039 * parse.c (parse_case_label): Hack to distinguish (ELSE) from (*).
2040 * grant.c (decode_constant): Emit ELSE in case label.
2042 * parse.c (serious_errors): New global variable.
2043 * parse.c (to_global_binding_level): Set serious_errors.
2044 (parse_pass_1_2): Exit after pass 1 if serious_errors > 0.
2045 * lex.c (readstring): Recover from unterminstaed control sequence.
2047 Tue Feb 28 17:08:08 1995 Per Bothner <bothner@kalessin.cygnus.com>
2049 Re-write of module-level actions. No longer generate a module
2050 function for module-level actions. Instead, put them inside
2051 a new global dummy function. Nest everything logically inside it.
2053 * lex.h, grant.c (chill_module_name): Removed declaration.
2054 * grant.c (write_spec_module): Instead use current_module->name.
2055 * grant.c (chill_start_module_code, chill_finish_module_code):
2057 * grant.c (chill_finish_compile): Make rtl for global function.
2059 * actions,c (push_action): Don't call chill_start_module_code.
2060 * expr.c (build_chill_function_call, build_generalized_call):
2062 * parse.c (INIT_ACTION): Likewise.
2064 * parse.c (seen_action): New variable.
2065 * parse.c (end_function): Always call pop_chill_function_context.
2066 (parse_procedure_definition): Always call push_chill_function_context.
2067 (parse_modulion): Parse optional handler.
2068 (parse_modulion, parse_spec_module): Do find_granted_decls.
2069 (parse_action): Set seen_action if global and a real action.
2070 ([arse_program): Call start_outer_function and finish_outer_function.
2072 * ch-tree.h: Appropriate updates.
2074 * tasking.c (generate_tasking_code_variable): Make it lifetime-bound.
2075 (build_process_header): Always push_chill_function_context;
2076 we are now always nested.
2077 (build_process_wrapper): Always pop_chill_function_context.
2079 * tasking.c (build_start_process): Only expand_start_bindings and
2080 expand_end_bindings if pass 2.
2082 * decl.c (global_function_decl): New variable.
2083 (do_decl): Implement reach-bound initialization of static variables.
2084 (start_chill_function): Set DECL_CONTEXT to NULL if
2085 it would be global_function_decl (so as to not confuse gcc backend).
2086 (start_chill_function, finish_chill_function): If compiling
2087 global_function_decl in pass 2 and !seen_action, suppress it.
2088 (set_module_name): New function.
2089 (global_bindings_p): Re-defined to check against global_function_decl.
2090 (start_outer_function, finish_outer_function): New functions.
2092 Tue Feb 28 16:00:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
2094 * typeck.c (build_chill_modify_expr): Inline logic from
2095 chill_expand_array_assignment,
2096 * actions.c (chill_expand_array_assignment): Removed.
2097 (chill_expand_assignment): Remove call to removed function.
2099 * lex.c (reinit_parse_for_function): Removed empty unused function.
2100 * decl.c (start_chill_function): Don't call removed function.
2102 Tue Feb 28 00:29:51 1995 Per Bothner <bothner@cygnus.com>
2104 * configure: Merge in code for calculating host, build, and
2105 target and canon_{host,build,target} from ../configure.
2106 Fix calculation of mainsrcdir. Host canon_* variables
2107 to merge in build-make (as in ../configure).
2109 Sun Feb 26 18:59:02 1995 Per Bothner <bothner@kalessin.cygnus.com>
2111 * typeck.c (expand_constant_to_buffer): Use new function
2112 get_set_constructor_bytes.
2114 Tue Feb 21 01:41:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
2116 * inout.c (build_chill_writetext): Add processing of
2117 conditional expressions in argument list.
2119 * parse.c (parse_opt_name_string): Print error message only
2122 * chill.texi: Add chapter about compiler directives.
2124 Tue Feb 14 16:45:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2126 * decl.c (start_chill_function): Set FUNCTION_NEEDS_STATIC_CHAIN
2129 * decl.c (decl_temp1): Make lifetime_bound iff static.
2131 Fri Feb 3 04:30:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
2133 * grant.c (really_grant_this, search_in_list): New static
2134 functions to determine if a decl should be written to
2136 (write_spec_module): Add call to really_grant_this.
2138 Fri Jan 27 00:06:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2140 * actions.c (check_expression): Apply Per's patch.
2141 (chill_expand_result): New argument to indicate if we come
2142 from a RETURN or RESULT action. Change various error messages.
2144 * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2145 New argument for chill_expand_result.
2147 * chill.in: In case of -fgrant-only, clear library, libpath and
2148 startfile to avoid warnings from gcc.
2150 * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2152 * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2154 * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2155 and subsequent SEIZEs to grant file, if the seize file is
2158 * lex.c (read_directive): Process new compiler directive
2159 USE_SEIZE_FILE_RESTRICTED.
2160 (handle_use_seizefile_directive): Same as above.
2161 (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2162 if this seize file is used restricted.
2164 * parse.c (parse_action, case RETURN): Change RETURN expr action
2165 to RESULT expr; RETURN. This enables range checking and
2166 exception delivery in case of rangefail.
2168 Tue Jan 17 07:38:27 1995 Wilfried Moser <moser@rtl.cygnus.com>
2170 * decl.c (init_decl_processing): Add definition of
2171 library function __inbitstring (see expr.c).
2173 * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2174 __inpowerset fir POWERSET's and function __inbitstring for
2175 BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2176 in case of BITSTRING's we have to do one.
2177 (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2178 statement with no effect).
2180 Fri Jan 13 13:35:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2182 * actions.c (check_expression): Simplify result.
2184 * ch-tree.h (SET_CH_NOVELTY_NONNIL): New macro.
2185 * expr.c, timing.c, typeck.c: Use SET_CH_NOVELTY_NONNIL.
2187 * typeck.c (valid_array_index_p), ch-tree.h: Change interface
2188 to return modified index expression. Call error if out-of-range.
2189 * actions.c, typeck.c: Modify
2190 for new valid_array_index_p interface.
2192 * actions.c (build_chill_slice): Copy novelty of index type.
2194 Fri Jan 13 13:04:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
2196 * convert.c (digest_array_tuple): Allow mode name in array
2197 tuple label. Print error message instead of aborting.
2199 * parse.c (parse_body): Error message only if pass 1.
2201 * decl.c (check_identifier), ch-tree.h: Remove. Unused.
2203 Wed Jan 11 14:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
2205 * parse.c (parse_modulion): Undo yesterday's change (to allow
2206 an ON-handler to follow) until we re-implement module.
2208 Tue Jan 10 17:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
2210 * loop.c (declare_temps): Remove bogus prohibition against
2211 iterating over BOOL arrays.
2213 * parse.c (parse_semi_colon): Make it a pedwarn (instead of an
2214 error) if a semi-colon is missing before an END.
2215 (parse_action): Likewise.
2216 * parse.c (parse_modulion): Allow an ON-handler to follow.
2218 * parse.c (parse_set_mode): Use parse_expression to get
2219 values for number set elements.
2221 * expr.c (build_compare_expr): Make sure result has
2222 CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2223 (finish_chill_binary_op): Likewise for IN_EXPR.
2225 Tue Jan 10 04:46:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
2227 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2228 checking the argument.
2229 (chill_expand_assignment): Take care of a newmoded dst_offset
2230 when calling __pscpy and a newmoded from_pos when calling
2233 * expr.c (chill_expand_expr): When calling __psslice take care
2234 of a newmoded min_value.
2236 * parse.c (parse_name_string): Print error message only in
2239 Tue Jan 3 19:56:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
2241 * typeck.c (build_chill_array_ref_1): Use varying_to_slice
2242 instead of building a VRAY_ARRAY_REF node.
2243 * ch-tree.def (VARY_ARRAY_REF): Removed.
2244 * actions.c (chill_expand_assignment): Will never call
2245 expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
2246 (expand_assignment_to_varying_array): Removed.
2247 * convert.c (convert): Remove unneeded VARY_ARRAY_REF support.
2248 * expr.c (chill_expand_expr): Likewise.
2250 Tue Jan 3 19:50:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
2252 * parse.c (parse_iteration): Set step_value to NULL if missing.
2253 * loop.c (ITER_TYPE): Remove DO_RANGE.
2254 (build_loop_iterator): Implement old DO_RANGE in terms of DO_STEP.
2255 (begin_loop_scope): Don't return on error.
2256 (build_loop_iterator): Calculate loop variable type using
2257 resulting classes (as in Z200), rather than precision.
2259 * loop.c (initialzie_iter_var, bottom_loop_end_check): For DO_STEP,
2260 make iter_var one less to avoid overflow.
2261 * loop.c (build_loop_iterator): If !flag_local_loop_counter,
2262 declare a new variable if needed, as allowed by Z200 (1984).
2264 * ch-tree.h (ch_class): Add typedef.
2266 * typeck.c (chill_resulting_class): New function.
2267 (chill_root_resulting_class): Remove.
2268 * ch-tree.h (CH_RESULTING_CLASS): New macro.
2269 (CH_ROOT_RESULTING_CLASS): Re-implement using CH_RESULTING_CLASS.
2271 Tue Jan 3 19:36:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
2273 * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
2274 Change interface to take IDENTIFIER tree node, rather char char*.
2275 (check_expression): Change (simplify) callers appropriately.
2276 * parse.c (parse_action), typeck.c (valid_array_index_p): Likewise.
2277 * lex.h (enum rid): Add RID_ASSERTFAIL.
2278 * lex.c (init_lex): Enter RID_ASSERTFAIL.
2279 * parse.c (parse_action case ASSERT): Fix thinko TRUTH_ANDIF_EXPR
2280 to TRUTH_ORIF_EXPR. Use RID_ASSERTFAIL.
2282 * typeck.c (discrete_type_p): Re-implement using INTEGRAL_TYPE_P.
2284 Tue Jan 3 19:20:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2286 Move checking for modeless tuples in invalid contexts from parser
2287 to semantic function check_have_mode (for better error recovery):
2288 * expr.c (check_have_mode), ch-tree.h: New function.
2289 * satisfy.c (safe_satisfy_decl): Use check_have_mode.
2290 * expr.c (build_compare_expr, finish_chill_binary_op,
2291 finish_chill_unary_op): Likewise.
2292 * parse.c (parse_primval): Don't complain about mode-less tuple here.
2294 Tue Jan 3 17:36:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
2296 * expr.c (varying_to_slice): Support varying arrays whose
2297 lower bound is non-zero.
2299 * parse.c (parse_body): Allow (with warning) definition to
2302 * expr.c (check_case_selector), ch-tree.h: New function.
2303 (chill_expand_case_expr): Use it.
2304 * parse.c (parse_case_action): Likewise.
2306 Fri Dec 23 00:47:54 1994 Wilfried Moser <moser@rtl.cygnus.com>
2308 * actions.c (chill_expand_return): Change error message.
2310 * ch-tree.h: Change prototypes of do_decl and do_decls.
2312 * convert.c (convert): Add missing initialisation of
2313 variable orig_e_constant.
2315 * decl.c: Change all calls to do_decl.
2316 (maybe_static): New function to process the ALL_STATIC_ON/OFF
2317 compiler directives.
2318 (do_decls): New argument.
2319 (do_decl): New argument and process reachbound and lifetime
2320 bound initialisation.
2322 * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
2325 * grant.c: Change all calls to do_decl.
2327 * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
2330 * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
2333 * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
2335 * tasking.c: Change all calls to do_decl.
2337 Mon Dec 19 23:13:58 1994 Wilfried Moser <moser@rtl.cygnus.com>
2339 * parse.c (parse_procedure_definition): Save chill_at_module_level
2340 flag, set ot to 0 and restore it at the end of function.
2341 A sequence BEGIN x: PROC () RETURN; END x; END; at module level
2342 have produced an error.
2344 * expr.c (build_chill_repetition_op): Fix typo in error message.
2346 Tue Dec 13 12:26:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2348 * actions.c (expand_assignment_to_varying_array): Fix thinko:
2349 build_chill_array_ref -> build_chill_array_ref_1.
2351 Sun Dec 11 23:04:27 1994 Per Bothner <bothner@rtl.cygnus.com>
2353 * actions.c (chill_expand_assignment): Simplify the lhs if it is
2354 a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
2356 Thu Dec 8 13:45:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2358 * loop.c, ch-tree.h (build_loop_iterator): Fix to return void.
2359 If start_exp is ERROR_MARK, return.
2360 * expr.c (build_generalized_call): More robust on syntax errors.
2362 Tue Dec 6 02:33:23 1994 Wilfried Moser <moser@rtl.cygnus.com>
2364 * inout.c (build_chill_readtext): In case of reading a SET mode
2365 pass ignore_case flag to runtime library.
2367 Tue Nov 29 14:41:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2369 * parse.c (parse_receive_case_action): Print error only if pass==1.
2370 * decl.c (push_scope_decls): Use error_with_file_and_line
2371 to get correct line number of SEIZE.
2373 Mon Nov 28 16:59:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
2375 * expr.c (resolve_component_ref): Call fold on result.
2377 * expr.c (resolve_component_ref): Use check_expression.
2378 * actions.c (chill_convert_for_assignment): Likewise.
2379 * actions.c (cond_exception), ch-tree.h: Removed.
2380 * actions.c (check_expression): First part of COMPOUND_EXPR
2381 should be boolean_type_node; void_type_node loses in SAVE_EXPRs.
2383 * actions.c (chill_convert_for_assignment):
2384 Check string_assignment_condition for varying strings too.
2386 * typeck.c (build_chill_cast): If the types have different sizes,
2387 don't allow nondiscrete->discrete conversion, and only allow
2388 discrete->nondiscrete if input expression is constant.
2390 * typeck.c (chill_similar): Don't use losing array_type_nelts.
2392 * ch-tree.h (ELSE_VARIANT_NAME): New.
2393 * convert.c, decl.c, grant.c: Use ELSE_VARIANT_NAME.
2394 * decl.c (handle_one_level): Recurse on ELSE_VARIANT_NAME too.
2396 Reduce dependencies on ../c-typeck.c:
2397 * expr.c: Fix c_expand_start_case -> expand_start_case.
2398 Fix c_expand_expr_stmt -> expand_expr_stmt.
2399 (build_chill_indirect_ref): Call convert instead of build_c_cast.
2400 * loop.c (bottom_loop_end_check): Don't use build_modify_statement.
2401 * expr.c, except.c, typeck.c: Don't call default_conversion.
2402 * typeck.c (string_assignment_condition): Fix build_component_ref ->
2403 build_chill_component_ref.
2404 * decl.c: Fix build_indirect_ref -> build_chill_indirect_ref (twice).
2405 * decl.c: Don't set unused constructor_no_implicit (from c-typeck.c).
2406 * decl.c: Don't call declare_function_name.
2408 * parse.c: Don't always keep a valid token in terminal_buffer[0].
2409 The extra look-ahead may have made the parser faster, but caused
2410 some problems synchronizing with the lexer. Specifically:
2411 (PEEK_TOKEN): Now calls an optimized variant of peek_token_(0).
2412 (next_token_): Don't call peek_token_. Renamed to forward_token_.
2413 (NEXT_TOKEN): Renamed to FORWARD_TOKEN.
2414 (parse_program): Don't call yylex yet.
2416 * parse.c (parse_action): Re-do case ASSERT.
2417 Fix c_expand_expr_stmt -> expand_expr_stmt.
2419 * lex.l: Re-written to not use [f]lex, and renamed to ...
2420 * lex.c: ... new lexer.
2421 * Makefile.in, Make-lang.in: Remove [f]lex crud.
2423 * lex.h (enum rid), lex.c (init_lex): Added RID_ELSE.
2425 Tue Nov 22 15:19:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2427 * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
2429 Fri Nov 18 14:27:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
2431 * parse.c (parse_structure_node): Simpler, and more robust.
2433 Wed Nov 16 14:40:52 1994 Ian Lance Taylor (ian@cygnus.com)
2435 * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
2436 not at compile time.
2437 * typeck.c (expand_constant_to_buffer): Likewise.
2438 extract_constant_from_buffer): Likewise.
2440 Tue Nov 15 14:41:53 1994 Per Bothner <bothner@kalessin.cygnus.com>
2442 * convert.c (convert): Call build_chill_range_type rather than
2443 build_index_2_type (which has obstack and canonicalization problems).
2444 * expr.c (build_chill_pred_or_succ): Convert expr to root class
2446 * loop.c (declare_temps): If location iterated over is not
2447 a location, make a temporary variable for it.
2449 Mon Nov 14 16:33:47 1994 Per Bothner <bothner@kalessin.cygnus.com>
2451 * typeck.c, ch-tree.h (chill_equivalent): Change to return
2452 a tree (a Boolean expression). Also, add some missing tests.
2453 * ch-tree.h (CH_EQUIVALENT): Modify accordingly.
2455 * expr.c (chill_expand_expr case CONCAT_EXPR): When the 2nd operand
2456 is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
2457 Also, replace MEM (which is not a mode) by Pmode.
2459 * ch-tree.h, typeck.c (chill_comptypes): Removed.
2460 * convert.c (convert): Remove calls to chill_comptypes.
2462 Fri Nov 11 13:06:29 1994 Wilfried Moser (moser@rtl.cygnus.com)
2464 * grant.c (write_grant_file): Call pfatal_with_name instead
2465 of abort when something goes wrong when opening or writing
2467 unlink grant file if something goes wrong during writing
2470 * Make-lang.in (CHILL_SRCS): Add timing.c
2472 * ch-tree.h: Add prototype for chill_tasking_type_node.
2473 * lex.l (equal_number): Use chill_tasking_type_node instead of
2474 integer_type_node for converting the result.
2475 Print error messages in pass 2, in pass 1 no error will be
2477 * tasking.c: New variable chill_tasking_type_node for all
2478 generated tasking related variables.
2479 Use chill_tasking_type_node instead of chill_unsigned_type_node.
2481 * expr.c (chill_expand_expr): Apply Per's change.
2483 * expr.c (build_chill_sizeof): In case of error just
2484 return error_makr_node.
2485 Set CH_DERIVED_FLAG at the result.
2487 * timing.c (build_after_timeout_start): Clear the the timeout
2488 level to know if we are in the action part of AFTER statement
2489 or in the TIMEOUT part.
2491 * typeck.c (build_chill_slice_with_length): Convert the class
2492 of the result to class of first value in expression.
2494 * inout.c (build_chill_writetext, build_chill_readtext): Use stack
2495 temporary variables for the iolist so that they can get reused in
2496 subsequent calls. Emit code immediately instead of building a
2499 Fri Nov 4 12:00:54 1994 Per Bothner <bothner@kalessin.cygnus.com>
2501 * expr.c (build_chill_function_call): Don't set TREE_TYPE
2502 of assignment to void_type_node - it confuses save_expr.
2503 * decl.c (init_decl_processing): Removed unused code.
2504 * parse.c: Changes to avoid warnings.
2506 * grant.c (chill_finish_module_code): Minor simplification.
2507 * lex.l (readstring): Set *len to 1 on error.
2509 Thu Nov 3 01:05:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2511 * grant.c (decode_decl): Add granting of BASED declarations.
2513 Wed Nov 2 12:14:31 1994 Per Bothner <bothner@kalessin.cygnus.com>
2515 * expr.c (build_chill_lower_or_upper): Take more care to
2516 ensure result has the right class.
2517 (build_chill_pred_or_succ): Be more careful to get the right
2518 resulting class, and check bounds using *root* mode.
2520 * typeck.c (build_chill_slice_with_range): Check that array
2521 really is an array or string.
2522 (build_chill_slice_with_length): Likewise.
2524 * typeck.c (extract_constant_from_buffer): Fix calculation of
2525 SET_TYPE size. (Cannot depend on 1-byte TYPE_PRECISION field.)
2527 Wed Nov 2 05:33:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2529 * Make-lang.in: Change version of compiler.
2531 * ch-tree.h: Add new prototypes.
2533 * decl.c (init_decl_processing): Remove timing related
2534 initialisations. Add call to timing_init.
2536 * parse.c (parse_action): Process AFTER action.
2538 * tasking.c (build_receive_case_start,
2539 build_receive_signal_case_label, build_receive_buffer_case_label,
2540 build_delay_case_start, build_delay_action, expand_send_buffer):
2541 Add processing of timesupervision.
2542 (tasking_init): Change definitions of runtime functions.
2544 * timing.c (timing_init): New function for initialisation of
2545 timing related stuff.
2546 (build_cycle_start, build_cycle_end): Changed due to
2547 implementation of timesupervision.
2548 (build_after_start, build_after_timeout_start, build_after_end):
2549 Implement the AFTER action.
2550 (build_timeout_preface, build_timesupervised_call): New functions
2551 to handle timesupervision in case of blocking system calls (i.e.
2552 SEND buffer action, RECEIVE CASE action etc.).
2554 Thu Oct 27 12:50:24 1994 Per Bothner <bothner@kalessin.cygnus.com>
2556 * expr.c (build_chill_repetition_op): Fix repeating all-zero
2557 bitstring with orig_len!=1. Also, call build_boring_bitstring
2558 if original string was all ones, using one range. Also:
2559 Cannot use one-bit TYPE_PRECISION to get bitstring length.
2561 Tue Oct 25 14:11:07 1994 Per Bothner <bothner@kalessin.cygnus.com>
2563 * convert.c (convert): When converting BOOL constant to
2564 bit-string, bit_one_node and bit_zero_node were switched.
2565 * actions.c (chill_expand_assignment): Use force_addr_of,
2566 not build_chill_addr_expr - latter yields bogus error.
2568 Fri Oct 21 14:26:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
2570 * expr.c (build_chill_indirect_ref): Check for POINTER_TYPE (only)
2571 after converting from REFERENCE_TYPE.
2572 * expr.c (build_compare_expr): Convert to common mode *after*
2573 we've checked compatibility.
2575 Fri Oct 21 02:29:15 1994 Wilfried Moser (moser@rtl.cygnus.com)
2577 * lex.l (check_newline): Use getc instead of getlc to read
2578 the filename in a # line name directive to avoid possibly
2579 downcaseing of a filename.
2581 Thu Oct 20 05:37:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2583 * expr.c (build_chill_indirect_ref): Add check for really
2584 dereferencing a pointer.
2586 * convert.c (convert): Take care of TREE_CONSTANT of a
2587 SYNONYM having mode ARRAY () VARYING something.
2589 Mon Oct 17 02:30:38 1994 Wilfried Moser (moser@rtl.cygnus.com)
2591 * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
2592 boolean_true_node and boolean_false_node. TRUE and FALSE have
2593 the BOOL derived class.
2595 * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
2596 of NUM. NUM delivers the INT derived class.
2598 * grant.c (write_spec_module): Add writing of
2599 <> USE_SEIZE_FILE "x.grt" <>
2601 to generated grant file.
2603 Thu Oct 13 14:45:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2605 * convert.c (convert_from_reference): Make non-static.
2606 * ch-tree.h (convert_from_reference): Add prototype.
2607 * parse.c (parse_name): If the decl is a REFERENCE_TYPE, just
2608 call convert_from_reference - and not a full-scale convert.
2610 * convert.c (convert): Only call digest_array_tuple if ARRAY_TYPE.
2611 * typeck.c (chill_expand_tuple): Print error if type is
2612 neither array, struct, or powerset.
2614 * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
2615 UNDEFINED_EXPR): Call preserve_temp_slots for temp targets.
2616 If target is not MEM, make temp (even if not REG) to simplify
2617 - and don't copy original target to temp target first. (Not needed.)
2619 * lang.c (maybe_objc_comptypes): Just return -1.
2621 Wed Oct 12 12:24:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2623 * tasking.c (tasking_setup): Fix breakage from previous check-in.
2625 Tue Oct 11 16:00:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2627 * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
2628 timing.c, typeck.c: Change build1 (ADDR_EXPR, ptr_type_node, XX)
2629 to force_addr_of (XX). Add call to mark_addressable where needed
2630 for other calls to build 1 (ADDR_EXPR, TYPE, XX).
2632 Thu Oct 6 06:36:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
2634 * inout.c (build_chill_writetext): Remove processing
2637 Tue Oct 4 14:08:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2639 * convert.c (convert): If flag_old_strings, support converting
2640 CHARS(1) and BOOLS(1) to INT.
2642 Fri Sep 30 01:44:51 1994 Wilfried Moser (moser@rtl.cygnus.com)
2644 * inout.c (build_chill_readtext): Add check for item is
2645 referable and not READonly. Add processing of BITSTRINGs.
2647 Mon Sep 26 16:19:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
2649 * expr.c (build_chill_descr): Add missing call to mark_addressable.
2650 * loop.c (toop_loop_end_check): Replace build1 (ADDR_EXPR ...)
2651 with call to force_addr_of (which calls mark_addressable).
2652 * expr.c (build_chill_descr, build_chill_inttime): Likewise.
2653 * inout.c (build_chill_writetext): Likewise.
2655 Mon Sep 26 05:19:21 1994 Wilfried Moser (moser@rtl.cygnus.com)
2657 * grant.c (print_struct): Move printing of VARYING from
2659 * grant.c (grant_array_type): ... to here.
2661 Mon Sep 26 00:09:08 1994 Per Bothner (bothner@kalessin.cygnus.com)
2663 * ch-tree.h (force_addr_of): New prototype.
2664 * expr.c (force_addr_of): Call mark_addressable. Make non-static.
2665 * inout.c (build_chill_writetext): Use force_addr_of.
2667 Sun Sep 25 23:41:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2669 * except.c (push_handler), actions.h: Removed unused parameter.
2670 * actions.c (push_action): Remove unused paramater.
2671 * parse.c, actions.c: Remove no-longer-used parameter to
2672 calls to push_handler and push_action.
2674 * decl.c (push_extern_process): Only build types in pass 1.
2675 * tasking.c (build_process_header): Only build types in pass 1.
2676 * tasking.c (build_start_process): Do pushdecl/popdecl etc
2677 even after an error (to maintain consistency between passes).
2679 * convert.c (convert_to_boolean): Allow any integral input type.
2681 Sat Sep 24 22:47:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
2683 * typeck.c (extract_constant_from_buffer): Add (somewhat kludgey)
2684 support for UNION_TYPE. (Patch from Wilfried.)
2685 Also, reverse RECORD_TYPE constructor list.
2687 Fri Sep 23 19:06:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
2689 * expr.c (build_concat_expr): Fix calculation of result_size.
2691 Wed Sep 21 00:54:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2693 Give up on trying to use the cleanup mechanism in stmt.c to
2694 make sure the exception handler get unlinked on goto/exit/return.
2695 Instead, do it ourselves. (Much simpler.)
2696 * except.c, ch-tree.h (action_nesting_level): New global.
2697 * ch-tree.h (DECL_ACTION_NESTING_LEVEL): New macro.
2698 * decl.c (define_label): Set DECL_ACTION_NESTING_LEVEL.
2699 * except.c (expand_goto_except_cleanup): New function.
2700 (cleanup_chain): New variable.
2701 (push_handler, pop_handler): Adjust action_nesting_level.
2702 (emit_setup_handler): Push cleanup.
2703 (chill_finish_on): Pop cleanup.
2704 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
2705 Call expand_goto_except_cleanup.
2706 * parse.c (parse_action): Before RETURN, call
2707 expand_goto_except_cleanup.
2709 Mon Sep 19 00:59:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
2711 * lex.l (equal_number): Make sure converted synonym
2712 is on permanent obstack.
2713 * typeck.c (extract_constant_from_buffer): Fix INTEGER_TYPE
2714 loop to traverse in big-endian order.
2716 Sat Sep 17 20:48:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2718 * typeck.c (build_chill_cast): Call mark_addressable.
2719 * expr.c (build_chill_function_call): Call mark_addressable.
2721 Thu Sep 15 23:47:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
2723 * typeck.c (expand_constant_to_buffer): Fix an endian-ness
2724 problem for INTEGER_CST.
2725 (extract_constant_from_buffer): Likewise.
2727 Thu Sep 15 22:59:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
2729 * decl.c (pushlevel): Do different things depending on
2731 * decl.c, parse.c, tasking.c: Change argument to to pushlevel to 1.
2732 * actions.c (push_action): Take new parameter.
2733 * except.c (push_handler): Likewise.
2734 * parse.c: Change calls to push_action and push_handler.
2735 * loop.c (begin_loop_scope): Always call expand_start_bindings.
2736 * loop.c (end_loop_scope): Always call expand_end_bindings.
2737 * except.c (emit_setup_handler): Add a cleanup to
2738 unlink from exception stack if we return/exit/goto from here.
2739 * loop.c (begin_loop_scope): Move pushlevel from here ...
2740 * parse.c (parse_do_action): ... to here.
2742 Clean up do-decl interface (for decl_temp1).
2743 * parse.c (parse_loc_declaration): If global_bindings_p (),
2745 * decl.c (do_decl): Don't test global_bindings_p ().
2747 * decl.c (keep_next_level_flag, keep_next_if_subblocks):
2749 (struct scope::keep, scope::keep_if_subblocks): Likewise.
2750 (keep_next_level): Likewise.
2751 (kept_level_p, pushlevel, poplevel): Simplify.
2753 * decl.c (init_decl_processing): Don't call init_iterators.
2754 * Makefile.in (C_OBJS): Don't get ../c-iterator.o - not needed.
2756 Thu Sep 15 05:54:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
2758 * lex.l (readstring): Add processing of control sequence
2759 in character string literals. The granting mechanism writes
2760 this to grant files.
2762 Tue Sep 13 06:19:42 1994 Wilfried Moser (moser@rtl.cygnus.com)
2764 * expr.c (compare_records): In case of -fpack do always
2765 a memcmp instead of comparing each field of the
2766 structure. If the structure is a variant structure,
2769 Mon Sep 12 13:15:09 1994 Per Bothner (bothner@cygnus.com)
2771 * grant.c (write_spec_module): Add cast, to avoid PCC warning.
2772 * grant.c (header_template): Don't use ANSI-specific string
2773 literal concatenation.
2775 Fri Sep 9 01:53:30 1994 Wilfried Moser (moser@rtl.cygnus.com)
2777 * tasking.c (get_process_wrapper_name): New function.
2778 (add_taskstuff_to_list): Add a new argument, which is
2779 the entrypoint of a process.
2780 (build_process_header): Change PROCESS arguments to be
2781 like arguments of a function. There will be a wrapper
2782 which is the real entry point for a PROCESS. This wrapper
2783 is automatically build after a PROCESS definition and gets
2784 as argument a pointer to a structure looking like the
2785 arguments of the PROCESS. This wrapper will call the
2786 PROCESS (see build_process_wrapper).
2787 (build_process_wrapper): New function (see above).
2788 (build_start_process): Change processing of arguments.
2789 (tasking_setup): Add processing of a different entry point
2790 in case of PROCESSes.
2792 * parse.c (parse_process_definition): Add call to
2793 build_process_wrapper.
2794 * parse.c (end_function): Remove the poplevel() call.
2795 build_process_header no longer makes the corresponding
2798 * grant.c (print_proc_tail): Remove special processing
2799 of PROCESSes, they look now like normal functions.
2801 * decl.c (init_decl_processing): Add declaration of memcmp
2804 * ch-tree.h: Add new prototype for build_process_wrapper,
2805 change prototypes for add_taskstuff_to_list and
2806 build_process_header.
2808 * grant.c (write_spec_module): Write GNUCHILL and gcc
2809 version into grant file.
2811 * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
2812 GNUCHILL_VERSION to ch/Makefile.
2813 * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
2815 * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
2816 will get generated every time a new Makefile will get
2818 * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
2821 * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
2822 to the compiler to avoid generation of an object file.
2824 Thu Sep 8 12:07:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
2826 * convert.c (display_int_cst), ch-tree.h: New function.
2827 * convert.c (digest_array_tuple): Use digest_int_cst to
2828 provide better error messages. Return error_mark_node on error.
2829 * grant.c (decode_const): Simplify by using digest_int_cst.
2830 * grant.c (format_character, find_assoc): Removed.
2832 * decl.c (do_decl): Add missing TREE_CHAIN.
2834 * decl.c (finish_incomplete_decl): Removed.
2835 (init_decl_processing): Don't set incomplete_decl_finalize_hook.
2836 (finish_decl): Remove old C-specific code to deduce size of
2837 array from initialization.
2838 (complete_array_type): Just make it abort.
2840 * except.c (finish_handler_array): Avoid calling C-specific kludge
2841 complete_array_type.
2843 * convert.c (digest_constructor): Rename, and re-write to:
2844 (digest_array_tuple, convert): No longer use the code in
2845 ../c-typeck.c; use a Chill-only implementation (sigh).
2847 * typeck.c (chill_expand_tuple): Remove unneeded call to
2848 complete_array_type.
2850 * expr.c (fold_set_expr), grant.c (decode_constant),
2851 typeck.c (expand_constant_to_buffer): Update name of called
2852 function unpack_set_constructor to get_set_constructor_bits.
2853 * expr.c (powersetlen ): Remove redundant call to convert.
2855 * ch-tree.h (unpack_set_constructor): Removed obsolete declaration.
2857 * inout.c (build_chill_writetext): Handle 64-bit integer literals
2858 by trying to convert them to a smaller type.
2860 * lex.l (convert_number): Always use long long type (possibly
2861 unsigned) to avoid problems with constant folding truncation.
2863 Mon Sep 5 08:08:22 1994 Wilfried Moser (moser@rtl.cygnus.com)
2865 * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
2866 Add new prototype (see tasking.c).
2868 * expr.c (build_generalized_call): Add processing of
2869 BUILT_IN_QUEUE_LENGTH.
2871 * tasking.c (build_queue_length): New function.
2873 * tasking.c (tasking_init): Add new external function definition.
2875 Thu Sep 1 15:38:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
2877 * lex.l (default_lex): New function. Progress towards
2878 getting rid of [f]lex.
2880 * lex.l (convert_number): Use mul_double and add_double.
2881 Set result type to a reasonable type in which the literal
2882 will fit. Give error message if literal is too big.
2884 * lex.l (equal_number): Switch (temporarily) to permanent obstack.
2886 * typeck.c (build_chill_slice_with_range): Check for empty
2887 slice *after* we have checked for upper/lower limit in range.
2889 * grant.c (decode_mode): Remove unused code. (BOOL and
2890 CHAR ranges are represented as INTEGER_TYPEs.)
2892 * tasking.c (build_process_header): Add missing call to
2893 expand_start_bindings.
2894 * parse.c (end_function): Add missing expand_end_bindings.
2896 Wed Aug 31 17:25:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
2898 * decl.c (init_decl_processing): Set set_alignment.
2900 Tue Aug 30 16:40:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
2902 * actions.c (print_missing_cases, check_missing_cases,
2903 BITARRAY_TEST, BITARRAY_SET): New functions and macros,
2904 to check for completeness of case actions and expressions.
2905 * decl.c (c_decode_option, init_decl_processing):
2906 Don't set warn_switch.
2907 * expr.c (chill_expand_case_expr): Call check_missing_cases
2908 instead of check_for_full_enumeration_handling.
2909 * parse.c (parse_case_actions): Call check_missing_cases.
2911 * expr.c (build_chill_binary_op): Remove some dead code.
2912 * expr.c (chill_truthvalue_conversion): Call build_chill_binary_op
2913 instead of build_binary_op.
2914 * ch-tree.h (binary_op_error, build_binary_op): Unused. Removed.
2916 * parse.c (end_function): Use kept_level_p in parameter to
2917 poplevel. This reverts a June 13 change.
2919 Fri Aug 26 11:50:19 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
2921 * configure: Ignore --without, as ../configure does.
2923 Wed Aug 24 01:17:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
2925 * lex.l: Change rule for decimal numbers to allow identifiers
2926 to start with an underscore (_).
2928 Fri Aug 19 16:38:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2930 * tasking.c (build_receive_signal_case_label): Remove backwards
2931 chill_convert_for_assignment (which converted whatever garbage
2932 was in the *target* to the type of the signal argument!).
2934 Fri Aug 19 07:10:43 1994 Wilfried Moser (moser@rtl.cygnus.com)
2936 * inout.c (build_chill_io_list_type, build_enum_tables),
2937 tasking.c (build_tasking_struct): Temporarily reset
2938 maximum_field_alignment to 0, so that the compiler-built
2939 data structures needed by the RTS can be independent of -fpack.
2941 Thu Aug 18 13:39:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
2943 * typeck.c (build_init_struct): Temporarily reset
2944 maximum_field_alignment to 0, so that the compiler-built
2945 data structures needed by the RTS can be independent of -fpack.
2947 Wed Aug 17 23:48:33 1994 Wilfried Moser (moser@rtl.cygnus.com)
2949 * parse.c (parse_primval, expect, parse_on_exception_list):
2950 Print error message only in pass 2.
2952 Wed Aug 17 13:47:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
2954 * decl.c (switch_to_pass_2): Revert June 13 change,
2955 (Don't exit after pass 1 if an error was found.)
2957 * ch-tree.def (SLICE_EXPR): New tree-code.
2958 * typeck.c (build_chill_slice): For building a slice of a
2959 bit-string, just generate a SLICE_EXPR.
2960 * decl.c (init_decl_processing): Declare __pscpy.
2961 * actions.c (chill_expand_assignment): Handle a SLICE_EXPR
2962 on the LHS of assignment, by calling __pscpy.
2963 * expr.c (chill_expand_expr): Handle SLICE_EXPR (as a RHS
2964 value) by using __psslice to copy slice to a temp.
2966 Wed Aug 17 05:52:44 1994 Wilfried Moser (moser@rtl.cygnus.com)
2968 * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
2969 * expr.c (build_chill_length): Enable LENGTH built-in to process
2970 Buffers and Events too (Z.200/1992).
2971 * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
2972 a linux system the previous version was not able to run.
2973 * tasking.c: Correct processing of infinite buffer- and event-length
2974 to avoid RANGEFAIL warning.
2976 Thu Aug 11 11:46:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
2978 * parse.c (parse_if_expression_body): Don't call the C-specific
2979 build_conditional_expr. Just do build_nt (COND_EXPR, ...).
2980 * convert.c (convert): Convert a COND_EXPR by converting
2983 * convert.c (convert): Don't call convert before
2984 convert_to_reference. It's apt to do weird and unneedful things.
2985 * convert.c (convert): If the expression is varying, just call
2986 varying_to_slice, which simplifies quite a bit.
2988 * ch-tree.h (varying_to_slice): Add prototype.
2989 * typeck.c (varying_to_slice): Remove prototype.
2991 * satisfy.c (satisfy): Move case PAREN_EXPR from type 'e'
2994 * except.c (emit_setup_handler): Temporarily reset the
2995 maximum_field_alignment to zero so the compiler's exception
2996 data structures can be compatible with the run-time system,
2997 even when we're compiling with -fpack.
2999 * expr.c (compare_records): Call saved_if_needed on operands.
3001 * expr.c (build_set_expr case NE_EXPR): Don't use __nepowerset
3002 which has been reimplemented to just call __eqpowerset and
3003 invert the result. Inline this new implementation by
3004 handling as EQ_EXPR, and inverting the result.
3005 * decl.c (init_decl_processing): Don't define unused __eqpowerset.
3007 * typeck.c (valid_array_index_p): The TRUTH_ANDIF_EXPR has
3008 type boolean_type_node, not void_type_node. (Fixing this
3009 avoids a crash in the back-end.)
3011 * grant.c (decode_constant): In a CALL_EXPR, if the argument
3012 list is not a TREE_LIST (as in string repetiation), don't
3015 Wed Aug 10 13:13:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3017 * decl.c (proclaim_decl): Use CH_DECL_ENUM to check that a
3018 CONST_DECL is from a SET definition. (This is safer than
3019 checking that the type is ENUMERAL_TYPE, because synonym
3020 definitions may have a NULL TREE_TYPE.)
3021 Also, if we have duplicate enums whose types are identical,
3023 * decl.c (proclaim_decl, pushdecllist, push_scope_decls): Add
3024 an extra 'quiet' parameter, which is true if we're called from
3025 bind_sub_modules. (In that case an error message about duplicated
3026 decls would be repeated later, so suppress it.)
3028 * parse.c (stmt_count): Removed, not used.
3029 (INIT_ACTION): Call emit_line_note only if !ignoring.
3030 (parse_begin_end_block): Do INIT_ACTION even if ignoring.
3032 Fri Aug 5 12:39:11 1994 Per Bothner (bothner@kalessin.cygnus.com)
3034 * parse.c (parse_untyped_expr): Add missing semi-colon.
3036 Thu Aug 4 17:40:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3038 * parse.c (parse_untyped_expr): Fix various problem for the
3039 case that we see a '(': Add missing 'case' keyword.
3040 Only recurse if '(' is followed by 'if', 'case' or '[',
3041 and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3043 * parse.c (parse_send_action): Remove extra nreverse.
3045 Thu Jul 28 04:00:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3047 * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3050 Tue Jul 26 22:48:15 1994 Michael Tiemann (tiemann@blues.cygnus.com)
3052 * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3053 Added a missing call to `require' as well.
3055 Tue Jul 19 10:30:12 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3057 * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3058 the extern declaration in the flex skeleton.
3060 Mon Jul 18 23:06:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3062 * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3063 Check the type of the instance expr using CH_COMPATIBLE,
3064 and not just == instance_type_node. (This allows
3065 the expression to have mode READ INSTANCE).
3066 * tasking.c (build_instance_type): Give instance_type_node
3067 a non-null novelty (i.e. different from a struct).
3068 * tasking.c (build_receive_case_start, build_delay_case_start):
3069 Check that for a location using CH_LOCATION_P.
3071 Mon Jul 18 13:22:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
3073 * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3074 to modify a tree code.
3076 Mon Jul 18 11:24:57 1994 Bill Cox (bill@rtl.cygnus.com)
3078 * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3081 Mon Jul 18 05:40:15 1994 Doug Evans (dje@canuck.cygnus.com)
3083 * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3085 Thu Jul 14 18:37:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3087 * parse.c (parse_send_action): Do tree_cons *before* checking
3090 Mon Jul 11 15:33:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3092 * convert.c (digest_structure_tuple): Don't use convert to
3093 coerce initial value, use chill_convert_for_assignment instead.
3094 (Thus we also get range_checking.)
3096 * expr.c (build_chill_card): Use force_addr_of instead of
3097 build_chill_addr_expr.
3099 * loop.c (build_temporary_variable): Stylistic tweak.
3100 * loop.c (maybe_make_for_temp): Initialize temp using
3101 explicitly, not using assignment. Avoids a problem if
3102 the expression is read-only.
3103 * typeck.c (smash_dummy_type): Always used the saved TYPE_NAME
3104 and CH_NOVELTY_FLAG.
3106 Wed Jul 6 20:12:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3108 * expr.c, ch-tree.h (finish_chill_unary_op): New function,
3109 based on code ripped out of build_chill_unary_op.
3110 (build_chill_unary_op): Call finish_chill_unary_op unless pass==1.
3111 * satisfy.c (satisfy): Call finish_chill_unary_op when needed.
3113 Mon Jun 27 11:29:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3115 * tree.c (save_if_needed), ch-tree.h: New function.
3116 * typeck.c (build_chill_slice_with_range,
3117 build_chill_slice_with_length): Call save_if_neeed on array arg.
3118 * expr.c (varying_to_slice): Re-write to use save_if_needed.
3120 * typeck.c (extract_constant_from_buffer): Handle BOOLEAN_TYPE.
3122 Mon Jun 27 01:11:10 1994 Wilfried Moser (moser@rtl.cygnus.com)
3124 * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3125 that it is always the same, regardless if compiled with -fpack
3128 Tue Jun 14 16:44:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3130 * lex.l (yywrap): Kludge to work around mis-synchronization
3131 between lexer (which read ahead) and parser: Don't emit
3132 (left-over) uze_seizefile directives at the end of file.
3134 * typeck.c (build_chill_array_ref): Allow the derived
3135 array indexing syntax for arrays of bit strings.
3136 Add a comment explaining why.
3138 * typeck.c, ch-tree.h (string_assignment_condition): Change
3139 the interface. Return a boolean expression (which can be
3140 used in a conditional at run-time); never expand anything.
3142 * actions.c (chill_convert_for_assignment): Check
3143 string_assignment_condition here, rather than in callers.
3144 * actions.c (chill_expand_assignment): Don't need to check
3145 string_assignment_condition here.
3146 * expr.c (build_chill_function_call): Likewise.
3147 * satisfy.c (safe_satisfy_decl): Update accordingly.
3148 * decl.c (do_decl): Simplify testing and conversion by
3149 deferring everything to chill_convert_for_assignment.
3151 * parse.c: Combine the two variables 'ignore_exprs' and
3152 'ignore_actions' into one variable called 'ignoring'.
3153 * ch-tree.h: Add 'extern int ignoring'.
3154 * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3155 Rename ignore_actions and ignore_exprs to ignoring.
3156 Remove unneeded extern declarations.
3157 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3158 build_chill_arrow_expr, build_generalized_call, build_delay_action,
3159 build_buffer_type, build_event_type): I changed my mind. It is
3160 cleaner to check for 'ignoring' in the parser, rather than here.
3161 * parse.c (parse_action, parse_primval, parse_opt_mode):
3162 Therefore we must check for ignoring here.
3163 * parse.c (parse_loc_declaration): Set ignoring in pass 2
3164 when parsing the mode.
3166 * tasking.c (generate_tasking_code_variable): Do arithmetic
3167 on signal_code etc using unsigned rather than signed shorts.
3169 * grant.c (static char* current_grant_modename): Removed.
3170 * grant.c (decode_decl case CONST_DECL): Remove error message.
3172 * Make-lang.in (CHILL_SRCS): Add $(srcdir)/ch/parse.c.
3173 * Makefile.in: Fix dependencies for parse.o.
3174 Remove some duplicate dependencies for $(TREE_H).
3176 Mon Jun 13 14:25:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3178 * typeck.c (build_chill_cast): Allow a value cast between
3179 non-discrete object of the same size, but with a pedwarn.
3180 * typeck.c (bit_string_assignment_condition,
3181 char_string_assignment_condition): Merge near-duplicate functions
3182 and place the code in string_assignment_condition.
3184 * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3186 * decl.c (start_chill_function, finish_chill_function): Make
3187 parameter level have same nesting level as body, as required by Z200.
3188 * decl.c (switch_to_pass_2): Always exit if an error has been found.
3189 * decl.c (pop_module): Copy DECL_SEIZEFILE to a new ALIAS_DECL
3190 generated from GRANT ALL.
3191 * decl.c (lookup_name_for_seizing): Don't seize from
3192 the nesting level of builtins (predefined objects).
3193 * decl.c (lookup_name_for_seizing): Make more robust on error.
3195 * decl.c (start_chill_function): MAKE DECL_NAME (chill_result_decl)
3196 be 'RESULT' (or 'result'). This makes it more accessible from gdb.
3197 Also, use do_decl to declare it, so that debugging symbols are
3198 generated. And, re-arrange so that actions that need to
3199 be done both passes (such as push_levels) use the same code.
3201 * parse.c (get_type_of): If ignore_exprs, don't lookup name.
3202 * parse.c (end_function): Fix poplevel params.
3203 * parse.c (expect): Don't read forwards on an error.
3204 * parse.c (parse_field): Don't define two tag_list locals!
3205 * parse.c (parse_pass_1_2): Better error message.
3207 * parse.c (parse_mode, parse_opt_mode): Have parse_mode call
3208 parse_opt_mode, rather than vice versa. If parse_opt_mode
3209 returns NULL_EXPR, then parse_mode gives an error.
3210 Change parse_opt_mode (and any functions it calls) to only
3211 return NULL_TREE if there is no mode (even on ignore_exprs).
3212 (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3213 Never return NULL_EXPR.
3214 * tasking.c (build_buffer_type, build_event_type): Return
3215 void_type_node instead of NULL_EXPR if ignore_exprs is true.
3217 * parse.c (parse_synonym_definition): Call parse_untyped_expr
3218 only if we have a mode.
3219 * parse.c (parse_send_action): Parse list of untyped_expr's,
3220 rather than a list of (typed) expressions.
3221 * parse.c (parse_primval): Emit error if '[' seen without
3222 preceding mode name. (If this is to be allowed, call
3223 parse_untyped_expr instead.)
3225 * parse.c (parse_array_index): Renamed to ...
3226 (parse_index_mode): ... to match Z200 terminology.
3227 Re-write to resolve some of the nastier ambiguities,
3228 and allow things like ' CHAR(10) : CHAR(20) '.
3230 * parse.c (parse_tuple_element): Change interface to return
3231 reversed list, so don't call nreverse.
3232 * parse.c (parse_tuple): No longer nreverse element list here.
3233 * parse.c (parse_opt_element_list): Do nreverse here instead.
3234 * parse.c (parse_case_label_list): Call nreverse at end.
3236 Fri Jun 10 15:36:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3238 * typeck.c (chill_similar): Remove bogus "else".
3240 Wed Jun 8 00:01:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
3242 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): New macro (and comment)
3243 to make it clearer that we are using TYPE_MAX_VALUE in a special way.
3244 * typeck.c (build_chill_slice): Use TYPE_ARRAY_MAX_SIZE.
3245 * expr.c (chill_expand_expr case CONCAT_EXPR): Likewise.
3246 * convert.c (convert): When converting a fixed string/array
3247 to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
3248 of (the type of) the padding.
3249 * convert.c (convert): If the concatenation is non-constant, use
3250 the low-level 'build' to set the type of the result (which is usually
3251 a fixed-size array) rather than depend on build_chill_binary_op
3252 to figure it out (it's unable to simplify the size to a constant).
3254 Mon Jun 6 18:16:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
3256 * lang.c (lang_decode_option): Let -fspecial_UC imply
3257 -fno-ignore-case without requiring it explicitly.
3258 * lang.c (lang_decode_option): Support (experimentally)
3259 the -fpack and -fno-pack flags.
3261 Thu Jun 2 20:49:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3263 * configure: Add support for --program-prefix and --program-suffix.
3265 Tue May 31 18:12:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3267 * convert.c (digest_constructor): Check that initial value
3268 is compatible with element mode before calling convert.
3269 * typeck.c (chill_compatible): A string mode is not compatible
3270 with an untyped constructor.
3271 * decl.c (do_decl): Clean up error messages. Use error_with_decl.
3273 * ch-tree.h: Fix inconsistencies: bool_true_node ->
3274 boolean_true_node, and bool_false_node -> boolean_false_node.
3275 * typeck.c (valid_array_index_): Minor simplification.
3277 Tue May 31 04:33:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3279 * inout.c (build_chill_writetext): Add correct processing
3280 of POWERSET RANGE (setmode).
3282 * lex.l (same_file): Add searching for file(s) in
3285 Fri May 27 14:22:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
3287 * Make-lang.c (CHILL.mostlyclean, CHILL.distdir): Don't list
3288 yacc/bison output files, since the grammer is no longer in yacc.
3289 * config-lang.in (diff_excludes): Likewise.
3291 Thu May 26 16:38:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3293 * gperf, hash.h, lex.l, parse.h: Rename PROCESS_TYPE token
3294 (in some files spelled PROCESS_TYPE_ to avoid clashes
3295 with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
3297 Thu May 26 02:18:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3299 * timing.c (build_cycle_start): Change call to __define_timeout.
3300 * decl.c (init_decl_processing): Change definitions of
3301 __define_timeout and __wait_timeout.
3303 Wed May 25 11:53:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
3305 Replace yacc-based parser with a recursive-decent parser.
3306 (This may seem backwards, but Chill [like C++] is not a
3307 language that is remotely LALR(1). Using a R-D parser
3308 allows us to use look-ahead and to back-up to resolve the
3309 difficult ambiguities.)
3311 * parse.c, parse.h: New files, containing new r-d parser.
3312 * Makefile.in: Update accordingly.
3313 * actions.c (chill_convert_for_assignment): Don't return
3314 NULL_EXPR if ignore_exprs is true. It simplifies the parser
3315 if we consistently reserve NULL_EXPR for a missing expression.
3316 * expr.c (build_chill_function_call): Likewise.
3318 * lex.l: Tweaks for new parser.
3319 * lex.l (prepare_paren_colon, paren_paren_colon_level,
3320 paren_level): Ugly hack no longer needed.
3322 * expr.c (build_chill_function_call): Cleanup.
3323 Call chill_convert_for_assignment to convert IN/INOUT
3324 paramaters on both input and output. For LOC parameters,
3325 give error if actual is a non-referable location.
3326 * actions.c (convert_for_assignment): Add new parameter (a
3327 "place" string used in error messages).
3328 * actions.c (adjust_parm_or_field): Removed.
3329 * actions.c (chill_expand_assignment): Take just a single LHS,
3330 and move support for multiple assignments to ...
3331 (expand_assignment_action): ... here. Some cleaning up.
3332 * timing.c (build_cycle_start): Adjust accordingly.
3333 * actions.c (expand_assignment_to_varying_array): Likewise.
3334 * tasking.c (many places): Ditto.
3335 * ch-tree.h: Fix declarations appropriately.
3337 * parse.c (parse_defining_occurrence_list): Return a single
3338 IDENTIFIER_NODE (instead of a singleton list) in the common
3339 case. Minor complication to save a minor amount of space.
3340 * decl.c (do_based_decls): Move guts of code into ...
3341 (do_based_decl): ... this new function.
3342 * decl.c (do_decls): Handle either IDENTIFIER_NODE or a TREE_LIST.
3343 * decl.c (push_syndecl): Replace by ...
3344 (push_syndecl): ... (which only supports a single name).
3345 (push_modedef): Only handle a single name.
3346 * tasking.c (build_process_header, build_signal_struct_type):
3349 * expr.c (build_generalized_call): Handle string repetition.
3350 * expr.c (build_chill_repetition_op): Change interface.
3351 * grant.c (decode_constant): Allow parameter list to be
3352 a non-TREE_LIST. (Used for string repetition.)
3354 Wed May 25 11:28:48 1994 Per Bothner (bothner@kalessin.cygnus.com)
3356 * lex.l (make_identifier): Replaced by ...
3357 (read_identifier, handle_name): ... new functions.
3358 * lex.l: Parse an identifiers using read_identifier using
3359 read_identifier and handle_name, rather than having [f]lex
3360 do it. (One reason is that lex uses a fixed-size buffer.)
3362 * lex.l (read_directive, skip_directive): New functions.
3363 Use them to parse compiler-directives, instead of rather
3364 ugly and useless use of lexer start conditions.
3366 Tue May 24 22:36:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
3368 * decl.c (unnamed_module_number): Renamed to ...
3369 (module_number): .. and make non-static.
3370 (push_module): Always increment module_number.
3371 * lex.l (yywrap): Print warning if no modules seen.
3373 * decl.c (pop_module): Don't set DECL_SEIZEFILE of granted
3374 decl to current_seizefile_name (which is unreliable).
3375 * grant.c (chill_grant): Set it here instead.
3377 * expr.c (fold_set_expr): Use int_size_in_bytes instead of
3378 TYPE_PRECISION (which is not defined for a SET_TYPE).
3380 Fri May 20 15:21:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
3382 Cleanup to remove need for variables in common storage.
3383 * decl.c: Remove unused use of current_obstack.
3384 * actions.c (maybe_chill_check_decl): Remove unused function.
3385 * actions.h, lang.c: Remove uses of doing_chill_thang.
3386 * ch-tree.h (void_list_node): Make extern (rather than common).
3387 * decl.c (void_list_node): Add definition.
3389 Thu May 19 06:54:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3391 * configure (build): Build canon_host and canon_target
3392 to pass it to all subsequently generated Makefiles (needed
3393 for testsuite/execute in case of cross build).
3395 Wed May 18 13:27:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3397 * grant.c (decode_mode): Remove. It checks the TYPE_NAME of
3398 the input type, which loses with the no-longer-new 2-pass
3399 implementation, since the input "type" could be an IDENTIFIER_NODE.
3400 * grant.c (raw_decode_mode): Rename to decode_mode.
3402 Tue May 17 13:19:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3404 * typeck.c (chill_location): Neither a STRING_CST nor a
3405 CONSTRUCTOR is a location.
3406 * typeck.c (chill_root_mode): Convert a function to a
3407 pointer-to-function.
3408 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3409 build_chill_arrow_expr): If ignore_exprs, return operand
3410 rather than NULL_EXPR. This makes it easier for the parser to
3411 distinguish missing expressions.
3412 * expr.c (build_max_min): Convert the lower bound of a
3413 set to a long before calling run-time routine.
3414 * expr.c (build_chill_pred_or_succ): Use discrete_type_p
3415 to check the argument type.
3416 * expr.c (build_chill_arrow_expr): If argument is not a location,
3417 do a predwarn if it is a STRING_CST or has function type.
3419 Tue May 17 06:05:13 1994 Wilfried Moser (moser@rtl.cygnus.com)
3421 * configure (build): Remove building of canon_host and canon_target.
3422 It doesn't work in any case.
3424 Mon May 16 02:10:35 1994 Wilfried Moser (moser@rtl.cygnus.com)
3426 * configure (build): Build canon_host and canon_target
3427 to pass it to all subsequently generated Makefiles (needed
3428 for testsuite/execute in case of cross build).
3429 * Make-lang.in (chill-runtime): Change chill to CHILL in the case
3430 statement to build chill-runtime automatically.
3432 Mon May 9 15:30:08 1994 Doug Evans (dje@canuck.cygnus.com)
3434 * Makefile.in (FLAGS_TO_PASS): Define.
3436 (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
3437 * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
3438 (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
3440 Sun May 8 13:05:00 1994 Per Bothner (bothner@cygnus.com)
3442 * Make-lang.in (cc1chill): Should not depend on libgcc.a.
3444 Thu May 5 18:58:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3446 * decl.c (copy_lang_decl): New (dummy) function.
3448 Mon May 2 14:33:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
3450 * parse.y (sendaction): Fix thinko (in sense of condition).
3451 * tasking.c (build_receive_case_label): Another thinko.
3453 * parse.y (optsigdest): Force ignore_exprs to 0 while parsing
3456 * decl.c (build_chill_function_type): Don't call layout_type
3457 (since that may prevent parameter or result types being
3458 properly satisfied).
3459 * satisfy.c (satisfy): Layout FUNCTION_TYPEs.
3460 * parse.y (procmode): Call build_chill_pointer_type, rather
3461 than build_pointer_type (which incorrectly sets TYPE_SIZE).
3463 * parse.y (get_type_of): Handle TYPE_DECL (again).
3464 * parse.y (optresultspec): Call build_chill_reference_type, rather
3465 than build_reference_type (which incorrectly sets TYPE_SIZE).
3466 * parse.y (range_or_mode): Rename to plain range, since it
3467 no longer matches modename.
3468 * actions.c (chill_handle_case_label_range): New function, with
3469 functionality moved out of chill_handle_case_label.
3470 * actions.c (chill_handle_case_label): Handle here the case that
3471 the label_value is a TYPE_DECL (modename). Also clean up some.
3472 * typeck.c (build_chill_slice_with_length): Convert max_index
3473 to the type of min_value. (Old code broke on varying strings.)
3475 Sun May 1 13:53:36 1994 Doug Evans (dje@canuck.cygnus.com)
3477 * Makefile.in (BC_OBJS): Delete all references
3478 (OBJS): Cat ../stamp-objlist to get language independent files.
3479 (../cc1chill): Delete dependency on $(OBJS).
3480 * Make-lang.in (cc1chill): Depend on stamp-objlist.
3482 Sat Apr 30 14:50:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
3484 * lex.h, lex.c: Remove lastiddecl.
3485 * lex.l (name_type_signal): Simplify. We no longer check for
3486 TYPENAME or SIGNALNAME (which was unreliable with two passes).
3487 Also rename to make_identifier.
3488 * parse.y: Cleaned up grammar to not need SIGNALNAME or TYPENAME.
3489 * Makefile.in (stamp-parse); One conflict fewer!
3490 * parse.y (rccase_label_flag): Moved to tasking.c.
3491 * parse.y (rccase_label): Move most of the logic to
3492 build_receive_case_label in tasking.c.
3493 * parse.y (sendaction): Re-write to not depend on SIGNALNAME.
3495 * parse.y (name): Do name lookup here (and not in location).
3496 * parse.y: Replace most uses of NAME by higher-level non-terminals:
3497 simple_name_string, name_string, defining_occurrence, or name.
3499 * tasking.c (build_receive_signal_case_label,
3500 build_receive_buffer_case_label): New functions, split out from
3501 build_receive_case_label.
3502 * tasking.c (build_receive_case_label): Change parameters
3503 and return type. Moved stuff here (from the parser).
3504 * tasking.c (struct rc_state_type): Removed had_errors.
3505 Return error_mark_node instead.
3506 * tasking.c (build_rccase_set_error), ch-tree.h: Removed.
3508 * expr.c (build_generalized_call): If func is a signal type,
3509 call build_signal_descriptor.
3511 * parse.y (arrayindex): Renamed to index_mode, to match Z.200.
3512 * parse.y (ioindexmode): Removed; use index_mode instead.
3513 * expr.c (build_generalized_call): If args is a RANGE_EXPR,
3514 we have either a slice or a range mode, depending on func.
3515 * parse.y (index_mode): If we got an 'expr', only allow a name,
3517 * parse.y (call): A slice with both end points can be a range
3518 mode, so defer handling to build_generalized_call (or index_mode).
3520 * typeck.c (build_chill_slice_with_length): Fix type-checking.
3521 * typeck.c (chill_novelty): Undo (part of) change of April 28:
3522 The novelty of a range mode is the novlety of the parent.
3523 * typeck.c (chill_root_mode): Don't return integer_type_node
3524 if argument has non-nil novelty.
3526 * decl.c (global_bindings_p): Return -1 as true, for the sake
3527 of variable_size (in ../stor-layout.c).
3529 Fri Apr 29 13:42:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
3531 * parse.y: Remove TYPENAME and modename. These are now plain
3532 NAMEs. Modify parsing actions appropriately.
3533 * expr.c (build_generalized_call): Handle the case that
3534 TREE_CODE (func) == TYPE_DECL (as in a cast).
3535 * lex.l (name_type_signal): Never return TYPENAME.
3536 * parse.y (get_type_of): If pass 1, just return the argument.
3538 * decl.c (do_decl): If an initializer has the wrong type,
3539 replace it by NULL_TREE, to avoid subsequent errors.
3541 Thu Apr 28 15:21:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3543 * Makefile.in: Add new file timing.c to rules.
3544 * timing.c: New file. Implements the timing actions AT,
3546 * decl.c (init_decl_processing): Add new builtin function
3548 * expr.c (build_chill_indirect_ref): Change error message and
3549 add check agains an IDENTIFIER_NODE.
3550 * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
3551 They are no longer needed.
3552 * grant.c (print_integer_type): Add processing of builtin types
3554 * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
3555 * parse.y (timingactions): split up to afteraction, ataction
3557 * parse.y (afteraction): New rule.
3558 * parse.y (ataction): New rule and put actions in.
3559 * parse.y (cycleaction): New rule and put actions in.
3560 * parse.y (sendaction): Add code for SEND buffer.
3561 * parse.y (rccase_label): Change error processing.
3562 * tasking.c (build_gen_inst): More checks.
3563 * tasking.c (build_gen_code): Add checking for argument is a
3564 PROCESS or a SIGNAL.
3565 * tasking.c (struct rc_state_type): Add new fields for easier
3567 * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
3568 * tasking.c (build_rccase_set_error), ch-tree.h: New function.
3569 * tasking.c (build_receive_case_label): Add processing of BUFFER's.
3570 * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
3571 New functions to process the end of a RECEIVE CASE action in case
3572 of BUFFER's and SIGNAL's.
3573 * tasking.c (build_receive_case_end): Do only general processing and
3574 call one of the above mentioned functions.
3575 * tasking.c (build_delay_case_start, build_delay_case_label,
3576 build_delay_case_end): Rewritten due to new implementation of events.
3577 * tasking.c (build_delay_action): Rewritten due to new implementation
3579 * tasking.c (expand_send_buffer), ch-tree.h: New function.
3580 * timing.c (build_at_action, build_cycle_start, build_cycle_end),
3581 ch-tree: New functions.
3583 Thu Apr 28 14:11:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
3585 * typeck.c (smash_dummy_type): Handle the special case of a
3586 NEWMODE of a range mode, as required by Z200, by creating a
3587 new parent mode with the new novelty (and casting the min
3588 and max of the range to teh new parent mode).
3589 * typeck.c (chill_novelty, chill_root_mode): Remove special
3590 kludges for of NEWMODE ranges.
3591 * expr.c (build_chill_lower_or_upper): New function, combining
3592 the "guts" of build_chill_lower and build_chill_upper.
3593 * expr.c (build_chill_lower_or_upper): Simplify; no longer
3594 need to kludge the novelties.
3596 * typeck.c (valid_array_index_p): A string index expression
3597 need not be Compatible with the index type; only similar.
3599 * decl.c (layout_chill_variants): If error seen, skip stuff
3600 (rather than aborting or crashing).
3601 * decl (push_modedef): If newdecl's type is an error mark,
3602 continue rather than aborting.
3604 Thu Apr 28 02:07:42 1994 Doug Evans (dje@cygnus.com)
3606 * Make-lang.in: Update of directory reorg from fsf.
3607 * config-lang.in: Ditto.
3609 Mon Apr 25 13:09:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
3611 * typeck.c (chill_similar): Check RECORD_TYPEs properly,
3612 * convert.c (convert): If all else fails, just call convert1.
3613 Thus we can now convert RECORD_TYPEs (assuming they are similar).
3615 * parse.y, lex.l: Remove BUFFERNAME (use location/expr instead).
3616 * parse.y: Re-do BUFFER handling (similar to previous EVENT change).
3617 * grant.c (raw_decode_mode): Re-do BUFFER mode handling.
3618 * ch-tree (lang_type_record): Removed max_queue_size field.
3619 * tasking.c (build_buffer_type): Re-write.
3620 * tasking.c (max_queue_size): Fix to support buffer modes.
3621 * tasking.c (buffer_element_mode), ch-tree.h: New function.
3622 * tasking.c ch-tree.h (expand_send_buffer): Now has 3 parameters.
3623 * parse.y (modename): No longer match SIGNALNAME. Instead, add it
3624 to name and simple_name_string. This removes a reduce/reduce conflict.
3625 * Makefile.in (stamp-parse): Expect fewer conlicts.
3627 * lex.l (yywrap): Move check for circularly seizeing current
3628 grant-file from here ...
3629 * lex.l (handle_use_seizefile_directive): ... to here.
3630 This is to avoid calling stat on a not-yet written grantfile,
3631 now that we're using same_file (which calls stat).
3632 * grant.c (set_use_this_gf): Removed.
3633 * grant.c (set_default_grant_file): Set grant_file_name here,
3634 because we need it earlier (due to above lexer change).
3636 * typeck.c (layout_chill_struct_type): Remove useless code to
3637 remove zero-width bitfield (which messes up CONST_DECLs).
3639 Sat Apr 23 13:16:39 1994 Bill Cox (bill@rtl.cygnus.com)
3641 * Makefile.in (check): Assure that 'ld' is available before checking.
3643 Thu Apr 21 13:23:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3645 * grant.c (print_an_int): Removed.
3646 (raw_decode_mode): Generalized to use decode_constant
3647 instead of print_an_int.
3648 (decode_constant): Print directly, instead of calling print_an_int.
3649 * parse.y (event_list): Fix syntax.
3650 * parse.y (optqueuesize): Default is NULL_TREE, not zero.
3651 * tasking.c (check_queue_size): New function, for error checking.
3652 * ch-tree.h: Add declaration for check_queue_size.
3653 * satisfy.c (satisfy case RECORD_TYPE): Satisfy constant fields
3654 (used for queue size of EVENT and BUFFER), and call check_queue_size.
3656 Tue Apr 19 13:42:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
3658 Re-implement EVENT modes to support general EVENT objects
3659 (and not just EVENT names), according to Z200. (Not finished!)
3660 * tasking.c, ch-tree.h (max_queue_size): New function.
3661 * parse.y (dcalternative, event_list, event_list_head): New
3662 implementation of DELAY CASE, avoiding parsing ambiguities.
3663 (call, locdec, delayaction): Remove old EVENTNAME kludges.
3664 * lex.l (name_type_signal): Remove EVENTNAME recognition.
3665 * tasking.c (build_event_type): Re-written.
3666 * typeck.c (chill_similar), decl.c (print_lang_type):
3667 Use new max_queue_size function.
3668 * typeck.c (layout_chill_struct_size): Ignore CONST_DECL.
3669 * tasking.c (build_delay_action): Preliminary changes - just to
3670 make it compile. FIXME!
3671 * grant.c (raw_decode_mode): Use new max_queue_size function.
3672 Move EVENT support from LANG_TYPE to RECORD_TYPE.
3673 * ch-tree.h (process_event_decls): Removed.
3675 Tue Apr 19 11:44:01 1994 Bill Cox (bill@rtl.cygnus.com)
3677 * regression.sh: Complete previous change - eliminate all
3678 references to objdir as a user parameter.
3680 Mon Apr 18 10:17:55 1994 Bill Cox (bill@cygnus.com)
3682 * Makefile.in (check): Simplified regression.sh call.
3683 * regression.sh: Change command-line parsing. Default
3684 srcdir to the script's path. Calculate objdir
3685 internally - don't pass it in.
3687 Thu Apr 14 13:30:19 1994 Wilfried Moser (moser@phishhead.cygnus.com)
3689 * expr.c (build_chill_duration): Add range checking.
3691 * lex.l (init_lex): Add predefined names DURATION and TIME.
3692 * lex.h (enum rid): Add RID_DURATION and RID_TIME.
3693 * ch-tree.h: Add prototypes and externals.
3694 * decl.c (init_decl_processing): Add builtin function
3696 * expr.c (build_generalized_call): Add processing of some
3698 * expr.c (build_chill_abstime): New function to process builtin
3700 * expr.c (build_chill_inttime_type): New function to built type
3701 for the INTTIME builtin.
3702 * expr.c (build_chill_inttime): New function to process builtin
3704 * expr.c (build_chill_duration): New function to process builtin's
3705 MILLISECS, SECS, MINUTES, HOURS and DAYS.
3707 Tue Apr 12 11:55:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
3709 * lex.l (chill_same_grant_file): Rename to same_file. Change to
3710 take two files names rather than two DECLs. Also check that the
3711 filesystems (st_dev) are equal. Finally, make static.
3712 * lex.l (handle_use_seizefile_directive): Check for duplicate
3713 USE_SEIZE_FILE directives using same_file.
3714 * decl.c (pop_module): Remove dubious call to chill_same_grant_file.
3716 Sun Apr 10 17:19:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
3718 * decl.c, ch-tree.h (chill_result_decl): New variable. Used to
3719 store RESULT value. (Cannot use DECL_RESULT; see comment in decl.c.)
3720 * actions.c (chill_expand_result, chill_expand_return):
3721 Use chill_result_decl appropriately.
3722 * ch-tree.h, decl.c, actions.c (saved_result_rtx): Removed.
3723 Subsumed by chill_result_decl.
3725 * expr.c (chill_expand-expr case CONCAT_EXPR): Generate temporary
3726 using the mode of the result type, and don't assume it is BLKmode.
3728 Fri Apr 8 17:46:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3730 * actions.c (chill_expand_assignment): Check for compatibility
3731 _after_ "expanding out" a binary operation. This fixes
3732 the case "STRING //:= CHAR".
3734 * lex.l (equal_number): Convert symbol to integer_type_node, to
3735 force the value to be INT-derived (and avoid novelty conflicts).
3737 Mon Apr 4 22:06:31 1994 Per Bothner (bothner@cygnus.com)
3739 * ch-tree.h (CH_FUNCTION_SETS_RESULT): New flag.
3740 * ch-actions.c (chill_expand_return), ch-tree.h: Extra
3741 parameter, indicates if implicit return at end of function.
3742 * ch-parse.y: Modify accordingly.
3743 * ch-actions.c (chill_expand_return): Various improvements.
3745 * decl.c, ch-tree.h (result_never_set): New variable.
3746 * actions.c (chill_expand_result, chill_expand_return): Clear it.
3747 * ch-parse.y (end_function): Warn if no RETURN or RESULT action.
3749 * decl.c, ch-tree.h (saved_result_rtx): New variable.
3750 * decl.c (start_chill_function): Use saved_result_rtx as return
3751 value if there is a RESULT in a REG that might get clobbered.
3752 * actions.c (chill_expand_result): Save result in saved_result_rtx
3753 or assign to DECL_RESULT as appropriate.
3754 * decl.c, ch-tree.h (current_function_returns_value,
3755 current_function_returns_null, current_extern_inline):
3756 Don't use. Only define first two to allow linking with ch-typeck.c.
3758 * typeck.c (chill_l_equivalent): Add forward declaration.
3760 Fri Apr 1 11:02:27 1994 Wilfried Moser (fs_moser at rcsw47)
3762 * lex.l (readstring): Handle control sequence in all cases (Z.200
3765 Fri Apr 1 13:11:27 1994 Per Bothner (bothner@kalessin.cygnus.com)
3767 * configure: Simplify and fix the logic for looping through
3770 Thu Mar 31 18:59:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
3772 * ch-tree.h (CH_L_EQUIVALENT): Moved from typeck.c.
3773 * typeck.c (chill_similar): Add support for checking
3774 FUNCTION_TYPEs for similarity. Also, treat
3775 pointer-to-function-type the same as function-type.
3777 Thu Mar 31 11:22:56 1994 Wilfried Moser (fs_moser at rcsw47)
3779 * ch-tree.h: Change prototype of function expand_send_signal.
3780 * parse.y: Change calls to expand_send_signal.
3781 * tasking.c (expand_send_signal): Change handling of optsetto
3782 argument. New argument signame to get a possible destination
3783 process for the signal.
3785 Wed Mar 30 14:54:48 1994 Wilfried Moser (fs_moser at rcsw1j)
3787 * tasking.c (make_process_struct): Change error message in case of
3788 a process argument has other attribute then IN or LOC.
3789 * tasking.c (build_start_process): Add check that the optset is
3790 referable in case it is specified (this makes
3791 noncompile/start_.ch working).
3793 Tue Mar 29 13:24:27 1994 Wilfried Moser (fs_moser at rcsw1h)
3795 * Makefile.in: Change version string to 1.2.1
3796 * ch-tree.h (enum chill_built_in_function): Delete no longer valid
3798 * ch-tree.h: Change prototype for build_chill_readtext.
3799 * decl.c (init_decl_processing): Add builtin_function _readstring,
3800 _readunixstd and READTEXT.
3801 * expr.c (build_generalized_call): Add processing of READTEXT.
3802 Delete handling of no longer valid builtin_functions.
3803 * gperf: Remove keyword READTEXT.
3804 * parse.y: Remove token READTEXT.
3805 * inout.c (build_chill_io_list_type): Add building type for
3807 * inout.c (build_chill_readtext): Implement the function
3809 * inout.c (build_chill_writetext): Do some cleanups.
3811 Tue Mar 29 12:30:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
3813 * typeck.c (build_chill_cast): Re-arrange, to support casts
3814 of const integer to type of different size, if there is
3815 an integral type of the desired size: Go through the
3816 const conversion code.
3818 * actions.c (adjust_parm_or_field): Move support for LOC to ...
3819 * expr.c (build_chill_function_call): ... here.
3820 Fix a number of bugs in OUT/INOUT handling.
3822 * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
3823 parse.y (location), typeck.c (chill_comptypes): Remove unused
3824 support for ENCAPSULATED_ARRAY_P.
3825 * typeck.c (build_chill_array_parm_type), ch-tree.h: Remove; unused.
3827 * ch-tree.h, decl.c (shadow_record_fields), decl.c
3828 (shadow_record_fields), expr.c (chill_expand_case_expr,
3829 build_chill_function_call), grant.c (chill_finish_compile),
3830 typeck.c (build_empty_string, build_init_struct): Rename magic
3831 identifiers of the form "<...>" to "__..." for better portability.
3833 * actions.c (adjust_parm_or_field): Remove extraneous
3834 call to build_chill_repetition_op.
3835 * expr.c (build_chill_function_call): Some simplifictions
3836 (since neither valtail nor typetail can be NULL).
3837 Clean up error message for OUT//INOUT not location to use only 1 line.
3838 Add error message for OUT/INOUT if type is READonly.
3839 * typeck.c (build_chill_modify_expr): Simplify.
3841 Sun Mar 27 19:30:25 1994 Bill Cox (bill@rtl.cygnus.com)
3843 * Makefile.in: Clean up generally. Assure that
3844 runtime is built before running regressions.
3845 Build correct parameters to regression.sh.
3846 Remove a lot of 'clean' cruft.
3847 * Make-lang.in, config-lang.in: New files for
3848 subdirectory architecture.
3850 Sat Mar 26 10:39:12 1994 Bill Cox (bill@rtl.cygnus.com)
3852 * Makefile.in (check): Build correct parameters for regression.sh.
3854 Fri Mar 25 10:13:06 1994 Bill Cox (bill@rtl.cygnus.com)
3856 * configure: Also mark regression.awk3 as executable.
3857 * regression.sh: Add comments about command-line options.
3858 Calculate srcdir correctly, defaulting to the script's path.
3859 Add OPT flag to pass to the Makefiles, to specify the
3860 compiler's optimization level, and -O and -O2 options.
3861 Delete GLOBAL flag and tests. Use a different make.log
3862 file for optimized and unoptimized test results. Add the
3863 compiler's host and target triples to the report header.
3865 Wed Mar 23 21:41:26 1994 Bill Cox (bill@rtl.cygnus.com)
3867 * expr.c (build_chill_function_call): Handle INOUT and OUT
3868 parameters better (for the rangefail test, at least).
3870 Wed Mar 23 14:13:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
3872 * regression.sh (srcdir, objdir): Fixed hard-wired paths.
3873 (grep args): Changed [XYZ-] to [-XYZ] for SCO.
3875 Wed Mar 23 13:34:18 1994 Bill Cox (bill@rtl.cygnus.com)
3877 * expr.c (build_generalized_call): Revert previous change.
3878 To do this correctly, we need a new parsing mechanism, and
3879 C++ initializer technology.
3881 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
3883 * expr.c (build_generalized_call): Be sure we're inside the
3884 module-level function before calling build_gen_inst, for
3887 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
3889 * regression.sh (dodirectory): Count the gcov and abort tests
3890 among the .dat files.
3892 Tue Mar 22 15:39:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3894 * satisfy.c (safe_satisfy_decl): When checking that a SYN
3895 value fits in a specified discrete type, don't convert first,
3896 and use compare_int_csts instead of tree_int_cst_lt.
3898 Tue Mar 22 15:25:38 1994 Bill Cox (bill@rtl.cygnus.com)
3900 * configure: Generate better .gdbinit files.
3902 Tue Mar 22 11:59:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3904 * actions.c (check_range): Don't emit dynamic checks
3905 if not current_function_decl.
3907 * parse.y (arrayindex): Allow expr (error is emitted
3908 at semantic level if not the NAME of a type).
3909 * typeck.c (build_chill_cast): Re-enable some casts.
3910 * satisfy.c (safe_satisfy_decl): Remove redundant CONST check.
3912 Tue Mar 22 11:46:28 1994 Bill Cox (bill@rtl.cygnus.com)
3914 * configure: Access the utils directory correctly.
3915 * expr.c (build_compare_expr): Reenable compatibility test.
3917 Tue Mar 22 11:24:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
3919 * typeck.c (valid_array_index_p): Call
3920 build_compare_discrete_expr instead of build_compare_expr.
3921 * typeck.c (build_chill_cast): Improve logic.
3922 * satisfy.c (safe_satisfy_decl): Simplify test.
3924 Tue Mar 22 10:17:58 1994 Bill Cox (bill@rtl.cygnus.com)
3926 * actions.c (chill_expand_assignment): Correct detection of
3927 string assignment case.
3928 * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
3929 the actual parameters need to be converted to the unsigned long
3930 type explicitly. Do that.
3931 * satisfy.c (safe_satisfy_decl): Correct range-checking code.
3933 Mon Mar 21 16:25:07 1994 Bill Cox (bill@rtl.cygnus.com)
3935 * Makefile.in: Correct prediction of grammar conflicts.
3936 * actions.c(check_range): Fix reference to NULL_TREE pointer.
3937 And allow compile-time errors even if range_checking is off.
3938 * parse.y: Clean up some comments.
3939 * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
3941 Mon Mar 21 13:29:23 1994 Per Bothner (bothner@kalessin.cygnus.com)
3943 * typeck.c (layout_chill_range_type): Instead of tree_int_cst_lt
3944 use compare_int_csts (which is more robust when signedness differs).
3945 Also, convert the bounds *after* doing range checking.
3947 * ch-tree.def (SET_IN_EXPR): New.
3948 * expr.c (chill_expand_expr): Code to expand SET_IN_EXPR,
3949 moved from expand_expr in ../expr.c. Also add some extra
3950 conversions (because we're now using build_chill_function-call).
3951 * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
3952 Use SET_IN_EXPR in place of IN_EXPR.
3954 * expr.c (build_compare_discrete_expr), ch-tree.h: New function,
3955 with code moved from build_compare_expr.
3956 * expr.c (build_compare_expr): Re-enable compatibility test.
3958 Mon Mar 21 11:02:33 1994 Bill Cox (bill@rtl.cygnus.com)
3960 * Makefile.in: Rewrite byacc related rules.
3961 * actions.c (chill_convert_for_assignment): Use the
3962 referenced type only for generating range checks.
3963 * configure: Add 'utils' directory to SUBDIRS variable.
3965 Sun Mar 20 21:49:59 1994 Bill Cox (bill@rtl.cygnus.com)
3967 * actions.c (check_range): Call build_compare_expr rather than
3969 (adjust_parm_or_field): Call convert_for_assignment rathern than
3970 convert, to get the range-checking.
3971 * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
3972 Generate a compile-time message if possible.
3973 (build_compare_expr): Comment out compatibility test - should
3974 not be needed in here. Fix a couple of typos. Add some types
3975 to some build calls.
3977 Sun Mar 20 11:48:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
3979 * decl.c (init_decl_processing): Clean up parameter type
3980 list for __setbitpowerset,
3982 * typeck.c (chill_compatible_classes): Allow the M-reference
3983 to be compatible with the N-value class, with suitable M and N.
3984 * typeck.c (build_chill_slice): Don't smash a void TREE_TYPE.
3985 (We don't need to, and it causes confusion.)
3987 * expr.c (build_compare_expr): Fix thinko. Add save_exprs.
3989 * expr.c (build_compare_expr): Fix a transcription bug
3990 (for converting NULL INSTANCEs). Also #include convert.h.
3992 * expr.c (compare_int_csts): New. Compare INTEGER_CSTs.
3993 Works even if their types have different TREE_UNSIGNED.
3994 * expr.c (finish_chill_binary_op): Moved code dealing with
3995 the comparison operators from here ...
3996 * expr.c (build_compare_expr): ... to new function here.
3997 Also, for discrete types, tries to Do The Right Thing, even for
3998 differing values of TYPE_PRECISION and TREE_UNSIGNED.
4000 * ch-tree.h: Declare new functions.
4001 * typeck.c (valid_array_index_p): Various cleanups,
4002 including using new build_parse_expr.
4003 * parse.y: Use new build_compare_expr.
4005 * inout.c (build_chill_writetext): Handle REFERENCE_TYPE args.
4007 Sun Mar 20 08:54:27 1994 Bill Cox (bill@rtl.cygnus.com)
4009 * actions.c (expand_assignment_to_varying_array):
4010 Call build_chill_array_ref to get index checking.
4011 (chill_convert_for_assignment): Delete unused errstr
4013 (chill_expand_assignment): Call build_chill_array_ref
4014 to get runtime index checking.
4015 (expand_varying_length_assignment): Use new interface
4016 to varying_array_index_p.
4017 * ch-tree.h (varying_array_index_p): New proto.
4018 * convert.c (convert): Call build_chill_array_ref
4019 to get runtime index checking.
4020 * expr.c (build_chill_pred_or_succ): Fix cond tree
4021 to have consistent operand types.
4022 * typeck.c (valid_array_index_p): Change interface to pass
4023 validity conditions back on caller's TREE_LIST. We
4024 cannot link the conditions to anything which a
4025 layout_type routine will expand, since that will occur
4026 before the exception handler is set up.
4027 Change calls to valid_array_index_p also.
4029 Fri Mar 18 14:40:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
4031 * actions.c, except.c, loop.c, tasking.c: Call
4032 build_chill_function_call instead of the C-specific
4033 build_function_call.
4034 * except.c (initialize_exceptions): Fix parmtype of __builtin_setjmp.
4035 * loop.c (top_loop_end_check): Coerce library function arg.
4036 * convert.c, expr.c: Re-write to avoid calls to C-specific
4037 function build_unary_op (e.g. by calling build1 directly).
4039 * typeck.c (chill_equivalent): Change to force failure
4040 for non-matching integral types (even if not ranges).
4042 * typeck.c, ch-tree.h (build_chill_slice): Make non-static.
4043 * expr.c (varying_to_slice): Call build_chill_slice (and not
4044 build_chill_slice_with_length, which does bunches of range
4045 checking and does not allow the length to be zero).
4046 * convert.c (convert): Fix off-by-one error.
4047 * actions.c (chill_expand_array_assignment): Minor cleaning up.
4049 Fri Mar 18 00:12:48 1994 Per Bothner (bothner@deneb.cygnus.com)
4051 * decl.c (init_decl_processing): __lepowerset and __ltpowerset
4052 take *two* pointer parameters, not one.
4053 * satisfy.c (satisfy): Only call the appropriate layout routine
4054 if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4055 * typeck.c (build_chill_slice_with_length): Fix Bill's previous fix.
4057 Thu Mar 17 17:29:43 1994 Bill Cox (bill@rtl.cygnus.com)
4059 * expr.c (build_chill_function_call): Give function call the correct
4061 * typeck.c (build_chill_slice_with_length): Restore dynamic range
4062 checking, so it doesn't obscure the CONSTANTness of the length.
4064 Wed Mar 16 17:23:31 1994 Per Bothner (bothner@kalessin.cygnus.com)
4066 * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4067 [case CONCAT_EXPR]): Remove kludge setting slice size upper bound
4068 in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4069 * typeck.c (build_chill_slice): Use TYPE_MAX_VALUE of
4070 array_type if needed for size upper bound of slice_type.
4071 * expr.c (build_concat_expr): Improve calculation of size upper bound.
4073 * typeck.c (valid_array_index_p): Check compatibility using
4075 * typeck.c (build_chill_slice_with_length); For now revert
4076 calling valid_array_index_p on length. (It makes it harder
4077 to realize when the slice is constant length.)
4078 * expr.c (build_chill_indirect_expr): Minor tweak. (This
4079 seems to work around a weird C compiler bug. ??)
4081 * expr.c (build_chill_function_call): Cleanup so it doesn't
4082 call build_function_call (in c-typeck.c).
4083 * typeck.c, expr.c: Use build_chill_function_call instead of
4084 build_function_call (in c-typeck.c).
4086 * parse.y (discrete_mode): Move some of the rules from
4087 non_array_mode into new non-terminal.
4088 (arrayindex): Use discrete_mode (with NAME and TYPENAME) to
4089 avoid some misparses.
4090 * ch-tree.h (SLICE_PTR, SLICE_LENGTH): Removed; unused.
4091 * convert.c (digest_structure_tuple): Add missing parameter.
4092 * decl.c (comptypes): Remove unused prototype.
4093 * decl.c (build_chill_function_type): Handle NULL return_type
4094 correctly (convert to void_type_node).
4095 * decl.c (init_decl_processing): layout boolean_type_node *after*
4096 we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4098 Wed Mar 16 16:08:22 1994 Bill Cox (bill@rtl.cygnus.com)
4100 * ch-tree.h: Add prototype.
4101 * convert.c (convert): Correct calculation of padding length.
4102 * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4103 parse.y where it belongs. This permits the removal of a kludge
4104 in make_process_struct.
4105 * lex.l, parse.y: Call to_global_level for several errors. Add
4106 code to output error in only one pass.
4107 * tasking.c (make_process_struct): Delete kludge inserted on
4109 (build_receive_case_end): Add Wilfried's check for errors.
4111 Tue Mar 15 08:42:12 1994 Bill Cox (bill@rtl.cygnus.com)
4113 * actions.c: Fix comment.
4114 (build_rts_call): Ifdef it out - never used.
4115 (expand_varying_length_assignment): call valid_array_index_p.
4116 rather than validate_varying_array_ref.
4117 * ch-tree.h: Fix prototype for valid_array_index_p.
4118 * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4120 (build_hill_lower, build_chill_upper): Return value now inherits
4121 the novelty of the input parameter.
4122 (varying_to_slice): Use CH_NOVELTY macro rather than calling
4123 chill_novelty directly.
4124 * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4126 (print_integer_type): Pass string value as APPEND's second parameter.
4127 (decode_decl): Pass a boolean expression as print_proc_tail's
4129 (chill_finish_module_code): Make xmalloc's parameter unsigned.
4130 * lex.l: Pass sizes to xmalloc as unsigned ints. Pass second
4131 parameter to in_word_set as unsigned.
4132 * loop.c (build_loop_start): Check top_loop_end_check return value.
4133 * parse.y: Add casts to int for third do_decls parameter, fifth
4134 build_loop_iterator parameter, etc.
4135 * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4136 * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4137 valid_array_index): Delete them. They're now unused.
4138 (valid_array_index_p): Add function, call it everywhere that an
4139 array index is checked.
4140 (build_chill_slice): Restore old functionality where varying_to_slice
4141 is called to handle slices of varying arrays, rather than handling
4143 (build_chill_slice_with_range, build_chill_slice_with_length):
4144 Check range limits for TREE_CONST before calling tree_int_cst_lt.
4145 Delete now-obsolete checks of constant indices.
4147 Mon Mar 14 17:26:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
4149 * parse.y (modeless_expr): New rule to allow ([...]) and (if...)
4150 to count as untyped_exprs. (This is not really permitted by the
4151 Blue Book, but has been requested by customers.)
4153 Thu Mar 10 10:11:02 1994 Bill Cox (bill@rtl.cygnus.com)
4155 * chill.texi: Document new command-line options.
4156 * expr.c (build_chill_num): Set unsigned parameter for
4157 type_for_size call correctly (unsigned for enums).
4158 * lang.c (lang_decode_option): Add command-line options to
4159 enable/disable runtime range-checking.
4160 * lex.l: Eat more whitespace.
4162 Thu Mar 10 09:41:37 1994 Bill Cox (bill@rtl.cygnus.com)
4164 * Makefile.in: Have rules to make parse.h, y.tab.c and other
4165 derived files. This allows the gcc/configure list of CHILL
4166 files machinery to work.
4167 * ch-tree.h (permanent_allocation): Add a parameter flag.
4168 * decl.c (finish_chill_function, finish_decl): Provide the
4169 new permanent_allocation flag.
4170 (poplevel): Return early, avoid a seg fault.
4171 * lex.l (NORMAL): Replace this whole state with the predefined
4172 INITIAL state. Force compilation state to global level after
4173 compiler directive error - prevents endless loop on error.
4174 (handle_use_seizefile_directive): Rewrite for readability.
4175 (chill_same_grant_file): Reindent.
4176 Generally handle whitespace differently.
4177 * regression.prpt: Print ten PR numbers per line. The report's
4180 Wed Mar 9 09:58:51 1994 Bill Cox (bill@rtl.cygnus.com)
4182 * decl.c (do_decl): Suppress the string-assignment-condition
4183 error - it was too often seen.
4184 * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4185 runtime-changing length (as in a slice), get the parent array's
4186 allocation size from its type tree.
4187 * typeck.c (build_chill_slice): Support VARYING arrays. Pass
4188 parent array's static allocation size along in the slice type.
4190 Wed Mar 9 08:54:24 1994 Bill Cox (bill@rtl.cygnus.com)
4192 * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4194 Tue Mar 8 11:51:10 1994 Bill Cox (bill@rtl.cygnus.com)
4196 * expr.c (build_chill_sizeof): Fix typo in error msg, add
4198 * lex.l (name_type_signal): Add debug output.
4199 * parse.y (call): Allow EVENTNAME and BUFFERNAME parameters
4200 to a call, so that SIZE () works on them.
4201 * tasking.c (make_process_struct): Force ignore_exprs non-zero
4202 when processing a SEIZEd PROCESS declaration. This prevents
4203 grox-fixed_fields from returning a NULL, and indirectly protects
4204 the chill_integer_type_node tree from corruption.
4206 Mon Mar 7 19:14:05 1994 Bill Cox (bill@rtl.cygnus.com)
4208 * Makefile.in: Use the 'all' target to build the runtime
4209 library and chillrt0.o.
4210 * README: Explain rules for files in this directory.
4211 * addtest, addtest.man, build-release,
4212 chill.regress.cron: Move to utils subdirectory.
4213 * expr.c (build_chill_function_call): Mark the INOUT
4214 temporary so it doesn't get optimized into a
4215 register. Fixes the execute/inout.ch bug.
4216 * typeck.c (layout_chill_range_type): Restrict it
4217 from complaining about an empty string type's
4220 Mon Mar 7 09:06:39 1994 Bill Cox (bill@rtl.cygnus.com)
4222 * Makefile.in (compiler): Restore this target.
4223 (OBJS, BC_OBJS): Delete unused variables.
4224 Add $(FLAGS_TO_PASS) to sub-make invocations.
4225 * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4226 tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4228 Sat Mar 5 18:37:50 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4230 * except.c (finish_handler_array): When computing address of
4231 the array ex_decl, don't call build_array_ref.
4233 Sat Mar 5 17:43:36 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4235 * loop.c (declare_temps): Force powerset temp to memory.
4237 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4239 * typeck.c (layout_chill_range_type): Convert highval and
4240 lowval to a common type before range-checking them.
4242 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4244 * ch-tree.h: Add loop-related prototypes.
4245 * decl.c, grant.c: Fix -Wall violations.
4246 * parse.y: Fix format of %type directives.
4248 Fri Mar 4 10:04:18 1994 Wilfried Moser (fs_moser at rcsw1h)
4250 * Makefile.in: Update version number.
4251 * expr.c: Fix a comment.
4252 * inout.c (build_chill_writetext): Add handling of a REAL.
4253 * lex.l (INITIAL): Remove all code to discard 'header lines'.
4255 * parse.y (optheader): Remove - it's obsolete, as is the
4256 HEADEREL token definition.
4258 Fri Mar 4 09:41:18 1994 Bill Cox (bill@rtl.cygnus.com)
4260 * addtest: Fix suffix removal when suffix is .c186.
4261 * regression.sh: Allow for underscores on PR filenames.
4262 * typeck.c: Check in the rewrite mentioned earlier.
4264 Thu Mar 3 09:42:10 1994 Wilfried Moser (fs_moser at rcsw1h)
4266 * tasking.c (build_process_header): Build a debug structure
4267 for easier access to PROCESS parameters.
4269 Thu Mar 3 09:42:10 1994 Bill Cox (bill@rtl.cygnus.com)
4271 * typeck.c (*string_assignment_condition): Complete rewrite
4272 of a verbose first draft.
4274 Wed Mar 2 16:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4276 * actions.c (adjust_return_value): Simplify.
4277 Delete references to CH_RETURNS_LOC, extra parameters to
4278 push_extern_function and start_chill_functions.
4279 (convert_for_assignment): Check whether to generate runtime
4280 range-checking code. Handle reference_type in convert call.
4281 (chill_expand_assignment): Produce an INDIRECT_REF for a
4282 reference_type on the LHS. Delete conversions subsumed by
4283 convert_for_assignment.
4284 * ch-tree.h: Delete parameters from prototypes.
4285 * decl.c (print_lang_decl): Print out signal flag.
4286 (push_extern_function, start_chill_function): Delete
4287 extra parameters, references to CH_RETURNS_LOC.
4288 * grant.c (chill_finish_compile): Delete extra parameter.
4289 * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
4290 push_extern_function and start_chill_functions.
4291 * regression.sh (checkprms): Skip PRMS discrepancies if we
4292 can't access PRMS for some reason.
4293 * satisfy.c: Correct indentation.
4294 * tasking.c (build_process_header): Delete extra parameters
4295 passed to push_extern_function and start_chill_functions.
4297 Wed Mar 2 10:33:50 1994 Bill Cox (bill@rtl.cygnus.com)
4299 * addtest: Require a fill filename. Be more careful about
4300 adding the same test twice.
4301 * expr.c: Add FIXME to comment.
4302 * regression.sh: Add configure script call.
4304 Tue Mar 1 16:24:20 1994 Wilfried Moser (fs_moser at rcsw1h)
4306 * Makefile.in: Change version of chill to 1.1.2
4307 * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
4309 Tue Mar 1 07:34:56 1994 Bill Cox (bill@rtl.cygnus.com)
4311 RETURN of LOC value is only half-baked. Stay tuned...
4312 * actions.c (adjust_parm_or_field): Add to comment.
4313 (adjust_return_value): New function for issuing errors about
4314 RETURN and RESULT expressions. Also converts them.
4315 (chill_expand_result, chill_expand_return): Call new
4316 adjust_return_value function.
4317 * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
4318 New parameter for push_extern_function and start_chill_function.
4319 * decl.c (push_extern_function, start_chill_function): New parameter
4320 to say whether return value is a LOC.
4321 * expr.c (build_chill_indirect_ref): Further qualify the issuing
4322 of the error message.
4323 * grant.c (raw_decode_mode): Move test for instance mode under
4325 (start_chill_module_code, chill_finish_compile): Add new
4326 parameter to start_chill_function calls.
4327 * parse.y (get_type_of): Do lookup_name more often.
4328 (quasi_pdef, procedure, procmode, optresultspec): Set
4329 CH_RETURNS_LOC flag.
4330 (optresultattr): Code keywords as a bitmask.
4331 * tasking.c (build_process_header): Add new parameter to
4332 start_chill_function call.
4334 Sat Feb 26 12:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4336 * Makefile.in: Replace undefined $(RM) with rm -f.
4337 * configure: Make sure scripts are executable.
4338 * regression.sh: Make variables to invoke make
4339 and awk. Don't process a directory if it
4342 Fri Feb 25 14:48:48 1994 Bill Cox (bill@rtl.cygnus.com)
4344 * Makefile.in (check): Force the building of ../gcov and
4345 ../xgcc before testing. Move the printf dependency here
4346 since we don't need it until we're testing.
4347 * addtest: Strip suffix from each input filename.
4348 * decl.c (do_decl): Correct error checking. Call
4349 string_assignment_condition for some of it.
4350 * tasking.c (build_gen_inst): Add ability to pass an integer
4351 for either the process ID or the copy number. If a number
4352 is passed, range-check it against the CHILL unsigned type
4354 (build_buffer_descriptor): Add draft code to check the buffer
4355 name for correctness.
4357 Wed Feb 23 15:07:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
4359 New cleaner solution to the following problem:
4360 Chill allows an action to be followed by an ON-handler.
4361 But we don't know if an action has a handler until we've parsed
4362 its end, yet we want to generate extra code to set up an
4363 exception handling contour only if needed. The old solution
4364 would generate code for the action into an rtl sequence, and then
4365 splice in the exception-setup code if we later found we needed it.
4366 This has a few problems (for example it confuses the management
4367 of stack temporaries), and is ugly. Now that the compiler is 2-pass
4368 we have a cleaner solution: In pass 1, we remember which actions
4369 were followed by ON-handlers. In pass 2, we use this information
4370 to generate appropriate code before an action.
4371 * except.c (push_handler, pop_handler): In pass 1, set up data
4372 structures (global_handler_list) to remember if an action has an
4373 ON-handler. In pass 2, digest this information, and setup
4375 * except.c, actions.h (pop_handler): Take an extra int arg.
4376 * except.c (emit_setup_handler): New function, with code (moved
4377 from chill_start_on) to emit code before an action that has a handler.
4378 * except.c (except_init_pass_2): New function.
4379 * parse.y (pass1_2): Call except_init_pass_2 before pass 2.
4380 * parse.y (POP_UNUSED_ON_CONTEXT): Don't call pop_sequence.
4381 * parse.y: Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
4382 in pass 1 as well as pass 2.
4383 * parse.y (BEGIN ... END): Re-arrange logic to avoid block_stack
4384 (local to ../stmt.c) getting out of sync.
4385 * actions.c (push_action): Don't need to emit a NOP,
4386 now that we're no longer moving sequences around.
4387 * actions.c (push_action): Call push_handler even in pass one.
4389 Wed Feb 23 11:06:14 1994 Bill Cox (bill@rtl.cygnus.com)
4391 * decl.c (do_decl): Check for possible overflow in initializing
4392 a declared variable.
4393 * expr.c (build-chill_indirect_ref): Add error message for
4394 a syntax error that C programmers converting to CHILL are
4395 quite likely to make.
4396 * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
4399 Tue Feb 22 17:54:43 1994 Bill Cox (bill@rtl.cygnus.com)
4401 * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
4402 defined. Build chill script differently, and build an install script.
4403 Add an action to run the regression test.
4404 * actions.c (chill_expand_assignment): Change
4405 string_assignment_condition call.
4406 * ch-tree.h: Add prototype.
4407 * expr.c (build_chill_function_call): Change
4408 string_assignment_condition call.
4409 * satisfy.c (safe_satisfy_decl): Add check that string INIT value
4410 will fit in the declared mode.
4411 * typeck.c (string_assignment_condition): Add flag to disable
4412 runtime code generation. Add code to generate runtime test.
4414 Mon Feb 21 14:04:20 1994 Bill Cox (bill@rtl.cygnus.com)
4416 * Makefile.in (check): Add target to trigger a regression test.
4418 Mon Feb 21 13:54:20 1994 Bill Cox (bill@rtl.cygnus.com)
4420 * decl.c (do _based_decls): Add error check for
4421 decls BASED on a PROC or PROCESS name.
4423 Mon Feb 21 13:24:02 1994 Bill Cox (bill@rtl.cygnus.com)
4425 * grant.c (chill_finish_compile): Bypass handling
4426 module-level code if an earlier error has made
4428 * tasking.c (build_start_process): Generate error,
4429 return if process name unknown.
4431 Mon Feb 21 14:29:41 1994 Wilfried Moser (fs_moser at rcsw47)
4433 * expr.c (build_generalized_call): Use
4434 build_arrow_expr semantics for ADDR () builtin.
4436 Mon Feb 21 12:49:14 1994 Bill Cox (bill@rtl.cygnus.com)
4438 * tasking.c (build_gen_inst): Output correct
4439 constructor for GEN_INST.
4441 Mon Feb 21 08:14:59 1994 Wilfried Moser (fs_moser at rcsw47)
4443 * lex.l (yywrap): Fix punctuation error.
4445 Sun Feb 20 19:58:14 1994 Bill Cox (bill@rtl.cygnus.com)
4447 * regression.sh: Fix cvs update-related commands.
4448 Have cron job always perform the update, so it's
4449 always reporting on the current state of the
4451 * typeck.c (string_assignment_condition): Allow a
4452 mis-match if the LHS is varying.
4454 Fri Feb 18 18:10:04 1994 Bill Cox (bill@rtl.cygnus.com)
4456 * actions.c (expand_chill_assignment): Add call to test the
4457 string assignment condition.
4458 * expr.c (build_chill_function_call): Add call to test the
4459 string assignment condition.
4460 * regression.awk2: Report WITHDRAWN PRs as well.
4461 * regression.sh: Delete extra commentary about FEEDBACK PRs.
4462 * typeck.c (string_assignment_condition): Add function to
4465 Fri Feb 18 16:30:40 1994 Bill Cox (bill@rtl.cygnus.com)
4467 * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
4468 and exclude them from the regression test report. Mark them
4469 in the list of PRs as 'W' status.
4471 Thu Feb 17 09:13:42 1994 Wilfried Moser (fs_moser at rcsw47)
4473 * Makefile.in: Define a version number. Build chill script
4474 differently. Makefile depends upon ../configure, not configure.
4475 * chill.in: Define some new flags.
4477 Wed Feb 16 19:44:33 1994 Bill Cox (bill@rtl.cygnus.com)
4479 * grant.c (decode_constant): Restore a 'return result' statement
4480 that seems to have gotten lost.
4482 Wed Feb 16 12:37:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
4484 * ch-tree.h (various STRING-type macros): Use new TYPE_STRING_FLAG.
4486 * typeck.c (make_chill_array_type): Remove unused args.
4487 Simplify to build only one-dimensionsal arrays, so change
4488 index list to single index. Call layout_chill_array_type
4489 if pass!=1. And rename to: build_simple_array_type.
4490 * typeck.c (layout_chill_array_type): Only recurse
4491 if TREE_TYPE has not been laid out.
4492 * typeck.c (build_chill_array_type): Update accordingly.
4493 * typeck.c (build_chill_slice): Replace calls to build_array_type
4494 (which does hash-canonicalization, which breaks if we later set
4495 the TYPE_STRING_FLAG) by calls to build_simple_array_type.
4496 * convert.c (convert): The same.
4498 * grant.c (decode_constant): Clean up. Remove remnants of switch
4499 on TREE_TYPE of the value, and fold those cases into first switch.
4501 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4503 * Makefile.in: Add printf as a dependency of ../cc1chill.
4504 * regression.sh: Make srcdir and objdir really work.
4506 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4508 * expr.c (build_char_array_expr): Fix spelling
4510 * tree.c (build_string_type): Make check for overlarge
4513 Wed Feb 16 02:37:43 1994 Mike Stump (mrs@cygnus.com)
4515 * grant.c (decode_constant): Remove useless tests
4516 for STRING_TYPE (which isn't used by anyone, including CHILL).
4518 Tue Feb 15 15:35:07 1994 Bill Cox (bill@cygnus.com)
4520 * build-release: Add refinements to checkout commands.
4521 * decl.c (init_decl_processing): Move initialization of
4522 chill_unsigned_type_node before 1st call to build_string_type.
4523 * tree.c (build_string_type): Add compile-time test of string
4525 * typeck.c (layout_chill_range_type): Add compile-time range limit
4528 Tue Feb 15 08:55:37 1994 Bill Cox (bill@cygnus.com)
4530 * Makefile.in: Add stamp-chill-objs as a dependency of ../cc1chill.
4531 * regression.sh: Rename test directory names.
4533 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4535 * Makefile.in: Change interface with parent directory's
4536 Makefile, decoupling the lists of each others' files.
4538 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4540 * lex.l: Delete obsolete comment.
4541 * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
4542 instance constructor.
4544 Mon Feb 14 04:04:16 1994 Bill Cox (bill@rtl.cygnus.com)
4546 * lex.l (maybe_number): Add octal to numbers
4547 handled by Feb 1 change.
4549 Sat Feb 12 16:24:22 1994 Bill Cox (bill@rtl.cygnus.com)
4551 * actions.c, convert.c, decl.c, expr.c, lex.l,
4552 tasking.c, typeck.c: gcc -Wall cleanups.
4553 * ch-tree.h: Change loop-related prototypes.
4554 * loop.c, parse.y: Rewrite to set up correct loop scope.
4555 Fix error path where loop variable not declared.
4557 Fri Feb 11 11:12:29 1994 Bill Cox (bill@rtl.cygnus.com)
4559 * Makefile.in: Add rule to build printf. Make it a dependency
4561 * printf.c: New tool for regression testing script.
4562 * regression.sh: Look for print in ${objdir}.
4564 Thu Feb 24 17:31:12 1994 Wilfried Moser (fs_moser at rcsw1j)
4566 * tasking.c (build_gen_inst): Allow integer expression as argument
4567 1 to this function. This was a change request to get rid of
4568 unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
4569 or STRUCT (t UINT, c UINT).
4571 Thu Feb 10 09:49:31 1994 Bill Cox (bill@rtl.cygnus.com)
4573 * regression.awk3: Recognize upper-case PRMS state names.
4575 Wed Feb 9 15:26:19 1994 Bill Cox (bill@cygnus.com)
4577 * parse.y (dowithaction): Allow EXIT from DO WITH.
4579 Tue Feb 8 13:13:54 1994 Bill Cox (bill@rtl.cygnus.com)
4581 * configure: Change to require grant.c for evidence that we've
4582 found the source directory.
4583 * decl.c (init_decl_processing): delete unused builtin_slice
4584 function declaration.
4585 * expr.c (chill_expand_expr): Calculate powerset's length
4586 correctly, calling powersetlen to do it.
4587 * regression.sh: Replace BASE references with objdir references.
4588 * typeck.c (build_chill_slice): Build the compound expression
4591 Mon Feb 7 15:56:07 1994 Bill Cox (bill@rtl.cygnus.com)
4593 * expr.c (build_chill_lower, build_chill_upper): Handle
4594 LOC parameter types.
4595 * regression.sh: Correct path to executable sub-shell-scripts.
4597 Mon Feb 7 11:33:47 1994 Bill Cox (bill@rtl.cygnus.com)
4599 * regression.sh: Pervasive changes to allow for separate
4600 source and object directories.
4602 Wed Feb 2 17:5620 1994 Bill Cox (bill@rtl.cygnus.com)
4604 * decl.c (find_implied_typed): Delete obsolete reference to
4606 * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
4609 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4611 * Makefile.in: Delete bogus runtime/Makefile lines.
4612 * configure: Build testsuite directory.
4614 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4616 * configure: Correct srcdir for chill.examples directory.
4618 Wed Feb 2 11:24:57 1994 Wilfried Moser (fs_moser at rcsw47)
4620 * ch-parse.y (rule call): Add
4621 BUFFERNAME LPRN untyped_expr RPRN
4622 to enable generating a descriptor same as for SIGNALS.
4623 * ch-tasking.c (generate_tasking_code variable,
4624 decl_tasking_code_variable): Implement overflow check of
4625 taskingcode in case a tasking code is specified with the
4626 compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
4629 Wed Feb 2 09:31:37 1994 Bill Cox (bill@rtl.cygnus.com)
4631 * configure: Add ${srcdir} to Makefile.in's path.
4632 * loop.c: Delete unused whitespace.
4634 Tue Feb 1 17:09:41 1994 Bill Cox (bill@rtl.cygnus.com)
4636 * expr.c (string_char_rep): Process STRING_CST correctly.
4638 Tue Feb 1 15:29:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
4640 * expr.c (build_boring_bitstring): New function.
4641 * expr.c (build_chill_repetition_op): Fix a number of bugs in
4642 implementation of bitstring repetition.
4643 Also, implement repetition of Booleans.
4645 Tue Feb 1 15:28:21 1994 Bill Cox (bill@rtl.cygnus.com)
4647 * configure: Delete code to check for gas or ld. Add code to
4648 store a config.status file in each configured subdirectory.
4649 * expr.c (): Spell concatbitstring as concatps, which is the
4650 runtime routine name.
4651 * regression.sh: Force use of GNU make.
4653 Tue Feb 1 15:22:12 1994 Bill Cox (bill@rtl.cygnus.com)
4655 * tasking.c: Mark compiler-generated temps to prevent
4658 Tue Feb 1 17:38:51 1994 Wilfried Moser (fs_moser at rcsw1j)
4660 * lex.l (equal_number): Improve check for number after = in a
4662 * tasking.c (build_tasking_struct): Make field TaskValue
4663 pointer to chill_unsigned_type_node.
4664 * tasking.c (generate_tasking_code_variable): Declare tasking
4665 code variable as chill_unsigned_type_node.
4666 * tasking.c (decl_tasking_code_variable): Declare tasking
4667 code variable as chill_unsigned_type_node.
4669 Mon Jan 31 14:01:58 1994 Bill Cox (bill@rtl.cygnus.com)
4671 * addtest (update_Makefile): No longer build actions - they're
4672 now in pattern rules.
4673 * ch_makedepend: Do the grep first, to avoid processing non
4674 USE_SEIZE_FILE lines.
4675 * configure: Pervasive rewrite to support configuring regression
4678 Mon Jan 31 04:35:53 1994 Michael Tiemann (tiemann@blues.cygnus.com)
4680 * typeck.c (build_chill_slice): Compute EXTENT correctly.
4682 Sun Jan 30 14:33:12 1994 Bill Cox (bill@rtl.cygnus.com)
4684 * tasking.c (build_gen_inst): Return a typed tuple with
4687 Sun Jan 30 12:01:07 1994 Bill Cox (bill@rtl.cygnus.com)
4689 * actions.c (chill_expand_assignment): Recognize LENGTH builtin
4690 in the left hand side, pass it to
4691 expand_varying_length_assignment.
4692 (expand_varying_length_assignment): Clean up bitrot.
4693 * convert.c (convert): Revert most recent change.
4694 * loop.c (maybe_skip_loop): New function, split out of
4695 begin_chill_loop. Add conditional to skip processing an empty
4697 * parse.y (assignaction): Delete code to recognize LENGTH
4699 * typeck.c (validate_varying_array_ref): Correct misleading comment.
4701 Sat Jan 29 10:54:06 1994 Michael Tiemann (tiemann@blues.cygnus.com)
4703 * typeck.c (build_chill_slice): Pass a valid identifier to
4704 `get_unique_identifier'.
4706 * convert.c (convert): Rename LENGTH variable to MAXIDX, and
4707 use correct value for VAR_LENGTH when initializing a varying array.
4709 * decl.c (do_decl): Set DECL_COMMON.
4711 * actions.c (check_range): Temporarily inhibit warnings so the
4712 compiler doesn't warn the user about useless range checks that it
4713 might create. It's far easier for the compiler to figure out that
4714 a range check need not be done than it is for us to try to figure
4715 it out for ourselves.
4717 * expr.c (build_concat_expr): Generalize to handle bitstrings.
4718 (scalar_to_string): New function.
4719 (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
4720 library call (__concatbitstring).
4722 Sat Jan 29 08:43:54 1994 Bill Cox (bill@rtl.cygnus.com)
4724 * ch_makedepend: Fix the 'sed' command so that seize file
4725 name can be delimited by double quotes as well as apostrophes.
4727 Thu Jan 27 17:26:19 1994 Per Bothner (bothner@kalessin.cygnus.com)
4729 * typeck.c (my_build_array_ref): Do constant folding.
4731 Thu Jan 27 16:24:24 1994 Bill Cox (bill@rtl.cygnus.com)
4733 * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
4734 decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
4735 lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
4736 tree.c, typeck.c: New 'Copyright' line for 1994.
4738 Thu Jan 27 14:12:07 1994 Mike Stump (mrs@cygnus.com)
4740 * configure: Don't configure this directory with this configure,
4741 just subdirectories and cleanup.
4742 * Makefile.in (Makefile): Run config.status in parent directory,
4743 if we need rebuilding.
4745 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
4747 * decl.c (bind_sub_modules): Need a parameter on the recursive call.
4750 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
4752 * expr.c (build_concat_expr): Fix SunOS portability problem.
4754 Wed Jan 26 14:57:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
4756 * convert.c (digest_powerset_tuple): New function, used to set
4757 TREE_CONSTANT and TREE_STATIC properly.
4758 (digest_structure_tuple, convert (NULL to instance, non-varying
4759 to varying)): Set TREE_CONSTANT and TREE_STATIC when appropriate.
4760 * expr.c (varying_to_slice): Preserve novelty of slice type.
4761 * expr.c (build_concat_expr): Make sure class of result is
4762 correct (including correct novelty).
4763 * satisfy.c (safe_satisfy_decl): If value of CONST_DECL is
4764 not TREE_CONSTANT, emit an error.
4765 * typeck.c (build_chill_slice): Preserve novelty of result.
4766 * typeck.c (build_chill_slice): Simplify for varying argument
4767 (by using varying_to_slice).
4768 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
4770 * typeck.c (build_chill_cast): Use above new functions to convert
4771 constant expressions.
4772 * typeck.c (copy_novelty), ch-tree.h: New function.
4773 * chill.texi: Update for new constant conversion semantics.
4775 Tue Jan 25 14:00:02 1994 Wilfried Moser (fs_moser at rcsw1j)
4777 * ch-decl.c (init_decl_processing): Add new builtin function
4778 DESCR. Add call to build_chill_descr_type.
4779 * ch-expr.c: Add function build_chill_descr_type, which actually
4780 build the type the DESCR builtin returns.
4781 Add function build_chill_descr, which process the DESCR builtin.
4782 * ch-expr.c (build_chill_length): Add code to enable
4784 * ch-expr.ch (build_generalized_call): Add processing of DESCR
4786 * ch-grant.c: Add code to avoid producing of unnecessary grant
4788 * ch-tree.h: Add enum for builtin function DESCR. Add prototype
4789 for build_chill_descr.
4790 * ch-inout.c (build_chill_io_list_type): Change generation of the
4791 type passed to runtime library according to the new definition.
4792 * ch-inout.c (build_chill_writetext): Change processing of format
4793 string that a character constant is allowed as format string if
4794 compiler gets called with -fold-strings option.
4795 * ch-inout.c (build_chill_writetext): Change processing of
4796 integers in case NEWMODE x = INT.
4797 * ch-inout.c (build_chill_writetext): Remove processing of ranges.
4798 * ch-inout.c (build_chill_writetext): Add processing of
4801 Tue Jan 25 09:07:10 1994 Mike Stump (mrs@cygnus.com)
4803 * Makefile.in (all, OBSTACK): Build interesting things be default,
4804 and make sure we include OBSTACK.
4806 Sun Jan 23 12:35:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4808 * grant.c (decode_constant): Handle RANGE_EXPR.
4809 Simplify handling of CONSTRUCTOR.
4811 * typeck.c (build_chill_slice): Use build_chill_array_ref_1,
4812 not build_chill_array_ref.
4814 Sat Jan 22 16:23:30 1994 Per Bothner (bothner@kalessin.cygnus.com)
4816 * parse.y: Generate a RANGE_EXPR (instead of a confusing
4817 TREE_LIST) to indicate a range in case and tuple lables.
4818 * actions.c (chill_handle_case_label), convert.c (digest_constructor):
4819 Update accordingly to handle these RANGE_EXPRs.
4820 * satisfy.c (satisfy): Don't call finish_chill_binary_op
4823 Fri Jan 21 15:39:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
4825 * expr.c (force_addr_of): New function, to encapsulate passing
4826 by reference a powerset or string to a library function.
4827 * expr.c (build_min_max, build_set_expr): Use force_addr_of.
4828 * expr.c (chill_expand_expr case CONCAT_EXPR): Fix passing of
4829 rtl modes. (Old code fails on 64-bit Alpha.)
4830 * expr.c (build_chill_function_call): Remove bogues check for
4831 READonly variable passed as parameter.
4832 * expr.c (build_set_expr): Merge common code.
4833 * parse.y (string repetition): Fix logic for 2-pass scheme.
4834 * expr.c (finish_chill_binary_op), grant.c (decode_constant),
4835 satisfy.c (satisfy): Handle REPLICATE_EXPR.
4836 * chill.texi: Fix typo.
4838 Mon Jan 17 13:55:48 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4840 * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
4841 tree.c can find ch-tree.h.
4843 Sat Jan 15 15:34:11 1994 Mike Stump (mrs@rtl.cygnus.com)
4845 * configure: Fix problem so that building in a separate directory
4848 Sat Jan 15 09:51:02 1994 Bill Cox (bill@rtl.cygnus.com)
4850 * Makefile.in: Recurse down into runtime to
4851 create its Makefile, and to clean up.
4852 * configure: Recurse into runtime to make its Makefile.
4854 Sat Jan 15 09:15:22 1994 Bill Cox (bill@rtl.cygnus.com)
4856 << This set of CHILL frontend sources is now the
4857 maintainable and master set. Accept no substitutes! >>
4858 * Makefile.in, configure: Completely rewritten
4859 to be invoked by gcc/Makefile.in and
4861 * addtest (update_ChangeLog): Fix insertion
4863 * regression.sh: Add global option to suppress results of
4865 * cpy.sh: Add necessary edits to files as they
4867 * actions.c, ch-tree.def, ch-tree.h, convert.c,
4868 decl.c, except.c, expr.c, grant.c, inout.c,
4869 lang.c, lex.h, lex.l, loop.c, parse.y,
4870 satisfy.c, tasking.c, typeck.c: Latest
4871 versions from the repository.
4873 Fri Jan 14 12:28:39 1994 Bill Cox (bill@rtl.cygnus.com)
4875 * addtest: Fix insertion of line into ChangeLog.
4876 * configure: Add a script.
4877 * Makefile.in: Hack from ../Makefile.in
4878 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
4879 * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
4881 Mon Jan 10 11:38:07 1994 Bill Cox (bill@rtl.cygnus.com)
4883 * build-release: Rewrite for easier tailoring.
4885 Wed Jan 5 08:38:21 1994 Bill Cox (bill@cygnus.com)
4887 * actions.c, convert.c, decl.c, except.c, expr.c,
4888 inout.c, loop.c, parse.y, satisfy.c, typeck.c:
4889 Current versions from devo/gcc.
4891 Wed Dec 29 14:07:10 1993 Bill Cox (bill@rtl.cygnus.com)
4893 * addtest: Don't add comment headers to source or .dat files
4894 if they're already present.
4896 Wed Dec 29 13:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
4898 * mktg_leads: New file.
4899 * regression.sh, regression.awk2: Updated status report scripts.
4900 * addtest: New script to add a test to a directory.
4901 * ch_makedepend: Add full path to ch_decomment.
4902 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
4903 lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
4904 Updated copies of actual sources.
4905 * chill.brochure, chill.texi: Update with current status.
4906 * cpy.sh: Script for updating copies of sources.
4907 * chill.patches: New script for creating a patch release.
4910 Wed Dec 8 09:35:54 1993 Bill Cox (bill@rtl.cygnus.com)
4912 * build-release: Delete lots of unused regression-testing cruft.
4913 * chill.brochure: Initial draft of marketing brochure.
4914 * chill.patches: Preliminary script for building patch sets
4916 * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
4917 building a tcov report on the CHILL compiler.
4919 Sun Nov 21 08:34:33 1993 Bill Cox (bill@rtl.cygnus.com)
4921 * Makefile.in: Adjust gperf rule for names in this directory.
4922 * ch_decomment.l: New file. Ignores CHILL comments.
4923 Executable is used bu ch_makedepend.
4924 * ch_makedepend: New script. Makes CHILL dependencies for
4926 * gperf, hash.h: New files about lexer tokens.
4927 * regression.sh: Delete notes justifying non-summing
4929 * regression.awk2: Report PRMS status when there are
4930 missing test results.
4931 * regression.awk3: Add #! line, so this can be used separately.
4932 * Other files: latest versions copied from devo/gcc.
4934 Sat Oct 30 15:02:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
4936 * chill.texi: Add new node about conversions.
4938 Fri Oct 29 14:17:31 1993 Bill Cox (bill@cygnus.com)
4940 * chill.regress.cron: Change path to executable, enable PR report.
4941 * regression.awk2: Add terminating periods to messages.
4942 * regression.sh: Change path to testsuites. Add disclaimer at end
4943 of report. Print explicit lists of resolved/unresolved PRs.
4945 Thu Oct 28 09:22:20 1993 Bill Cox (bill@rtl.cygnus.com)
4947 * regression.sh: More PR-related status is printed.
4949 Thu Oct 21 19:24:02 1993 Bill Cox (bill@rtl.cygnus.com)
4951 * regression.sh: Simplify the paths, make the source
4952 and test files accessed separately from the executables.
4954 Wed Oct 20 16:35:30 1993 Bill Cox (bill@rtl.cygnus.com)
4956 * regression.sh: Finally fix the file-delete problem.
4958 * build-release: Make more verbose, fix comment.
4960 Mon Oct 18 00:21:24 1993 Bill Cox (bill@cygnus.com)
4962 * regression.sh: Build linker if -U option. Put stderr
4963 into make.log files, too. Also report on Z.200 examples.
4964 * regression.awk3: New script to help build release note.
4966 Fri Oct 15 16:33:54 1993 Bill Cox (bill@cygnus.com)
4968 * regression.sh, regression.prpt: Output PR status only
4969 conditionally. Add command-line flag for CVS updates.
4971 Thu Oct 14 07:53:59 1993 Bill Cox (bill@rtl.cygnus.com)
4973 * regression.sh: Count PRs accurately.
4974 * Makefile.in: New file.
4976 Sat Oct 9 19:46:58 1993 Bill Cox (bill@rtl.cygnus.com)
4978 * regression.awk?: Add program fragments for
4979 report of PRMS/test exceptions.
4980 * regression.sh: Add options and PRMS reports.
4982 Fri Oct 8 06:44:41 1993 Bill Cox (bill@rtl.cygnus.com)
4984 Create chill frontend directory, populate it.
4985 Later, the chill-specific frontend files will be moved here.
4987 * chill: Moved here from gcc directory.
4988 * chill.regress.cron: Add crontab file for regression tests.
4989 * regression.sh: Add regression test control script.
4992 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
4994 Sat Jan 15 14:54:07 1994 Bill Cox (bill@rtl.cygnus.com)
4996 * ch-*.*: All of these files are now moved to the ch subdirectory.
4997 Further update changes should be recorded in the ch/ChangeLog file.
4999 Fri Jan 14 21:09:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
5001 * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5002 ch-satisfy.c, ch-typeck.c: Undo all of initializer-related changes
5003 that Tiemann did earlier this month.
5004 * c-typeck.c (really_start_incremental_init): Save
5005 constructor_elements and (old value of) constructor_stack
5006 on constructor_stack, to allow for nested initializers.
5007 * ch-convert.c (digest_constructor): If we need a varying
5008 array, and have a constructor (for the array elements),
5009 make sure to use convert so that the constructor gets
5010 wrapped in an implicit record constructor.
5011 * ch-decl.c (do_decl): If there is no initializer for a
5012 varying array (or bitstring), create default constructor.
5014 * ch-expr.c (build_chill_lower): Fix thinko for ARRAY_TYPE.
5015 * ch-satisfy.c (safe_satisfy_decl): Make sure that we make
5016 original decl to check if we need to make an rtl.
5018 * ch-typeck.c (build_chill_array_ref_1), ch-tree.h: New function
5019 which does the actual work for build_chill_array_ref (which
5020 now just loops over an argument list).
5021 * ch-actions.c, ch-expr.c, ch-inout.c: Use build_chill_array_ref_1
5022 instead of build_chill_array_ref where appropriate.
5023 * ch-actions.c, ch-expr.c, ch-typeck.c: Make operand 1 of a
5024 VARY_ARRAY_REF is a single index, not an index list.
5026 * ch-grant.c (__init_list): Renamed to _ch_init_list, to
5027 avoid a conflict on the Alpha.
5029 Wed Jan 12 10:19:35 1994 Bill Cox (bill@rtl.cygnus.com)
5031 * ch-lex.l (WS): Add BS, VT and CR to definition of
5033 (convert_number): Allow for uppercase hex digits.
5035 Tue Jan 11 19:43:55 1994 Bill Cox (bill@cygnus.com)
5037 * ch-actions.c (lookup_and_handle_exit): Correct
5038 conditional so error messages are output.
5039 * ch-expr.c (build_chill_addr_expr): Add error message.
5040 * ch-grant.c (chill_finish_module_code): Avoid abort by
5041 giving the init_list constructor a type.
5042 (chill_finish_compile): Delete unused code.
5043 * ch-lex.l: Make most build_init_2 calls from the
5044 permanent obstack, so that enumeration values endure.
5045 * ch-loop.c (build_chill_iterator): Add several error
5048 Tue Jan 11 12:31:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
5050 * ch-expr.c, ch-typeck.c: Rewrite some instances of
5051 'struct ch_class class = chill_expr_class (expr);' to
5052 'struct ch_class class; class = chill_expr_class (expr);'
5053 to work around a bug in /usr/ucb/cc on SunOS4.
5055 Mon Jan 10 18:29:36 1994 Bill Cox (bill@rtl.cygnus.com)
5057 * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5058 * ch-expr.c (expand_packed_set): Add new parameter to pass
5059 set's minimum ordinal value. Fix loop invariant problem.
5060 (fold_set_expr): Change to add new parameter to
5061 expand_packed_set call.
5062 * ch-grant.c: Move extern declaration to ch-tree.h.
5063 * ch-lex.l (convert_bitstring): Also output the bitstring
5065 * ch-tree.h: Add prototype.
5067 Mon Jan 10 11:29:41 1994 Bill Cox (bill@rtl.cygnus.com)
5069 * ch-inout.c: Fix comment.
5070 * ch-tree.h: Add prototype.
5072 Sun Jan 9 18:22:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
5074 * ch-tree.h (chill_expr_class): New prototype.
5075 * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5076 Convert result to correct class.
5077 * ch-expr.c (build_chill_repetition_op): Preserve CH_DERIVED_FLAG.
5078 Also, fix some bugs for bitstrings (with ranges).
5080 (Patches from Tiemann.)
5081 * ch-convert.c (convert1): New function to force TREE_TYPE.
5082 (convert): Use convert1 where appropriate.
5083 * ch-typeck.c: Formatting change.
5084 * ch-parse.y (build_chill_constructor): Fix thinko.
5086 * ch-expr.c (varying_to_slice): If array is not referable,
5087 call save_expr on it, rather than stabilize_reference.
5088 * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5089 Don't force value to value class if mode is not explicitly
5090 specified. Also, make sure convert etc is only done once.
5092 Sat Jan 8 16:37:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
5094 * ch-decl.c (build_chill_function_type): Don't call
5095 build_function_type, because it does hash canonicalization,
5096 which once in a while looses badly.
5097 * tree.c (build_function_type): Remove no-longer-needed test
5098 for doing_chill_thang.
5100 * ch-tree.h (CH_DERIVED_FLAG): New flag.
5101 * ch-tree.h (enum ch_expr_class): Renamed to ch_class_kind.
5102 (struct ch_class): New type, used to represent a Chill
5103 'class' as a first-class value.
5104 (CH_ROOT_RESULTING_MODE): Replaced by CH_ROOT_RESULTING_CLASS.
5105 * ch-typeck.c (chill_expr_class): Change interface to return
5107 (chill_compatible, chill_compatible_classes): Update accordingly.
5108 (chill_root_resulting_mode): Replace by ....
5109 (chill_root_resulting_class): ... new function.
5110 * ch-convert.c (convert_to_class): New function.
5111 * ch-decl.c (layout_enum): Mark enum values with CH_DERIVED_FLAG.
5112 * ch-lex.l (string_or_int): Rename to string_or_char.
5113 * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5114 convert_float, convert_number): Set CH_DERIVED_FLAG for literals.
5115 * ch-expr.c (finish_chill_binary_op): Use convert_to_class.
5116 * ch-satisfy.c (safe_satisfy_decl): For CONST_DECL, make sure
5117 DECL_INITIAL gets set to result of convert.
5118 Also, clear CH_DERIVED_FLAG for SYN value.
5119 * expr.c (store_constructor): If a [power]set is exactly one
5120 word long, use single-word move.
5122 Sat Jan 8 08:38:29 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5124 * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5126 Wed Jan 5 05:18:46 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5128 * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5129 ARRAY_TYPE before assuming so. Also, subtract 1 from LENGTH in
5130 computation of SLICE_END.
5132 * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5134 * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5136 * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5137 for unary set operations).
5139 * ch-expr.c (build_chill_array_expr): Take new argument FORCE. All
5140 callers changed. All callers changed.
5142 * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5143 being NULL_TREE until we've started walking the list of values via
5144 the loop over VARIANTs.
5146 * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5147 treat it as an enum value (and hence constant). Also, only set
5148 TREE_STATIC if the constructor is indeed constant.
5149 * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5150 VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5151 recurse on the DECL_INITIAL.
5153 Wed Jan 5 01:24:50 1994 Bill Cox (bill@cygnus.com)
5155 * Makefile.in: Add CHILL to LANGUAGES variable.
5156 * ch-actions.c (check_range): Call build_binary_op instead of
5157 fold, build to get the common types chosen.
5158 (cond_range_exception, cond_overflow_exception,
5159 cond_type_range_exception): Delete, obsolete.
5160 (chill_convert_for_assignment): Enable this, get particular
5161 about when to generate rangecheck code.
5162 * ch-expr.c (build_chill_function_call): Sketch in where to
5163 perform chill_convert_for_assignment on actual parameters.
5164 (build_chill_addr_expr): Correct compiler warning.
5165 * ch-loop.c (build_chill_iterator): Add runtime check for
5166 negative loop step expression.
5167 * ch-tree.h: Add prototype.
5168 * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5169 A varying array's length field counts the NUMBER of active array
5170 array entries, not the byte-length of them.
5172 Tue Jan 4 17:57:39 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5174 * ch-decl.c (do_decl): Call `suspend_momenary' if the
5175 converted constructor must live on the permanent_obstack.
5176 * ch-convert.c (convert): When building a new SET_TYPE
5177 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5178 * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5180 * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5182 * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5183 on permanent_obstack if necessary.
5185 * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5186 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5188 * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5189 the patch below helped to mess up.
5191 * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5192 (build_chill_addr_expr): Take new argument ERRORMSG.
5193 All callers changed. Also, call `build_chill_addr_expr' where
5194 we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5195 that now calls `mark_addressable' automagically.
5197 * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5198 This is needed because variables may appear in initialization
5199 statements, and their DECL_INITIALs are their values at
5200 initialization time.
5201 * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5202 to handle VAR_DECLs as initializers.
5204 * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5205 they aren't destroyed for later use.
5207 Tue Jan 4 15:25:30 1994 Bill Cox (bill@cygnus.com)
5209 * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5210 parameter for varying_array_ref calculations.
5211 (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5212 * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5213 of bogus error in votrics.
5214 (build_chill_slice_with_length): Change for debug tracability.
5216 Tue Jan 4 02:43:37 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5218 * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5219 handling variant record initializers.
5220 (various places): Change `pop_init_level' calls to match
5221 `push_init_level' wrt implicit variable.
5223 * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5224 `integer_type_node' before using it in comparisons. FIXME: should
5225 this be done in `chill_max_vary_array_index' by default?
5227 Tue Jan 4 00:24:14 1994 Bill Cox (bill@cygnus.com)
5229 * ch-actions.c: Fix comments.
5230 * ch-parse.y: Define caseaction_flag.
5231 (caseaction): Create new caseaction_flag node at the start,
5232 then free it at the end. Check it before the ELSE code.
5233 (expanded_case_label): Check the flag here. If set in either
5234 place, generate a jump to the end of the case.
5235 * ch-typeck.c (build_chill_slice_with_length,
5236 build_chill_slice_with_range): Add lots of compile-time
5237 parameter range checking.
5239 Mon Jan 3 21:49:04 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5241 * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
5242 implicit==0 everywhere, not 1.
5243 (digest_constructor): Ditto.
5245 * ch-actions.c (check_range): Permit limits to be NULL_TREE.
5246 Also, hack out some dead code.
5247 * ch-typeck.c (build_chill_slice): Check varying and non-varying
5248 slice constructs for range failures.
5249 (build_chill_slice_with_range): Reindented, but not changed.
5251 * ch-typeck.c (chill_max_vary_array_index): New function.
5252 * ch-expr.c (chill_expand_expr): Call it.
5254 * ch-decl.c (var_data_id, var_length_id): New variables.
5255 (init_decl_processing): Initialize them. All calls to
5256 get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
5257 by references to these variables. This simplifies the code
5258 w/o obscuring anything.
5260 Mon Jan 3 21:24:44 1994 Bill Cox (bill@cygnus.com)
5262 * c-typeck.c: Fix comment.
5263 * ch-actions.c (chill_expand_assignment): Error assigning to
5264 READONLY location. (PR_3903) Pass filename, linenumber
5265 to setbitpowerset runtime routine.
5266 * ch-decl.c (init_decl_processing): Add filename, linenumber
5267 parameters to setbitpowerset prototype.
5268 * ch-expr.c (build_chill_function_call): Error when passing a
5269 READonly location as a LOC or INOUT parameter.
5270 * ch-parse.y (mode): Correct code marking type as readonly.
5272 Mon Jan 3 19:03:55 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5274 * ch-actions.c (chill_expand_assignment): Disable code that defeats
5275 building varying array references.
5276 * ch-expr.c (chill_expand_expr): Add rangecheck code to
5277 VARY_ARRAY_REF case.
5278 * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
5279 function (in this case, `validate_varying_array_ref') when we're
5280 doing a `build_' operation.
5282 * ch-typeck.c (validate_varying_array_ref): Simplify interface
5283 since INDEX parameter can never meaningfully be an INDEXLIST.
5284 * ch-actions.c (expand_varying_length_assignment): Caller changed.
5286 Mon Jan 3 07:29:45 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5288 * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
5289 * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
5290 if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
5291 (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
5292 call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD). This
5293 can happen when constructors are output incrementally.
5294 * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
5295 * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
5298 Sun Jan 2 08:17:09 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5300 * ch-convert (digest_structure_tuple): Handle SET_TYPEs. Also, call
5301 `convert' so we can handle INSTANCE types (and other anomolies)
5304 * ch-convert.c (digest_structure_tuple): Fixed variant
5305 structure initialization. Also fixed a typo (TYPE_NAME
5306 was being used on a FIELD_DECL instead of DECL_NAME).
5307 * c-typeck.c (initializer_constant_valid_p): Pass missing
5308 ENDTYPE argument on recursive call.
5309 (set_init_field): New function, needed by ch-convert.c change above.
5311 * ch-decl.c (layout_chill_variants): Added a FIXME next to an
5312 almost certain typo.
5314 * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
5315 TREE_CONSTANT for static references.
5316 * ch-except.c (chill_start_on): Change calls to
5317 `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
5318 which has CHILL semantics.
5319 * ch-convert.c (convert): Ditto (albeit in some disabled code).
5321 Sat Jan 1 21:26:43 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5323 * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
5324 TREE_CODE of DECL in case it's altered by actions in the switch.
5326 * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan. CVS log
5327 mentions where to find code that triggers this case.
5329 * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
5332 * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
5333 we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
5334 (digest_constructor): Ditto.
5336 Sat Jan 1 10:29:19 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5338 * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
5339 so that CONSTRUCTORS are properly handled before being used.
5341 * ch-convert.c (chill_start_init): New function. All callers to
5342 `start_init' changed to call this function instead.
5343 (digest_struct_tuple): Defend against initialization machinery
5344 mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
5345 IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots. This is
5346 needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
5347 can be refered to throughout the compilation unit. Also remove an
5348 extraneous call to `process_init_element' erroneously added to the
5349 variant record sub-loop.
5350 (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
5351 CONSTRUCTORS of SET_TYPE.
5352 * ch-parse.y (build_chill_constructor): Refix typo. Also set
5353 TREE_STATIC if at top level.
5355 * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
5356 TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
5357 should have been called.
5359 * ch-convert.c (digest_struct_tuple): Restore code which tracks
5360 field initializations so that the compiler can deduce what variant
5361 initializations to assume.
5363 * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
5364 when we push into a scope that has a DECL with a CONSTRUCTOR as its
5367 * ch-parse.y (build_chill_constructor): Change the name of the
5368 parameter to something more meaningful. Fix typo. Also, handle case
5369 where element is an untyped CONSTRUCTOR.
5371 * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
5372 constant ADDR_EXPRs.
5373 (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
5374 on JBUF_REF (instead of calling `build1' which does not).
5376 * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
5378 * ch-typeck.c (chill_expand_tuple): Deleted.
5379 * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
5380 instead, use initialization machinery for CONSTRUCTORS that
5382 * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
5383 that are created here.
5384 * ch-satisfy (satisfy): Abort in case we would have called
5385 chill_expand_tuple. FIXME: some other code is needed here,
5386 but I don't know what yet.
5388 * ch-parse.y (build_chill_constructor): New function to
5389 propagate TREE_CONSTANT bits to CONSTRUCTORS.
5390 (untyped_expr rule): Use it.
5391 (primval rule): Use it.
5393 * ch-decl.c (do_decl): Call `finish_init'.
5394 * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
5395 this function, make sure the initialization machinery is set up.
5397 * ch-convert.c (digest_structure_tuple, digest_constructor): Add
5400 Fri Dec 31 11:31:01 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5402 * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
5403 as being TREE_CONSTANT. Otherwise it gets bounded by the initializer
5406 * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
5407 * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
5408 rewritten to work with GCC's initialization code. The basic change
5409 was to keep the initializers in sync with the initialization
5410 machinery that `process_init_element' imposes. Both of these
5411 functions now return `void'.
5412 * ch-convert.c (convert): Changed calls to `digest_...' functions.
5414 FIXME: the code handling UNION_TYPE (and variant records) has not
5417 Fri Dec 31 15:32:56 1993 Bill Cox (bill@rtl.cygnus.com)
5419 * ch-lex.l (convert_number): Output the converted number if
5421 * ch-parse.y (signaldef): Set ignore_exprs correctly for a
5424 Fri Dec 31 13:17:48 1993 Bill Cox (bill@cygnus.com)
5426 * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
5427 a RETURN without a value (which cannot have an exception
5428 handler) from a RETURN with a value (which can). Eliminate
5429 some shift/reduce and reduce/reduce conflicts.
5431 Thu Dec 30 17:42:32 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5433 * ch-inout.c (build_chill_writetext): Deal with 2 cases where
5434 types returned from `type_for_size' are not expected. FIXME.
5435 * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
5436 This is required when range checking is enabled.
5438 Thu Dec 30 14:28:25 1993 Bill Cox (bill@rtl.cygnus.com)
5440 DELAY CASE works now.
5441 * ch-decl.c (init_decl_processing): Move rest of tasking-related
5442 initialization into tasking_init().
5443 * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
5444 (optsetprio): New non-terminal.
5445 * ch-tasking.c (get_task_name): Delete, obsolete.
5446 (build_instance_type): build pointer to instance type also.
5447 (build_receive_case_start): Cleanup per -Wall messages.
5448 (build_receive_case_label): Move between start and end functions.
5449 (build_delay_case_start): Pass SET name and priority also.
5450 Generally update to correct functioning.
5451 (build_delay_case_label): Move between start and end fucntions,
5452 correct its functioning.
5453 (build_delay_case_end): Correct the code.
5454 (tasking_init): Lots of tasking-related code moved here from
5455 init_decl_processing.
5456 * ch-tree.h: Update, add prototypes.
5458 Wed Dec 29 10:13:10 1993 Bill Cox (bill@rtl.cygnus.com)
5460 * ch-expr.c (build_chill_indirect_ref): Revert change which
5461 failed full regression testing.
5462 * ch-lex.l (name_type_signal): Add debug output.
5463 * ch-parse.y (structured_variable): Add a debug variable.
5465 Wed Dec 29 02:05:51 1993 Bill Cox (bill@rtl.cygnus.com)
5467 * ch-decl.c (get_next_decl): Revert change which failed full
5470 Tue Dec 28 18:20:14 1993 Bill Cox (bill@rtl.cygnus.com)
5472 DELAY actions work now.
5473 * ch-decl.c: Correct spelling in comments.
5474 (get_next_decl): NULL out the decl's TREE_CHAIN before returning
5475 it, to prevent accidental access to the remembered_decls.
5476 (init_decl_processing): Add wait_event to runtime functions.
5477 * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
5478 becoming a seg fault.
5479 * ch-grant.c: Correct a comment.
5480 * ch-loop.c: Delete/correct comments.
5481 * ch-parse.y (delaycaseaction): Add push/poplevel calls. Turn 'sorry'
5482 into rough draft of actual code.
5483 (delayaction): Don't make a new scope here, use get_unique_identifier
5485 (locdec): process event decls here, too.
5486 (mode): Add code to forbid READonly EVENT and BUFFER decls. Delete
5487 code which required EVENTs and BUFFERs to be declared at global scope.
5488 (simple_name_string): Add an EVENTNAME.
5489 * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
5490 becoming a seg fault.
5491 * ch-tasking.c (tasking_setup): Add the event queue's max. length
5492 as the 'entry_point' parameter in the list.
5493 (build_receive_case_start, build_receive_case_label): Defer
5494 calling runtime routine until we know whether we have a signal
5495 or a buffer to wait for.
5496 (build_delay_case_start, build_delay_case_end,
5497 build_delay_case_label, build_delay_action,
5498 process_event_decls): Added functions.
5499 * ch-typeck.c (chill_similar): Allow all integers of differing
5500 precisions to be similar.
5502 Thu Dec 23 18:00:40 1993 Bill Cox (bill@rtl.cygnus.com)
5504 * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
5505 options. Delete C-specific defines. Disable piping from
5506 pre-processor to cc1chill (even if -pipe is specified), since cc1chill
5507 rewinds its input for its second pass. Piping still works
5508 from cc1chill to as.
5510 Thu Dec 23 12:31:55 1993 Bill Cox (bill@rtl.cygnus.com)
5512 * ch-tasking.c (decl_tasking_code_variable): Assure that the
5513 tasking_code variable is allocated on the permanent obstack.
5514 (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
5515 queue length (passed as the entry_point parameter).
5516 Other changes to variable names to increase 'self-documentation'
5517 the only kind GNU CHILL will get, for a while..
5519 Wed Dec 22 10:46:31 1993 Bill Cox (bill@rtl.cygnus.com)
5521 * ch-decl.c (do_seize): Delete - it's unused. Fix comments.
5522 * ch-loop.c (build_chill_iterator): Convert BY expression
5523 so loop involving a SET works. Additional errors generated
5524 for numbered SET expression as start or end expression.
5525 * ch-tree.h: Prototypes for future DELAY functions.
5526 * ch-typeck.c: Standard indentation.
5528 Tue Dec 21 15:30:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
5530 * ch-actions.c (build_cause_exception): New function.
5531 (expand_cause_exception): Re-write to use build_cause_exception.
5532 (check_expression, check_range): New functions.
5533 (chill_convert_for_assignment): New function.
5534 * ch-expr.c (build_chill_pred_or_succ): New function.
5535 (build_chill_succ, build_chill_pred): Removed.
5536 (build_generalized_call): Use build_chill_pred_or_succ.
5537 * ch-lex.h, ch-lex.l (init_lex): Add RID_OVERFLOW and RID_RANGEFAIL.
5538 * ch-lex.l (init_lex): Use new macro to make more terse.
5539 * ch-typeck.c (chill_equivalent): New function.
5540 Also check that ranges have the same bounds.
5541 * ch-typeck.c (my_build_array_ref): Add optional range-checking.
5542 * ch-typeck.c (chill_location): Handle COMPOUND_EXPR properly.
5543 Return 2 if also a referable.
5544 * ch-typeck.c (chill_referable): Re-define to use chill_location.
5545 * ch-tree.h (CH_EQUIVALENT): Re-defined to use chill_equivalent.
5547 * dbxout.c (dbxout_type): Output the type attribute "@S;" to
5548 distinguish a string from a char array, and to distinguish a
5549 bitstring from regulat (power)set. (Needed for Chill.)
5550 * dbxout.c (dbxout_type): Only check for baseclasses in
5551 type.binfo is a vector. (It is used in Chill for tagged unions.)
5553 Fri Dec 17 09:56:07 1993 Bill Cox (bill@rtl.cygnus.com)
5555 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
5556 ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
5557 ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
5559 * ch-actions.c (chill_expand_assignment): Error if assigning
5560 a value to a BUFFER or EVENT variable.
5561 * ch-expr.c (invalid_left_operand): Delete, unused.
5562 * ch-grant.c (tasking_setup): Call build_enum_tables.
5563 * ch-inout.c (get_final_type_and_range, build_enum_tables,):
5565 (build_chill_writetext): Lots of changes to support other
5566 basic CHILL data types.
5567 * ch-loop.c (build_chill_iterator): Lots of new code to check
5568 the expressions in a STEP loop.
5569 * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
5570 names in receivecasealternative. Generate error messages
5571 if they're mixed in the same receive case.
5572 (process_buffer_decl): Renamed from build_buffer_decl.
5573 * ch-tree.h: Fix prototypes.
5574 * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
5575 correctly. Thanks Per!
5577 Wed Dec 15 15:05:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
5579 * ch-decl.c (push_scope_decls): Re-arrange some more, so
5580 that normal SEIZES (without ALL) are handled before SEIZE ALL.
5582 Wed Dec 15 13:01:22 1993 Bill Cox (bill@rtl.cygnus.com)
5584 * ch-loop.c (declare_temps): Calculate end-of-array pointer
5585 using correct type (NOT chill_integer_type).
5586 (begin_chill_loop): Build loop-bypass expression in the
5587 type of the start expression, not in the unsigned type.
5589 Tue Dec 14 15:41:32 1993 Per Bothner (bothner@kalessin.cygnus.com)
5591 * ch-decl.c (push_scope_decls): Re-arrange so that normal
5592 (non-seize) declarations are proclaim_decl'd *before* we
5593 handle the ALIAS_DECLs for seizes. The advantage is
5594 that we can now test for (an approximation) to the
5595 'seizeable' concept, thus avoiding duplicate definitions
5596 when a module has both GRANTs and SEIZE ALL.
5598 * ch-expr.c (build_chill_arrow_expr): No longer re-write
5599 addr-of-conversion to pointer-conversion-of-addr.
5600 * ch-expr.c (build_chill_addr_expr): Re-write to just use
5601 build_chill_arrow_expr.
5603 Mon Dec 13 16:44:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
5605 * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr): Don't re-write
5607 * ch-tree.h (chill_root_resulting_mode): Fix typo (missing '_').
5609 * ch-expr.c (finish_chill_binary_op): Use CH_ROOT_RESULTING_MODE
5610 macro (which works on expressions), rather than CH_RESULTING_MODE
5611 (which works on modes, and isn't quite correct).
5612 * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE): New macro.
5613 * ch-typeck.c (chill_read_compatible, chill_compatible):
5614 Use the new macro, which handles NEWMODEs of PTR correctly.
5615 * ch-typeck.c (chill_similar): Return 1 rather than 0 for
5616 dynamic-length array (and string) types (e.g. slices).
5617 * ch-typeck.c (chill_root_mode): If the mode has a Novelty,
5618 just return it as is. (This is still not 100% correct for
5619 NEWMODE of RANGEs, but is close enough.)
5621 Mon Dec 13 16:27:06 1993 Bill Cox (bill@rtl.cygnus.com)
5623 * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
5624 build_buffer_decl, which then seg faults.
5625 * ch-tasking.c (build_buffer_descriptor): Move declaration
5626 of bufdecl closer to its use.
5628 Mon Dec 13 14:57:55 1993 Bill Cox (bill@rtl.cygnus.com)
5630 * ch-actions.c (chill_expand_result): Use expand_expr_stmt
5631 to avoid C-specific conversions.
5632 * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
5633 * ch-parse.y (sendaction): Delete unused statement, use the 'name'
5635 * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
5637 (build_buffer_decl): Save the tasking_code_variable's decl
5638 in the buffer decl tree.
5639 (build_buffer_descriptor): Real, working version.
5641 Mon Dec 13 03:13:36 1993 Bill Cox (bill@rtl.cygnus.com)
5643 * ch-decl.c (print_lang_identifier): Delete code
5644 to print buffer size - it's no longer kept here.
5645 * ch-parse.y (expand_send_buffer): Renamed from
5647 (locdec): Enable building of a buffer decl.
5648 (optresultspec, optresultattr): Add optional
5649 result attributes such as LOC. Semantics
5651 * ch-tasking.c (expand_send_buffer): Renamed.
5652 * ch-tree.h (build_send_buffer): Renamed.
5653 * ch-typeck.c (chill_expr_class): Do more complete,
5654 job of classifying expressions. Thanks, Per.
5656 Mon Dec 13 00:59:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
5658 * ch-typeck.c (chill_expr_class): Return CH_DERIVED_CLASS
5659 for bitstring constants.
5660 * ch-typeck.c (chill_novelty): The novelty of an (unnamed)
5661 range mode is that of its parent mode; the novelty of READ M
5664 Sat Dec 11 15:14:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
5666 * ch-expr.c (varying_to_slice): Call stabilize_reference
5667 rather than save_expr.
5668 * ch-typeck.c (build_chill_slice): Don't emit warning
5669 if array is a SAVE_EXPR (it is effectively referable).
5670 * ch-typeck.c (chill_root_resulting_mode): Handle
5671 correctly the case that one operand is DERIVED and one is VALUE.
5673 Fri Dec 10 10:00:42 1993 Bill Cox (bill@rtl.cygnus.com)
5675 * ch-grant.c (decode_decl): Restore code mistakenly deleted.
5676 Move instance-handling code to raw_decode_mode.
5677 * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
5678 Add rough draft of DELAY statement handling.
5679 * ch-tasking.c (build_event_type): New function.
5680 * ch-tree.h (build_event_type): Add prototype.
5681 * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
5683 Wed Dec 8 18:02:26 1993 Bill Cox (bill@rtl.cygnus.com)
5685 Parse and grant BUFFER modes.
5686 * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
5687 Moved from decode_decl.
5688 * ch-parse.y: Fix several sorry() messages.
5689 * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
5692 Wed Dec 8 12:59:54 1993 Per Bothner (bothner@kalessin.cygnus.com)
5694 * ch-actions.c (chill_expand_assignment): In a multiple
5695 assignment, check that all the targets are equivalent.
5697 * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT): New function
5698 and macro to (partially) implement the relation l-equivalent.
5699 * ch-typeck.c (chill_read_compatible): Implement at least
5700 initial check of read-only-ness.
5701 * ch-typeck.c (build_readonly_type): Fix thinkos.
5703 Wed Dec 8 09:11:46 1993 Bill Cox (bill@rtl.cygnus.com)
5705 * ch-decl.c (pop_module): Only warn about duplicate grant
5706 statements if they inhabit different files, by examining
5707 inode numbers. Only report compatibility problems in pass 1.
5708 * ch-lex.l (chill_same_grant_file): New function to support the
5711 Tue Dec 7 17:10:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
5713 * ch-decl.c (start_chill_function): Handle attributes in pass 1,
5714 rather than in pass 2. (It seems to make more sense that way.)
5715 * ch-parse.y (procedureattr): Build attribute list if pass != 2.
5717 * ch-parse.y (mode): Don't call build_readonly_type in pass 2.
5719 Mon Dec 6 14:35:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
5721 This implements NOVELTY and READONLY checking.
5722 * ch-tree.def: Added comment about use of LANG_TYPE.
5723 * ch-typeck.c (build_readonly_type, smash_dummy_type): New functions.
5724 * ch-tree.h: New prototypes.
5725 * ch-decl.c (push_modedef): If newmode, lazily "copy" the given mode
5726 immediately (even if it's just a type name), using a LANG_TYPE.
5727 * ch-parse.y (mode): Call build_readonly_type to handle READ.
5728 * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
5729 ch-satisfy.c (satisfy): Handle a LANG_TYPE.
5730 * ch-decl.c: Remove chill_modes_equiv and other unused junk.
5731 * ch-satisfy.c (safe_satisfy_decl/CONST_DECL): Better
5732 mode compatibility checking for SYN declarations.
5734 * ch-typeck.c (chill_similar): Be more general when checking set
5735 modes for similarity - specifically support calling chill_similar
5736 BEFORE the modes have been satisfied (needed by proclaim_decl).
5737 * ch-decl.c (proclaim_decl): Allow duplicate definitions
5738 of set elements of similar set modes.
5740 * ch-parse.y (caseaction): Call language-independent
5741 expand_start_case rather than c_expand_start_case (which
5742 doesn't allow chars or booleans).
5744 Sat Dec 4 22:16:19 1993 Bill Cox (bill@rtl.cygnus.com)
5746 * ch-actions.c (cond_range_exception,
5747 cond_type_range_exception): Check command-line flag before
5748 generating code. Fix comments.
5749 * ch-expr.c (build_chill_num): Add generation of OVERFLOW
5750 code, commented out.
5751 * ch-loop.c (build_chill_iterator): Comment out
5752 exception code generation.
5753 * ch-parse.y: Delete quasi_signal flag, use
5754 current_module->is_spec_module instead.
5755 * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
5756 Delete quasi_decl flag. Look at current_module
5758 * ch-tree.h: Take quasi_decl flag out of buffer
5760 * ch-typeck.c (valid_array_index, chill_similar):
5761 Comment out runtime range checking for now.
5762 * expr.c (store_constructor): Fix word-size set problem.
5763 * varasm.c (emit_set_data): Fix word-size set problem.
5765 Wed Dec 1 19:08:12 1993 Bill Cox (bill@rtl.cygnus.com)
5767 * ch-actions.c: Delete unused prototype for build_compound_expr.
5768 * ch-loop.c (begin_chill_loop): Convert operands of the conditional
5769 expression to lp->iter_type before expanding it. Prevents an abort
5770 deep in expand_expr and friends.
5772 Wed Dec 1 17:00:44 1993 Bill Cox (bill@rtl.cygnus.com)
5774 * ch-actions.c (chill_expand_assignment): Comment out strange
5775 test and its error message.
5776 * ch-loop.c (begin_chill_loop): Correct call to generate conditional
5777 jump around the loop.
5778 * ch-typeck.c (build_chill_slice): Call correct temporary generator.
5780 Wed Dec 1 14:19:51 1993 Bill Cox (bill@rtl.cygnus.com)
5782 * ch-actions.c (cond_exception): Clarify that it generates
5783 an exception if the given expression is TRUE. Make it so, Number One.
5784 * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
5785 (print_lang_type): Print max queue size.
5786 Add casts to DECL_TASKING_CODE_DECL references. Fixes a
5787 portability problem.
5788 (init_decl_processing): Add filename and linenumber arameters
5789 to tasking and memory-allocate runtime prototypes.
5790 * ch-expr.c (finish_chill_binary_op): Check for division
5791 by a constant zero. Replace build_temporary_variable
5792 calls with decl_temp1 calls, to decouple from ch-loop.c.
5793 (build_chill_succ, build_chill_pred): Sketch code to generate
5794 exceptions. Add error check for numbered set.
5795 (build_generalized-call): Correct call for return_memory.
5796 Standardize whitespace before left parens.
5797 * ch-grant.c: Use new macro for checking for BUFFER mode.
5798 * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
5800 * ch-loop.c (build_temporary_variable): Make static, unavailable
5802 (declare_temps): Make user's variable for him/her, in the
5803 true Z.200 case, where it hasn't previously been declared.
5804 (begin_chill_loop): simplify control flow a bit.
5805 * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
5806 (rccase_label): Delete bogus error checks. Rough draft of
5807 BUFFER-related code.
5808 (assertaction): Remove logical negation - it's now in cond_exception.
5809 (locdec): Sketch of buffer-related code.
5810 (non_array_mode): Add EVENT and BUFFER modes here. Add setting of
5811 set-numbered flag for pred and succ functions.
5812 (optqueuesize): Default to integer_zero_node.
5813 (simple_name_string): Add BUFFERNAME.
5814 * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
5815 (build_chill_start_process, expand_send_signal,
5816 build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
5817 to tasking-related runtime calls. Sketches of BUFFER mode
5819 * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
5820 macro, for portability to non-gcc compilers. Add prototypes
5821 for buffer-related functions.
5822 * ch-typeck.c: Replace build_temporary_variable calls with
5823 decl_temp1 calls, to decouple from ch-loop.c.
5824 (chill_similar): Add tests for BUFFER and EVENT modes.
5826 Wed Dec 1 14:05:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
5828 * ch-actions.c (malloc prototype): Remove; can cause conflicts.
5830 Wed Dec 1 09:49:58 1993 Bill Cox (bill@rtl.cygnus.com)
5832 * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
5834 Tue Nov 30 14:05:23 1993 Bill Cox (bill@rtl.cygnus.com)
5836 * ch-decl.c (init_decl_processing): Add filename, line number
5837 parameters to tasking-related runtime routines.
5838 * ch-grant.c (decode_decl): Check for BUFFER mode differently.
5839 * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
5841 (quasi_locdec): Set/reset quasi_decl flag.
5842 * ch-tasking.c (build_start_process, expand_send_signal,
5843 build_receive_case_start, build_send_buffer): Add filename. linenumber to
5844 (build_buffer_decl, build_buffer-type): New rough-draft functions.
5845 generated runtime routine call.
5846 * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
5847 to mark a synchronization mode. Update the prototypes.
5848 * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
5851 Tue Nov 30 09:51:47 1993 Doug Evans (dje@canuck.cygnus.com)
5853 * cccp.c (main): Add missing chill sanitization.
5855 Sun Nov 28 15:50:10 1993 Bill Cox (bill@rtl.cygnus.com)
5857 * ch-loop.c (initialize_iter_var): Build count expression
5859 (bottom_loop_end_check): Call emit_line_note.
5860 (end_chill_loop): Delete emit_line_note call.
5861 * ch-parse.y (doaction): Move DO keyword
5862 after end_chill_loop call.
5864 Wed Nov 24 08:49:07 1993 Bill Cox (bill@rtl.cygnus.com)
5866 * c-typeck.c (c_expand_start_case): Back out previous
5869 Tue Nov 23 12:33:50 1993 Bill Cox (bill@rtl.cygnus.com)
5871 * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
5872 type as a CASE label.
5874 Tue Nov 23 11:37:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
5876 * ch-decl.c (grok_chill_variantdefs): Use NULL as the name
5877 of variant fields (not __CASE or anything based on it).
5878 * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
5879 Don't check for field name __CASE.
5881 Tue Nov 23 09:37:54 1993 Bill Cox (bill@rtl.cygnus.com)
5883 * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
5884 name for the FIELD_DECL.
5885 * ch-parse.y (optstartset): More error tests.
5886 * ch-tasking.c (make_process_struct): Only report error in pass 1.
5887 (build_start_process): Remove bogus restriction, allowing
5888 an INSTANCE expression as the optset parameter.
5890 Mon Nov 22 17:56:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
5892 * ch-tree.h (expand_function_end): Now is takes parameters, not 2.
5893 * ch-decl.c (finish_chill_function): Add 3rd parameter to
5894 call of expand_function_end.
5896 * ch-expr.c (chill_expand_expr): For set and strings ops,
5897 if target is in a register, use a stack temporary (since we must
5898 take its address). (Similar to Oct 29 change for store_constructor.)
5899 * ch-expr.c (resolve_component_ref): Fix variant field lookups.
5901 Mon Nov 22 14:23:13 1993 Bill Cox (bill@rtl.cygnus.com)
5903 * ch-expr.c (chill_expand_expr): Assure that emit_library_call
5904 parameter 1 and its mode are always in sync.
5905 (build_chill_pred, build_chill_succ): Allow pred/succ of a
5907 * ch-loop.c (chill_unsigned_type): New function, used instead of
5908 unsigned-type, since it understands the chill_integer_type.
5909 (decl_iteration_var): Delete, use build_temporary_variable
5911 (declare_temps): Use lp->iter_type for the temp evaluations.
5912 (initialize_iter_var): More careful calculation, to handle
5913 MININT to MAXINT loops w/o overflow/underflow.
5914 (begin_chill_loop): Use the original start/end expressions
5915 for the loop bypass test.
5917 Mon Nov 22 14:02:06 1993 Per Bothner (bothner@kalessin.cygnus.com)
5919 * ch-typeck.c (build_chill_slice): If the argument is
5920 is constant, use a read-only static variant, as the
5921 existing algorithm assumes addressability.
5922 * ch-typeck.c (chill_compatible): De-reference reference types.
5923 * ch-typeck.c (layout_chill_range_type): Set TREE_UNSIGNED.
5925 Sat Nov 20 20:17:15 1993 Bill Cox (bill@rtl.cygnus.com)
5927 * ch-decl.c (init_decl_processing): Add filename
5928 and linenumber to allocate, free memory calls.
5929 * ch-expr.c (build_allocate_memory_call,
5930 (build_allocate_global_memory_call): Add
5931 filename, linenumber to call.
5932 * ch-loop.c: Complete rewrite for maintainability.
5934 Sat Nov 20 17:30:05 1993 Per Bothner (bothner@kalessin.cygnus.com)
5936 * ch-except.c: Make it so that (by default at least) the
5937 code to push/pop the __exceptionStack is done using library
5938 functions __ch_link_handler and __ch_unlink_handler. This
5939 provides better flexibility (for e.g. multi-threading).
5941 * ch-decl.c (layout_chill_variants): Allow (useless) selectors
5942 even for tag-less variants.
5944 Fri Nov 19 14:32:20 1993 Bill Cox (bill@rtl.cygnus.com)
5946 * ch-decl.c (init_decl_processing): Add memmove builtin
5947 function definition.
5948 * ch-actions.c (chill_expand_array_assignment): Use memmove
5949 call to copy an array or slice across the assignment.
5951 Wed Nov 17 18:23:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
5953 * ch-satisfy.c (satisfy): If a CONTRUCTOR already has a
5954 TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
5955 to force expansion (processing of the elements).
5956 * ch-grant.c (decode_constant): If a tuple (CONTRUCTOR) has
5957 a mode, write it out.
5958 * ch-decl.c (init_decl_processing): Add some missing inits.
5960 Wed Nov 17 17:13:20 1993 Bill Cox (bill@rtl.cygnus.com)
5962 * ch-loop.c: Fix unterminated strings in design comments.
5963 Add enumeration to the iterator structure for type of loop.
5966 Wed Nov 17 16:40:05 1993 Bill Cox (bill@rtl.cygnus.com)
5968 * ch-decl.c (init_decl_processing): Add long parameters to lots
5969 of powerset runtime routines.
5970 * ch-expr.c (chill_expand_expr): Change parameters to powerset
5971 runtimes so bitlengths are long unsigned ints.
5972 * ch-inout.c (build_chill_writetext): Add filename and linenumber
5973 as runtime parameters, for better error messages.
5974 * ch-loop.c: general pre-rewrite cleanup.
5975 * expr.c (store_constructor): Rewrite set interface to
5976 setpowersetbits for long bitnumbers, rather than shorts.
5978 Tue Nov 16 13:41:12 1993 Bill Cox (bill@rtl.cygnus.com)
5980 * ch-expr.c (build_chill_function_call): Stop generating empty
5981 copyback statements, which lead to a seg fault.
5983 Tue Nov 16 12:20:17 1993 Per Bothner (bothner@cygnus.com)
5985 * ch-satisfy.c (satisfy): If satisfying a type whose
5986 TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
5987 * ch-actions.c (build_exception_variant): Remove some crud.
5988 * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
5989 Remove unused first argument.
5990 * ch-decl.c (start_chill_function): Call build_exception_variant
5991 in pass 1, not in pass 2.
5993 Tue Nov 16 11:10:03 1993 Bill Cox (bill@rtl.cygnus.com)
5995 * ch-decl.c (shadow_record_fields): Call new function
5996 build_chill_arrow_expr, which returns a ptr-to-a-type.
5997 * ch-expr.c (build_chill_arrow_expr): New function, works like
5998 build_chill_addr_expr used to do, returning a typed ptr.
5999 (build_chill_addr_expr): Now returns unbound ref - analogous
6001 * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6002 (operand6): Call build_chill_arrow_expr. Reindent a bit.
6003 * ch-tree.h (build_chill_arrow_expr): New prototype.
6005 Mon Nov 15 16:38:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
6007 * stor-layout.c (layout_type): If a SET_TYPE needs more than
6008 INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6010 * ch-decl.c (start_chill_function): Set DECL_CONTEXT of params.
6012 Mon Nov 15 14:49:17 1993 Bill Cox (bill@rtl.cygnus.com)
6014 * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6015 build_function_call, etc.) to tasking_init.
6016 * ch-gperf, ch-hash.h: Add ASM keyword.
6017 * ch-parse.y: Add ASM statement rules.
6018 (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6019 * ch-tasking.c: Move tasking stuff here.
6021 Sun Nov 14 15:50:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6023 * ch-parse.y (mode2): Split into array_mode and non_array_mode
6024 to resolve layout ambiguity.
6025 * ch-parse.y (checked_name): Remove. Use name_string instead.
6026 * ch-parse.y (variantdef): Don't crash if no tag fields.
6027 * ch-typeck.c (build_chill_array_type): If varying_p,
6028 actually do build_varying_struct here (rather than in ch-parse.y).
6030 Fri Nov 12 15:37:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
6032 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6033 static names. (Let make_decl_rtl generate a unique name.)
6035 Sun Nov 14 13:15:26 1993 Bill Cox (bill@rtl.cygnus.com)
6037 * ch-expr.c (build_chill_lower, cuild_chill_upper):
6038 Rewrite for modes, values, etc.
6039 * ch-inout.c (build_chill_writetext): Add ability
6040 to write out characters.
6041 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6042 static names. (Let make_decl_rtl generate a unique name.)
6043 * varasm.c (unpack_set_constructor): Subtract
6044 lower domain value from a bit's index value,
6045 to match the runtime and allow powersets
6046 with negative lower bounds.
6048 Fri Nov 12 14:00:48 1993 Bill Cox (bill@rtl.cygnus.com)
6050 * ch-inout.c (build_chill_writetext): Save reserved words in
6051 uppercase if -fspecial_UC was specified.
6053 Fri Nov 12 13:27:12 1993 Per Bothner (bothner@rtl.cygnus.com)
6055 * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6056 string concatenation by treating varying strings as slices.
6057 (varying_to_slice): New function.
6058 * ch-typeck.c (build_chill_slice): Changed to support the above.
6060 Fri Nov 12 12:07:28 1993 Bill Cox (bill@rtl.cygnus.com)
6062 * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6063 * ch-expr.c (build_generalized_call): Start module before a
6064 writetext action, so its variables are inside the module-level
6066 * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6067 for enumeration loop on a varying array.
6069 Thu Nov 11 07:49:53 1993 Bill Cox (bill@rtl.cygnus.com)
6071 * cccp.c (main): Disable trigraphs for CHILL.
6072 * ch-decl.c (grok_chill_fixedfields): Add special_UC
6073 to conditional to determine case of reserved words.
6074 Make PACK/UNPACK warning more specific.
6075 * ch-expr.c (build_generalized_call): Enable recognition
6076 of WRITETEXT call here.
6077 * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6078 word. It's only predefined.
6079 * ch-inout.c: Add special_UC to conditionals
6080 to determine case of reserved words.
6081 (build_chill_writetext): Change for call from
6082 build_generalized_call. Add code to format
6084 * ch-lang.c (lang_decode_option): Add special_UC and
6085 special_LC flags and logic to interlock with
6087 * ch-lex.l: Add special_UC to conditionals
6088 to determine case of reserved words.
6089 * ch-parse.y: Delete WRITETEXT as reserved word.
6090 * ch-tasking.c: Add special_UC to conditionals
6091 to determine case of reserved words.
6092 (build_instance_type): Make components of INSTANCE
6093 unsigned 16-bit integers.
6094 * ch-tree.h (build_chill_writetext): Fix prototype.
6095 * ch-typeck.c (build_chill_array_type): Make PACK
6096 /UNPACK warning more specific.
6097 * toplev.c (lang_options): Add -fspecial_LC
6098 and -fspecial_UC flags.
6100 Wed Nov 10 02:29:53 1993 Bill Cox (bill@rtl.cygnus.com)
6102 * Makefile.in: Move ch-hash.h from ch-lex.o
6103 rule to ch-lex.c rule, so flex is rerun.
6104 * ch-actions.c (chill_expand_assignment): Error if
6105 user tries to assign to a LHS function.
6106 * ch-decl.c (grok_chill_fixedfields): Use of PACK
6107 /UNPACK is only a warning.
6108 (init_decl_processing): Add ADDR as a builtin function.
6109 * ch-expr.c (build_generalized_call): Add ADDR
6110 as a builtin function.
6111 (build_chill_addr_expr): Sanity check parameters.
6112 * ch-gperf: Remove ADDR as a reserved word,
6114 * ch-hash.h: gperf'd version of the above.
6115 * ch-inout.c (chill_stdio_p): Recognize upper/lower
6117 * ch-lex.l: Make ignore-case work. Downcase
6118 token before checking for reserved words.
6119 * ch-parse.y: Delete ADDR as a reserved word.
6120 (mode2, optlayout): Allow PACK/UNPACK specifier.
6121 (call): Use build_generalized_call for
6122 primval LPRN modename RPRN.
6123 (primval): Delete ADDR reference. It's now only
6124 predefined, not reserved.
6125 * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6126 * ch-typeck.c (build_chill_array_type): Just
6127 a warning for PACK/UNPACK usage.
6128 * toplev.c: Add -fignore-case and -fno-ignore-case.
6130 Tue Nov 9 15:07:02 1993 Bill Cox (bill@rtl.cygnus.com)
6132 * ch-actions.c: Reindent for readability.
6133 * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6134 a conversion to INSTANCE.
6135 * ch-decl.c: Change special_UC to ignore_case everywhere.
6136 (init_decl_processing): Add builtin_function calls for lots of
6137 predefined functions.
6138 * ch-expr.c: Change builtin function handlers back to accepting
6139 args, not a treelist.
6140 (route_to_predefined_function): Delete it and its call.
6141 (build_generalized_call): Add lots of builtin functions.
6142 * ch-gperf (backwards, duration, inttime, null): Delete them.
6143 * ch-hash.h: New version.
6144 * ch-inout.c: Change special_UC to ignore_case everywhere.
6145 * ch-lang.c: Delete special_UC flag.
6146 * ch-lex.l: Change special_UC to ignore_case everywhere.
6147 * ch-loop.c (high_domain_value, low_domain_value): Change
6148 interfaces to build_chill_upper and built_chill_lower.
6149 * ch-parse.y: Delete lots of stuff which should only be predefined.
6150 * ch-tasking.c: Change special_UC to ignore_case everywhere.
6151 Change builtin function handlers back to accepting args,
6153 * ch-tree.h: Add lots of builtin functions to the enumerator.
6155 Mon Nov 8 18:08:27 1993 Bill Cox (bill@rtl.cygnus.com)
6157 * ch-tasking.c (tasking_init): Disable last-minute change for now.
6159 Mon Nov 8 17:30:22 1993 Bill Cox (bill@rtl.cygnus.com)
6161 * Makefile.in: New commands to build ch-hash.h. Add ch-lex.h to
6162 dependencies where it's used.
6163 * ch-decl.c (init_decl_processing): Build predefined constants
6164 for TRUE, FALSE and NULL. Add declaration for abs builtin
6166 (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6167 stuff for builtin constant like TRUE.
6168 * ch-expr.c (route_to_predefined_function): Add a bunch of
6169 predefined functions to the list.
6170 * ch-gperf: Define the list of reserved words, minus the predefined
6171 words, using the special_UC flag. Remove NULL, TRUE, FALSE -
6172 these are only predefined, not reserved.
6173 * ch-hash.h: Check this into repository, even though it's derived
6174 from ch-gperf, for those users who don't have gperf.
6175 * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6176 to refer to the IO types. Standardize the indentation.
6177 * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6178 * ch-lex.l: Total rewrite of reserved-word recognition, using
6179 the ch-hash.h lookup routines.
6180 * ch-parse.y: Delete a bunch of unused rules for predefined
6181 procedures and their parameters.
6182 * ch-tasking.c (tasking_init): Build predefined functions
6183 for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE. Not
6184 complete yet. Change interface to builtin handlers to accept
6185 just an expression list.
6187 Wed Nov 3 18:07:08 1993 Bill Cox (bill@rtl.cygnus.com)
6189 * Makefile.in: Debug, activate rule to make CHILL hash table.
6190 * ch-actions.c: Compress parameter type lists per standard.
6191 * ch-decl.c: Correct spelling in comment, compress parameter lists.
6192 (init_decl_processing): Check special_UC flag to build builtin
6193 function declarations.
6194 * ch-expr.c (route_to_predefined_function): Check for upper OR
6195 lowercase function names.
6196 * ch-gperf: Update the list of keywords.
6197 * ch-inout.c (build_chill_io_list): Check for special_UC flag
6198 to build I/O list type. Compress parameter lists.
6199 (chill_stdio_p): Check for special_UC flag in recognizing
6201 * ch-lang.c (lang_decode_option): Add command-line options
6202 for upper-case keywords and user labels.
6203 * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6204 if special_UC flag is set.
6205 (downcase, getlc, check_newline): Don't do this if ignore_case
6207 * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6208 multiple selector expressions.
6210 Sat Oct 30 01:06:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6212 * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6213 STRUCTs (and INSTANCEs) for equality.
6214 * ch-expr.c (invalid_operand): New functions, combines most of
6215 the functionality of invalid_left_operand and invalid_right_operand.
6216 * ch-convert.c (digest_constructor): Set TREE_CONSTANT if it is.
6218 Sat Oct 30 11:12:47 1993 Bill Cox (bill@rtl.cygnus.com)
6220 * Makefile.in (chill): Add back in the commands to build chill
6221 (the script) from chill.in.
6223 Fri Oct 29 16:25:38 1993 Per Bothner (bothner@kalessin.cygnus.com)
6225 * expr.c (store_constructor): If SET_TYPE target is in a register,
6226 use a stack temporary (since we must take its address).
6228 * ch-expr.c (build_allocate_global_memory_call,
6229 build_allocate_memory_call): Cast argument pointer to PTR,
6230 if needed (using location cast). Also, some other cleanups.
6231 * ch-parse.y (bracketed_action): Re-arrange things so that
6232 a handler following BEGIN END comes before the final poplevel.
6233 * ch-typeck.c (build_chill_cast): Just return if already correct type.
6235 Re-do DO WITH so that build_component_ref for is done lazily
6236 (at each reference) instead of eagerly (at the beginning
6237 of DO WITH). This is needed for tagged variants,
6238 * ch-tree.def (WITH_DECL): New declaration tree code.
6239 * ch-decl.c (lookup_name): Recognize WITH_DECLs.
6240 * ch-decl.c (handle_one_level): Variant parts are currently
6241 indicacted with '__CASE'. Recognize that.
6242 Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
6244 Thu Oct 28 22:17:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6246 * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
6247 Remove some old crud.
6248 * ch-typeck.c (build_chill_cast): Another attempt at a
6249 compromise between robustness and generality for casts.
6250 Location conversions are now less likely to confuse things.
6251 * ch-parse.y (optactions): Allow further optactions following
6252 an initial semicolon.
6253 * ch-parse.y: Add error messages on EVENT and BUFFER.
6255 * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
6256 Undo some of the Oct 27 changes.
6258 Convert (some) builtin functions previously using reserved
6259 names to be just predefined.
6260 * tree.h (enum builtin_in_function): Added END_BUILTINS at end.
6261 * ch-decl.c: Add predefines for allocate_memory,
6262 allocate_global_memory, return_memory, writetext.
6263 * ch-expr.c (check_arglist_length): New function.
6264 * ch-expr.c (build_generalized_call): If "function" is
6265 a builtin, build the appropriate tree.
6266 * ch-parse.y, ch-lex.l: No longer recognize many pre-defined
6267 functions at the lexer/parser level.
6268 * ch-tree.h (enum chill_built_in_function): New type.
6270 Thu Oct 28 16:43:36 1993 Bill Cox (bill@rtl.cygnus.com)
6272 * ch-expr.c (allocate_memory, allocate_global_memory):
6273 Check for invalid parameters, issue errors.
6274 * expr.c (store_constructor): Calculate bitlength, startrtx
6275 and endrtx of powerset correctly. Define targetx, use it
6278 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6280 * ch-expr.c (build_max_min): Error for passing empty tuple
6283 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6285 * ch-decl.c (init_decl_processing): Make allocate
6286 builtins have a pointer-to-pointer-to-void
6287 first parameter, rather than a reference parameter.
6288 * ch-expr.c (build_allocate_memory_call,
6289 build_allocate_global_memory_call): Do automatic
6290 ADDR () on the first parameter, for backward
6292 * ch-grant.c (grant_one_decl): Don't grant if
6293 DECL_SOURCE_LINE is zero.
6294 (start_chill_module_code): Set DECL_SOURCE_LINE
6295 to zero so that module-level function isn't granted.
6296 * ch-parse.y (handleraction): Add return_memory action.
6297 * ch-typeck.c (chill_similar): Allow a void_type
6298 to be similar to anything. This makes allocate_memory
6299 and return_memory pointer parameters slide through.
6301 Tue Oct 26 00:12:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6303 * ch-typeck.c (build_chill_array_ref): Check for and complain
6304 if there are more index expressions than the array rank.
6306 * ch-actions.c (chill_expand_assignment): Emit appropriate
6307 error message if RHS of multiple assignment is tuple/case/if.
6308 * ch-tree.def (CONCAT_EXPR): Change TREE_CODE_CLASS from
6309 'e' to the more specific '2'. (Fixes a satisfy bug.)
6311 Thu Oct 21 17:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
6313 * ch-parse.y: Revert experimental error-generating change
6314 that was checked in by mistake.
6316 Thu Oct 21 12:15:30 1993 Bill Cox (bill@rtl.cygnus.com)
6318 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6319 code variables associated with a process or signal.
6320 (Apparently I forgot to actually check these in last time.)
6321 * ch-tasking.c: Replace last calls to get_tasking_code with
6322 working references to DECL_TASKING_CODE_DECL.
6324 Thu Oct 21 10:27:42 1993 Bill Cox (bill@rtl.cygnus.com)
6326 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6327 code variables associated with a process or signal.
6328 * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
6329 tasking_code_decl pointer, rather than trying to look it up
6330 in the hash table or linked scope list.
6332 Wed Oct 20 09:52:44 1993 Bill Cox (bill@rtl.cygnus.com)
6334 * ch-actions.c (lookup_and_handle_exit): Only output error message
6336 * ch-convert.c (convert): Correct conversion of VARYING array to/
6337 from non-VARYING one.
6338 * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
6340 (decl_tasking_code_var): Delete it. Its calls are replaced woth
6341 generate_tasking_code_variable calls, plus a little glue.
6342 (push_extern_process): generate tasking_code_variable as local
6343 static variable, point the process' function_decl at it for later
6344 reference by build_start_process.
6345 (print_mode): Use CHILL upper-case convention to print modes.
6346 * ch-lex.l: Must initialize tasking-related trees to NULL at start
6347 of each pass, or we lose the fact that the user did or did not
6348 specify a value for each of them.
6349 * ch-parse.y (check_end_label, action, exceptlist): Only output
6350 error message in pass 1.
6351 (sendaction): Add comments.
6352 (sigdef): Comment out special handling for external signals.
6353 Chain tasking_variable_decl onto signal structure decl, for
6354 easier non-symbol-table access later.
6355 * ch-tasking.c (generate_tasking_code_variable): Do work in both
6356 passes, using do_decl so we can pass the pass 2 value of the
6357 process_type or signal_code to it. Only update the process_type
6358 if the incoming pointer isn't null and pass == 2. Use a new
6359 parameter to know whether to include an init expression.
6360 (build_process_header): Attach tasking-code_variable to process
6361 function_decl for easy access later, not through the hash table.
6362 (build_start_process): Get tasking_code_variable out of the process'
6364 (build_signal_struct_type): Return the type decl, to be accessed by ...
6365 (build_signal_descriptor): .. this function.
6366 (build_receive_case_label): Get data buffer pointer not from hash
6367 table, but from Tiemann's current rc_state structure instead.
6368 * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
6369 macro for tasking_code_variable storage.
6371 Tue Oct 19 17:39:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
6373 * ch-lex.l (equal_number): If the "number" is a CONST_DECL,
6374 return its DECL_INITIAL.
6375 * ch-satisfy.c (safe_satisfy_decl): Change logic for rtl
6376 generation for decls to not use DECL_ASSEMBLER_NAME.
6377 * ch-decl.c: Set DECL_ASSEMBLER_NAME to DECL_NAME.
6378 This matches C, and allows dbxout to emit proper user-level names.
6379 (It would be cleaner to fix dbxout to use DECL_NAME ...)
6380 * ch-decl.c (outer_decls): New global list of the decls granted
6381 into the outer scope.
6382 (pop_module): Change code that grants into outer scope accordingly.
6383 (lookup_name_for_seizing): Similarly update.
6384 (push_scope_decls): Handle SEIZE ALL from the global scope
6385 by searching outer_decls.
6386 * ch-grant.c (grant_array_type): Fix thinko.
6387 * ch-inout.c (build_chill_writetext): Remove excessive TREE_TYPE.
6389 Mon Oct 18 15:57:00 1993 Per Bothner (bothner@kalessin.cygnus.com)
6391 * varasm.c (output_constructor): Add support for non-zero
6393 * c-typeck.c (output_init_element): Revert recent changes.
6394 * varasm.c (emit_set_data): Fix emitting set constant data.
6395 * ch-lex.l (yywrap): Reset line number to 0, not 1.
6396 It sets incremented to 1 by check_newline.
6397 * ch-tree.h: Restore old version.
6398 * ch-expr.c (finish_chill_binary_op): Convert TRUNC_DIV_EXPR
6399 to RDIV_EXPR if an operand is floating. (This functionality
6400 got dropped when hacking finish_chill_binary_op).
6402 * ch-actions.c (build_chill_case_expr): Set type to NULL_TREE.
6403 not error_mark_node.
6404 * ch-actions.c (chill_expand_assignment): Allow such borderline
6405 constructs as: LHS OR:= [X].
6406 * ch-convert.c (convert): Hande CASE_EXPR (and COND_EXPR)
6407 with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
6408 * ch-decl.c (do_decl): Remove CONSTRUCTOR kludge.
6409 * ch-typeck.c (chill_compatible): Allow expr to have NULL mode
6410 if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
6412 Mon Oct 18 13:20:53 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6414 * c-typeck.c (output_init_element): Limit previous changes to
6415 ARRAY_TYPE and SET_TYPE initializers.
6417 Sun Oct 17 23:15:00 1993 Bill Cox (bill@cygnus.com)
6419 * c-typeck.c (output_init_element): Handle NULL domain case.
6420 * ch-decl.c (do_decl): Revert bogus initializer type change.
6421 * ch-grant.c (chill_finish_module_code): Put module's decl onto
6422 the module_init_list, for chill_finish_compile's possible use.
6423 (chill_finish_compile): Rename variables for clarity, add
6424 commented-out code as example for assignment of module address to its
6427 Sun Oct 17 15:16:54 1993 Bill Cox (bill@cygnus.com)
6429 * ch-convert.c: Move semicolon to separate line - easier to see.
6430 * ch-decl.c (do_decl): Handle untyped_expr initializers by
6431 simply using the variable's declared type - no compatibility
6432 check can be made if the expression has no type.
6433 * ch-expr.c (expand_packed_set): Fix endless loop - increment
6435 (fold_set_expr): Fix two other endless loops by passing
6436 correct parameters to unpack_set_constructor.
6437 * varasm.c: Standardize 'for' loop.
6439 Sun Oct 17 12:16:21 1993 Bill Cox (bill@cygnus.com)
6441 * c-typeck.c (output_init_element): Handle initializer for
6442 array with non-zero lower index bound.
6444 Sat Oct 16 16:48:48 1993 Per Bothner (bothner@cygnus.com)
6446 * ch-expr.c (finish_chill_binary_op): Use TREE_SET_CODE
6447 to change TREE_CODE.
6449 Sat Oct 16 08:07:17 1993 Bill Cox (bill@rtl.cygnus.com)
6451 * ch-expr.c (finish_chill_binary_op): Disable
6452 rough-draft code, not intended for release.
6454 Fri Oct 15 21:44:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6456 * expr.c (store_constructor): use PROTO for pack_set_constructor
6458 Fri Oct 15 10:30:09 1993 Bill Cox (bill@cygnus.com)
6460 * ch-expr.c (finish_chill_binary_op): Activate some
6462 * expr.c (store_constructor): Subtract arrays minimum element.
6463 Makes orientexpress work.
6465 Fri Oct 15 09:26:24 1993 Bill Cox (bill@cygnus.com)
6467 * ch-convert.c, ch-expr.c: Add externs so it'll compile.
6468 * ch-tree.def: Add BASED_DECL definition.
6470 Thu Oct 14 13:20:02 1993 Bill Cox (bill@cygnus.com)
6472 * ch-actions.c (build_chill_cause_exception): Pass the
6473 *address* of the filename string to the runtime routine,
6474 rather than passing the string by value.
6476 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6478 * expr.c (store_constructor): Use a (usually) more efficient
6479 algorithm for setting SET types.
6481 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6483 Changes to better support 1984 version of Chill, which doesn't
6484 really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
6485 * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings): New flag.
6486 * ch-typeck.c (chill_similar): Support flag_old_strings.
6487 * ch-convert.c (convert_to_boolean): Generalize code to
6488 convert singleton bitstring to Boolean.
6489 * ch-convert.c (convert): Use string_one_type_node.
6490 * ch-convert.c (convert): Add code to convert Boolean to BOOLS(1).
6491 * ch-convert.c (convert): In code that converts fixed string to
6492 varying use new 'e' variable, rather than original 'expr' variable.
6493 Allows cascaded conversions: CHAR -> CHARS(1) -> varying CHARS.
6494 * ch-decl.c (string_type_node, const_string_type_node,
6495 int_array_type_node), ch-tree.h: Removed.
6496 * ch-decl.c (string_one_type_node, bitstring_one_type_node,
6497 bit_zero_node, bit_one_node), ch-tree.h: New globals tree nodes.
6498 * ch-decl.c (init_decl_precessing): Remove some junk.
6499 * ch-expr.c (build_generalized_call): If flag_old_strings,
6500 treat string index as string slice. Also, better error checking.
6502 Added support for (some kinds of) BASED declarations.
6503 * ch-tree.def (BASED_DECL): New tree code.
6504 * ch-decl.c (lookup_name): Implement BASED_DECL using
6505 build_chill_indirect_ref.
6506 * ch-decl.c (do_based_decls): Make a BASED_DECL.
6507 * ch-parse.y: Call do_based_decls for DCL ... BASED(...).
6508 * ch-satisfy.c (safe_satisfy_decl): Handle BASED_DECL.
6510 Improve handling of set binary operations.
6511 * ch-expr.c (expand_packed_set): New function.
6512 (fold_set_expr): Re-write. Simpler, more general algorithm.
6513 (build_set_expr): Only used for comparsions now.
6514 (finish_chill_binary_op): Handle set ops better (more directly).
6515 (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
6516 fold_set_ne, fold_set_xor): Removed. No longer needed.
6518 * ch-decl.c: Remove calls to allocate_lang_decl.
6519 * ch-tree.c (build_string_type): If const length, layout immediately.
6521 Mon Oct 11 17:23:02 1993 Bill Cox (bill@cygnus.com)
6523 * ch-decl.c (init_decl_processing): Define __whoami and
6524 __wait_buffer functions.
6525 * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
6526 * ch-parse.y (sigdef): Add new add_taskstuff_to_list
6528 * ch-tasking.c (get_tasking_code): Search tasking_list for
6529 tasking code name match. Can't use lookup_name.
6530 (get_task_name): New function.
6531 (generate_tasking_code_variable): Return if pass 1.
6532 Always update *tasking_code_ptr.
6533 (build_process_header): Add new add_taskstuff_to_list
6535 (tasking_setup): New code to unpack the tasking
6536 list entries no built by ..
6537 (add_taskstuff_to_list): Accept new parameter,
6539 * ch-tree.h (add_taskstuff_to_list): Add new
6542 Mon Oct 11 14:54:50 1993 Per Bothner (bothner@kalessin.cygnus.com)
6544 * Makefile.in (cc1chill): Also link in $(BC_OBJS).
6546 Mon Oct 11 06:28:39 1993 Doug Evans (dje@canuck.cygnus.com)
6548 * ch-decl.c (flag_allow_single_precision): New global,
6549 from ss-931002 merge.
6551 Sun Oct 10 09:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
6553 * Makefile.in: Remove references to chill.in and
6554 ch-hash.h. Remove bogus cc1chil : chill
6557 Fri Oct 8 16:00:04 1993 Bill Cox (bill@cygnus.com)
6559 * ch-actions.c (adjust_parm_or_field): Add parameter to
6561 *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
6563 (decl_temp1): Add parameter to signal 'make this external'.
6564 (shadow_record_fields): Add parameter to decl_temp1 call.
6565 * ch-expr.c (chill_expand_case_expr): Add parameter
6567 * ch-grant.c (chill_finish_compile): Add code to spoof
6568 get_file_function_name, so we don't get __tmp_s1_code,
6569 for example, as the module-level code's name.
6570 * ch-loop.c (build_temporary_variable, begin_for_range,
6571 init_loop_counter): Add parameter to decl_temp1 call.
6572 * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
6573 for easier maintenance.
6574 (sendaction): Rewrite to receive SIGNALNAME token correctly
6575 from ch-lex.l (name_type_signal).
6576 (signaldef): Don't clear quasi_signal here.
6577 * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
6578 to make the variable public (visible to linker).
6579 (build_start_process): Add parameter to decl_temp1 call.
6580 (tasking_setup): Comment out band-aid hack which calls
6581 generate_tasking_code_variable. Shouldn't be necessary.
6582 Use null_pointer_node rather than integer_zero_node in
6583 entry_point. More rewrites.
6584 (build_signal_descriptor): Name the non-signal in the error msg.
6585 Rewrite the building of the signal envelope - avoid seg fault.
6586 Add parameter to decl_temp1 call.
6587 (expand_send_signal, build_receive_case_start,
6588 build_receive_case_end, build_buffer_descriptor): Add parameter
6590 * ch-tree.h: Add parameter to decl_temp1 proto.
6591 * chill: Add new CHILL frontend directory
6593 Tue Oct 5 13:51:27 1993 Bill Cox (bill@cygnus.com)
6595 * ch-grant.c: Standardize indentation.
6596 * ch-parse.y (end_function): Unconditionally poplevel for processes.
6597 * ch-tasking.c (build_process_header): Unconditionally pushlevel.
6598 (generate_tasking_code_variable): Stop using pass number to
6599 force a one-time action.
6600 * ch-tree.h (build_chill_slice): Delete proto since function went static.
6602 Mon Oct 4 13:52:36 1993 Bill Cox (bill@cygnus.com)
6604 * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
6605 called here in both passes. Set DECL_ASSEMBLER_NAME.
6606 (lookup_name_for_seizing): Move NULL test forward to prevent
6608 * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
6609 to prevent a seg fault in telebras/dynsto.ch. Make indentation
6611 * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
6612 (build_send_signal): Rename to expand_send_signal.
6613 (generate_tasking_code_variable): Return the var's decl.
6614 (build_signal_struct_type): Move generate_tasking_code_variable
6615 and add_taskstuff_to_list calls to ..
6616 * ch-parse.y (sigdef): .. here. And make indentation changes.
6617 * ch-tree.h: Rename functions, add return values.
6619 Mon Oct 4 15:43:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
6621 * ch-convert.c (digest_constructor): Convert element to element_type.
6622 * ch-parse.y (end_function): Use DECL_ARGUMENTS to check
6623 for parameterless process.
6625 Fri Oct 1 13:57:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
6627 * ch-typeck.c (chill_location): New function.
6628 Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
6629 * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c: Use
6630 chill_location instead of lvalue_p.
6633 Fri Oct 1 11:28:42 1993 Bill Cox (bill@cygnus.com)
6635 * ch-convert.c (convert): Back out Michael's changes, unintentionally
6637 * ch-lex.l (handle_use_seizefile_directive): No longer downcase
6639 * ch-parse.y (sendaction): Fix a couple of seg faults. Comment out
6640 SEND BUFFER processing for now.
6641 * ch-tree.h: Fix comment.
6643 Thu Sep 30 17:00:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
6645 * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P): New macros,
6646 for recognizing singleton strings.
6647 * ch-tree.h (MARK_AS_STRING_TYPE): New macro.
6648 * ch-tree.c (build_string_type, build_bitstring_type),
6649 ch-convert.c (convert): Use it.
6650 * ch-typeck.c (build_chill_slice): Take length rather than upper
6651 bound. This makes it easier to recognize that A(X UP LENGTH)
6652 really has fixed length. Also, if the argument is string,
6653 mark the slice as a string too. Also, handle varying strings.
6655 * ch-typeck.c (conflate_singleton_strings): New global.
6656 * ch-typeck.c (chill_similar): If conflate_singleton_strings is
6657 set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
6658 to CHAR/BOOL, as required by the 1984 version of Z.200.
6659 * ch-convert.c (convert_to_char): Convert CHARS(1) to CHAR.
6660 * ch-convert.c ( build_array_type_for_scalar): If input is string,
6662 * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h: Removed.
6663 * ch-convert.c (convert): Convert CHAR to CHARS(1).
6665 This fixes 'X // := Y' and is also a general simplification.
6666 * ch-actions.c (chill_expand_assignment): Convert 'LHS OP := RHS'
6667 to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
6668 Also, call save_expr on RHS if a multiple assignment.
6669 * ch-parse.y (assignaction): Therefore, no longer need to call
6670 stabilize_reference on RHS.
6671 * ch-typeck.c (build_chill_modify_expr), ch-tree.h: Remove
6672 modifycode parameter. Make it the caller's responsibility to
6673 handle <assigning operator>.
6674 * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
6675 ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
6677 Wed Sep 29 18:02:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
6679 * ch-lang.c (string_index_type_dummy), ch-tree.h: New variable.
6680 * ch-decl.c (integer_minus_one_node), ch-tree.h: New variable.
6682 * ch-parse.y (arrayindex: modename): Remove useless code.
6683 * ch-satisfy.c (satisfy): Don't gag on string_index_type_dummy,
6684 * ch-tree.c (build_string_type): Pass string_index_type_dummy as
6685 the parent type of the index range.
6686 * ch-typeck.c (layout_chill_range_type): Recognize and handle
6687 string_index_type_dummy - specifically allow an empty range.
6689 Wed Sep 29 13:36:23 1993 1993 Bill Cox (bill@cygnus.com)
6691 * ch-convert.c (convert_to_reference): Check for loc-identity
6692 mismatches correctly (and remove one of those chill_compatible
6694 * ch-decl.c (decl_tasking_code_var): New function, called from
6695 push_extern_process and push_extern_signal.
6696 * ch-parse.y (end_function): Delete parameter. Check current_function_decl
6697 whether it's actually a process, and whether it has parameters.
6698 Make Michael's change simplifying the pass 2 test, preventing a seg
6700 (procedure, process): Change calls to end_function, remove
6701 code saving value from build_process_header. Delete redundant chill_
6702 phrases from some function calls.
6703 * ch-tasking.c: Remove some redundant _chill phrases from function
6705 * ch-tree.h: Remove some redundant _chill phrases from function
6706 names. Add the CH_VARYING_ARRAY_TYPE macro, call it from
6707 all relevant places.
6708 * ch-typeck.c: Use the new macro. Cast TREE_CODEs to chill_tree_code.
6710 Wed Sep 29 13:07:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
6712 * ch-convert.c (convert_to_reference): Remove redundancies.
6713 * ch-convert.c (convert): Handle convert_to_reference
6714 with a recursive convert call.
6715 * ch-decl.c (do_decl): Add missing compatibility-checking
6716 of initializer (don't depend on convert).
6718 Tue Sep 28 00:02:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
6720 * ch-tree.h (CH_LOCATION_P): New macro.
6721 * ch-typeck.c (layout_chill_range_type): Fix call to
6722 type_for_size, when figuring out a defaulted parent type.
6723 * ch-expr.c (build_chill_lower, build_chill_sizeof): Check
6724 for TREE_CODE_CLASS != 't' rather than == 'd'.
6725 * ch-expr.c (build_chill_function_call): Use CH_LOCATION_P
6726 to check for location, rather than TYPE_CODE_CLASS == 'd'.
6728 * ch-tree.c (build_string_type): Make 2-pass safe. Also,
6729 change parameter to be length, not index type.
6730 * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
6731 (build_chill_string): Modify callers of build_string_type accordingly.
6732 * ch-lex.l (check_newline): Don't look for # directive inside a
6734 * ch-grant.c (grant_array_type): Make more robust for char-
6735 and bit-strings (allow non-constant sizes). Change parameters
6736 and return types. (raw_decode_mode): Use grant_array_type
6737 for bitstrings. (otherwise): Fix grant_array_type callers.
6739 Mon Sep 27 16:57:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
6741 Remove changes of Sep 15.
6742 * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
6743 * ch-typeck.c (chill_similar): Don't allow a singleton
6744 powerset to be similar to its domain.
6745 * ch-convert.c (convert_to_boolean): Don't convert a singleton
6746 SET_TYPE constructor to a Boolean.
6748 * ch-actions.c (chill_expand_assignment): Handle IN_EXPR on
6749 LHS of assignment, which is what we're current (temporarily?) using.
6751 Mon Sep 27 06:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
6753 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
6754 ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
6755 ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
6756 -Wall cleanup. Add prototypes where missing.
6757 Delete unused variables. Cast uses of tree_codes
6758 to chill_tree_code, which they are.
6760 Sun Sep 26 13:09:57 1993 Bill Cox (bill@rtl.cygnus.com)
6762 * ch-decl.c (do_decl): Save initializer in pass zero
6764 * ch-lex.l: Fix comments, indentation.
6765 * ch-parse.y: Standardize error messages to use
6766 uppercase for CHILL keywords rather than quoting them.
6767 Suggestion from docs department.
6768 * ch-tasking.c: Pervasive changes to get processes to
6770 * ch-tree.h: Delete prototypes for functions whic
6771 I made static inside ch-tasking.c.
6773 Sun Sep 26 02:40:02 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6775 * ch-lex.l (yywrap): Call `check_newline' in case the file
6776 started with a line directive.
6778 Sat Sep 25 13:54:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6780 * ch-decl.c: Expand pre-amble comment.
6781 * ch-decl.c (struct scope, push_module): Use new field
6782 tail_chain_module to build child-module list in order.
6783 (Just to make compiler debugging a little less confusing.)
6785 * ch-decl.c (struct scope): New field weak_decls.
6786 * ch-decl.c (find_implied_types): New interface. Now pre-pend
6787 new enum types to a given input list. This makes it easier to
6788 avoid duplicates, which should at least be more efficient.
6789 Also, handle FUNCTION_DECL.
6790 * ch-decl.c (bind_saved_names): Removed. Distribute its
6791 functionality over new functions (push_scope_decls, pop_scope_decls,
6792 build_implied_names, bind_sub_modules). The goal (which seems to
6793 have been more-or-less attained) was to fix weak name handling.
6794 * ch-decl.c (poplevel): Use new function pop_scope_decls.
6796 * ch-tasking.c (build_signal_struct, build_tasking_message_type):
6797 Use build_decl directly, rather than grok_chill_fixedfields
6798 (which depends on ignore_exprs and has more overhead).
6799 * ch-tasking.c (build_signal_struct): Construct the type
6801 * ch-typeck.c (build_chill_slice): Use my_build_array_ref rather
6802 than build_array_ref (which does C-specific "optimizations").
6803 (Hence move my_build_array_ref up earlier in the file.)
6805 Sat Sep 25 03:47:28 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6807 * ch-tasking.c: Declare static variable `void_ftype_void'.
6808 (chill_tasking_init): Initialize `void_ftype_void' here.
6809 (build_tasking_struct): Use, don't declare `void_ftype_void'.
6810 (generate_tasking_code_variable): Call `do_decl', not
6811 `decl_temp1' to declare TASKING_CODE_NAME.
6812 (tasking_setup): Drop into 1-pass mode so that all
6813 tasking-related declarations are installed in the global
6814 scope. Use correct CHILL types for initializers (since
6815 ptr_type_node doesn't have the right meaning for CHILL).
6816 Also, call `do_decl' instead of `decl_temp1' for
6818 (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
6819 `chill_finish_compile' in sync between passes.
6821 * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
6822 declarations on pass zero. Keep obstacks in sync, and always
6823 call `finish_decl' for pass zero declarations.
6824 (push_chill_extern_function): Keep obstacks in sync, and always
6825 call `finish_decl' for pass zero declarations.
6826 (build_enumerator): Ditto.
6827 (grok_chill_variantdefs): Change PASS test to exclude only
6829 (finish_struct): Ditto.
6830 * ch-expr.c (build_chill_component_ref): Ditto.
6831 (build_chill_binary_op): Ditto.
6832 * ch-tree.c (build_powerset_type): Ditto.
6833 (build_bitstring_type): Ditto.
6834 * ch-typeck.c (build_chill_range_type): Ditto.
6835 (build_chill_struct_type): Ditto.
6837 * ch-decl.c (build_chill_exception_decl): Clarify reasons for
6838 extra pushing and popping of obstacks.
6840 * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
6841 on IO_DESCRIPTOR. This causes IO_DESCRIPTOR to be laid out.
6843 * ch-grant.c (chill_finish_compile): Clear out both
6844 MODULE_INIT_LIST and TASKING_LIST if either contains stuff
6847 * ch-parse.y (rccase_label): Add NAME rules so that pass one
6848 works w/o knowing we're parsing a signal. Simplify SIGNALNAME
6849 rules since we only get SIGNALNAME tokens in pass two.
6850 (sendaction): Ditto.
6851 * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
6852 BUFFERNAME on pass two. The grammar now handles this.
6853 * ch-decl.c (lookup_remembered_decl): Deleted.
6855 Fri Sep 24 15:27:13 1993 Bill Cox (bill@cygnus.com)
6857 * ch-decl.c (lookup_remembered_names): Removed. It was being
6858 misused in ch-lex.l.
6859 * ch-lex.l (name_type_signal): Revert last change. Basically,
6860 we cannot use the C typedef/variable name trick in CHILL, due
6861 due to the language's 2-pass nature.
6862 * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
6864 * ch-tree.h (lookup_remembered_name): Comment out the prototype.
6866 Fri Sep 24 11:01:31 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6868 * ch-decl.c (do_decl, push_chill_extern_function): Change pass
6869 checks so the pass == 0 case is handled for built-in types.
6870 (push_modedef): Add check for error_mark_node.
6871 (lookup_remembered_decl): New function.
6872 (pushlevel, poplevel) Change pass checks.
6873 (pushdecl): Check type as well for NULL.
6874 (build_enumerator): Handle pass == 0 case.
6875 * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
6877 * ch-parse.y: Set pass to zero to indicate initial decl processing.
6878 Replace NAME references with SIGNALNAME references.
6879 (startaction): Only check copy number if not ignoring actions.
6880 Always call build_chill_start_process.
6881 (optstartset): Don't lookup the instance name.
6882 * ch-tasking.c (generate_tasking_code_variable): Replace
6883 do_decl call with decl_temp1 call.
6884 (build_chill_start_action): Check for ignore_actions here.
6885 (build_tasking_message_type): Layout the type.
6886 (rc_state_type): New structure to keep nested receive-case
6888 (build_chill_receive_case_start, build_chill_receive_case_end):
6892 Fri Sep 24 04:19:15 1993 Michael Tiemann (tiemann@blues.cygnus.com)
6894 * ch-tasking.c (build_chill_receive_case_start): `namedecl'
6895 should be a _DECL, not an IDENTIFIER_NODE.
6897 Thu Sep 23 18:18:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
6899 * ch-decl.c (find_implied_types): Handle VAR_DECLs.
6901 * ch-decl.c (print_lang_identifier): Print IDENTIFIER_OUTER_VALUE.
6902 * ch-actions.c (chill_expand_result): Allow value-less RETURN.
6903 * ch-expr.c (resolve_component_ref): Recognize error_mark.
6905 * ch-convert.c (digest_constructor): Handle a nested powerset tuple.
6906 * ch-satisfy.c (satisfy): Use return value of layout_chill_range_type.
6907 * ch-typeck.c (chill_similar): Repeatedly get parent modes
6908 of ranges, not just once.
6909 * ch-typeck.c (chill_root_resulting_mode), ch-tree.h: New function.
6910 * ch-typeck.c (layout_chill_rang_type): Re-do type-checking
6911 to follow Blue Book better (check for Compatibility).
6913 * ch-tree.h (CH_ROOT_RESULTING_MODE): New macro.
6914 * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
6915 New variables. The latter replaces in_seizefile.
6917 Changes to store in the new DECL_SEIZEFILE field each seize
6918 ALIAS_DECL the name in the most recent use_seize_file directive.
6919 (This requires that use_seize_file directives written to the
6920 grant file be written before the SEIZEs that need it.)
6921 Allow clashing declarations granted into the global scope
6922 (produce a warning), but remember the seizefile case from
6923 (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
6924 The a SEIZE will select the granted decl that matches its
6925 DECL_SEIZEFILE (in other words: grants from the most recent
6926 use_seize_file will be preferred).
6927 * ch-tree.h (DECL_SEIZEFILE), ch-tree.def: New macro.
6928 * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE): Renamed
6929 to outer_value, IDENTIFIER_OUTER_VALUE.
6930 Changes to cause the use_seize_file directives to be written
6931 out in order as they're seen in source.
6932 * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
6933 Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
6934 * ch-lex.l (handle_use_seizefile_directive): Modify appropriately.
6935 Don't call grant_use_seizefile.
6936 * ch-lex.l (mark_use_seizefile_written): New function.
6937 * ch-grant.c (decode_decl): Write out use_seize_file directive,
6938 if needed, before writing a seize declarations.
6939 * ch-decl.c (pop_module): Handle decls granted into the global
6940 module specially, setting IDENTIFIER_OUTER_VALUE.
6941 * ch-decl.c (lookup_name_for_seizing): Check IDENTIFIER_OUTER_VALUE.
6943 Thu Sep 23 19:05:37 1993 Bill Cox (bill@cygnus.com)
6945 * ch-decl.c (push_chill_extern_process): Delete unused variables,
6946 declare the process' tasking_code variable as external.
6947 * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
6949 * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
6951 * ch-tree.h: Add prototype.
6952 * expr.c (store_constructor): Emergency first-aid. Rewrite later.
6954 Thu Sep 23 12:57:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
6956 * ch-expr.c (build_chill_function_call): Move possible call to
6957 chill_start_module_code until we know we're not calling a builtin.
6958 * ch-decl.c (save_expr_under_name): Use pushdecllist,
6959 not proclaim_decl (which provide for popping the decl).
6960 * ch-parse.y (optname): Also allow TYPENAME.
6962 Thu Sep 23 09:18:35 1993 Bill Cox (bill@cygnus.com)
6964 * ch-decl.c (print_lang_decl): Make weak name output more standard.
6965 (print_lang_identifier): Make signal-data flag output more standard.
6966 (push_chill_extern_process): Pass correct arg tree to
6967 push_chill_extern_function.
6968 (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
6969 Standardize function header layouts (Makes the tcov script
6971 * ch-except.c (chill_finish_on): Standardize function header.
6972 * ch-expr.c (fold_set_or): Standardize function header.
6973 * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
6975 (decode_constant): Make sure that alpha operators are surrounded
6977 * ch-parse.y: Spell Z.200 correctly in comments.
6979 Wed Sep 22 10:42:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
6981 * ch-expr.c (build_chill_addr_expr), ch-tree.h: New function.
6982 * ch-parse.y, ch-decl.c (shadow_record_fields): Use it.
6983 * ch-lex.l (handle_use_seizefile_directive): Don't emit
6984 use_seize_file directive if in_seizefile.
6986 * ch-convert.c (digest_structure_tuple): Fix code that checks
6987 for excess init values.
6988 * ch-decl.c (layout_chill_variants): Move increment of nlabels
6989 inside the proper loop.
6990 * ch-grant.c (print_struct): Add missing loop for tag_list.
6991 (print_struct): Look for variant fields by checking for a
6992 UNION_TYPE, not a NULL name, since we must use a dummy name.
6993 * ch-parse.y (structured_variable): Various fixing.
6994 * ch-decl.c (shadow_record_fields): Rename arg decl -> struct_val.
6996 * ch-satisfy.c (safe_satisfy_decl): Disable copying of modes
6997 for NEWMODE (and hence novelty checking), until we figure out
7000 * ch-except.c (finish_handler_array): Use null_pointer_node,
7001 not integer_zero_node (which fails to type-check).
7003 * c-typeck.c (get_constructor_element_type): New function.
7004 * ch-tree.h (CH_NOVELTY_FLAG): Now also used in TYPE_DECLs.
7005 (CH_NOVELTY): Redefined to call new function chill_novelty.
7006 (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE): Removed.
7007 * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7008 Take extra output parameter (for M, as in M-value class).
7009 * ch-typeck.c (chill_novelty): New function. (Also de-references.)
7011 * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7012 New functions. Handle 2-pass and variant records.
7013 * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7014 * ch-satisfy.c (satisfy, case COMPONENT_REF):
7015 New case, call resolve_component_ref.
7017 * ch-expr.c (build_generalized_call): Extract single arg from
7018 arg list before calling build_chill_cast.
7020 * ch-parse.y (defining_occurrence_list): New non-terminal.
7021 Use it to replace locnamelist, synnames, and modenames.
7022 * ch-parse.y: Re-write parsing of variant records.
7024 * ch-decl.c (grok_chill_variantdefs): Now return a FIELD_DECL
7025 rather than just its type.
7026 * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7027 Change callers appropriately.
7029 * ch-tree.h (TYPE_TAG_VALUES): Add an extra level of TREE_LIST,
7030 to support multiple tag fields.
7031 * ch-grant.c (print_struct), ch-decl.c (layout_chill_variants):
7032 Support multiple tag fields.
7034 * ch-convert.c (remove_tree_element, digest_structure_tuple):
7035 New functions, to digest structure tuples, without calling the
7036 code in c-typeck.c. Handles variant tuples and tags (partially).
7037 * ch-convert.c (digest_constructor, convert): Call
7038 digest_structure_tuple when appropriate.
7039 * ch-convert.c (digest_constructor): Re-arrange a bit.
7041 * ch-decl.c (push_modedef): Defer copying of tree until ...
7042 * ch-satisfy (safe_satisfy_decl): ... here.
7044 * ch-decl.c (getdecls): Add kludge to help dbxout_init.
7046 Tue Sep 21 14:19:11 1993 Bill Cox (bill@cygnus.com)
7048 Partial tasking update - not done yet.
7049 * ch-actions.c: Comments, indentation.
7050 * ch-decl.c (push_chill_extern_process): No longer need to
7051 reformat the arg list for make_process_struct.
7052 (pop_module): Don't seg fault on null DECL_NAME.
7053 (handle_one_level): Error, not warning if tree not recognized.
7054 (shadow_record_fields): Rename formal param for readability.
7055 * ch-grant.c (decode_decl): Write proper header for a process.
7056 * ch-parse.y (quasi_pdef): process now uses processparlist,
7057 which doesn't change with the passes.
7058 (quasi_locdec): Call build_chill_reference_type to defer
7059 doing the type's layout.
7060 (processpar): Use paramnamelist, but reformat it into a
7061 list of identifiers in pass 2, so a processpar is the same
7062 structure in both passes.
7063 (locdec): Call build_chill_reference_type to defer doing the
7065 * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7066 build the decl. Only update the variable's tree in pass 2.
7067 (make_process_struct): Call build_chill_reference_type to defer
7068 doing the type's layout.
7069 (build_process_header): New code to call make_process_struct.
7070 New pass-2 code to make a PARM_DECL for start_chill_function.
7071 Pass a void_type_node, not a NULL_TREE for an empty list.
7072 Get input for shadow_record_fields from current_function_decl.
7073 (build_buffer_decl): Call do_decl not decl_temp1.
7074 * ch-typeck.c: Reindent to standards.
7075 * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7077 Mon Sep 20 12:00:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7079 * ch-typeck.c (classify_chill_expr): An expression with a
7080 REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7081 * ch-actions.c (adjust_parm_or_field):, ch-tree.h: Change last
7082 parameter, so we can reliably recognize LOC parameters.
7083 * ch-tasking.c, ch-expr.c: Change callers appropriately.
7085 Sun Sep 19 22:26:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7087 * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE): New macros.
7088 * ch-typeck.c (chill_referable, chill_read_compatible): New functions.
7089 * ch-typeck.c (chill_compatible): Allow un-resolved CONSTRUCTOR
7090 (with NULL TREE_TYPE), when reasonable. (Simplifies callers.)
7091 Also, handle case of expr being of reference class.
7092 * ch-actions.c (adjust_parm_or_field): Major re-arrange
7093 to handle conversions and LOC args better.
7094 * ch-actions.c (chill_expand_assignment): Simplify conversions.
7095 * ch-expr.c (build_chill_function_call): If needed, call
7096 chill_start_module_code.
7097 * ch-decl.c (declare_predefined_file): New function, used
7098 to pre-define stdin, stdout, and stderr.
7099 * ch-inout.c (chill_stdio_p): Change names of predefined
7100 files from chill-stdin etc to plain stdin (and change their types).
7101 * ch-lex.l: Remove some obsolete stuff.
7102 * ch-convert.c (convert): Move conversion from reference to
7103 to beginning of convert() so other conversion can work better.
7104 Also, remove bogus direct setting of TREE_TYPE.
7106 Fri Sep 10 12:23:41 1993 Wilfried Moser (fs_moser@cygnus.com)
7108 * Makefile.in: Change installation of the chill script. gcc will
7109 be called always with the full path. That made problems when
7110 somebody was using chill but didn't have the installation
7112 * ch-parse.y: Change parsing of WRITETEXT action.
7113 * ch-tree.h: Add some new prototypes according to the
7114 (partial) implementation of WRITETEXT.
7115 * ch-typeck.c: Add new function chill_varying_string_type_p. This
7116 functions checks a type for being CHAR(n) VARYING.
7117 * ch-decl.c (init_decl_processing): Add new built-in functions
7118 _writestring and _writeunixstd.
7119 Add call to build_chill_io_list_type in ch-inout.c.
7120 * ch-inout.c (build_chill_writetext): Add some code there.
7121 Add new function build_chill_io_list_type.
7122 Add new static function chill_stdio_p. This function checks
7123 the text argument for being chill_stdin, chill_stdout or
7126 Fri Sep 17 22:02:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
7128 * ch-decl.c (push_modedef): Fix TYPE_MAIN_VARIANT thinko.
7130 Thu Sep 16 18:38:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7132 * ch-decl.c (allocate_lang_decl): Do nothing.
7133 * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7134 No longer used; remove.
7136 * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7137 (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7138 (make_chill_variants, layout_chill_variants): Add (initial) part
7139 of support for multiple tags.
7140 * ch-decl.c (lookup_tag_fields): New function.
7141 * ch-parse.y (stmt_count): Not used; removed.
7142 * ch-parse.y (mode2): Clear current_fieldlist before
7143 parsing STRUCT fields; restore afterwards.
7145 * ch-parse.y (push_action): Moved to ch-actions.c.
7147 Wed Sep 15 18:19:37 1993 Bill Cox (bill@rtl.cygnus.com)
7149 * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7150 constructor to a boolean.
7152 Wed Sep 15 17:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
7154 * ch-decl.c (push_modedef): Enable novelty-setting code.
7155 * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7156 * ch-typeck.c (chill_similar): Add checking of singleton
7157 powerset against its base type.
7159 Tue Sep 14 17:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
7161 * ch-actions.c (adjust_parm_or_field): Create a
7162 temporary for an non-referencable actual parameter
7163 passed to a LOC formal parameter.
7164 (chill_expand_assignment): Correct compatibility checking.
7166 * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7167 * ch-parse.y (opsigdest): Only check for process name
7168 in pass 2, when we know.
7169 * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7170 * ch-typeck.c: Fix comment.
7172 Mon Sep 13 17:33:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
7174 * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7175 decl_seen_p, processed_decls, allocated, nr_decls): Removed
7176 no-longer-useful functions and variables that used to guard
7177 against writing a decl multiple times. Since we now just
7178 go through the decl list linearly, that is no longer an issue.
7179 * ch-satisfy.c (safe_satisfy_decl): Handle missing current_module.
7181 * ch-decl.c (start_chill_function): Clear DECL_ASSEMBLER_NAME.
7182 Don't make TREE_PUBLIC. Don't generate rtl yet.
7183 * ch-decl.c (pop_module): If a decl is granted, set TREE_PUBLIC,
7184 and its DECL_ASSEMBLER_NAME.
7185 * ch-decl.c (fix_identifier): New function.
7186 * ch-grant.c (grant_one_decl): Don't set TREE_PUBLIC.
7187 * ch-tree.h (struct module): New field prefix_name.
7188 * ch-satisfy.c (safe_satisfy_decl): If assembler_name isn't
7189 set, prefix it by the module name(s).
7190 * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7191 Call make_function_rtl if needed and !LOOKUP_ONLY.
7192 * ch-typeck.c (chill_similar): Flesh out substantially.
7193 * ch-typeck.c (chill_compatible): Re-structure.
7195 * ch-actions.c (adjust_parm_or_field): Use CH_COMPATIBLE
7196 instead of chill_comptypes to compare actual and formal.
7198 Sun Sep 12 21:10:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
7200 * ch-parse.y (labellist): Don't do anything if ignore_exprs.
7202 * c-typeck.c (output_pending_init_elements): Handle
7203 !constructor_incremental case of filling in empty positions.
7204 (Patch by Jim Wilson. CYGNUS LOCAL until we have approval.)
7205 * ch-decl.c (pop_module): Don't grant a seized name.
7206 * ch-grant.c (decode_constant): Support CALL_EXPR.
7207 * ch-tree.c (build_bitstring_type): Don't try to fold non-constant
7208 size if pass==1 (since it may be an unsatisfied name).
7211 Sun Sep 12 18:06:23 1993 Bill Cox (bill@rtl.cygnus.com)
7213 2-pass fixes for processes. Partially done.
7214 * ch-actions.c (chill_expand_assignment): Add real
7215 novelty-checking sketch, $ifdef'd out for now.
7216 * ch-decl.c: Generally fix indentation. Move tasking
7217 init code from init_decl_processing to ch-tasking.c.
7218 Delete ObjC-related cruft. More accurate parameter name
7219 for shadow_record_fields. Move debug_scope before
7221 * ch-expr.c (build_chill_function_call): Return if not
7223 * ch-grant.c (print_proc_tail): Avoid trying to format
7224 a VOID return type, or using a NULL pointer.
7225 (decode_decl): Minor changes for PROCESS arg access.
7226 * ch-lang.c (lang_decode_option): Use -itu flag to
7227 enable 'pedantic' mode.
7228 * ch-lex.l (init_lex): Initialize compiler-directive
7230 (name_type-signal): Disable the returning of SIGNAL and BUFFER
7232 * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
7233 All uses renamed also.
7234 (end_function): Always poplevel, not just in pass 2.
7235 (quasi_pdef): Check for end-label matching.
7236 (quasi_formparlist): Write more clearly.
7237 (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
7239 (rccase_label, sendaction): Use NAME, not SIGNALNAME
7241 (process): Handle like procedure.
7242 (mode): Add SIGNAL as a generic signal parameter. This
7243 is a client-specific extension, so pedantic is checked.
7244 * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
7245 * ch-tree.h (CH_NOVELTY): Make it an lvalue.
7246 * ch-typeck.c: Fix comment.
7248 Sun Sep 12 15:03:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
7250 * c-typeck.c (digest_init): Compare types using comptypes
7251 instead of comparing pointers. (Helps Chill front end.)
7252 * ch-expr.c (finish_chill_binary_op):
7253 * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
7254 ch-expr.c (finish_chill_binary_op): For now, prefer IN_EXPR
7255 over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
7256 (incomplete support for variable fields, and possible bug in
7257 optimize_bit_field_compare).
7258 * ch-expr.c (finish_chill_binary_op): Fix type-checking
7259 and appropriately coerce operands for IN_EXPR and comparsions.
7260 * expr.c (expand_expr, case ARRAY_REF): Coerce lower bound (if
7261 non-zero) to sizetype before subtraction.
7262 * expr.c (expand_expr): Remove Chills-specific calls to
7263 __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
7265 Fri Sep 10 15:47:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
7267 * ch-tree.def (UNDEFINED_EXPR): New kind of expression.
7268 * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
7269 ch-convert.c (convert): Handle UNDEFINED_EXPR.
7271 * ch-expr.c (build_char_array_expr): Move CONCAT_EXPR support to ...
7272 * ch-expr.c (build_concat_expr): ... here.
7273 Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
7274 Also, make result varying only if one of the operands are.
7276 * ch-expr.c (build_chill_binary_op): Move stuff from here to ...
7277 * ch-expr.c (finish_chill_binary_op): ... here, as needed for
7278 proper 2-pass split. Also, clean up and simplify heavily.
7280 * ch-tree.h (enum ch_expr_class): The 5 kinds of expression classes.
7281 * ch-typeck.c (classify_chill_expr): New function: Determine
7282 class of expression.
7283 * ch-typeck.c (chill_compatible_classes): Re-structure; fix
7285 * ch-tree.h (CH_CLASS_IS_XXX): Re-define to use classify_chill_expr.
7287 * ch-convert.c (maybe_turn_scalar_into_array): Complain
7288 unless scalar is a char constant (and we want a string).
7289 * ch-convert.c (convert): New code for converting to variable
7290 string/array. Avoid type errors by padding (with an UNDFIEND_EXPR).
7291 * ch-typeck.c (chill_expand_tuple): Don't do conversion to
7292 varying type here; that is handled by convert now.
7293 * ch-decl.c (digest_constructor): Moved to ...
7294 * ch-convert.c (digest_constructor): ... here.
7295 * ch-decl.c (do_decl): Simplify; just use convert for initializer.
7296 * ch-decl.c (chill_digest_init): Merged into convert, and removed.
7297 * ch-decl.c (init_decl_processing): Set constructor_no_implicit flag.
7298 * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
7299 Replace chill_digest_init by convert.
7300 * ch-actions.c (chill_expand_array_assignment): Simplify; use convert.
7301 * ch-lex.l (build_chill_string): Make string type be derived
7302 from integer, not sizetype, because upper bound can be -1.
7304 Thu Sep 9 18:21:46 1993 Bill Cox (bill@rtl.cygnus.com)
7306 * ch-typeck.c (my_build_array_ref): Delete pedantic
7307 C-specific error message.
7309 Thu Sep 9 17:44:20 1993 Jeffrey Wheat (cassidy@eclipse.cygnus.com)
7311 * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
7313 Thu Sep 9 12:22:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
7315 * ch-typeck.c (build_chill_array_ref): Remove redundant and
7316 broken call to my_build_array_ref.
7318 Wed Sep 8 13:03:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
7320 * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
7321 Don't use store_init_value, since it calls digest_init instead
7322 of chill_digest_init.
7323 * ch-except.c (finish_handler_array): Use build1 (ADDR_EXPR, ...)
7324 instead build_unary_op to avoid C-specific optimizations.
7325 * ch-typeck.c (my_build_array_ref): Don't use default_conversion
7326 to convert array to pointer.
7327 * c-typeck.c (process_init_default): New function, to support
7328 default values for array tuples in Chill.
7329 * c-typeck.c (default_conversion): Don't convert array to pointer
7331 * ch-decl.c (digest_constructor): New function; used to be guts
7332 of chill_digest_init. Now recursive, to handle nested tuples.
7334 * ch-decl.c (chill_digest_init): Handle struct labels.
7335 * ch-grant.c (get_tag_value): Use decode_constant in general case.
7336 * ch-grant.c (decode_constant): Add support for lots of missing
7337 binary and unary operators.
7339 Wed Sep 8 10:11:04 1993 Bill Cox (bill@rtl.cygnus.com)
7341 * ch-lang.c: Look for '-I' option for seize file path.
7342 * ch-lex.l: Fix comment about above option.
7344 Wed Sep 8 00:37:32 1993 Per Bothner (bothner@rtl.cygnus.com)
7346 * ch-satisfy.c: Move code to set (and restore) file-and-line
7347 from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
7348 alias decls that refer to real decls with errors.
7349 * ch-actions.c (lang_init): Move to ch-lang.c.
7350 * ch-decl.c (init_decl_processing): Move code to initialize
7351 file-and-line from here ...
7352 * ch-lang.c (lang_init): ... to here, to avoid clobbering.
7354 * ch-decl.c (chill_digest_init): Add support for SET_TYPE,
7356 * ch-typeck.c (chill_expand_typle): Just call chill_digest_init.
7357 * c-typeck.c: Fix various things that got broken
7358 in the latest merge.
7360 Tue Sep 7 15:45:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
7362 * ch-decl.c (build_enumerator): Handle a "unnamed set element"
7363 (obsolete feature) by generating a dummy name.
7364 * ch-decl.c (finish_decl): Call rest_of_decl_compilation with
7365 "correct" value of top-level (to get better debugging output).
7366 * ch-decl.c (bind_saved_names): Allow a null DECL_NAME.
7368 Tue Sep 7 15:48:35 1993 Bill Cox (bill@rtl.cygnus.com)
7370 * ch-actions.c (chill_expand_return): Correct breakage
7371 due to recent fsf merge.
7373 Tue Sep 7 11:16:10 1993 Bill Cox (bill@rtl.cygnus.com)
7375 * .cvsignore: Add multilib.h.
7376 * ch-decl.c (chill_digest_init): New function. Calls were
7377 changed, since it has fewer parameters than old digest_init.
7378 * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
7380 (elementlist): Delete unused code.
7381 * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
7382 * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
7383 * ch-tree.h: Delete digest_init prototype.
7384 * ch-typeck.c (digest_init): Much new code.
7386 Tue Sep 7 12:06:28 1993 Bill Cox (bill@rtl.cygnus.com)
7388 * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
7389 files to their pre-init-change state.
7391 Mon Sep 6 15:28:27 1993 Bill Cox (bill@rtl.cygnus.com)
7393 Preliminary adaptation to rms' new initializer code.
7394 * ch-decl.c (do_decl): Call chill_digest_init, not
7395 digest_init, which rms made static.
7396 * ch-expr.c (chill_truthvalue_conversion): Delete C-
7398 * ch-loop.c (init_loop_counter): Indent for readability.
7399 * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
7400 * ch-tree.h: Prototype changes for new init code.
7401 * ch-typeck.c (chill_expand_tuple): Call new init code.
7402 * chill.texi: Add necessary '-f' prefix on options.
7404 Wed Sep 1 13:21:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7406 * ch-convert.c (build_array_type_for_scalar),
7407 ch-tasking.c (build_chill_receive_case_end): Index type
7408 specification is now chain of types (not chain of TREE_LIST).
7409 * ch-satisfy.c (satisfy): Don't try to satisfy the
7410 abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
7411 * ch-expr.c (build_chill_binary_op): If pass 1, do NOT
7412 call finish_chill_binary_op.
7413 * ch-parse.y (arrayindex): Simplify.
7415 Tue Aug 31 14:57:35 1993 Bill Cox (bill@rtl.cygnus.com)
7417 * ch-decl.c (print_lang_decl): Print weak-name status.
7418 (print_lang_identifier): Print signal_data as T or F.
7419 * ch-lex.l (convert_bitstring, convert_charliteral,
7420 convert_float, convert_number): Pass string directly to convert
7421 as a parameter. Return token code consistently, return 0
7423 (equal_number): Parse differently, allowing hex, binary
7424 and octal constants.
7425 * ch-parse.y (dowithaction, structured_variable): Only
7426 push/pop scopes once per DO WITH.
7427 (structured_variable_list): Check ignore_actions flag here.
7428 * gcc.c: Delete 'traditional' from string, add 'itu'
7429 as the standard flag's name.
7431 Mon Aug 30 15:12:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
7433 * ch-typeck.c, ch-tree.h (build_chill_range_type): Take 3
7434 parameters instead of 2 (explicit low and high bounds).
7435 * ch-parse.y (arrayindex): Build range type from low:high.
7436 (rangesize, optrangesize): Removed.
7437 (where appropriate): Use new build_chill_range_type interface.
7438 * ch-grant.c: Clean up writing of range and array types.
7439 * ch-satisfy.c (satisfy): Don't ignore the return value of
7440 layout_chill_array_type. (It may be an error mark.)
7441 * ch-typeck.c (build_chill_array_type): Simplify.
7442 * ch-typeck.c (layout_chill_array_type): Clean up checks.
7444 Fri Aug 27 12:55:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
7446 * ch-decl.c (decl_temp1): Set DECL_ASSEMBLER_NAME.
7447 (push_chill_extern_function) Don't set current_function_decl.
7448 * ch-parse.y (tupleelement): Don't wrap index is a TREE_LIST
7449 (i.e. a range), don't wrap a PAREN_EXPR around it.
7450 * ch-grant.c (decode_constant): For tuple CONSTRUCTORs,
7451 add support for ranges in purpose.
7453 Wed Aug 25 16:58:13 1993 Bill Cox (bill@rtl.cygnus.com)
7455 * .cvsignore: Add g++.sum
7456 * ch-actions.c (chill_expand_result): Stop building a temp.
7457 Assign the expression directly into function's DECL_RESULT.
7458 * ch-decl.c: Add formfeeds.
7459 (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
7460 (push_chill_function_context): Delete C pedwarn message.
7461 * ch-expr.c: Move builtin functions together.
7462 * ch-parse.y (end_function): Delete unused code.
7463 Reformat %union for readability. Delete _MAX and _MIN
7466 Wed Aug 25 13:24:06 1993 Bill Cox (bill@rtl.cygnus.com)
7468 * ch-actions.c (get_result_tmp_name): Delete unused function.
7469 (chill_expand_result, chill_expand_return): Rewrite for
7471 * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
7472 chain field, so we can make a temp, evaluate a RESULT action's
7473 expression into it, and hang it on here.
7474 * ch-parse.y (end_function): Look for RESULT temps to emit.
7475 (assertaction): Indentation.
7477 Wed Aug 25 08:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
7479 * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
7480 It wasn't used anyway.
7482 Tue Aug 24 17:51:18 1993 Bill Cox (bill@rtl.cygnus.com)
7484 * ch-actions.c (chill_expand_result, chill_expand_return):
7485 No need to make a temp for the value, just use DECL_RESULT.
7487 Tue Aug 24 16:38:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7489 * ch-tree.c (layout_powerset_type): Remove redundant code.
7490 Generalize (in error message) to also handle bitstrings.
7491 * ch-tree.c (build_bitstring_type): Remove all layout-like
7492 stuff, and defer that to layout_powerset_type.
7493 * ch-expr.c (chill_expand_expr): For various SET_xxx_EXPRs,
7494 allocate stack temp for target using correct mode.
7496 Tue Aug 24 10:27:19 1993 Bill Cox (bill@rtl.cygnus.com)
7498 * ch-actions.c, ch-decl.c, ch-except.c,
7499 ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
7500 ch-typeck.c: Change build_modify_expr calls to
7501 build_CHILL_modify_expr calls.
7502 * ch-expr.c (build_chill_modify_expr): Adapted from
7503 build_modify_expr in c-typeck.c.
7505 Mon Aug 23 16:48:39 1993 Bill Cox (bill@rtl.cygnus.com)
7507 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7508 ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
7509 ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
7510 Major re-allocation of functions to files.
7512 Mon Aug 23 12:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
7514 Thanks for the tip, Jim.
7515 * Makefile.in: Add dependency lines for ch-except.o and
7516 ch-satisfy.o. Correct dependency lines for ch-convert.o,
7517 ch-expr.o, ch-inout.o, and ch-loop.o.
7518 (chill, install-common): Add clean-up commands.
7520 Sat Aug 21 17:11:26 1993 Bill Cox (bill@rtl.cygnus.com)
7522 * ch-decl.c (get_type_precision): New function.
7523 (layout_enum): Call it.
7524 * ch-tree.c (layout_powerset_type, build_bitstring_type):
7527 Sat Aug 21 13:59:40 1993 Bill Cox (bill@rtl.cygnus.com)
7529 * ch-decl.c (init_decl_processing): Define setbitpowerset
7531 * ch-expr.c (chill_expand_assignment): Call setbitpowerset
7533 * ch-parse.y: Indentation.
7535 Fri Aug 20 17:29:56 1993 Bill Cox (bill@rtl.cygnus.com)
7537 * ch-parse.y: Delete unused %type declaration.
7538 * ch-tasking.c (build_signal_struct): Delete return, since
7539 function returns void.
7540 * ch-typeck.c: Indent to standard.
7541 * stor-layout.c: Fix comment.
7542 * toplev.c: Change -L option ti -I.
7543 * varasm.c (emit_set_data): Align set constant to word
7546 Fri Aug 20 08:20:07 1993 Bill Cox (bill@rtl.cygnus.com)
7548 * ch-actions.c: Fix indentation, comments.
7549 * ch-decl.c (push_chill_extern_signal): Use same interface
7550 as build_signal_struct.
7551 * ch-parse.y (quasi_signaldef): Move build_signal_decl
7552 here to sigdef. Add quasi_signal to distinguish contexts
7553 where sigdef gets used.
7554 * ch-tasking.c: Replace make_signal_struct and build_signal_decl
7555 with build_signal_decl, which doesn't loop through a
7557 * ch-tree.h: Fix protos.
7559 Wed Aug 18 17:36:53 1993 Bill Cox (bill@cygnus.com)
7561 * ch-actions.c: Fix comments.
7562 * ch-decl.c (push_modedefs): Return the new decl.
7563 (shadow_record_fields): Move pushlevel (0) calls into
7564 the grammar, so they'll get done in both passes.
7565 * ch-parse.y (dowithaction): Always compute & save # of
7566 'with' variables seen (both passes), and always pop that
7568 (structured_variable_list): Always chain variables into a list.
7569 (structured_variable): Put pushlevel here (from shadow_record_fields).
7570 * ch-tasking.c: Indentation fixes.
7571 * ch-tree.h: Change proto.
7572 * chill.texi: Add Blue Book section numbers to unimplemented
7575 Wed Aug 18 15:48:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
7577 * ch-actions.c (build_generalized_call): New function.
7578 Classifies semantically (if pass 2) this that look like calls.
7579 * ch-parse.y (call): Invoke build_generalized_call.
7580 * ch-parse.y (sigdef): Use defining_occurrence instead of NAME.
7581 * ch-parse.y (opt_untyped_exprlist): New non-terminal.
7582 * ch-satisfy.c (satisfy): Handle CALL_EXPR.
7584 Tue Aug 17 16:36:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
7586 * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
7588 Mon Aug 16 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
7590 * ch-tree.h (TUPLE_NAMED_FIELD): New macro.
7591 * ch-parse.y (labelled structure tupleelement):
7592 Set TUPLE_NAMED_FIELD flag.
7593 * ch-grant.c (decode_constant): Check for TUPLE_NAMED_FLAG.
7594 * ch-satisfy.c (satisfy): Check for TUPLE_NAMED_FLAG.
7595 Do satisfy the elements of a CONSTRUCTOR even if call
7596 chill_expand_tuple isn't correct.
7597 * ch-satisfy.c (satisfy): Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
7598 * ch-parse.y (label_spec): Defer any semantic checking until ...
7599 * ch-decl.c (layout_chill_variants): ... here.
7600 Also make sure to call layout_type on the union type.
7601 * ch-decl.c (bind_saved_names): For weak names, allocate an
7602 ALIAS_DECL, rather than a CONST_DECL.
7604 Add support for implied (weakly visible) names.
7605 * ch-tree.h (DECL_WEAK_NAME): New macro.
7606 * ch-satisfy.c (satisfy of IDENTIFIER_NODE): Don't complain
7607 if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
7608 * ch-decl.c (proclaim_name): Handle DECL_WEAK_NAME appropriately.
7609 * ch-decl.c (concat_lists, find_implied_types): New functions.
7610 * ch-decl.c (bind_saved_names): Search for implied names.
7611 * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
7612 * ch-lang.c (layout_chill_struct_type): Don't use
7613 C_DECL_VARIABLE_SIZE.
7615 Mon Aug 16 16:10:43 1993 Bill Cox (bill@rtl.cygnus.com)
7617 * ch-actions.c: Delete extra space in error message.
7618 * ch-parse.y: Fix comment.
7619 * expr.c (store_constructor): Avoid passing NULL to convert,
7620 and getting back an error_mark_node and trying to process
7623 Mon Aug 16 14:41:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
7625 * ch-decl.c: Add more overview comments.
7626 * ch-decl.c (proclaim_decl): New function.
7627 * ch-decl.c (temp_pushdecl, struct shadowing): Removed.
7628 * ch-decl.c (bind_saved_names): Remove blevel parameter;
7629 use current_scope global instead. Do some other cleanups.
7630 * ch-decl.c (save_expr_under_name): Create an ALIAS_DECL.
7631 * ch-decl.c (pushdecllist, save_expr_under_name): Use proclaim_decl.
7632 * ch-satisfy.c (satisfy, safe_satisfy_decl): Be more careful
7633 to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
7635 * chill.texi: Start collecting Chill documentation here.
7636 * ch-parse.y (mode): Ignore READ specifier, for now.
7638 Mon Aug 16 11:13:07 1993 Bill Cox (bill@rtl.cygnus.com)
7640 * ch-actions.c (chill_comptypes): Correct handling reference
7642 (build_chill_length, build_chill_num,
7643 build_chill_sizeof): Convert result to CHILL integer.
7644 (build_chill_function_call): Clean up INOUT and OUT
7646 * ch-decl.c (build_chill_function_type): Handle INOUT and
7648 * ch-loop.c: Fix up comments.
7649 * ch-parse.y: Fix up comments.
7651 Sun Aug 15 15:06:01 1993 Bill Cox (bill@rtl.cygnus.com)
7653 * ch-actions.c (build_chill_lower, build_chill_upper):
7654 Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
7655 * ch-decl.c (save_expr_under_name): New function to save
7656 addressing expressions for DO WITH and DO FOR handling.
7657 (handle_one_level): Call new function.
7658 * ch-loop.c (init_loop_counter): Call it here, too.
7659 Check lp->user_var before passing it to lookup_name.
7660 (high_domain_value, low_domain_value): Correct call
7661 to build_chill_upper and build_chill_lower.
7662 (begin_chill_loop, end_chill_loop): Move pushlevel,
7663 poplevel up into the grammar, so they're done in both
7665 * ch-parse.y (doaction): Unconditionally make a scope
7666 for a loop, pop it later.
7667 (controlpart, iteration): Save return from
7668 build_chill_iterator.
7669 * expr.c: Readability changes.
7671 Sat Aug 14 19:42:32 1993 Bill Cox (bill@rtl.cygnus.com)
7673 * ch-expr.c (chill_expand_case_expr): Complete rewrite
7674 for 2-pass. About 1/2 the size, too.
7675 * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
7676 This assures that a label preceding a module's first action
7677 is enclosed in the module-level function that's generated.
7679 Sat Aug 14 14:56:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
7681 Re-implement how EXIT is done.
7682 'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
7683 'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
7684 Hence we no longer need any support for EXIT in stmt.c.
7685 * stmt.c (stamp_nesting_label, expand_exit_labelled): Removed.
7686 * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
7687 * ch-tree.c, ch-tree.h (munge_exit_label): New function.
7688 * ch-parse.y: Re-write bracked actions to support EXIT new way.
7689 * ch-decl.c, ch-loop.c: Remove calls to stamp_nesting_level.
7690 * ch-parse.y: Replace SC by new token semi_colon, which
7691 resets the 'label' global. Also make sure that label gets
7692 reset whenever we might start a new action statement.
7693 * ch-parse.y (possibly_define_exit_label): New function.
7695 * ch-except.c (chill_start_on): Wrap an ADDR_EXPR round the jmpbuf.
7696 * ch-grant.c (chill_finish_compile): Make sure
7697 get_file_function_name is only called once.
7698 * ch-expr.c (chill_expand_array_assignment): Use store_expr,
7699 instead of incorrectly calling emit_block_move.
7701 * ch-parse.y (procedure): Call push_chill_function_context
7702 in *both* passes (if nested).
7703 * ch-parse.y (primval): Call get_type_of before chill_expand_type.
7704 * ch-parse.y (tupleelement): Only build PAREN_EXPR during pass 1.
7706 Fri Aug 13 16:36:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
7708 Re-implement GRANT and SEIZE, to support prefixes and prefix
7709 rename. All of the Blue Book semantics for these should
7710 now work (except FORBID).
7711 * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
7712 DECL_POSTFIX, DECL_POSTFIX_ALL): New ALIAS_DECL layout and macros.
7713 * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
7714 decl_check_rename): New functions.
7715 * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
7716 * ch-satisfy.c (satisfy_decl): Handle SYN initialized with tuple.
7717 * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
7718 * ch-decl.c (pushdecllist): ... instead of here, which is too late.
7719 * ch-grant.c (decode_prefix_rename): New function.
7720 Use to print out GRANT and SEIZE statements.
7721 * ch-decl.c (ALL_POSTFIX): New global variable.
7722 * ch-decl.c (bind_saved_names, pop_module): Change to use new
7723 ALIAS_DECL layout, and support general prefix rename and ALL.
7724 * ch-decl.c (various places): Don't barf if DECL_ANME is NULL.
7725 * ch-parse.y (build_prefix_clause): New function (handle PREFIXED).
7726 * ch-parse.y (optprogendname, optname): Rename to opt_end_label.
7727 * ch-parse.y: Add support for compound name strings, but defer
7728 using all over teh place, due to parser ambiguities.
7729 Howver, do use defining_occurrence where appropriate.
7730 * ch-parse.y: Re-write syntax and semantics of GRANT and SEIZE
7731 statements to support Blue Book functionality. Neato!
7733 Fri Aug 13 17:10:52 1993 Bill Cox (bill@rtl.cygnus.com)
7735 * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
7736 * ch-decl.c (decl_temp1): Rewrite to return generated decl.
7737 (decl_temp): Deleted.
7738 * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
7739 * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
7740 readability, add comment.
7741 * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
7742 * ch-tree.h: Delete decl_temp proto, change decl_temp1.
7744 Fri Aug 13 13:39:59 1993 Bill Cox (bill@rtl.cygnus.com)
7746 * ch-decl.c (decl_temp): Break the chain of decls. This
7747 prevents an infinite loop.
7748 * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
7749 * ch-lex.l (equal_number): Check passes in looking up a
7751 * ch-parse.y: Fix comments.
7752 * ch-tasking.c (tasking_setup): Only act in pass 2.
7753 (make_signal_struct, build_signal_decl,
7754 build_chill_receive_case_label): Don't go indirect
7755 thru NULL decl pointer.
7757 Thu Aug 12 11:02:34 1993 Bill Cox (bill@rtl.cygnus.com)
7759 * ch-actions.c (route_to_predefined_function): New function called
7760 from build_chill_function_call, to call the proper predefined routine.
7761 (build_chill_card, build_chill_length, build_chill_lower,
7762 build_chill_max, build_chill_min, build_chill_num,
7763 build_chill_pred, build_chill_sizeof, build_chill_succ,
7764 build_chill_upper): Rewritten to run only in pass 2.
7765 * ch-decl.c (init_decl_processing): Build predefined functions for card,
7766 length, lower, max, min, num, pred, sizeof, succ and upper. Delete
7767 unused builtin_function calls.
7768 * ch-grant.c (chill_finish_module_code): Save current_function_decl
7769 before calling finish_chill_function, and use that to build the
7770 initializer structure.
7771 * ch-lex.l: Remove following tokens, since they're now just predefined,
7772 not reserved: card, length, lower, max, min, num, pred, sizeof, succ
7774 * ch-loop.c: Readability, indentation changes.
7775 * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
7776 sizeof, succ and upper. Delete special rules for calls to these.
7777 Delete mode_location and upper_lower_arg non-terminals.
7778 (pmodearg): Eliminate convolutions.
7779 (call): Add rule for typename parameter.
7780 * ch-tasking.c: Readability changes.
7781 * ch-tree.h: Add prototypes.
7783 Thu Aug 12 00:38:17 1993 Per Bothner (bothner@kalessin.cygnus.com)
7785 * ch-decl.c (save_decl): Set DECL_CONTEXT (decl).
7786 * ch-grant.c (chill_finish_module_code): Call
7787 finish_chill_function with nested==0.
7788 * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y: Rename
7789 {push,pop}_c_function_context to {push,pop}_chill_function_context.
7790 * ch-parse.y (end_function): If nested, call
7791 pop_chill_function_context regardless of which pass we're in.
7793 Wed Aug 11 02:34:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
7795 * ch-actions.c (finish_chill_binary_op): Handle error marks.
7796 * ch-decl.c (do_decl): Laying out decl and generating rtl
7797 is too late to do here (if there are forward references), so ...
7798 * ch-satisfy.c (satify_decl): ... do it here instead.
7799 * ch-decl.c (finish_enum): Fixup types of enum decls now.
7800 * ch-satisfy.c (safe_satisfy_decl): New routine. Supports
7801 checking illegal cyclic definitions.
7802 All *satisfy* routines now take a 'chain' parameter (instead
7803 of 'lookup_only') used for checking cycles.
7804 * ch-satisfy.c (satisfy_decl): Return DECL_INITIAL if appropriate.
7805 * ch-satisfy.c (satisfy): Lots of little fixes.
7807 * ch-lex.l (init_lex): Make all the standard ridpointers be
7808 lowercase, so that lookup_name on lower-cased user input
7809 will find the standard types.
7810 * ch-lex.l: Remove all the standard types, in effect
7811 converting them from reservered anmes to predefined names.
7812 * ch-lex.l, ch-parse.y: Remove PREDEF_MODEDECL - no longer used.
7813 * ch-grant.c (gfile): Rename to grant_file_name.
7814 * ch-lex.l (yywrap): Don't try to seize current grant_file_name.
7816 * initname.c: Removed. get_file_function_name is now in tree.c
7817 * Makefile.in (CHILL_OBJS): Remove initname.o
7819 * ch-decl.c (do_decl): New function, based on loop body of do_decls,
7820 * ch-decl.c (do_decls): Just call do_decl.
7821 * ch-grant.c (chill_finish_module_code): Minor cleasnups.
7822 Use new do_decl routine. Clear init_entry_decl's source line.
7823 * ch-grant.c (print_proc_tail): Fix for new param list structure.
7824 * ch-parse.y (whatpdef): Removed. Cleaned up procedure
7825 and process, allowing proper end-label-checking.
7826 * ch-typeck.c (build_chill_cast): Remove decl->type conversion.
7828 Wed Aug 11 00:33:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
7830 * ch-decl.c (layout_enum): Don't call rest_of_type_compilation.
7832 * ch-lex.l (RETURN_PREDEF): Don't call lookup_name.
7833 * ch-expr.c (build_chill_indirect_ref): Call get_type_of.
7834 * ch-parse.y (call): Call get_type_of before build_chill_cast.
7836 Tue Aug 10 21:33:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
7838 * ch-actions.c (build_char_array_expr): If a concat operand is
7839 a constant char, convert it to a STRING_CST.
7840 * ch-decl.c (finish_decl): Call rest_of_decl_compilation
7842 * ch-typeck.c (build_chill_cast): Allow type to be TYPE_DECL.
7844 * ch-parse.y (actionlabel): Call define_label in both passes.
7845 * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
7846 New functions, using lookup_name to find LABEL_DECLs.
7847 * ch-parse.y (GOTO, EXIT): Use above new functions.
7848 * ch-tasking.c (struct rc_state_type *current_rc_state):
7849 Use to store state for the current receive case statement.
7850 (build_chill_receive_case_start, build_chill_receive_case_end):
7851 Don't generate temporary LABEL_DECL; just use gen_label_rtx.
7852 * ch-decl.c: Remove all stuff dealing with specific label scopes,
7853 including functions push_label_level, pop_label_level.
7854 * ch-decl.c (define_label): Re-write for 2-pass.
7855 * ch_tree.h (lang_identifier): Removed label_value.
7856 * ch-tree.h (IDENTIFIER_LABEL_VALUE): Removed.
7858 * ch-parse.y (modename): Changed to yield identifier, not type.
7859 This allows following changes, which work better for 2-pass:
7860 (location): primval ARROW optmodename -> primval ARROW optname.
7861 (primval): Tuple can now be prefixed by unsatisfied name.
7863 * ch-actions.c (chill_grant_only): Renamed to grant_only_flag.
7864 * ch-lex.l (yywrap): Don't read seizefiles if grant_only_flag.
7865 * ch-decl.c (switch_to_pass_2): Exit if grant_only_flag,
7867 * ch-satisfy.c (satisfy): Support CONSTRUCTOR, REFERENCE_TYPE.
7868 * ch-satisfy.c (satisfy_decl, satisfy): Kludge around
7869 to a TYPE_DECL can be simplified to its type.
7870 * ch-expr.c (build_chill_indirect_ref): New function.
7871 * ch-lex.l (prepare_paren_colon): Make kludge even uglier,
7872 since the left paran might already have been seen.
7873 * ch-lang.c (make_chill_pointer_type): Allow parameter
7874 to select pointer or reference type.
7875 (build_chill_reference_type): New function.
7876 Either function: Be more careful (in case arg is identifier).
7877 * ch-except.c (initialize_exceptions): Make
7878 exception_stack_decl be public.
7879 * ch-actions.c (build_char_array_expr): Can only
7880 constant fold if operands are STRING_CST.
7881 * ch-grant.c (raw_decode_mode): Allow TYPE_DECL.
7882 (chill_finish_compile: Set TREE_PUBLIC of init function to 1.
7884 Tue Aug 10 17:55:12 1993 Bill Cox (bill@rtl.cygnus.com)
7886 * ch-actions.c (build_char_array_expr): Set array sizes correctly.
7887 * ch-decl.c: Fix comment.
7888 * ch-parse.y (pmodearg): Build tree_list in all cases.
7889 * varasm.c (assemble_tasssking_entry): Delete unused code.
7891 Tue Aug 10 13:58:21 1993 Bill Cox (bill@rtl.cygnus.com)
7893 * ch-actions.c (build_char_array_expr): save/restore
7894 a tree's constant status.
7895 (build_chill_binary_op): Don't convert an expression
7896 if the type we're converting to is NULL.
7897 * ch-convert.c (maybe_turn_scalar_into_array): New functions.
7898 Call it from convert, and from ..
7899 * ch-expr.c (chill_expand_assignment): call new function.
7900 Move convert code earlier, too.
7901 * ch-decl.c (lookup_name): Delete bogus error message.
7902 * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
7904 * ch-typeck.c (valid_array_index): Comment out some strange code
7905 which now seg faults.
7906 (chill_expand_tuple): Re-enable prepending of VARYING
7908 (chill_similar): Return FALSE if either mode is NULL_TREE.
7910 Tue Aug 10 07:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
7912 * ch-decl.c: Delete proto for unused function shadow_tag_warned.
7913 Add commented-out calls to pushtag, in case we decide later
7914 to fill in TYPE_STUB_DECL for dbxout.
7915 * ch-lang.c (build_chill_struct_type): Add commented-out
7916 calls to pushtag, in case we decide later to fill in
7917 TYPE_STUB_DECL for dbxout.
7919 Mon Aug 9 23:09:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
7921 * ch-decl.c (chill_seize): Don't get_next_next in pass 2.
7922 * ch-decl.c (get_next_decl): Skip ALIAS_DECLs.
7923 * ch-decl.c (bind_saved_names): Handle SEIZE ALL.
7924 * ch-lang.c (layout_chill_struct_type): Don't call
7925 rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
7926 * initname.c (get_file_function_name): Get new file and
7927 function for language-independent constructor name generation.
7928 * ch-grant.c (get_init_function_id): Removed.
7929 * ch-grant.c (chill_finish_compile): Call get_file_function_name
7930 instead of get_init_function_id.
7932 Mon Aug 9 18:33:36 1993 Bill Cox (bill@rtl.cygnus.com)
7934 * ch-decl.c: Formfeeds and comments.
7935 * ch-parse.y (quasi_formpar): Treat just like real formpar.
7936 Eliminate restriction on single name.
7937 (pmodearg, pmodearglist): Remove ignore_exprs stuff.
7939 Mon Aug 9 17:21:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
7941 * ch-lex.h (enum rid), ch-lex.l (init_lex): Added RID_ALL.
7942 * ch-lang.c (build_chill_pointer_type): Layout the pointer type,
7943 if the pointee is laid out, even if pass==1.
7944 * ch-parse.y: Set ignore_exprs=(pass=2) for entire spec module.
7946 Mon Aug 9 15:44:01 1993 Bill Cox (bill@rtl.cygnus.com)
7948 This version compiles the 5-line program. Thanks, Per!
7949 * ch-decl.c (print_lang_decl, print_lang_identifier):
7950 Add appropriate calls to indent_to(). Rename reverse_scopes
7951 to switch_to_pass_2, and wait to set pass = 2 until
7953 * ch-grant.c (chill_finish_module_code): Set module_init_list
7954 non-NULL in pass 1; in pass2, chain on the module_init
7956 (chill_finish_compile): Clear module_init_list to NULL.
7957 * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
7958 Rename reverse_scopes to switch_to_pass_2, delete setting
7960 * ch-tree.h: Rename reverse_scopes proto.
7962 Mon Aug 9 13:21:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
7964 * ch-decl.c (build_enumerator): If name is NULL,
7965 don't call save_decl or get_next_decl.
7966 * ch-decl.c (layout_enum): Fix calculation of next value.
7967 * ch-grant.c (print_enumeral): Re-do for new 2-pass scheme.
7968 * ch-grant.c (decode_constant): Better CONSTRUCTOR support.
7970 Mon Aug 9 11:59:12 1993 Bill Cox (bill@rtl.cygnus.com)
7972 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
7973 ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
7974 Lots of new prototypes.
7976 Mon Aug 9 01:00:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
7978 * ch-lex.h: Remove unused RID_'s. Make sure RID_MAX is last.
7979 * ch-decl.c (init_decl_processing): Moved ridpointers
7980 initialization to init_lex(). Use them consistently.
7981 * ch-lex.l (RETURN_PREDEF): New macro. Uses ridpointers
7982 for all preferedined types.
7983 * ch-lex.l (init_lex): Upper case all RIDs, so grantfiles
7984 (and error messages?) will use uppercase.
7985 * ch-decl.c (build_chill_enumerator): Merged into build_enumerator.
7986 * ch-lang.c (finish_chill_enum): Merged into ...
7987 * ch-decl.c (finish_enum): .... this function.
7988 * ch-decl.c (layout_enum): New function. Does all the pass-2
7989 stuff for enumerations.
7990 * ch-decl.c (finish_enum, start_enum): Only trivial pass-1 stuff.
7991 * ch-satisfy.c (satisfy): Support ENUMERAL_TYPE. Improve ranges.
7992 * ch-parse.y: Check ignore_exprs instead of ignore_decls when
7993 parsing and building types.
7995 Sun Aug 8 16:26:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
7997 * ch-lex.h: Add some missing RID_'s.
7998 * ch-decl.c (init_decl_processing):
8000 Sun Aug 8 15:32:54 1993 Bill Cox (bill@rtl.cygnus.com)
8002 * ch-grant.c (module_has_actions): Delete this and all
8003 references. It was a botch.
8004 (chill_finish_module_code): Move finish_chill_function_call inside
8005 the test whether actions were found at module level.
8006 Use current_function_name in the initializer build,
8007 and init_entry_id in the module_list setup.
8008 (chill_finish_compile): Call lookup_name to get the
8009 decl from a module_init_list entry.
8010 * ch-parse.y: Revert module_has_actions additions.
8011 * ch-satisfy.c (satisfy): After satisfying the type referenced
8012 by a pointer_type, call layout type for the pointer.
8013 * ch-tasking.c (tasking_registry): Only active in pass 2.
8014 * ch-typeck.c: Call build_chill_pointer_type everywhere.
8016 Sun Aug 8 13:13:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
8018 * ch-tree.def (PAREN_EXPR): New unary op: '(' EXPR ')'.
8019 * ch-parse.y (primval): If pass 1, generate PAREN_EXRR.
8020 * ch-satisfy.c (satisfy): Reduce PAREN_EXPR to its operand.
8021 * ch-grant.c (decode_const): Handle PAREN_EXPR.
8022 * ch-decl.c (pop_module): Fix think. Inprove error message.
8024 Sun Aug 8 10:31:04 1993 Bill Cox (bill@rtl.cygnus.com)
8026 Generally, replace 'function' with 'procedure'
8027 and 'type' with 'mode' in error/warning messages.
8028 * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8029 * ch-decl.c: See Generally.
8030 (init_decl_processing): Call build_tasking_enum from here.
8031 Now, it doesn't need a flag to do its work only once.
8032 Also, build the TaskingStruct decl here.
8033 * ch-grant.c: Remove references to `current_grant_file';
8034 there's now only one. See Generally. Do gcc -Wall cleanup.
8035 * ch-lex.l: Remove references to `current_grant_file'
8036 and delete USE_GRANT_FILE token.
8037 * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8038 * ch-tasking.c (tasking_setup): Move TaskingStruct build
8039 to init_decl_procesing. Delete build_tasking_enum calls.
8040 * ch-tree.c: See Generally.
8041 * ch-tree.h: Add proto for build_tasking_struct.
8043 Sun Aug 8 08:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8045 * ch-decl.c: Make unnamed_module_number static, reset it to zero
8046 before pass 2, so same module names get generated in both passes.
8047 (push_module): Return user name or generated name.
8048 (init_decl_processing): Build __tmp_initializer_type.
8049 Code moved from chill_finish_module_code.
8050 * ch-grant.c: New flag module_has_actions. Set TRUE by push_actions,
8051 used, reset by chill_finish_module_code. Replaces test of
8052 module_function_name. Shuffled finish-up code to end of module.
8053 (chill_finish_module_code): Use global_bindings_p to determine
8054 'nested' parameter for finish_chill_function. Use new
8055 module_has_actions flag to trigger generation of module_init list
8056 entry. We now can handle not only multiple modules per file,
8057 but modules nested inside functions (I think).
8058 * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8059 * ch-parse.y (push_actions): Set module_has_actions flag.
8060 (modulion, spec_module): Save possibly-generated module name
8061 returned by push_module.
8062 * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8063 case for POINTER_TYPE.
8064 * ch-tasking.c: Replace build_pointer_type calls with
8065 build_chill_pointer_type calls.
8066 * ch-tree.h: Fix, add prototypes.
8068 Sat Aug 7 17:32:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8070 * ch-parse.y: Remove many useless tests for ignore_decls.
8071 * ch-parse.y: Remove obsolete support for _EXTERN and _INIT.
8072 * ch-parse.y: Reset ignore_exprs while parsing declarations,
8073 but handle initializers appropriately.
8074 * ch-grant.c (decode_constant): Update (for 2-pass) support
8075 for CONSTRUCTOR and SET_TYPE.
8076 * ch-grant.c (chill_initializer_name): Renamed to
8077 module_function_name.
8078 * ch-grant.c (function_generated): Removed;
8079 use module_function_name != NULL instead.
8080 * ch-tree.h, ch-parse.y: Removed unused current_locnamelist.
8081 * ch-decl.c (push_modedef): Simplify to take just one mode.
8082 * ch-tasking.c (make_process_struct, make_signal_struct):
8083 Change calls to push_modedef correspondingly.
8084 * ch-tree.c (build_powerset_type): Move the stuff that's
8085 suitable for pass 1 into new function make_powerset_type,
8086 and that for pass 2 into new function layout_powerset_type.
8087 * ch-lang.c: Move pass-1 stuff from build_chill_pointer_type
8088 into new function make_chill_pointer_type, and split
8089 build_chill_struct_type into make_chill_struct_type
8090 and layout_chill_struct_type.
8091 * ch-decl.c (grok_chill_variantdefs): Similarly split up
8092 into make_chill_variants and layout_chill_variants.
8093 * ch-satisfy.c (satisfy): Add support for SET_TYPE, and UNION_TYPE.
8094 Call layout_chill_struct_type for RECORD_TYPE.
8096 Sat Aug 7 09:59:55 1993 Bill Cox (bill@rtl.cygnus.com)
8098 Fixup previous check-in.
8099 * ch-decl.c: Restore unnamed_module_number, which *was*
8101 * ch-grant.c (get_init_function_id): Return type s.b. tree.
8103 Sat Aug 7 09:28:17 1993 Bill Cox (bill@rtl.cygnus.com)
8105 * ch-decl.c (print_lang_decl, print_lang_type): Add
8106 correct parameter list. Add print statements for
8107 nesting_level, signal_dest, buffer_size, and the
8109 (decl_temp, decl_temp1): Delete unused code.
8110 (init_decl_processing): Call build_instance_type and
8111 build_tasking_type in both passes.
8112 Generally change current_scope comparisons against
8113 global_scope to global_biidings_p calls.
8114 * ch-except.c (push_handler): Add space before parameter paren.
8115 * ch-grant.c (chill_start_module, chill_finish_module,
8116 chill_finish_compile): Complete re-write for 2-pass and
8117 multiple modules per source file.
8118 * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8119 * ch-tasking.c: Diffused small adaptations to 2-pass.
8120 * ch-tree.h (print_lang_decl, print_lang_type): Correct
8122 (chill_finish_module_code): Add module name parameter.
8123 * ch-typeck.c: Fix comments, add whitespace.
8125 Fri Aug 6 12:17:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
8127 * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8128 way I allocated the shadow_list on an obstack was too fragile,
8129 so just use xmalloc/free instead.
8131 Fri Aug 6 08:31:49 1993 Bill Cox (bill@rtl.cygnus.com)
8133 * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8134 TYPE_MAX_VALUE for vanilla integer type. Only need
8135 to satisfy TREE_TYPE for integer range type.
8137 Fri Aug 6 00:53:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
8139 * ch-lang.c (build_chill_range_type): Split up into two new
8140 functions (make_chill_range_type, layout_chill_range_type);
8141 only former part is done in pass 1.
8142 * ch-lang.c (build_chill_array_type): Split up in the same
8143 way (yielding make_chill_array_type, layout_chill_array_type).
8144 * ch-satisfy.c (satisfy): Handle array and range types.
8145 * ch-tree.h (TYPE_RANGE_PARENT): Removed. Not used.
8146 * ch-parse.y (mode2): Handle optional rangesize.
8148 Thu Aug 5 15:13:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
8150 * ch-grant.c (print_an_int): Re-enable (but don't search for SYN).
8151 * ch-grant.c (raw_decode_mode): Support printing
8152 of an IDENTIFIER_NODE (unresolved type name).
8153 * ch-grant.c (decode_constant): Support printing of an unresolved
8154 IDENTIFIER_NODE, as well as some kinds of binary operations.
8155 * ch-grant.c (grant_one_decl): Don't call globalize_decl.
8157 * ch-grant.c (decode_decl): Add support for ALIAS_DECLs
8158 (from SEIZEs and GRANTs).
8159 * ch-grant.c: Remove support for multiple grantfiles.
8160 * ch-grant.c, ch-parse.y: Removed grant_count, for now at least.
8161 * ch-lex.h (in_seizefile): Moved to ch-tree.h.
8162 * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c: Removed.
8163 * ch-tree.h (CH_DECL_GRANTED): Added.
8164 * ch-actions.c (build_chill_exception_decl): Use
8165 IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8166 * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8167 Change to accept list of remember_decls and granted_decls.
8169 Thu Aug 5 11:58:21 1993 Stan Shebs (shebs@rtl.cygnus.com)
8171 * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8173 Thu Aug 5 10:03:27 1993 Bill Cox (bill@rtl.cygnus.com)
8175 * ch-decl.c (init_decl_processing): Only build types
8176 in pass 2, since dbxout machinery is only ready for
8178 * ch-grant.c (chill_finish_module_code): Do most of the
8181 Thu Aug 5 06:54:10 1993 Bill Cox (bill@rtl.cygnus.com)
8183 * ch-parse.y (receivecaseaction): Pass label-group
8185 * ch-tasking.c (build_chill_receive_case_start):
8186 Generate unique labels for each case, pass back
8187 the label-group's number.
8188 (build_chill_receive_case_end): Accept label-group
8189 number from parser, use it to build labels
8190 * ch-tree.h: Change prototypes.
8192 Wed Aug 4 13:21:13 1993 Per Bothner (bothner@kalessin.cygnus.com)
8194 * ch-decl.c (decl_temp1): Call finish_decl().
8196 * ch-grant.c (chill_start_module_code): Don't call
8197 push_c_function_context - not needed since we're not nested.
8198 * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8199 with nested=0, not 1 (twice).
8200 * ch-grant.c (chill_finish_module_code): Clear function_generated.
8202 Tue Aug 3 20:06:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8204 * ch-decl.c (push_chill_extern_function): Set TREE_PUBLIC.
8206 Tue Aug 3 19:08:51 1993 Bill Cox (bill@rtl.cygnus.com)
8208 * ch-actions.c (build_chill_function_call): Handle parameter
8209 attributes better - LOC still not handled.
8210 * ch-tree.def: Amplify comment.
8212 Tue Aug 3 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8214 * ch-lex.l (handle_use_seizefile_directive): Update
8215 next_file_to_seize correctly.
8216 * ch-actions.c (build_chill_abs): Create an ABS_EXPR, not an rts_call.
8218 Tue Aug 3 14:03:50 1993 Bill Cox (bill@rtl.cygnus.com)
8220 First Aid, not real long-term fixes...
8221 * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8222 current_module pointer for NULL before using it.
8223 (init_decl_processing): Set up wchar_type_node before using it.
8224 * ch-grant.c (chill_finish_module_code): Don't build
8225 initializer_type or initializer_decl until pass 2.
8226 * ch-lex.l: Readability - single statement per line.
8227 * ch-tasking.c (make_process_struct): Hide get_parm_info
8228 call inside #ifdef for now.
8230 Tue Aug 3 09:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8232 * ch-decl.c (pushdecllist): Add forward decl.
8233 * ch-parse.y (handler): Add rules which allo
8234 empty onalternativelist.
8235 * ch-tasking.c (get_tasking_code_name): Add
8236 cast of alloca() result.
8238 Tue Aug 3 00:11:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8240 * ch-lex.l (handle_use_seizefile_directive): Make files_to_seize
8241 a queue. Check for duplicate use_seizefile-s immediately.
8242 * ch-lex.l (yywrap): Use this more portable mechanism,
8243 rather than the flex-specific <<EOF>>. Also, clear saw_eof.
8244 * ch-lex.l: Don't call push_module/pop_module automatically.
8245 * ch-decl.c (push_chill_extern_function: Modify for 2-pass.
8247 Mon Aug 2 14:24:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
8249 * ch-parse.y: Rename actionstatement -> nonempty_actionstatement.
8250 New actionstatement is now nonempty_actionstatement | SC. Use
8251 where appropriate. This is closer to Blue Book terminology.
8253 * ch-tree.def (ALIAS_DECL): New tree type.
8254 * ch-decl.c: Merged all the code we need (I hope) from c-decl.c,
8255 which is no longer used for cc1chill.
8256 * c-decl.c: Remove all Chill-related code.
8257 * Makefile.in (CHILL_OBJS): Don't use c-decl.o.
8258 * ch-decl.c: No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
8259 Introduce a 'nesting_level' level concept instead.
8260 * ch-decl.c: Merged push_scope into pushlevel; pop_scope into
8261 poplevel; struct scope and struct binding_level.
8262 * ch-decl.c: Other major name lookup algorithm changes.
8263 * ch-tree.h (struct lang_identifier): Remove granted_value field.
8264 * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro): Removed.
8265 * ch-tree.h (DECL_NESTING_LEVEL): New macro.
8266 * ch-satisfy.c (satisfy, satisfy_decl): New 'lookup_only' arg.
8267 * ch-tree.h (struct module): New fields nesting_level, granted_decls.
8268 * ch-grant.c (seize_implied_names, do_seize, chill_seize): Move ...
8269 * ch-decl.c: ... here.
8270 * ch-grant.c (start_chill_function2): Remove.
8271 * ch-grant.c (chill_start_module_code): Now called in both passes.
8272 * ch-actions.c (lang_init): Code moved to ...
8273 * ch-decl.c (init_decl_processing): ... here.
8274 * ch-actions.c (chill_expand_result, chill_expand_return):
8275 Handle being called during pass 1.
8276 * ch-lex.l (name_type_signal): Don't try lookup_name during pass 1.
8277 * ch-parse.y (PUSH_ACTION, push_action): Is now invoked during
8278 both passes, for the sake of chill_start_module_code. Change all
8279 actions rules to invoke PUSH_ACTION unconconditionally.
8280 * ch-parse.y, ch-decl.c (push_module): Module label is now optional.
8282 Mon Aug 2 15:02:32 1993 Bill Cox (bill@rtl.cygnus.com)
8284 * expr.c (store_constructor): Convert library function
8285 parameters to proper integer precision before calling
8288 Mon Aug 2 08:46:06 1993 Bill Cox (bill@rtl.cygnus.com)
8290 * ch-grant.c (seize_implied_names): Check POWERSET's
8291 base type for names to seize.
8293 Fri Jul 30 19:59:30 1993 Bill Cox (bill@rtl.cygnus.com)
8295 * ch-tree.h: Delete unused definition of JOINER
8296 macro. Expand comment about INSTANCE_TYPE.
8298 Thu Jul 29 14:57:11 1993 Bill Cox (bill@rtl.cygnus.com)
8300 * ch-convert.c (unreferenced_type_of): New function.
8301 (convert): Call new function.
8303 Thu Jul 29 07:34:57 1993 Bill Cox (bill@rtl.cygnus.com)
8305 * ch-lex.l: Allow C-style comments before the module
8306 header. Use #undef to assure that strchr isn't a
8307 macro (portability), and remove the extra paren-
8308 theses in its extern name.
8309 (check_newline): Call getlc less often, so that user
8310 labels aren't lowercased before their time. Add BEGIN
8311 INITIAL before starting pass 2, so the header is
8314 Wed Jul 28 14:23:24 1993 Bill Cox (bill@rtl.cygnus.com)
8316 * ch-grant.c (chill_start_module_code): Cast alloca()
8319 Wed Jul 28 12:39:51 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8321 * ch-grant.c: remove extra parens around extern function
8322 declarations (they confuse the DECstation compiler)
8324 Wed Jul 28 12:28:56 1993 Bill Cox (bill@rtl.cygnus.com)
8326 * Makefile.in: Stop deleting flex's #line lines.
8328 Wed Jul 28 07:05:25 1993 Bill Cox (bill@cygnus.com)
8330 Adjust after FSF merge:
8331 * calls.c (expand_call): Add comment.
8332 * ch-expr.c: Add newline.
8333 * expmed.c (store_split_bit_field): Add comment.
8335 Tue Jul 27 17:32:13 1993 Bill Cox (bill@rtl.cygnus.com)
8337 * ch-actions.c (build_chill_binary_op): Set code0 and
8338 code1 only in pass 2.
8339 (get_result_tmp_name): Cast alloca return for portability.
8340 * ch-decl.c (pop_module): Test current_module ptr before
8342 * ch-lex.l: Set lineno and input_filename for pass 2
8345 Tue Jul 27 15:14:06 1993 Bill Cox (bill@rtl.cygnus.com)
8347 * ch-lex.l: Fix the syntax error at line 329. Will I
8348 *ever* quit fixing these in the ch-lex.c file? Stay tuned..
8350 Tue Jul 27 15:01:25 1993 Bill Cox (bill@rtl.cygnus.com)
8352 * ch-lex.l: Pervasive rewrite for queueing seize files,
8353 then parsing them at the end of pass 1. Still some
8356 Tue Jul 27 07:40:39 1993 Bill Cox (bill@rtl.cygnus.com)
8358 * chill.in: Check for .i suffices only, and use -xchill
8359 to bracket the argument.
8361 Thu Jul 22 19:17:23 1993 Bill Cox (bill@rtl.cygnus.com)
8363 * c-decl.c (print_lang_identifier): Oops. Syntax error.
8365 Thu Jul 22 18:56:16 1993 Bill Cox (bill@rtl.cygnus.com)
8367 * c-decl.c (pushdecllist): Standardize loop for readability.
8368 * ch-decl.c (decl_temp): Call pushdecllist to store decl
8369 into hash table, move after current_scope declaration.
8370 (decl_temp1): Move also.
8371 * ch-lex.l (getlc): New function. Force char to lower case.
8372 (check_newline): Call it, so comparisons work on uppercase
8375 Wed Jul 21 22:17:22 1993 Bill Cox (bill@rtl.cygnus.com)
8377 * ch-decl.c (do_decls): Add saving of decl tree
8378 address into ID node in pass 2, reindent.
8379 * ch-grant.c (start_chill_function2): New function.
8380 (chill_start_module_code, chill_finish_module_code): Call it.
8381 * ch-loop.c (build_temporary_variable, begin_for_range):
8382 Replace start_decl, finish_decl pairs with decl_temp1 calls.
8383 * ch-parse.y (parnamelist): Eliminate warning by eliminating
8385 * ch-actions.c, ch-tasking.c: Replace do_decls calls with
8387 * ch-tree.h: New prototypes.
8388 * stmt.c (stamp_nesting_label): Check parameters for NULL.
8389 * toplev.c (lang_options): Add '-L' option.
8391 Wed Jul 21 21:06:18 1993 Bill Cox (bill@rtl.cygnus.com)
8394 * ch-decl.c (save_decl): Make definition match forward declaration.
8395 * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
8396 in the macro - Sun's compiler throws warnings. Thanks, Brendan.
8397 * ch-satisfy.c (satisfy): Add forward declaration.
8398 (SATISFY): Add outer parens for greater safety.
8400 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8402 * c-decl.c (pushdecllist): New function. Add a list of decls
8403 to the current scope, checking for duplicates.
8404 * c-decl.c (start_function): Remove some Chill junk.
8405 (This function should no longer be used for Chill.)
8406 * ch-lex.l (ch_lex_init): New function, to re-init for 2nd pass.
8407 * ch-lex.l (<<EOF>>): Cleanup, and re-start for 2nd pass.
8408 * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG): New flags.
8409 * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
8410 Implement. Add comments.
8411 * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
8412 Better Blue Book type checking.
8413 * ch-actions.c (finish_chill_binary_op): Handle folding
8414 and other stuff that couldn't be done in pass 1.
8415 * ch-actions.c (build_chill_binary_op): Bail out early if pass 1.
8416 Use new CH_ROOT_MODE macro to handle integer promotions etc.
8417 * ch-except.c (push_handler): Bail out if pass 1.
8418 * ch-tasking.c (make_process_struct): Defer making this work.
8419 * ch-parse.y (assignaction): Simplify, and move some code ...
8420 * ch-expr.c (chill_expand_assignment): ... here.
8421 * ch-typeck.c (chill_root_mode, chill_resulting_mode,
8422 chill_compatible_classes): New functions, implementing the
8423 correspondingly named Blue Book concepts.
8424 * ch-parse.y generally: Lots of little tweaks to support
8426 * ch-parse.y (push_module, pop_module): Moved to ...
8427 * ch-decl.c (push_module, pop_module): ... here.
8428 * ch-parse.y (push_action): New function.
8429 * ch-parse.y (pdef): Move complicated action to ...
8430 * ch-parse.y (end_function): ... new function here.
8431 * ch-parse.y (procedure): Major re-write.
8432 * ch-parse.y (paramname, paramnamelist): New, to avoid conflict (?).
8433 * ch-decl.c (do_decls, push_syndecls, push_modedef,
8434 start_chill_function, finish_chill_function): Do different things
8435 on each pass. Hence, can use code in c-decl.c to lesser extent.
8436 * ch-decl.c (build_chill_function_type): First arg is now
8437 just the return type, rather than a singleton list.
8438 * ch-decl.c (massage_param_node): Remove not needed (we
8439 now encode parameter attributes directly in the TREE_PURPOSE).
8440 * ch-decl.c (chill_munge_params): New function, called by parser.
8441 * ch-decl.c (push_parms): Removed function.
8442 * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
8443 New functions, to coordinate decls between passes.
8445 Wed Jul 21 14:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
8447 * ch-actions.c (lang_decode_option): Add option -Lpath
8448 to specify seize file path.
8449 (ch_singleton_set): Readability formatting.
8450 Add comment, move functions to easier found places.
8451 * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
8452 (register_seize_path): Use memcpy so pathlen has an effect.
8453 * gcc.c (default_compilers): Add -L option to chill
8456 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8458 * ch-satisfy: New file. Used for name lookup.
8459 * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
8461 Wed Jul 21 12:16:51 1993 Bill Cox (bill@rtl.cygnus.com)
8463 * toplev.c (main): Delete -L option handling - breaks
8464 non-chill compilers.
8466 Wed Jul 21 09:29:24 1993 Bill Cox (bill@rtl.cygnus.com)
8468 * ch-grant.c: #undef strchr and strrchr names in extern
8469 declarations, to prevent RS6000 compiler from reporting
8470 their misuse as macros.
8471 * ch-lex.l (setup_seizefile_read): Refer to list of paths
8472 for seizefiles specified by -L options on command line.
8473 (register_seize_path): Add a new path to the seize file list.
8474 * toplev.c (strip_off_ending): Recognize chill suffix.
8475 (main): Recognize -L option, specifying a seize file path.
8477 Tue Jul 20 12:41:52 1993 Bill Cox (bill@rtl.cygnus.com)
8479 * ch-lex.l (convert_float): Make it really portable,
8480 using the appropriate macros.
8482 Tue Jul 20 11:26:02 1993 Bill Cox (bill@rtl.cygnus.com)
8484 * ch-lex.l (convert_float): More casts for vxworks
8487 Tue Jul 20 11:01:30 1993 Bill Cox (bill@rtl.cygnus.com)
8489 * ch-lex.l (convert_float): Give variable `d' correct
8490 type so build_real call is correct. Should remove
8491 vxworks portability problem.
8492 (convert_float): Re-indent to standards.
8494 Mon Jul 19 17:32:10 1993 Bill Cox (bill@rtl.cygnus.com)
8496 * ch-actions.c (build_char_array_expr): Add field decls to
8497 constructor. Now, it generates the library call.
8498 * ch-expr.c (chill_expand_array_assignment): Make sure that all
8499 error messages say 'mode' not 'type'.
8501 Mon Jul 19 14:44:46 1993 Bill Cox (bill@rtl.cygnus.com)
8503 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
8504 ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
8505 Make sure that all error messages say 'mode' not 'type'.
8506 * ch-decl.c (push_modedef): Add novelty computation,
8507 storage in each newmode.
8508 * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
8509 Reformat slightly for readability. Fix comments.
8510 * ch-tree.h: Delete print_lang_type prototype.
8512 Mon Jul 19 06:43:51 1993 Bill Cox (bill@rtl.cygnus.com)
8514 * ch-actions.c (chill_expand_return): Disable
8515 error message which requires 2-pass analysis, for
8517 * ch-convert.c (convert): Build length-only constructor
8518 for empty string (PR 2930).
8520 Fri Jul 16 16:08:33 1993 Bill Cox (bill@rtl.cygnus.com)
8522 * ch-expr.c (chill_expand_array_assignment): Check
8523 non-varying string assignments for conformance to
8524 the "string assignment condition" (PR 2920).
8526 Thu Jul 15 13:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
8528 * ch-actions.c (build_chill_array_expr): Check parameters.
8529 Call convert to build unitary array from scalar if
8530 needed. Rewrite CONCAT_EXPR handling.
8531 * ch-convert.c (build_array_type_for_scalar): New functions.
8532 (convert): Call new function, to convert scalar to unitary
8533 array. Only call chill_expand_tuple if expression hass
8535 * ch-expr.c (chill_expand_expr): Allow a larger static
8536 varying array to be assigned to a smaller, with a runtime
8537 test (to be provided).
8538 * ch-parse.y (locdec): Comment out bogus error msg.
8539 (elementlist): Replace several lines with chainon call.
8540 * ch-tree.h (SCALAR_P): New macro. New prototype for
8541 build_array_type_for_scalar.
8542 * ch-typeck.c (build_chill_cast): Re-indent.
8543 (chill_expand_tuple): Comment out strange addition of
8544 varying string's length to front of constructor list.
8546 Thu Jul 15 05:58:46 1993 Bill Cox (bill@rtl.cygnus.com)
8548 * ch-except.c (start_handler_array): Use unique identifier for
8549 exception array, so we can have > 1 array per reach
8550 (PR 2931). The change was originally entered June 23, and
8553 Mon Jul 12 16:07:53 1993 Bill Cox (bill@rtl.cygnus.com)
8555 Get executable test cases running again...
8556 * c-typeck.c (build_function_call): Bypass default
8557 parameter promotions, format param syntax check for
8558 CHILL; they've already been converted in
8559 build_chill_function_call.
8560 * ch-actions.c (chill_expand-return): Correct tests
8561 for function which returns no value.
8562 * ch-convert.c (base_type_size_in_bytes): Check for
8563 NULL type parameter, just return.
8564 (convert): Allow conversion of CHAR to varying array
8566 Change error msg to "conversion" from "assignment".
8567 Remove default from case, which short-circuited before
8568 REFERENCE_TYPEs got converted. Deleted second copy
8569 of REFERENCE_TYPE code.
8570 * ch-lang.c (build_chill_range_type): Simply exit if
8571 NULL input parameter.
8572 * ch-loop.c: Fix comment.
8574 Sun Jul 11 11:27:08 1993 Bill Cox (bill@cygnus.com)
8576 * ch-actions.c (chill_expand_result, chill_expand_return):
8577 Move here from ch-typeck.c. Add a temporary to remember the
8578 result value in. Change return handler to fetch that
8579 temporary value, if there is one.
8580 * ch-parse.y (pdef): Call chill_expand_return to fetch
8582 * ch-tree.h, ch-typeck.c: Move return, result functions to
8583 ch-actions.c. And their prototypes.
8585 Fri Jul 9 15:47:51 1993 Bill Cox (bill@rtl.cygnus.com)
8587 * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
8588 ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
8589 ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
8590 ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
8592 Fri Jul 9 09:41:05 1993 Bill Cox (bill@rtl.cygnus.com)
8594 * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
8595 (print_integer): Delete old non-working INSTANCE code.
8596 * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
8597 * ch-parse.y (rccase_label): Move all actions inside if.
8598 Use BUFFERNAME to recognize receice case buffer clause,
8599 eliminate one shift-reduce conflict.
8600 * ch-tasking.c (build_buffer_descriptor): Check for
8601 CH_DECL_BUFFER flag, remove unused code.
8603 Thu Jul 8 11:17:32 1993 Bill Cox (bill@rtl.cygnus.com)
8605 Declaring and sending buffers.. first draft
8606 * ch-actions.c (lang_init): Define the send_buffer runtime
8608 * ch-decl.c (do_decls): Standardize loop, so stepping
8610 * ch-lex.l: Clean up prototypes for readability.
8611 * ch-parse.y (sendaction): Add send buffer action.
8612 (locdec): Add rule for buffer declaration.
8613 * ch-tasking.c (generate_tasking_code): standardize indentation.
8614 (make_signal_struct): Readability changes.
8615 (build_chill_send_buffer, build_buffer_decl,
8616 build_buffer_descriptor): New functions.
8617 * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
8618 buffer's maximum queue length in buffer decl.
8619 (CH_DECL_BUFFER): Add flag in decl. Clean up for
8620 readability. Add prototypes.
8621 * ch-typeck.c (build_chill_cast): Call convert rather
8622 than storing directly into TREE_TYPE field.
8624 Tue Jul 6 12:34:32 1993 Bill Cox (bill@rtl.cygnus.com)
8626 * ch-actions.c (lang_init): Set warn_switch so case labels
8627 get checked. Move build_chill_case_expr to ch-expr.c.
8628 * ch-expr.c (chill_expand_case_expr): Enable checking
8629 of expression case labels.
8630 * ch-grant.c: Move a comment.
8632 Mon Jul 5 10:02:27 1993 Wilfried Moser (fs_moser at rcsw1j)
8634 * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
8635 * ch-except.c (initialize_exceptions): Change the layout of the
8636 structure __ch_handler. The entry __jbuf is moved to the end
8637 of the structure and its size was changed to _JBLEN+10.
8638 * ch-decl.c (push_chill_extern_process): Add processing of
8639 processes with no arguments.
8640 * ch-grant.c (decode_decl, do_seize): Add processing of
8641 processes with no arguments.
8642 * ch-tasking.c (build_process_header, build_chill_start_process):
8643 Add processing of processes with no arguments.
8644 (make_process_struct): Add processing of IN attribute for
8646 (tasking_setup): Add NUL-character to name of a tasking
8647 element. The name must be NUL terminated.
8648 (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
8649 to 0 with a warning if -Wall specified on command-line.
8651 Fri Jul 2 16:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
8653 * ch-parse.y: Change 'empty' comments to new non-terminal
8654 so that exyacc doesn't discard them.
8655 * ch-lang.c (build_chill_range_type): New error messages.
8657 Fri Jul 2 12:43:25 1993 Bill Cox (bill@rtl.cygnus.com)
8659 * ch-parse.y (action): Catch and report actions which
8660 shouldn't have exception clauses, but do. Unfortunately,
8661 catching more than one of these per compilation will
8662 have to await the general addition of syntax error
8663 recovery to the parser.
8665 Fri Jul 2 10:45:35 1993 Bill Cox (bill@rtl.cygnus.com)
8667 * ch-parse.y (locdec): Issue error for initialization
8668 of bitstring with tuple, not for powerset init with
8671 Thu Jul 1 15:29:26 1993 Bill Cox (bill@rtl.cygnus.com)
8673 * ch-lang.c (build_chill_array_type): Check for indices
8674 that didn't fold into constants, issue error (PR 2924b).
8675 * ch-parse.y: Add novelty counter, alphabeticalize.
8676 * ch-tree.h: Define CH_NOVELTY for novelty checks later.
8678 Thu Jul 1 14:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
8681 * chill.in: Add -ansi switch at compiler call to avoid
8682 translation of i.e. sun to 1 by cpp.
8684 Wed Jun 30 22:21:33 1993 Bill Cox (bill@rtl.cygnus.com)
8686 * ch-grant.c (raw_decode_mode): Add code for
8687 integer and enumeral ranges. Standardize indentation.
8689 Wed Jun 30 14:02:23 1993 Bill Cox (bill@rtl.cygnus.com)
8691 * ch-grant.c (print_an_int): New function to print a
8692 decimal integer string or the CONST_DECL (SYN) which
8694 (print_integer): Call the above function. Replace
8695 calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
8696 comparisons, as suggested by Jim Wilson.
8697 (decode_decl): Set current_grant_modename sooner,
8698 be sure to clear it when done.
8700 Wed Jun 30 10:10:57 1993 Bill Cox (bill@rtl.cygnus.com)
8702 * ch-actions.c (build_max_min): Change interface to accept
8703 just a max/min flag. Get min/max values from an
8704 enumeral constructor.
8705 (build_chill_max, build_chill_min): Change calls to
8707 * ch-lang.c (deep_const_expr): Check for NULL_TREE
8708 arguments, don't seg fault.
8710 Wed Jun 30 09:20:09 1993 Bill Cox (bill@rtl.cygnus.com)
8712 * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
8713 to switch cases, preventing abort.
8715 Tue Jun 29 19:04:37 1993 Bill Cox (bill@rtl.cygnus.com)
8717 * ch-expr.c: Update comment.
8718 * ch-parse.y (range_or_mode): New non-terminal used in
8719 lexpr to implement mode as case label.
8721 Tue Jun 29 13:13:46 1993 Bill Cox (bill@rtl.cygnus.com)
8723 * ch-actions.c (build_chill_case_expr): Pass in the
8724 optional ELSE clause, error for multiple case-selector
8725 expressions, error for missing ELSE clause.
8726 * ch-expr.c (chill_expand_assignment): Error if multiple
8727 location assignment and locations not novelty
8729 * ch-parse.y (caseaction): Add range_list_clause non-
8730 terminal, sorry message for it.
8731 (assignaction): error if operator used on multiple
8733 (case_expr): Pass optional ELSE tree to
8734 build_chill_case_expr for checking.
8735 * ch-tree.h (build_chill_case_expr): Change proto.
8737 Fri Jun 25 17:22:41 1993 Bill Cox (bill@rtl.cygnus.com)
8739 * ch-actions.c (chill_comptypes, build_chill_binary_op):
8740 Allow PROC mode variables.
8741 * ch-convert.c (convert): Turn a NULL literal into a zero
8742 valued pointer-to-function, given such a type. Also
8743 build the ADDR_EXPR of a function variable.
8744 * ch-grant.c: Pervasive -Wall -pedantic cleanup.
8745 (print_enumeral, print_integer, print_struct) Moved these
8746 large functions out of the switch in raw_decode_mode for
8747 readability, and to encourage future code-sharing.
8748 (print_proc_tail, print_proc_exceptions): Moved these out
8749 of decode_decl, to share them. They're used also to
8751 * ch-parse.y (mode2): Enable PROC modes.
8752 (procmode): Represent PROC mode as a ptr-to-function type.
8753 (call): Recognize ptr-to-function as indirect call.
8754 Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
8756 Thu Jun 24 15:59:20 1993 Bill Cox (bill@rtl.cygnus.com)
8758 * ch-grant.c: (raw_decode_mode): Add support for unnamed
8759 and user-numbered enumeration members.
8761 Thu Jun 24 13:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
8763 * ch-actions.c (build_chill_array_expr, build_chill_length):
8764 Explicitly convert a varying array's length field to an
8765 integer_type_node, now that it's only a chill_integer_
8767 * ch-expr.c (chill_expand_expr,
8768 expand_assignment_to_varying_array,
8769 chill_expand_array_assignment,
8770 expand_varying_length_assignment): Explicitly
8771 convert a varying array's length field to an integer_type_node,
8772 now that it's only a chill_integer_type_node.
8773 * ch-loop.c (init_loop_counter, top_of_loop_test): Change
8774 to handle varying array location iterations.
8775 * ch-parse.y (mode2): Count number of named SET members,
8776 as opposed to '*' members. Issue error if there were none.
8777 (setelement): Count named set members. Generate a unique
8778 identifier for the '*' element.
8779 * ch-typeck.c (validate_varying_array_ref): Explicitly
8780 convert a varying array's length field to an integer_type_node,
8781 now that it's only a chill_integer_type_node.
8783 Wed Jun 23 19:18:28 1993 Bill Cox (bill@rtl.cygnus.com)
8785 * ch-lang.c (finish_chill_enum): Change test for too-
8787 * ch-parse.y (setelement, optsetvalue): Allow numbered,
8788 unnamed set elements.
8790 Wed Jun 23 16:25:06 1993 Bill Cox (bill@rtl.cygnus.com)
8792 * c-typeck.c (process_init_constructor): Suppress
8793 errors about un-initialized array elements if the
8794 array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
8795 * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
8796 enumerations *can* be only a byte in size.
8797 (adjust_parm_or_field): Convert untyped parameter before
8798 looking at its type to process it.
8799 * ch-convert.c (convert): Generate [ -1, -1 ] value for
8801 * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
8802 type, so that output_constant doesn't seg fault.
8803 * ch-except.c (start_handler_array): Use unique identifier for
8804 exception array, so we can have > 1 array per reach.
8805 * ch-lang.c (finish_chill_enum): Error if number of
8806 enumeration values exceeds 256.
8807 * ch-parse.y (check_end_label): Error, not warning if start
8808 and end labels don't match.
8809 (assignaction): Convert RHS. Allows untyped tuples to be
8810 passed to stabilize_reference.
8811 (exceptlist, onexceptprefix): Error if non-unique exception
8813 * ch-tree.c: Added form feeds, comment reformatted.
8814 * ch-typeck.c (chill_expand_tuple): Compare tree value to
8815 NULL_TREE, not zero. Add a constructor element for a
8816 VARYING array's length to the constructor list.
8817 (build_varying_struct): Mark the type as VARYING for
8818 process_init_constructor.
8819 * toplev.c (lang_options): Add '-lang-chill' and
8820 '-fchill-grant-only' options to table.
8822 Tue Jun 22 13:13:41 1993 Bill Cox (bill@rtl.cygnus.com)
8824 * ch-actions.c (build_chill_function_call): Add check
8825 to prevent calling a PROCESS like a PROCEDURE.
8826 * ch-parse.y (rcalternative): Add check for an
8827 receive case alternative after a RECEIVE CASE
8829 * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
8830 * ch-lang.c (lang_finish): Remove resetting errorcount
8831 and sorrycount for granting.
8833 Mon Jun 21 17:56:48 1993 Bill Cox (bill@rtl.cygnus.com)
8835 Receiving signals works.
8836 * ch-actions.c (lang_init): Add else_clause flag to
8837 __wait_signal parameter list.
8838 * ch-lex.l: Add SIGNALNAME token, return when appropriate.
8839 * ch-parse.y (SIGNALNAME): New token. Delete
8840 empty_untyped_exprlist token, no longer used. Add
8841 name_or_signal non-terminal. Standardize a few NULL
8842 tests. Add real RECEIVE CASE semantics. Add checks that
8843 SIGNALS, BUFFERs are only declared at global scope.
8844 (call): Add signal declarations with/without data fields.
8845 * ch-tasking.c (get_tasking_code_name, get_tasking_code,
8846 build_chill_receive_case_start, build_chill_receive_case_end,
8847 build_chill_receive_case_label): New functions.
8848 Replace build (CONSTRUCTOR, ... calls with build_nt
8849 (CONSTRUCTOR, calls.
8850 * ch-tree.h: New prototypes.
8852 Thu Jun 17 18:36:38 1993 Bill Cox (bill@rtl.cygnus.com)
8854 SIGNAL declaration compilation, seizing & granting,
8856 * ch-actions.c (lang_init): Move instance_type_node
8857 build to ch-tasking.c. Call build_tasking_message_type.
8858 Build a type for send_signal. Put builtin_function
8859 calls into alpha order.
8860 (adjust_proc_param): Rename to adjust_parm_or_field,
8861 add is_signal flag, so signal fields can use it. Rename
8862 calls to it, add flag to calls.
8863 * ch-decl.c (push_chill_extern_signal): Add function.
8864 * ch-grant.c (decode_decl): Correct signal decl output.
8865 (do_seize): Correct check for process seizure. Add
8866 code for seized signal decl.
8867 * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
8868 * ch-loop.c (get_unique_identifier): Standardize loop
8869 temporary's name to assure that it's not granted.
8870 * ch-parse.y (SIG_NAME): Delete unused token.
8871 (spec_declist): Delete silly printf.
8872 (quasi_signaldef): Add non-terminal.
8873 (sendaction, optsendwith, optsendto, optpriority):
8874 Implement actual working semantics.
8875 (call, empty_untyped_exprlist): Allow empty signal
8876 fields between parens.
8877 * ch-tasking.c: Rename adjust_proc_param calls, add
8878 is_signal flag to calls. Make instance_type_node a
8879 type, not a TYPE_DECL, change references. Fix all
8880 CONSTRUCTOR builds. Add make_signal_struct function.
8881 Move build_instance_type here from lang_init.
8882 (build_tasking_message-type, build_signal_descriptor,
8883 build_chill_send_signal): New functions.
8884 * ch-tree.h: Add, update protos.
8885 * ch-typeck.c (build_chill_cast): Check for NULL expression
8886 type as well as error_mark.
8888 Thu Jun 17 12:28:03 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
8890 * Makefile.in (STAGESTUFF): Add chill to list.
8892 Wed Jun 16 07:12:53 1993 Bill Cox (bill@rtl.cygnus.com)
8894 * Makefile.in: Complete the renaming of ch-process.c
8896 * ch-decl.c (push_chill_extern_function): Drop is_process
8897 parameter, and marking process decl trees.
8898 (push_chill_extern_process): New function for
8899 SEIZEd processes. Lotsa form feeds added for print
8901 * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
8902 (do_seize): New parameter seize_all. Handle sseizing
8904 (chill_seize): Pass seize_all parameter.
8905 (chill_grant): Check for __tmp_ prefix, to disable
8906 *either* seizing or granting.
8907 * ch-parse.y (quasi_pdef): Delete is_process parameter for
8908 push_chill_extern_functon, call push_chill_extern_process
8910 (specialinit): Comment these rules as needed only until
8911 2-pass compiler is operational.
8912 (extprocedure): Delete is_process parameter.
8913 (simpledec): Delete `sorry' about SIGNAL decls.
8914 (optsigdest): Correct check for process name.
8915 * ch-tasking.c (build_signal_decl): Finish coding.
8916 * ch-tree.h: Add macro to save a SIGNAL's destination
8917 process name in an id node. Add/change prototype.
8919 Mon Jun 14 18:17:13 1993 Bill Cox (bill@rtl.cygnus.com)
8921 * ch-actions.c (lang_init): Build instance_type_node.
8922 Change `this' to a runtime function call.
8923 * ch-grant.c (do_seize): Generate tasking-code
8924 variable for seized process.
8925 * ch-lex.l (equal_number): Also accept synonym
8926 name for numeric value.
8927 * ch-parse.y (primval): Add process-related
8929 (signaldef, etc.): Rough draft of SIGNAL definition
8931 (stopaction): Call runtime function.
8932 (pdef): Pop symbol level if ending a process
8933 and there were parameters.
8934 (primval): Call `whoami' runtime function for THIS.
8935 * ch-tasking.c (build_process_header): Be sure
8936 to define the tasking enum, if it hasn't already
8937 been done. Only call shadow_record_fields if there
8939 (build_tasking_enum): Only call start_enum *after*
8940 checking the already_built flag.
8941 (build_copy_number, get_tasking_code,
8942 build_gen_code, build_gen_inst, build_get_ptype,
8943 build_proc_type): New functions for process-related
8945 (build_signal_decl): New function for SIGNAL
8946 declaration - rough draft.
8947 * ch-tree.def (INSTANCE_TYPE): new tree code.
8948 * ch-tree.h: New prototypes. Defines for instance
8951 Sat Jun 12 21:15:02 1993 Bill Cox (bill@rtl.cygnus.com)
8953 Get start-process action working:
8954 * ch-actions.c (adjust_proc_param): new function,
8955 extracted from build_chill_function_call and called
8957 * ch-tree.h, ch-grant.c (do_seize): Add process_type
8958 parameter to add_taskstuff_to_list call, prototype.
8959 * ch-parse.y (start_parlist): New non-terminal for
8961 (startaction): Reference start_parlist, check for
8962 integer-valued process copy-number.
8963 (optstartset): Check instance parameter - must be
8964 an INSTANCE_TYPE location.
8965 * ch-tasking.c (generate_tasking_code_variable): New
8966 function, extracted from tasking_setup and called
8967 from there. Also called from build_process_header.
8968 (build_process_header): Add process_type parameter
8969 to add_taskstuff_to_list call. Remove incrementing
8970 of process_type (moved into generate_tasking_code
8972 (build_chill_start_process): Complete rewrite.
8973 (add_tasking_stuff_to_list): Add stuffnumber parameter
8976 Sat Jun 12 06:08:09 1993 Bill Cox (bill@rtl.cygnus.com)
8978 Getting processes compiled, initialized and granted:
8979 * .cvsignore: Add chill file.
8980 * c-decl.c (shadow_record_fields): Allow PARM_DECL
8981 as well as VAR_DECL.
8982 * ch-actions.c (lang_init): Move build of
8983 initializer_type into ch-tasking.c. Change
8984 definition of THIS to function call.
8985 * ch-decl.c (massage_param_node): Add comments.
8986 (start_chill_function): Set nested flag in
8987 start_function call based upon current_function_decl,
8988 not as constant zero.
8989 * ch-grant.c (decode_decl): lotsa code by Wilfried to
8990 GRANT process decls.
8991 (finish_chill_module): Completely rewrote interface
8993 * ch-lex.l (THIS): Just return the token code.
8994 * ch-parse: Add THIS token.
8995 (processpar, processparlist): New rules, to collect
8997 (pdef): Add code to pop the process' WITH scope.
8998 (procedure): Set process WITH scope flag to zero.
8999 (process): Move most code into build_process_header.
9000 (primval): Output function call for THIS.
9001 * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9002 make_process_struct, build_process_header): New code
9003 to handle process translation and interface to runtime.
9004 * ch-tree.h: New prototypes.
9006 Thu Jun 10 13:32:51 1993 Bill Cox (bill@rtl.cygnus.com)
9008 * Makefile.in: Change ch-process.c to ch-tasking.c.
9009 A delayed part of the last change..
9011 Thu Jun 10 11:14:59 1993 Bill Cox (bill@rtl.cygnus.com)
9013 * .cvsignore: Add 'chill' file.
9014 * ch-actions.c (lang_init): Add new runtime function
9016 * ch-decl.c (push_chill_extern_function): Add is_process
9018 * ch-grant.c (decode_decl): Recognize a process for
9020 (do_seize): Put seized processes onto the tasking_list.
9021 (chill_finish_module_code): Declare init_list entry,
9022 link it onto the init_list. Call tasking_setup and
9024 * ch-lex.l: Make tasking-related variables global,
9025 delete their initialized flags.
9026 * ch-parse.y: Add is_process flag to push_chill_extern_function
9027 calls. Put processes onto the tasking_list.
9028 * ch-process.c: Renamed to ch-tasking.c.
9029 * ch-tasking.h: New file.
9030 * ch-tree.h: New, adjusted prototypes.
9032 Wed Jun 9 10:59:27 1993 Wilfried Moser (moser@deneb.cygnus.com)
9034 * chill: This file is replaced by chill.in and will be
9035 generated during 'make' and 'make install'. This script
9036 now finds the correct chillrt0.o and libchill.a during
9038 * chill.in: New file that replaced chill.
9039 * Makefile.in: Add rules to make chill out of chill.in.
9041 Wed Jun 9 09:03:55 1993 Bill Cox (bill@rtl.cygnus.com)
9043 * .cvsignore: Add gfloat.h and xlimits.h.
9044 * ch-actions.c (lang_init): Create new type for module-
9045 level initializer list entry.
9046 * ch-grant.c (chill_start_module_code): Rename actual
9047 module-level code to just the modulename, which is
9049 (chill_finish_module_code): Allocate space for initializer
9050 list entry, build real initializer function, which puts
9051 the list entry on the runtime list. Name the init function
9052 as the module's constructor function.
9053 * ch-tree.h (build_init_struct): Add prototype.
9054 * ch-typeck.c (build_init_struct): Add function, called
9056 Note: these changes require a new devo/chillrt/chillrt0.c.
9058 Thu Jun 3 17:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9060 * c-decl.c: Fix comment.
9061 * ch-actions.c, ch-grant.c: Standardize front end:
9062 #define first, etc. Add comments.
9063 (lang_init): Delete unused flag, code for inapplicable
9064 gen-decls option. (lang_decode_option): Delete
9065 gen-decls option, add grant-only option, flag.
9066 * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9067 ch-typeck.c: Add form feed after front end.
9068 * ch-expr.c: Standardize testing for error_mark node.
9069 * ch-lang.c: Remove unused deep_fold function.
9071 Fri May 21 11:04:22 1993 Bill Cox (bill@rtl.cygnus.com)
9073 * c-typeck.c (build_binary_op, build_unary_op):
9074 Recognize BOOLEAN_TYPE.
9075 * ch-actions.c (build_chill_unary_op): Remove
9076 some crufty work-arounds.
9078 Thu May 20 19:03:48 1993 Per Bothner (bothner@deneb.cygnus.com)
9080 * ch-grant.c (decode_constant): If the granted value is a
9081 cast, make sure to emit an appropriate expression conversion.
9083 Thu May 20 16:35:35 1993 Bill Cox (bill@rtl.cygnus.com)
9085 * ch-lang.c (build_chill_range_type): Initialize the
9086 precision variable. Double-negative ranges work now.
9088 Thu May 20 11:24:42 1993 Bill Cox (bill@rtl.cygnus.com)
9090 * ch-actions.c (build_unary_op): Compound a wretched
9091 hack which hides a BOOLEAN_TYPE from the underlying
9094 Wed May 19 16:45:54 1993 Bill Cox (bill@rtl.cygnus.com)
9096 * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9097 from chill_comptypes. (build_chill_unary_op): Give
9098 better name to unsigned flag.
9099 * ch-expr.c (chill_expand_assignment): Correct calling
9100 sequence for setpowersetbits runtime routine.
9101 * ch-grant.c (raw_decode_mode): Give better name to
9102 unsigned flag. (decode_constant): Check for null
9103 'val' ptr, avoid seg fault.
9104 * ch-lex.l (convert_number): Give better name to
9105 unsigned flag. (convert_bitstring): Move increment
9106 of bl counter to emphasize that it increments once
9108 * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9109 * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9110 constructor if given a singleton set constructor.
9112 Thu May 13 17:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
9114 * c-decl.c (pushdecl): Complete May 9 change.
9115 * ch-actions.c (build_chill_unary_op): Set the
9116 TREE_UNSIGNED flag FALSE for raw_decode_mode.
9117 * ch-grant.c (grant_array_type): Correct the May 12
9118 check for circularity.
9119 (raw_decode_mode): Use TREE_UNSIGNED flag to
9120 control range's printing.
9121 (chill_grant): Remove useless, bogus code.
9122 * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9123 flag TRUE for raw_decode_mode.
9125 Wed May 12 18:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9127 * ch-decl.c (push_syndecls, push_modedef): Comment
9128 reminders to check for circular definitions. Later!
9129 * ch-grant.c (grant_array_type, decode_decl): Prevent
9130 circular definitions in the use of the array's
9133 Wed May 12 16:06:13 1993 Bill Cox (bill@rtl.cygnus.com)
9135 * ch-grant.c (grant_array_type): If array_type has
9136 a name, just use it.
9137 * ch-lang.c (build_chill_range_type): Don't force
9138 unsigned ranges on output.
9139 * expr.c (store_constructor): Preclude seg fault.
9141 Wed May 12 07:49:00 1993 Bill Cox (bill@rtl.cygnus.com)
9143 * ch-actions.c (fold_set_*): Correct tests for
9144 range set-constructor list entries.
9145 (lang_init): Define setpowersetbits function.
9146 * expr.c (store_constructor): Handle non-constant
9149 Tue May 11 18:25:40 1993 Per Bothner (bothner@cygnus.com)
9151 * ch-lang.c (build_chill_range_type): If the parent type
9152 is unknown, and the endpoints of the range are integer
9153 constants, use the smallest suitable integer type.
9154 * ch-lang.c (build_chill_range_type): Remove kludge
9155 for dealing with char ranges.
9157 Tue May 11 15:24:31 1993 Bill Cox (bill@rtl.cygnus.com)
9159 * ch-actions.c (build_chill_repetition_op): Build a
9160 range-type set constructor if there's only one value
9161 in the repeated constructor.
9162 (fold_set_*): Abort if range value seen, for now.
9163 * expr.c (store_constructor): Handle range-type by
9164 storing bytes rather than bits as much as possible.
9166 Mon May 10 18:45:18 1993 Bill Cox (bill@rtl.cygnus.com)
9168 * ch-actions.c (invalid{left right}_operand): Add
9169 handlers for REPLICATE_EXPR.
9170 (build_chill_repetition_op): Build constructor list
9171 for repetition of bitstring.
9172 * ch-parse.y (call): Recognize more trees as arrays,
9174 (operand5): Add count, string temporaries, use them.
9176 Mon May 10 16:49:08 1993 Per Bothner (bothner@cygnus.com)
9178 * ch-grant.c (seize_implied_names): Fix code that assumed
9179 a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9180 * ch-grant.c (generate_set, grant_parent_of_enum,
9181 grant_parent_enum): Removed unused functions.
9182 * ch-grant.c (raw_decode_mode): Remove commented-out code.
9184 Mon May 10 10:54:57 1993 Bill Cox (bill@rtl.cygnus.com)
9186 * ch-grant.c (do_seize, seize_implied_types): Move
9187 result and parameter processing to proper place.
9188 (chill_seize): Mark unseized identifier with
9189 error_mark_node, to avoid excessive errors.
9190 * ch-parse.y (call): Check for ERROR_MARK before
9193 Sun May 9 17:21:24 1993 Bill Cox (bill@rtl.cygnus.com)
9195 * c-decl.c (pushdecl): If a strongly-visible name is
9196 seen, in conflict with a weakly-visible name, take
9197 the strongly-visible one and don't complain.
9198 * ch-actions.c (chill_comptypes): Allow chain of ref-
9199 erence types > 1 in length.
9200 * ch-grant.c: Turn disguised for-loops into actual
9201 ones, so continue works. Delete redundant code in
9202 seize_implied_names. Reindent.
9203 * expmed.c (store_split_bit_field): Disable abort for
9206 Sun May 9 17:11:33 1993 Per Bothner (bothner@cygnus.com)
9208 * ch-convert.c (convert): Move handling of SET_TYPE until
9209 after we've handled de-referencing and such like.
9210 * ch-grant.c (grant_array_type): Simplify; remove (now-)
9211 bogus call to generate_set.
9212 * ch-grant.c (get_type): Remove obsolete stuff.
9214 Fri May 7 10:30:34 1993 Bill Cox (bill@rtl.cygnus.com)
9216 * ch-actions.c (lang_init): Add definition of psslice
9217 runtime routine. (build_chill_binary_op_1,
9218 build_chill_binary_op): Have result type of
9219 TRUTH_ANDIF_EXPR be boolean, not integer. Some
9221 * ch-convert.c (convert): Use consistent notation
9223 * ch-parse.y: Add front-end pass count. (locdec):
9224 Add syntax for other BASED declaration.
9225 * ch-tree.c: Fix comment.
9226 * ch-typeck.c (build_chill_slice): Implement a runtime
9227 call for bitstring slices. (build_chill_cast):
9228 Add code for BITS_BIG_ENDIAN bit loop.
9229 (chill_expand_tuple): Don't pass ref type to
9230 digest_init, only underlying type.
9232 Thu May 6 12:52:14 1993 Per Bothner (bothner@cygnus.com)
9234 * ch-typeck.c (build_chill_cast): type_for_size takes
9235 a size in bits, not bytes.
9237 Wed May 5 19:02:55 1993 Bill Cox (bill@rtl.cygnus.com)
9239 * ch-actions.c: Break out separate routines for set
9240 folding, handle ranges in set_fold_eq and set_fold_ne.
9241 Fix folding as req'd by TTC test.
9242 * ch-grant.c (raw_decode_more): Check for content match
9243 to decide output mode, not pointer identity.
9244 * ch-typeck.c: Add cross-reference comment.
9245 * varasm.c (emit_set_data): Clarify parameter name.
9246 Handle INTEGER_CST as set constructor.
9247 (output_constant): Handle CONSTRUCTOR node for sets.
9248 Apparently forgot to actually 'checkin' this one last
9251 Wed May 5 12:23:58 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9253 * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
9255 Tue May 4 15:47:44 1993 Bill Cox (bill@rtl.cygnus.com)
9257 * ch-actions.c (fold_set_expr): new function to fold
9258 set expressions. Calls inserted into
9259 build_chill_binary_op and build_chill_unary_op.
9260 (build_chill_repetition_op): New function, called
9261 from build_chill_function_call.
9262 * ch-expr.c (chill_expand_assignment): Call
9263 build_chill_repetition_op.
9264 * ch-grant.c (decode_constant): Comment out deep_fold
9265 call. The earlier fold_set_expr calls should make
9266 this one unnecessary. Prevent seg fault when name
9267 of structure field is NULL. Standardize for loop.
9268 * ch-parse.y: Fix comments.
9269 (operand5): build a REPLICATE_EXPR. Don't call
9270 build_repetition_op until we have a type.
9271 * ch-tree.def (REPLICATE_EXPR): Define tree-code.
9272 * ch-tree.h (build_chill_repetiton_op): Fix proto.
9273 * ch-typeck.c (chill_expand_result): Call
9274 build_chill_repetition_op if needed.
9275 * varasm.c (emit_set_data): Clarify parameter name.
9276 Handle INTEGER_CST as set constructor.
9277 (output_constant): Handle CONSTRUCTOR node for sets.
9279 Mon May 3 13:06:47 1993 Per Bothner (bothner@cygnus.com)
9281 * ch-typeck.c (build_chill_cast): Allow more liberality to
9282 casting: Any discrete type to any non-discrete type that is the
9283 same size as some other discrete type (and vice versa).
9284 * stor-layout.c (layout_type, case SET_TYPE): If the number
9285 of bits will fit in a char or short, only use that many bits.
9287 Mon May 3 08:22:45 1993 Bill Cox (bill@rtl.cygnus.com)
9289 * ch-grant.c (decode_constant): Revert interpretation
9290 of SET_TYPE as integer.
9292 Mon May 3 07:55:46 1993 Bill Cox (bill@rtl.cygnus.com)
9294 * chparse.y (casealternative): Allow empty action list.
9296 Sat May 1 15:07:01 1993 Bill Cox (bill@rtl.cygnus.com)
9298 * expr.c (expand_expr): Add parameter to __inpowerset
9299 runtime call, to match new runtime.
9301 Sat May 1 14:55:58 1993 Bill Cox (bill@rtl.cygnus.com)
9303 * ch-actions.c: Cleanup from -Wall. Reindent.
9304 Redefine __inpowerset to take a 'minval' parameter
9305 that matches the new runtime. Added comments.
9306 * ch-expr.c (chill_handle_case_label): Handle
9307 NULL or ERROR trees.
9308 * ch-grant.c (get_type): Survive bogus type params,
9309 return empty string.
9310 * ch-tree.c (build_powerset_type): Diagnose powerset
9311 of non-discrete type.
9312 * ch-typeck.c (discrete_type_p): Reindent.
9314 Fri Apr 30 16:08:54 1993 Bill Cox (bill@rtl.cygnus.com)
9316 * ch-grant.c (decode_constant): Interpret SET_TYPE
9317 with integer value, so we output the same stuff as
9319 * ch-parse.y: Fix indentation.
9321 Fri Apr 30 09:34:03 1993 Bill Cox (bill@rtl.cygnus.com)
9323 * ch-actions.c (chill_comptypes): Simplify, correct
9324 integer subrange analysis.
9325 * ch-grant.c (seize_implied_names): Add handling for
9326 PROCESS_DECL, PROCESS_TYPE.
9327 (do_seize): Call seize_implied_names for process,
9328 procedure parameters and return value.
9329 * ch-lang.c (finish_chill_enum): Canonicalize enum
9331 * ch-tree.def (PROCESS_TYPE): Add.
9332 * ch-typeck.c (valid_array_index): Call chill_comptypes
9333 rather than broken macro CH_COMPATIBLE. The logic
9334 in chill_comptypes will get moved to the macro later.
9336 Thu Apr 29 13:07:55 1993 Bill Cox (bill@rtl.cygnus.com)
9338 * ch-actions.c (build_chill_lower, build_chill_upper):
9339 Handle enumeration types.
9340 (build_chill_binary_op): Call chill_comptypes
9341 to error check IN arguments. Change error
9342 messages to say 'mode' rather than 'type'. Cast
9343 tree codes when build is called.
9344 * ch-expr.c (chill_expand_array_assignment): Call
9345 chill_comptypes to validate assignment args.
9346 * ch-lex.l: Add newline for readability.
9348 Wed Apr 28 15:22:18 1993 Bill Cox (bill@rtl.cygnus.com)
9350 * Makefile.in (ch-hash.h): Add rule to build this
9351 from chill.gperf. Not yet used.
9352 * ch-actions.c (build_chill_binary_op): Allow enum
9353 subranges on RHS of IN operator.
9354 * ch-grant.c (decode_constant): Recognize
9355 error_mark_node as empty powerset initializer,
9357 * ch-lang.c (deep_fold): Return error_mark_node for
9358 NULL input pointer or incoming error_mark_node.
9359 * ch-lex.l: Ignore PACK and UNPACK keywords. Return
9360 POS, ROW, and STEP as user-defined names.
9361 (name_or_type): New function for above.
9362 * ch-parse.y: Move token defs for following, comment
9363 them separately: NOPACK, PACK, POS, ROW, STEP
9364 * varasm.c (output_constant): Check for VAR_DECLs in
9365 records & unions, like arrays. Don't abort.
9367 Tue Apr 27 17:42:29 1993 Bill Cox (bill@rtl.cygnus.com)
9369 * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
9370 rewrite for generality.
9371 * ch-decl.c (grok_chill_variantdefs): Use chill
9372 comptypes, so that subrange compatibility is ok.
9373 (start_chill_function): Use lookup_name(), not
9374 IDENTIFIER_GLOBAL_VALUE, for full generality.
9375 * ch-expr.c (chill_expand_assignment): Need to
9376 handle non-NOP modify codes here, since C code
9377 in build_modify_expr won't understand powersets,
9380 Tue Apr 27 09:05:31 1993 Bill Cox (bill@rtl.cygnus.com)
9382 * ch-actions.c (build_max_min): Assign the set's
9383 base type to the function's return type.
9384 (build_chill_function_call): Before complaining
9385 about parameter mismatches, convert certain actual
9387 * ch-expr.c (chill_expand_assignment): Before
9388 complaining about LHS/RHS mismatches, convert
9389 certain RHS expressions.
9390 * ch-grant.c (decode_constant): Deep-fold incoming
9391 expression, so we can output it.
9392 * ch-lang.c (deep_const_expr): New function, called
9393 from const_expr, actually traverses the tree
9394 looking at its leaves for 'const'ness.
9395 (deep_fold): New function to fold already-built
9397 * ch-parse.y (case_expr): Add whitespace.
9398 * ch-tree.h: Add prototype for deep_fold.
9400 Tue Apr 27 07:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
9402 * ch-actions.c (chill_comptypes): Allow enumeration
9403 subranges as compatible with the parent enum.
9404 (build_chill_function_call): Before checking type
9405 compatibility, use convert on typeless expressions,
9407 * ch-expr.c (chill_expand_assignment): Before
9408 checking type compatibility, use convert on
9409 typeless expressions, like constructors.
9410 * ch-lex.l: Add comment.
9412 Thu Apr 22 17:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
9414 * .cvsignore: Add genopinit, insn-opinit.c
9415 * c-common.c (binary_op_error): Prevent seg fault on
9417 * ch-typeck.c (build_chill_array_ref): Remove old
9418 lower-bound-of-array-index-nonzero code.
9419 * expr.c (expand-expr, get_inner_reference): Remove
9420 old lower-bound-of-array-index-nonzero code.
9422 Thu Apr 22 16:01:09 1993 Bill Cox (bill@rtl.cygnus.com)
9424 * c-decl.c (shadow_record_fields): Add pushlevel for
9425 each PROCESS parameter, too.
9426 * ch-process.c (make_process_struct): First working
9428 * ch-tree.def: Add PROCESS_DECL definition.
9429 * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
9430 for make_process_struct.
9431 * expr.c (expand_expr): Add references to
9432 PROCESS_DECL. Add #include of ch-tree.h.
9433 * tree.c (decl_function_context): Add check for a
9434 PROCESS_DECL, and #include for ch-tree.h.
9436 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9438 * expr.c (expand_expr): Add missing prototypes, and
9439 parameters to expand_expr call.
9441 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9443 * c-decl.c (shadow_record_fields): Add ability to
9444 handle pointers to records/unions. For PROCESS
9447 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9449 * ch-expr.c (chill_expand_expr): Add missing
9450 parameters to expand_expr calls. Some trivial
9451 reformatting for readability.
9453 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9455 * ch-lex.l: Make send_*_prio externally visible,
9456 default them to zero, eliminate the init flags.
9457 Same for process_type.
9459 Sat Apr 17 10:59:50 1993 Bill Cox (bill@rtl.cygnus.com)
9461 * ch-actions.c (build_chill_binary_op): Build a
9462 BIT_FIELD_REF tree for IN_EXPR operations.
9463 * ch-typeck.c (build_chill_array_ref): Build a
9464 BIT_FIELD_REF tree for access to packed array of
9467 Fri Apr 16 12:33:34 1993 Bill Cox (bill@rtl.cygnus.com)
9469 * ch-parse.y (EXIT action): Improve error checking,
9471 * ch-typeck.c (chill_expand_tuple): Remove code to
9472 pack sets (moved to varasm.c long ago).
9473 * varasm.c (unpack_set_constructor): Rename size to
9474 bit_size, since 'size' always means bytes.
9475 (pack_set_constructor): Rename size to wd_size,
9476 since 'size' always means bytes.
9477 (output_constant): Set size to zero, so that extra
9478 bytes of padding aren't output after set constants.
9480 Fri Apr 16 11:57:50 1993 Bill Cox (bill@rtl.cygnus.com)
9482 * .cvsignore: Add .gdbinit.
9483 * ch-decl.c (start_chill_bindings): Add function name
9484 to binding contour's exit_label for EXIT stmt.
9485 * ch-parse.y (EXIT action): Call lookup_name to avoid
9486 inserting label for function name. Also check
9487 IDENTIFIER_LABEL_VALUE for label's decl.
9488 (caseaction, beginendblock, ifaction): Call
9489 stamp_nesting_label to put action's label into
9490 contour for EXIT to find.
9492 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9494 * expr.c (expand_expr): Unify, clean up handling of
9495 IN_EXPR, and handling of bit-string element ref.
9496 Now, all goes through IN_EXPR handler.
9497 * stmt.c (stamp_nesting_label, expand_exit_labelled):
9498 New functions, which allow either label or
9501 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9503 * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
9504 ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
9505 ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
9506 ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
9507 * ch-actions.c (build_chill_binary_op): Move runtime function call
9508 to expr.c. Just build a tree here. Clean up error checking.
9509 * ch-convert.c (convert): Simply store a type into an expression if
9510 TREE_TYPE (expr) == NULL. Prevent error if an enum is to be
9511 converted to a set of such enums.
9512 * ch-loop.c (init_loop_counter): Restore error msg for undeclared
9513 variable if no local scope is to be created for the loop.
9514 * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
9515 remove redundant code which wasn't ever called.
9517 Wed Apr 14 07:54:00 1993 Bill Cox (bill@rtl.cygnus.com)
9519 * .cvsignore (y.tab.c) : Add to list.
9520 * ch-convert.c (convert): Check pointers better - avoid NULL reference.
9521 Remove redundant check for ERROR_MARK - already checked earlier.
9522 * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
9525 Tue Apr 13 16:00:37 1993 Per Bothner (bothner@cygnus.com)
9527 * c-decl.c (start_function): If there is a previous
9528 function declaration of the same name, steal its RTL.
9529 This is a kludge needed for forward declarations of
9531 * ch-decl.c (push_chill_extern_function), ch-tree.h: New
9532 function, for external and seized function declarations.
9533 Make sure to use permanent obstack.
9534 * ch-parse.y (quasi_pdef, extprocedure): Use new function.
9536 * ch-grant.c (chill_finish_module_code): Since module
9537 function is no longer visible,, can't get it using
9538 lookup_name(). Use current_function_decl instead.
9540 * ch-decl.c (build_chill_function_type): Add void_type_node
9541 to end of parameter types list.
9543 * ch-grant.c (chill_start_module_code): Make sure module
9544 function isn't visible (and hence isn't granted).
9546 Tue Apr 13 15:48:25 1993 Bill Cox (bill@rtl.cygnus.com)
9548 * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
9549 current contour for DO FOR EVER loops.
9551 Tue Apr 13 14:37:39 1993 Bill Cox (bill@rtl.cygnus.com)
9553 * ch-parse.y (actionstatement): Add error rule. Delete
9554 POP_UNUSED_ON_CONTEXT. Add comments about label name usage.
9555 (nohandleraction): Better error check in EXIT processing.
9556 (optexprlist): Comment out make_function_rtl call.
9557 (seizestatement): Change error to warning.
9559 Tue Apr 13 08:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
9561 * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
9563 * ch-loop.c (begin_chill_loop): Take loop label as parameter. Stamp
9564 its name into the current contour's exit_label, for EXIT to use.
9565 * ch-parse.y: (actionlabel): Save label tree in global variable.
9566 (actionstatement): Clear label to NULL when action is finished.
9567 (handlerstatement, nohandlerstatement): Split actions into
9568 categories which do/don't permit exception handlers.
9569 (exitaction): Move code into nohandleraction, make it work.
9570 (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
9571 * ch-tree.h: Add parameter to begin_chill_tree prototype.
9572 * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
9573 Note: This implementation of EXIT only exits from loops, not yet
9574 from other bracketted statements.
9576 Mon Apr 12 13:41:55 1993 Per Bothner (bothner@rtl.cygnus.com)
9578 * ch-grant.c (chill_grant): Remove obsolete code.
9580 * ch-decl.c (push_synmode, push_newmode): Merged to yield ...
9581 * ch-decl.c (push_modedef): ... w/ slightly different interface.
9582 * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
9583 (modedefinition): Use new push_modedef function.
9584 * ch-parse.y (modedefinition): Don't depend on inherited
9585 attributes (- implemented incorrectly!): Use a global variable
9586 parsing_newmode to distinguish synmode and newmode.
9588 Mon Apr 12 08:10:34 1993 Bill Cox (bill@rtl.cygnus.com)
9590 * ch-loop.c: Diffuse cleanup after big functional changes.
9591 * ch-parse.y: Eliminate temporary variables, now unnecessary. Use
9592 parse-time stack instead.
9593 * ch-tree.h: Change build_chill_iterator prototype.
9595 Sun Apr 11 15:50:33 1993 Bill Cox (bill@rtl.cygnus.com)
9597 * ch-convert.c (convert): Replace an ERROR_MARK type - from a
9598 untyped_expr with the given type. Move chill_expand_case_expr
9599 call inside chill_expand_expr.
9600 * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
9601 chill_handle_case_label, chill_expand_case_expr): Move to ch-expr.c
9603 * ch-loop.c: Major reorganization to support multiple iterators in
9604 DO FOR loop, very little new code, just a re-org.
9605 * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
9607 Sat Apr 10 14:40:12 1993 Bill Cox (bill@rtl.cygnus.com)
9609 * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
9610 * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
9612 * ch-lex.l (equal_number): Add function to look in the input for '='
9613 followed by a decimal literal. Call it from directive scanning.
9614 (start state 'ccitt'): Deleted, unused. Moved unused, but reserved,
9615 tokens to NORMAL state.
9616 (compiler_directive): Replaced by equal_number. Now the only
9617 recursive call to yylex happens in check_newline at the beginning
9620 Sat Apr 10 09:55:50 1993 Bill Cox (bill@rtl.cygnus.com)
9622 * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
9623 * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
9625 * ch-parse.y (case_expr): Move code into ch-actions.c. There will
9626 need to be much more written.
9627 * ch-tree.def (VARY_ARRAY_REF): Add comment.
9628 * ch-tree.h (build_chill_case_expr): Add prototype.
9629 * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
9630 type to the expr. Check for CASE_EXPR, call expand_case_expr.
9632 Sat Apr 10 01:10:51 1993 Per Bothner (bothner@rtl.cygnus.com)
9634 * ch-parse,y (in_pseudo_module): New variable. Try if we're
9635 in a seizefile, but not in a module nested in the seizefile.
9636 Use for backwards compatibility with old grantfiles.
9637 * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
9638 If in_pseudo_module, grant new declaration.
9639 * ch-decl.c (pushd_newmode): If there is a granted previous
9640 incomplete type, fix it up.
9641 * ch-grant.c (seize_implied_names): Do remaining types.
9642 Guard against recursion.
9643 * ch-tree.h (IDENTIFIER_ENUM_VALUE): Removed, not used.
9644 * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
9645 (finish_chill_enum): Enum constants are marked with
9646 CH_DECL_ENUM so they don't get written to the grantfile.
9647 * ch-tree.h (IDENTIFIER_GRANTED_VALUE): Allow fast seizing.
9648 * ch-lex.l: Re-write to use start states, to avoid calling
9649 yylex() recursively.
9650 * ch-lex.l (compiler_directive); This is now obsolste. FIXME.
9651 * ch-lex.l: Call push_module and pop_module when reading a
9652 seizefile. This creates a pseudo-module.
9653 * ch-parse.y: Clean up handling of empty declarations and
9654 action statements; semicolons are now optional a number of
9656 * ch-parse.y: Remove some bogus tests for "statement
9657 out of sequence" (they're both legal and work).
9658 * varasm.c (mak_function_rtl): Remove kludge that may
9659 not be necessary (and loses anyway).
9661 Fri Apr 9 09:37:38 1993 Bill Cox (bill@rtl.cygnus.com)
9663 * ch-expr.c (chill_expand_array_assignment): Remove false error about
9664 arrays that are too small.
9665 * ch-parse.y (callaction): Don't pass an error_mark_node to
9668 Fri Apr 9 00:26:54 1993 Per Bothner (bothner@rtl.cygnus.com)
9670 * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
9672 * ch-actions.c (build_chill_function_call): Use latter.
9673 * ch-typeck.c (chill_similar): Fix typo.
9674 * ch-grant.c (raw_decode_mode): Handle ENCAPSULATED_ARRAY_P
9676 * ch-grant.c (seize_implied_names): Handle ranges of enums.
9677 * ch-grant.c (do_seize): Set DECL_SOURCE_FILE and _LINE of
9678 seized declaration to be the point of the seize itself.
9679 * ch-grant.c (chill_grant), ch-tree.h: Add a parameter
9680 which is the list (in order) of decls in the module.
9681 Don't reverse the getdecls() list; that is handled by caller.
9682 * ch-grant.c (chill_grant): Test that a declaration is
9683 visible before writing it.
9684 * ch-parse.y (push_module): Make sure to hide declarations
9685 from surrounding module.
9686 * ch-parse.y (pop_module): Restore those declarations.
9687 * ch-parse.y (pop_module): This function is now responsible
9688 for writing out for calling chill_grant() to the grant file.
9689 * ch-actions.c (lang_finish): Remove calls to chill_grant().
9691 Thu Apr 8 16:56:52 1993 Bill Cox (bill@rtl.cygnus.com)
9693 * ch-actions.c (build_char_array_expr): Add handling of varying
9694 arrays in relational expressions.
9695 * ch-decl.c: Add prototype for lookup_name_current_level.
9696 * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
9697 so its length is used as the temp's size.
9698 (chill_expand_array_assignment): Correct for varying := varying
9699 assignment, clean up.
9700 * ch-typeck.c: Add prototype for require_complete_type.
9702 Wed Apr 7 16:41:29 1993 Bill Cox (bill@rtl.cygnus.com)
9704 * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
9705 diffuse changes to fix location loops.
9706 * ch-parse.y (location): Remove ref through NULL ptr.
9708 Wed Apr 7 13:42:06 1993 Per Bothner (bothner@rtl.cygnus.com)
9710 * ch-decl.c (massage_param_node): New function.
9711 It handles the LOC/IN/OUT/INOUT parameter distinction,
9712 as well as calling build_chill_array_parm_type if needed.
9713 * ch-tree.h (massage_param_node): New prototype.
9714 * ch-decl.c (push_parms): Use new massage_param_node().
9715 * ch-parse.y (pmodearg): Use new massage_param_node().
9716 * ch-parse.y (formpar): Don't call build_chill_array_parm_type;
9717 now handled by massage_param_node.
9718 * ch-typeck.c (my_build_array_ref): Handle non-zero array
9720 * ch-actions.c (build_chill_function_call): If the formal
9721 parameter is a pseudo record wrapped around an array, make
9722 sure we wrap the actual parameter in a record CONSTRUCTOR.
9723 * ch-typeck.c (build_chill_array_parm_type): Make sure
9724 the pseudo struct type is allocated on the permanent_obstack.
9725 * ch-parse.y (location): Remove thinko.
9726 * ch-actions.c (chill_comptypes): Comment out test for
9727 NEWMODEness - it gets broken by the forward declaration hacks.
9729 Tue Apr 6 18:05:40 1993 Bill Cox (bill@rtl.cygnus.com)
9731 * ch-actions.c: Move build_varying_struct to ch-typeck.c.
9732 * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
9733 * ch-parse.y (location): Do build_component_ref for an array wrapped
9735 * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
9736 * ch-typeck.c (build_chill_array_parm_type): Add function, move
9737 build_varying_struct here from ch-actions.c.
9739 Mon Apr 5 19:56:56 1993 Bill Cox (bill@rtl.cygnus.com)
9741 * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
9742 rather than in-line code - tests LOW and HIGH values.
9743 * ch-lang.c: Use tree_int_cst_lt rather than inline code.
9744 * ch-typeck.c (my_build_array_ref): Handle case where array low bound
9747 Mon Apr 5 15:45:10 1993 Bill Cox (bill@rtl.cygnus.com)
9749 * ch-typeck.c (my_build_array_ref): Add some more code from
9750 build_array_ref. Change checks, error messages to mention
9751 'discrete types'. I.E. types which don't kiss and tell..
9753 Sat Apr 3 09:27:03 1993 Bill Cox (bill@rtl.cygnus.com)
9755 * ch-except.c, ch-expr.c: Turn externs into prototypes.
9756 * ch-grant.c (chill_grant): Remove orphan #else.
9757 * ch-tree.h: Add prototype for build_chill_bin_type.
9758 * ch-typeck.c: Turn externs into prototypes, delete code which
9759 was commented out in chill_expand_return; it will never be used.
9761 Fri Apr 2 21:55:14 1993 Per Bothner (bothner@rtl.cygnus.com)
9763 Major re-write of New module/seize/grant stuff.
9764 Now, a grantfile is a spec module and contains all the
9765 top-level declarations of the granting module, not just
9766 those that are granted. It also contains explicit grant
9767 statments naming those declared names that are granted.
9768 It also has seize statements and use_seize_file directives
9769 to correctly handle transitive dependencies.
9771 * ch-parse.y: Change to allow multiple modules per source file.
9772 Allow spec modules (including quasi definitions) as well as
9774 Allow spec modules inside normal modules; these behave as if
9775 they were outermost. This violates the Blue Book, but is
9776 needed by the new grantfile mechanism. (A grant file is a
9777 spec module that gets included by the use_seize_file directive.)
9778 * ch-parse.y (struct module *current_module, push_module,
9779 pop_module): Support module nesting (for spec modules only).
9781 * ch-tree.h (struct module): New.
9782 * ch-grant.c (granted_decls): New list of declarations
9783 that have been granted into the outermode pseudo-module.
9784 * ch-grant.c (decode_mode): If the decl has a name,
9785 always write the name, not just if the decl has already
9786 been written. Since we write out all decls, we can assume
9787 it will be written later, and depend on the forward
9788 declaration kludges to catch it.
9789 * ch-grant.c (decode_decl): Don't write out _EXTERN.
9790 Instead write out standard (Blue Book) quasi-definitions.
9791 * ch-grant.c (push_granted): New function.
9792 * ch-grant.c (seize_implied_names): New function. Re-write
9793 how set element names are seized when a set type is seized.
9794 * ch-grant.c (chill_seize): Work by seraching the
9795 granted_decls list and copying the declaration.
9796 * ch-grant.c (chill_grant): Write all declarations
9797 declared in this module. Write GRANT statements for
9798 those granted. seize statements for decls seized from
9799 other modules. Write extra syntax to make a complete
9801 * ch-grant.c (grant_use_seizefile): Copy use_seize_file
9802 directives into grant file.
9803 * ch-lex.l (setup_seizefile_read): Call grant_use_seizefile.
9805 * ch-lex.l (struct input_state, current_input_state,
9806 push_input_file, pop_input_file): New (type, variable,
9807 function*2). Used to save and restore state on an input file.
9808 * ch-lex.l: Clean up to handle nested input seizefiles
9809 (needed by new grant/seize mechanism.
9810 * ch-lex.l (skip_to_end_of_directive): New function.
9811 * ch-lex.l (compiler_directive: USE_SEIZE_FILE): Make sure
9812 we skip to the end of the directive *before* we switch
9814 * ch-lex.l (setup_seizefile_read): Prevent reading the
9815 same seizefile twice (otherwise likely with new grant/seize).
9816 * ch-lex.l: Recognize SPEC. Misc cleanups.
9818 * ch-parse.y: Fixed foreward references of types.
9819 Removed the unknown_type_node crock.
9820 * ch-decl.c: Remove all uses of unknown_type_node.
9821 Check for TYPE_SIZE zero instead.
9822 * ch-decl.c (fixup_unknown_type): Make sure new mode
9823 gets copied into old mode. Merge their variant chains.
9824 * c-decl.c (lookup_name_current_level): Make non-static.
9825 * ch-decl.c (lookup_name_current_level): No longer needed.
9827 * ch-parse.y (call): Allow an implicitly defined function
9828 name following the CALL keyword.
9829 * ch-tree.h (struct lang_identifier): Add implicit_decl,
9830 and make sure order of fields matches c-tree.h.
9832 * ch-actions.c (lang_init, build_allocate_memory_call,
9833 build_allocate_globals_memory_call): Fix names (add initial '_')
9834 and prototypes of _allocate_[global_]memory (2nd param is ref).
9835 Use build_chill_function_call, not build_function_call,
9836 so the reference parameter gets handled.
9837 * ch-actions.c. (lang_init): Make sure boolean_{true,false}_node
9838 have boolean_type_node as their types.
9839 * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
9840 work for arrays with BOOLEAN_TYPE ranges (and simplify some).
9842 * ch-except.c: Make sure an end_label is generated,
9843 and jump to it if there is no exception.
9845 * ch-convert.c (convert_to_reference): Strip off NOP_EXPR casts.
9846 * expr.c (expand_expr): Handle NOP_EXPR as Chill-style casts.
9847 (Need cleaning up and FSF installation!)
9848 * ch-parse.y: If taking the address of a cast, move the
9849 ADDR_EXPR inside the NOP_EXPR.
9851 * ch-typeck.c (my_build_array_ref): Simplified, more suitable
9852 versions of build_array_ref from c-decl.c. (E.g. don't barf
9853 if index type is char or bool.)
9854 * ch-typeck.c (build_chill_array_ref): Use my_build_array-ref.
9856 * ch-typech.c (build_chill_bin_type): New function.
9857 Support BIN(N) range type specification.
9858 * ch-parse.y (mode2), ch-lex.l: Recognize BIN(N).
9860 * ch-tree.h (CH_SIMILAR): Redefine in terms of chill_similar.
9861 * ch-typeck.c (chill_similar): New function. Recognize that
9862 that range types are similar to their parent types.
9864 * ch-tree.h: Declare flag_local_loop_counter.
9865 * ch-loop.c: Whether the loop variable is local to the loop
9866 in now controlled by flag_local_loop_counter, instead of
9867 #ifdef'd on CREATE_SCOPE.
9868 * ch-actions.c (lang_decode_option): Recognize flags
9869 "-f[no-]local-loop-counter".
9870 * toplev.c (lang_options): Add Chill flags -f[no-]local-loop-counter.
9872 * varasm.c (make_function_rtl): Due to problems with forward
9873 references, don't rename nested functions in Chill. (Kudge!)
9875 Sun Mar 28 10:12:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
9877 * ch-lex.l (push_back, readstring): Fix prototypes.
9879 Fri Mar 26 18:32:15 1993 Bill Cox (bill@rtl.cygnus.com)
9881 * ch-parse.y: Put %type directives back into alpha order.
9882 (variant_alternative): Simplify error_mark test.
9883 (variantfields, varianthack): Add error_mark checks.
9885 Fri Mar 26 13:36:23 1993 Bill Cox (bill@rtl.cygnus.com)
9887 * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
9888 * ch-parse.y (get_type_of): Add function to deal with possible fwd
9889 declared type name. Call it from lotsa places. Add lotsa checks
9890 for error_mark_node. Standardize indentations.
9892 Thu Mar 25 15:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
9894 * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
9895 for array assignments.
9896 * ch-parse.y (action): Add recognition for allocate_memory and
9897 allocate_global_memory system calls.
9898 (mode2): Remove ill-conceived error check that broke REFs to
9899 as-yet-undeclared types. Check for IDENTIFIER_NODE, lookup its
9900 DECL if there, pass TREE_TYPE of decl to build_pointer_type.
9901 (variantfields, varianthack): Clean up.
9902 (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
9903 there, pass TREE_TYPE of decl to grok_fixedfields.
9904 (labellist): Explicitly assign error_mark_node to signal error.
9905 * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
9906 rather than seg faulting.
9908 Thu Mar 25 10:35:58 1993 Bill Cox (bill@rtl.cygnus.com)
9910 * ch-actions.c (lang_init): build_function_type for allocate_memory
9911 and allocate_global_memory runtime routines. Move discrete_type_p
9913 * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
9914 in build_chill_cast.
9916 Wed Mar 24 16:25:16 1993 Per Bothner (bothner@rtl.cygnus.com)
9918 * ch-grant.c: Don't grant previously seized names.
9920 Tue Mar 23 15:25:39 1993 Bill Cox (bill@rtl.cygnus.com)
9922 * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
9923 * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
9926 Tue Mar 23 09:03:35 1993 Bill Cox (bill@rtl.cygnus.com)
9928 * ch-actions.c (build_char_array_expr): Just build a type for the
9929 result of a CONCAT_EXPR, and pass the tree back.
9930 chill_expand_array_assignment can do a better job of
9932 * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
9935 Mon Mar 22 12:42:58 1993 Per Bothner (bothner@rtl.cygnus.com)
9937 * ch-except.c (start_handler_array): Make sure the handler
9938 array and its type get on the permanent obstack.
9939 * ch-grant.c (write_grant_file): Don't write the _INIT=name
9940 specifier: It isn't needed, and loses (because of funny
9941 characters in the chill_initializer_name).
9942 * ch-decl.c (push_synmode): Set TYPE_NAME(mode) = syndecl.
9943 * ch-lang.c (finish_chill_enum): Don't allocate a dummy
9944 TYPE_DECL for the enum. I don't think it is needed (?),
9945 and removing it is needed for the change above.
9947 * ch-grant.c (grant_array_type, decode_mode): Remove unused
9949 * ch-grant.ch (raw_decode_mode): New function, based on old
9951 * ch-grant.c (decode_mode); This is now just a wrapper around
9952 raw-decode_mode - but does not call raw_decode_mode if the
9953 type is named and has already been emitted.
9955 Fri Mar 19 11:55:35 1993 Bill Cox (bill@rtl.cygnus.com)
9957 * ch-actions.c: Add prototypes, remove unused variables. Attempt to
9958 continue generating grant file in presence of error (Wilfried's
9959 patch to lang_finish).
9960 * ch-expr.c: Change assign_stack_temp calls so temps get recovered
9961 after each statement. Move convert call into
9962 chill_expand_assignment from ch-parse.y.
9963 * ch-grant.c: Generally re-order, clean up. Include Per's decode_mode
9964 simplification. Include commented-out hack in decode_mode to return
9965 type's name if type SEIZEd or already GRANTed in this file.
9966 * ch-lex.l: Add prototypes.
9967 * ch-parse.y (assignaction): Move convert call into
9968 chill_expand_assignment.
9970 Thu Mar 18 16:04:45 1993 Bill Cox (bill@rtl.cygnus.com)
9972 * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
9974 * ch-decl.c: Add prototypes, correct error message spelling, remove
9976 * ch-lang.c (build_chill_range_type): Add error message. Add prototypes.
9977 Correct comment spelling.
9978 * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
9979 assignment in conditional.
9980 * ch-loop.c: Add prototypes, remove unused variable.
9981 * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
9982 parameter is seen, don't count it in structured_variable_list. Pre-
9983 vents seg fault when only WITH operand is invalid.
9984 * ch-parse.y (label_spec): Correct assignment within IF expression which
9985 was intended to be equality test. Remove unused variables.
9986 * ch-tree.h: Add prototype. Remove unused EXCP_CODE enumeration, and
9987 prototyping editorial comments.
9988 * ch-typeck.c: Disable generation of code to validate array index for
9989 now. Should be done as a call-back from more generic array_ref code.
9990 Clean up parameter checking. Remove unused variables.
9992 Fri Mar 12 11:57:32 1993 Bill Cox (bill@rtl.cygnus.com)
9994 * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
9995 * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
9996 build_char_array_expr.
9997 * ch-convert.c (convert): protect against seg fault, if type == NULL.
9998 * ch-expr.c (chill_expand_expr): Add FIXME comment.
10000 Fri Mar 12 11:04:02 1993 Bill Cox (bill@rtl.cygnus.com)
10002 * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10003 Thanks very much to dje!
10005 Thu Mar 11 21:06:55 1993 Bill Cox (bill@rtl.cygnus.com)
10007 * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10008 Move CONCAT_EXPR handling from binary_op to array_expr. Add
10009 handling for relationals between varying arrays to array_expr.
10011 Thu Mar 11 19:20:37 1993 Bill Cox (bill@rtl.cygnus.com)
10013 * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10014 *BIT* length of powersets and arrays of BOOLs.
10015 (invalid_left_operand, invalid_right_operand): Disallow relationals
10016 with arrays of BOOL as operands.
10017 * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10018 comparing pointers.
10019 * ch-decl.c (push_newmode): Re-indent.
10020 * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10021 and arrays of BOOLs.
10022 * ch-lang.c (build_chill_array_type): Add parameter error checking.
10024 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10026 * expr.c (store_constructor): Handle set construction.
10027 * varasm.c (output_constant): Prevent seg fault - terminate case
10028 alternative with a 'break'.
10030 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10032 * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10033 * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10034 * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10036 Mon Mar 8 13:16:05 1993 Bill Cox (bill@rtl.cygnus.com)
10038 * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10041 Mon Mar 8 10:13:57 1993 Bill Cox (bill@rtl.cygnus.com)
10043 * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10044 Correct some non-standard indentations.
10046 Fri Mar 5 14:58:35 1993 Bill Cox (bill@rtl.cygnus.com)
10048 * ch-actions.c: Fix up comment.
10050 Thu Mar 4 18:05:43 1993 Bill Cox (bill@rtl.cygnus.com)
10052 * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10053 negating the result of calling __eqpowerset. New function
10055 * ch-grant.c (get_tag_value): Don't seg fault referring to an
10056 anonymous enumeration's name.
10057 * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10058 * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10059 * ch-parse.y (label_spec): redefine variant structure label_spec
10060 to agree with the Z.200 spec.
10061 (locdec): Error if set/bitstring initialized with a tuple.
10062 (case_label, arrayindex): Use new discrete_type_p
10064 * ch-process.c: Fix typo.
10066 Wed Mar 3 14:30:53 1993 Per Bothner (bothner@rtl.cygnus.com)
10068 * ch-lang.c, ch-tree.h: Rename build_range_type to
10069 build_chill_range_type. Call new build_range_type() in tree.c.
10070 * ch-parse.y: Call build_chill_range_type as approriate.
10071 * ch-typeck.c (build_chill_cast); Clean up.
10073 Wed Mar 3 09:36:56 1993 Bill Cox (bill@rtl.cygnus.com)
10075 * ch-parse.y: Define CONTINUE_EVENT token.
10076 * ch-parse.y (mode2): Give error message for SYN modea = modeb
10077 where modeb is undefined.
10079 Tue Mar 2 20:16:37 1993 Bill Cox (bill@rtl.cygnus.com)
10081 * ch-actions.c: Add builtin function descriptions for memset and
10082 bitsetpowerset. Allow build_chill_num expression to exceed 16 bits,
10084 * ch-tree.h: Correct chill_handle_case_default prototype.
10085 * ch-actions.h, ch-lex.h: Add prototypes.
10086 * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10088 Thu Feb 25 17:35:46 1993 Bill Cox (bill@rtl.cygnus.com)
10090 * c-decl.c (init_decl_processing): Disable creation of C-specific
10091 builtin functions. They pollute the CHILL name space.
10092 * stor-layout.c (variable_size): Allow variable-size objects at file
10095 Fri Feb 26 07:14:34 1993 Bill Cox (bill@rtl.cygnus.com)
10097 * c-decl.c (finsh_decl): Don't output non-constant storage size
10099 * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10100 call in build_chill_cause_exception.
10101 * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10102 * ch-loop.c (build_temporary_variable): New function
10103 * ch-process.c: Call build_temporary_variable, spell start_process
10105 * ch-tree.h: Extern for build_temporary_variable
10107 Thu Feb 25 12:09:01 1993 Bill Cox (bill@rtl.cygnus.com)
10109 * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10110 builtins - they pollute the CHILL name space.
10111 * ch-typeck.c (valid_array_index): Correct upper-bound check.
10112 * expr.c (expand_expr): Use actual library name for __inpowerset
10114 * stor-layout.c (variable_size): Disable complaint about variable-
10115 size type or decl at file scope. Perhaps later this s.b. a warning.
10116 * varasm.c (emit_set_data): Add function.
10117 (output_constant): Call new emit_set_data function for VAR_DECLs,
10118 in addition to CONSTRUCTORs.
10120 Thu Feb 25 11:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
10122 * ch-actions.c: Change all builtin functions names to their
10123 actual library names. Change references to boolean_type_node
10124 to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10126 build_set_expr: Remove length parameter, call powersetlen() instead.
10127 remove handling of CHAR arrays - they're handled in build_char_array_expr.
10128 Call __eqpowerset to test for equality - we can't use a byte-length -
10129 need bitcount instead.
10130 build_chill_compound_expr, internal_build_compound_expr: Copy from C
10131 version that does stuff we don't want.
10132 build_binary_op: Check for in_size_in_bytes return < 0, indicating
10133 size is changeable at run time. Build two memcpy calls to implement
10134 string concatenation.
10135 powersetlen: Add function.
10136 build_chill_card: Call powersetlen.
10137 build_chill_max_min: Common code for powerset max/min.
10138 build_chill_length: Move VARYING array handling before regular char
10140 * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10141 the VARYING status of the target to do this correctly. Use powersetlen
10142 for the powerset operations, not a byte length.
10143 * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10144 for each CHILL loop, as Z.200 requires. Add powerset and error flags
10145 to loop structure. Evaluate user's powerset expression into a temp,
10146 scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10147 for powerset loop. Only do loop-end assignments if NOT a powerset
10148 loop, which has much less overhead now.
10149 * ch-tree.h: Add prototype for powersetlen.
10151 Fri Feb 19 08:40:24 1993 Bill Cox (bill@rtl.cygnus.com)
10153 * ch-lex.l (convert_number): Evaluate number and pass it as
10156 Fri Feb 19 08:56:44 1993 Michael Tiemann (fs_tie at rcsw18)
10158 * ch-typeck.c (build_chill_array_ref): Handle newmodes
10161 * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10162 we are going to return 0.
10164 * ch-convert.c (convert_to_reference): Don't use
10165 TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10166 (which must match the type of the expr).
10168 * ch-grant.c (chill_seize): Don't let a type be copied just
10169 because we are seizing it.
10171 * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10172 TYPE_MAX_VALUE to integer type.
10174 * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10175 tree type of the bounds.
10176 (build_loop_top): type of GE_EXPR and LE_EXPR is
10177 boolean_type_node, not lp->iter_type.
10178 (for_location): Ditto.
10180 * ch-action.c (build_chill_lower,build_chill_upper): Handle
10181 ENUMERAL_TYPE. Also, handle different kinds of arguments more
10184 * ch-parse.y (iteration): Convert start_exp and end_exp to
10185 match the type of modename.
10187 * ch-grant.c (chill_seize_aggr): Search also through anonymous
10190 * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10191 already been seized, and if so, do nothing.
10193 * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10194 comes out error_mark_node, set ERRONEOUS.
10196 * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10199 * ch-action.c (chill_comptypes): Test for structural
10200 equivalence of enums.
10202 * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10203 TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10205 * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10206 ARRAY_TYPE, seize the domain type if its a set.
10208 Thu Feb 18 20:02:15 1993 Per Bothner (bothner@rtl.cygnus.com)
10210 * c-typeck.c (process_init_constructor): Emit error if some
10211 array elements are not initialized.
10212 * c-typeck.c (process_init_constructor): Call digest_init()
10213 recursively to expand default_value.
10214 * ch-expr.c (chill_expand_array_assignment): Simplify, and
10215 handle the case that the lhs has dynamic size (e.g. a slice).
10216 * ch-parse.y (elementlist): Handle the case that tupleelement
10217 generates more than one TREE_LIST node.
10219 Thu Feb 18 12:40:56 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10221 * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10222 * c-typeck.c (lookup_field): add function, calls.
10223 * ch-actions.c (build_chill_binary_op): figure return_type differently.
10224 * ch-convert.c (convert_to_reference): return error_mark_node,
10225 STRIP_NOPS. (convert): Braces for readability.
10226 * ch-decl.c (build_chill_function_type): accept typespec as parm.
10228 (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10229 * ch-expr.c (chill_expand_assignment): handle references.
10230 * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10231 * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10232 call convert. Generally handle reference types.
10235 Thu Feb 18 09:30:11 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10237 * ch-actions.c (chill_comptypes): Figure out which newmode or
10238 synmode decls look most canonical.
10239 * ch-convert.c (convert): handle location conversions of records,
10241 * ch-decl.c (fixup_unknown_type): changes for variant records
10242 * ch-parse.y (tupleelement): avoid confusing digest_init.
10243 * ch-typeck.c (build_chill_array_ref): give element ref the
10244 type of the ELEMENT, not the array (Bill Cox).
10246 Wed Feb 17 11:52:20 1993 Bill Cox (bill@rtl.cygnus.com)
10248 * ch-parse.y: change push_newmode and push_synmode interfaces.
10249 * ch-actions.c (build_chill_binary_op): convert operands.
10251 Wed Feb 17 10:54:24 1993 Bill Cox (bill@rtl.cygnus.com)
10253 * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
10254 handle reference types.
10255 * ch-decl.c (push_newmode, push_synmode): rewritten
10256 * ch-process.c (make_process_struct): new push_newmode interface.
10257 * ch-typeck.c (build_chill_cast): change interface, error checks.
10259 Wed Feb 17 09:50:37 1993 Bill Cox (bill@rtl.cygnus.com)
10261 * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
10263 * ch-typeck.c (valid_array_index): new function.
10265 Tue Feb 16 22:36:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10267 * ch-convert.c (convert): Slightly more correct conversion
10268 for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
10269 * ch-expr.c (chill_expand_array_assignment): Invoke
10270 __builtin_memcpy using build_function_call, not directly at
10271 the rtx level (which doesn't work).
10272 * ch-typeck.c (build_chill_slice): First attempt at slices.
10273 * ch-tree.h, ch-typeck.c (build_chill_slice_with_range,
10274 build_chill_slice_with_length): New functions.
10275 * ch-parse.y: Use new slice-building functions.
10276 * expr.c (get_inner_reference): Subtract low bound of
10277 array when doing an ARRAY_REF.
10279 Tue Feb 16 14:17:55 1993 Bill Cox (bill@rtl.cygnus.com)
10281 * ch-actions.c (build_chill_function_call): better comments.
10282 * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
10283 * ch-parse.y: indentation cleanup
10285 Tue Feb 16 12:03:53 1993 Michael Tiemann (tiemann@cygnus.com)
10287 * ch-decl.c (grok_chill_variantdefs): Really implement variant
10289 * ch-grant.c (get_tag_value): New function.
10290 * ch-grant.c (decode_mode): Grant variant records.
10292 * ch-grant.c (chill_seize): If we seize a set, seize the set
10295 * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
10298 * ch-parse.y (EMPTY): New pseudo-token to disambiguate
10299 variant_alternatives.
10300 (current_fieldlist): New variable to help processing tag
10301 declarations in variant records.
10302 (fields): Renamed from structdef.
10303 (field): Renamed from fields.
10304 (varianthack): New non-terminal to handle parsing ambiguity
10305 for variant records.
10306 (optlabellist): Changed to preserve CONST_DECLs when they are
10309 * ch-tree.h (TYPE_TAGFIELD): New macro.
10310 (TYPE_TAG_VALUES): Ditto.
10312 Mon Feb 15 00:49:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10314 * ch-grant.c (decode_mode): Fix output for powerset modes.
10315 * ch-grant.c (decode_constant): Support grant output of
10317 * ch-actions.c (build_chill_binary_op): IN_EXPR fix.
10318 * expr.c (expand_expr): Add Chill-specific kludge for
10319 BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
10320 * ch-expr.c (chill_expand_assignment): Remove no-longer-needed
10321 special-case support for a BIT_FIELD_REF in right-hand-side.
10322 * ch-lang.c (finish_chill_enum): Patch up enum elements to
10323 have the correct type (instead of integers, as in C).
10325 * ch-lex.l, ch-parse.y: Add disgusting hack (involving
10326 context-dependent look-ahead) so we can parse exception
10327 handlers correctly.
10328 * c-typeck.c (digest_init): Set output type for SET_TYPEs.
10329 * varasm.c (unpack_set_constructor): Add support for
10330 (power-)set ranges (i.e. low_element:high_element).
10332 Sun Feb 14 13:37:52 1993 Bill Cox (bill@rtl.cygnus.com)
10334 * ch-inout.c: delete unused #include
10335 * ch-typeck.c (build_chill_slice): turn abort call into error msg.
10337 Sat Feb 13 13:13:31 1993 Bill Cox (bill@rtl.cygnus.com)
10339 * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
10341 Sat Feb 13 12:17:41 1993 Bill Cox (bill@rtl.cygnus.com)
10343 * Makefile.in: add lots of header files to the CHILL dependencies
10345 Fri Feb 12 15:48:27 1993 Per Bothner (bothner@rtl.cygnus.com)
10347 * ch-actions.c (build_chill_function_call): Don't return
10348 error_mark_node on empty parameter-list.
10350 Fri Feb 12 12:54:52 1993 Bill Cox (bill@rtl.cygnus.com)
10352 * ch-actions.c (build_chill_function_call): fix start_decl parms.
10353 * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
10355 Fri Feb 12 10:32:37 1993 Bill Cox (bill@rtl.cygnus.com)
10357 * ch-actions.c (build_chill_function_call): create temps, do
10358 assignments to handle INOUT and OUT parameters.
10359 * ch-decl.c (build_chill_function_type): better parameter name.
10360 * ch-parse.y (action): keep rules in alpha order.
10361 (pmodearg): turn INOUT, OUT parameter types into reference types.
10362 * ch-typeck.c (build_tree_slice): indentation change.
10364 Thu Feb 11 23:16:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10366 * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
10367 take a list of elements which are in the set. This corresponds
10368 better to the tuple input form in Chill (and Pascal).
10369 * varasm.c (unpack_set_constructor, pack_set_constructor):
10370 New functions, to expand SET_TYPE CONSTRUCTORs.
10371 * varasm.c (output_constructor): Use pack_set_constructor
10372 to assemble a SET_TYPE constant from a CONSTRUCTOR.
10374 * ch-grant.c (decode_constant): Better grant for strings,
10375 enumeral, and bitstring constants.
10376 * ch-grant.c: Fixes in seize to avoid duplicates, and emit
10377 things in the correct order.
10378 * c-typeck.c (chill_initializer_constant_valid_p): Kludge
10379 needed to export a static function.
10380 * ch-typeck.c (convert): Avoid needlessly (and lossingly) calling
10381 chill_expand_tuple to convert fix string to varying.
10382 * ch-actions.c (build_chill_binary_op): Promote short
10383 integer operands if needed (otherwise emit routines barf).
10384 * ch-tree.h (SET_WORD_SIZE): New macro.
10385 * ch-parse.y: Fix syntax for RECEIVE CASE.
10386 * ch-parse.y (location): If IDENTIFIER is a CONST_DECL
10387 return its value instead.
10389 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10391 * ch-actions.c (build_chill_max, build_chill_min): clean up
10392 * ch-typeck.c (chill_expand_tuple): correct set initialization from
10393 an enumeration tuple. Add sort_constructor function.
10395 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10397 * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
10398 BOOLEAN_TYPE w/out an abort.
10400 Wed Feb 10 14:59:53 1993 Bill Cox (bill@rtl.cygnus.com)
10402 * ch-actions.c: change most integer_type_node references to
10403 chill_integer_type_node. Rewrite _max and _min routines,
10404 redefine the signatures for those runtime routines. Move
10405 empty-set check into runtime.
10406 * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
10407 most integer_type_node references to chill_integer_type_node.
10409 Tue Feb 9 16:00:05 1993 Per Bothner (bothner@rtl.cygnus.com)
10411 * ch-except.c: New file. Stuff for exception handling.
10412 * ch-parse.y: Add working exception handling support.
10413 * ch-lex.l, ch-parse.y: Prefer standard type terminology
10414 (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
10415 * ch-grant.c: Fix various problems related to granting
10416 types such as bitsets.
10417 * ch-tree.c (build_bitstring_type): Set TYPE_MIN_VALUE
10418 to distinguish bitstrings from powersets (in the same way
10419 we distinguish char strings from char arrays).
10420 * ch-tree.h: New macro CH_BOOL_TYPE_P.
10421 * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
10422 Undo kludge where integer_type_node was hardwired to 16 bits.
10423 Make integer_type_node etc have the same size as in cc1.
10424 New types chill_integer_type_node and chill_unsigned_type_node
10425 that correspond to the Chill source types INT and UINT.
10426 For now, these match the C 'short' types, but that should
10427 become a configuration option later,
10429 Tue Feb 9 11:41:25 1993 Bill Cox (bill@rtl.cygnus.com)
10431 * ch-actions.c (build_chill_unary_op): allow NOT of a set.
10433 Tue Feb 9 08:27:18 1993 Bill Cox (bill@rtl.cygnus.com)
10435 * ch-actions.c (build_chill_function_call): add test for
10436 too many/few actual parameters (and avoid seg fault).
10437 * ch-decl.c (do_decls): code cleanup for readability.
10438 * ch-loop.c (begin_chill_loop, end_chill_loop): remove
10439 emit_nop() calls - they now (since exceptions) cause seg faults.
10440 Make derogation on poor CHILL compiler non-specific.
10441 * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
10442 * ch-tree.h: remove prototypes added to c-tree.h.
10443 * ch-typeck.c (build_chill_array_ref): correct getting domain
10444 subtree for a PARM_DECL. Subscripting a SET_TYPE is turned into
10447 Sun Feb 7 18:20:49 1993 Bill Cox (bill@rtl.cygnus.com)
10449 * ch-tree.def: add a new tree type - just for varying array
10450 references. We were using ARRAY_REF, but the underlying C
10451 code also generates that one.
10452 * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
10454 Sun Feb 7 17:33:17 1993 Bill Cox (bill@rtl.cygnus.com)
10456 * ch-convert.c: test given type against type of expr before
10457 calling chill_expand_tuple. We were getting lots of spurious
10460 Fri Feb 5 15:24:01 1993 Per Bothner (bothner@rtl.cygnus.com)
10462 * cccp.c: Merge in various Chill-specific changes.
10463 * gcc.c (default_compilers array): Pass -lang-chill
10464 to cpp, not -lang-ch.
10466 Fri Jan 29 17:18:22 1993 Per Bothner (bothner@rtl.cygnus.com)
10468 * Makefile.in (install-libchill, install-librmt): Removed.
10469 * ch-actions.c (build_chill_exception_decl): Change decl
10470 to initialized char array, rather than unitialized common.
10471 (Simplifies extracting string name of exception.)
10472 * ch-actions.c: Adjust interface to cause_exception accordingly.
10473 * ch-typeck.c (build_chill_array_ref): Cause rangefail if
10474 index > limit, not >= limit.
10476 * ch-actions.c (build_chill_function_call): Rename misleading
10478 * ch-decl.c (do_decls): Allow (again) general initializer exprs.
10479 * ch-parse.y (call): Test for function call needs to test for
10480 FUNCTION_TYPE, not FUNCTION_DECL.
10481 nreverse arg list to build_chill_array_ref.
10482 * ch-typeck.c (build_chill_array_ref): Do recursive call at end
10483 and only if multiple indexes.
10484 * ch-typeck.c: Cleanups.
10486 Fri Jan 29 11:05:58 1993 Bill Cox (bill@rtl.cygnus.com)
10488 * ch-decl.c (do_decls): handle set initializations better, more to do.
10489 * ch-loop.c (begin_for_range): correct interface to expand_start_cond
10490 and build_binary_op.
10491 * ch-tree.h: lots more prototypes
10492 * ch-typeck.c (build_array_from_set): added function.
10493 * ch-typeck.c (chill_expand_tuple): handle set initializations better.
10495 Thu Jan 28 17:41:58 1993 Per Bothner (bothner@rtl.cygnus.com)
10497 * ch-grant.c (set_default_grant_file): Change default.
10498 Normally, grant file should end up in cwd.
10499 * ch-lang.c (build_chill_struct_type): Call pushtag,
10500 for the sake of debugging.
10501 * ch-lex.l: Improve comment parsing.
10502 * ch-lex.l (readstring): Some improvements.
10503 Initial support for control sequences in string literals.a
10505 Thu Jan 28 16:16:00 1993 Bill Cox (bill@rtl.cygnus.com)
10507 * ch-convert.c (convert): correct fixed->varying conversion.
10508 * ch-parse.y (mode2): delete unesthetic newline.
10510 Thu Jan 28 10:32:55 1993 Bill Cox (bill@rtl.cygnus.com)
10512 * ch-actions.c: delete maybe_array_ref()
10513 * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
10515 * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
10516 supervision actions & builtins
10517 * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
10518 smaller actions directly (maybe_array_ref() used to call them).
10519 * ch-tree.h: add build_chill_function_call, build_chill_slice
10520 * ch-typeck.c: add build_chill_slice()
10522 Thu Jan 28 08:44:28 1993 Bill Cox (bill@rtl.cygnus.com)
10524 * ch-tree.h: bring up to date with ch-actions.c changes.
10526 Wed Jan 27 23:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10528 * ch-expr.c (chill_expand_assignment): handle an RHS varying array
10531 Wed Jan 27 22:28:36 1993 Per Bothner (bothner@rtl.cygnus.com)
10533 * ch-grant.c (decode_constant): Add REAL_TYPE support.
10534 * ch-actions.c (build_chill_exception_decl): New function.
10535 * ch-actions (build_chill_cause_exception, cond_exceptions):
10536 Convert to take a (char*) parameter (the exception name).
10537 * ch-actions.c, ch-expr.c, ch-typeck.c: Convert calls to
10539 * ch-parse.y (check_end_label): New function, to check if
10540 and end label matches start label.
10541 * ch-parse.y: Fix syntax to properly recognize and
10542 test optional end labels (using check_end_label).
10543 * ch-decl.c (finish_chill_function): Simplify, since
10544 we assume check_end_label has already been called.
10545 * ch-parse.y: Put in infrastructure for exception handling.
10547 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10549 * ch-actions.c: delete convert_chill_parameter, replace call with
10551 * ch-convert.c (convert): combine chill_give_type_to_expr in here.
10552 * ch-decl.c: call convert rather than chill_give_type_to_expr.
10553 * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
10554 * ch-expr.c (chill_expand_assignment): just call convert.
10555 * ch-loop.c (end_chill_loop): expand the end of the loop for a
10557 * ch-parse.y: call convert rather than chill_give_type_to_expr.
10558 * ch-process.c: checkpoint.
10559 * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
10561 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10563 * ch-grant.c (grant_array_type): new function to allow handling of
10564 VARYING array types.
10566 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10568 * ch-typeck.c (chill_give_type_to_expr): fix typo. Reorder to
10569 avoid checking types on CONSTRUCTORs. Correct typo.
10570 * ch-expr.c (expand_assignment_to_varying_array): use proper
10571 expansion function expand_expr_stmt.
10572 * ch-expr.c (expand_chill_assignment): only convert VARYING
10575 Wed Jan 27 15:32:21 1993 Bill Cox (bill@rtl.cygnus.com)
10577 * ch-actions.c (build_chill_length, build_chill_lower,
10578 build_chill_upper): accept parameters, too.
10579 * ch-expr.c (chill_expand_assignment): decipher ARRAY_REF on RHS.
10580 * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
10581 assign proper type to ARRAY_REF expression.
10583 Wed Jan 27 09:51:46 1993 Bill Cox (bill@rtl.cygnus.com)
10585 * ch-actions.c (build_chill_binary_op): delete unused variable,
10586 get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
10587 * ch-actions.c (build_chill_repetition_op): handle differently-built
10589 * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
10590 * ch-typeck.c (chill_give_type_to_expr): give type to constructor
10592 Tue Jan 26 11:32:38 1993 Bill Cox (bill@rtl.cygnus.com)
10594 * ch-parse.y (ifaction): re-add lost call to expand_end_code().
10595 * ch-parse.y (siezelist, grantlist): use 'name' rather than
10596 'checked_name'. It makes no sense to check sieze/grant names
10597 for WITH expansion.
10598 * ch-expr.c (chill_expand_expr): delete unnecessary (and
10599 seg-fault-causing) code.
10600 * ch-expr.c (chill_expand_assignment): make test for varying array
10601 on the LHS more specific.
10602 * ch-actions.c (invalid_left_operand, invalid_right_operand): error
10603 for use of MOD, REM operators.
10604 * ch-actions.c (build_chill_repetition_op): error for bit-field
10605 initializers (which will get handled in the lexer).
10607 Mon Jan 25 17:26:47 1993 Bill Cox (bill@rtl.cygnus.com)
10609 * ch-typeck.c (build_chill_array_ref),
10610 * ch-expr.c (chill_expand_expr, chill_expand_assignment):
10611 translate varying array ref into ARRAY_REF, defer processing
10612 until chill_expand_expr. Update array's length field in
10613 new function expand_assignment_to_varying_array.
10615 Mon Jan 25 14:57:24 1993 Bill Cox (bill@rtl.cygnus.com)
10617 * ch-parse.y (mode2): eliminate old method to mark varying arrays.
10618 * ch-expr.c (expand_varying_length_assignment): repair scaling of
10621 Mon Jan 25 11:44:21 1993 Per Bothner (bothner@cygnus.com)
10623 * ch-parse.y: Allow character and bitstring literals
10624 in string repetition operator.
10626 Sat Jan 23 14:18:11 1993 Per Bothner (bothner@cygnus.com)
10628 * ch-parse.y (primval): Re-recognize '(' expr ')'.
10629 * ch-parse.y (name): Remove call to check_identifier -
10630 this is not appropriate in certain contexts.
10631 * ch-parse.y (checked_name): Same as <name>, but *with* the
10632 call to check_identifier. Use where appropriate.
10633 * ch-parse.y (operand5): Only allow string repetition of
10634 string literals, because otherwise you get a conflict.
10636 Thu Jan 21 16:32:39 1993 Bill Cox (bill@rtl.cygnus.com)
10638 * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
10639 continue start_process development.
10641 Thu Jan 21 13:51:06 1993 Bill Cox (bill@rtl.cygnus.com)
10643 * ch-decl.c (do_decl): fix handling of multi-char initializer.
10645 Thu Jan 21 13:14:00 1993 Bill Cox (bill@rtl.cygnus.com)
10647 * .cvsignore: add CHILL files to be ignored
10649 Thu Jan 21 07:38:57 1993 Bill Cox (bill@cygnus.com)
10651 * ch-parse.y: rough draft of start_process handling.
10653 Wed Jan 20 17:11:05 1993 Bill Cox (bill@rtl.cygnus.com)
10655 * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
10657 Wed Jan 20 16:48:13 1993 Bill Cox (bill@rtl.cygnus.com)
10659 * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
10660 create new modules for I/O and process-related stuff.
10661 * ch-actions.c: move routines to new modules.
10662 call xmalloc, not malloc.
10663 * ch-lang.c (build_chill_struct_type): add parameter checking.
10664 * ch-lex.l (init_lex): remove redundant cast.
10666 Tue Jan 19 16:33:56 1993 Bill Cox (bill@rtl.cygnus.com)
10668 * ch-parse.y (operand5): delete unnecessary argument to
10669 build_chill_unary_op. Add rule for string repetition.
10670 * ch-parse.y (primval): delete string repetition attempt.
10671 * ch-parse.y (start_process): rough draft of action.
10672 * ch-actions.c (build_repetition_op): add it
10673 * ch-actions.c (build_chill_binary_op): handle constant arguments
10674 of CONCAT_EXPR, combine into a single string if possible.
10675 * ch-actions.c (invalid_left_operand, invalid_right_operand):
10676 allow single character arguments to CONCAT_EXPR.
10677 * ch-tree.h: add prototype for build_repetition_op
10679 Tue Jan 19 15:03:29 1993 Fred Fish (fnf@cygnus.com)
10681 * dwarfout.c (output_type): Add hack that matches the one in the
10682 chill front end to distinquish between true string types and
10683 arrays of char, since it uses ARRAY_TYPE for both, rather than
10684 trying to use the existing support for STRING_TYPE.
10686 Tue Jan 19 13:54:27 1993 Bill Cox (bill@rtl.cygnus.com)
10688 * ch-tree.h: added prototypes for all non-static CHILL functions.
10689 * ch-actions.c (lang_init): declare builtin type for start_process
10690 * ch-actions.c (build_chill_binary_op): combine string literals when
10692 * ch-actions.c (formpars2struct): added for later start_process
10694 * ch-actions.h: remove un-needed function declarations.
10695 * ch-decl.c: extern cleanup.
10696 * ch-expr.c (chill_expand_array_assignment): add missing first
10697 parameter to cond_exception call.
10698 * ch-lex.l: make build_chill_string non-static.
10700 Mon Jan 18 19:15:08 1993 Bill Cox (bill@rtl.cygnus.com)
10702 * ch-decl.c (do_decls): get varying array length initialized.
10704 Mon Jan 18 09:51:43 1993 Bill Cox (bill@rtl.cygnus.com)
10706 * ch-expr.c (chill_expand_array_assignment): fix the copy length
10707 in the memcpy call (it was just 4 bytes always). Simplify some
10710 Mon Jan 18 08:24:21 1993 Bill Cox (bill@rtl.cygnus.com)
10712 * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
10714 Mon Jan 18 08:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
10716 * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
10717 CHARS synonymous with CHAR, in the lexer. Delete unnecessary
10718 'bools' non-terminal.
10719 * ch-parse.y (assignaction): add lhs version of length() function
10720 * ch-actions.c: add builtin_concat function, lots of support for
10722 * ch-actions.c, ch-tree.h: make a function out of former
10723 macro CH_VARYING_TYPE_P
10724 * ch-expr.c: add expand_varying_length_assignment ().
10725 * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
10726 * ch-expr.c (chill_expand_array_assignment): call emit_library_call
10727 rather than build_rts_call, to eliminate a recursion problem.
10728 * ch-lang.c: eliminate 'sorry' about varying arrays.
10729 * ch-typeck.c (validate_varying_array_ref): re-enable constant
10732 Sun Jan 17 18:20:04 1993 Per Bothner (bothner@cygnus.com)
10734 * ch-grant.c, ch-lex.l: Major simplification of how
10735 seizes are done and how seizefiles are read.
10736 * ch-actions.h: Remove declaration of check_seize().
10737 * ch-decl.c (do_decls): Handle READONLY types.
10738 * ch-parse.y (mode2): Allow REF to be followed by any mode.
10739 * ch-parse.y (mode2): Allow literal expressions in string length.
10740 * ch-parse.y (tupleelement): Allow elemenst to be untyped_expr.
10741 * ch-parse.y (seizestatement, etc): Call chill_seize each
10742 time something is seized, rather than building a list first.
10744 Sat Jan 16 12:24:44 1993 Bill Cox (bill@rtl.cygnus.com)
10746 * chill.gperf, ch-hash.h: add Wilfried's tokens
10747 * ch-lex.l: fold in Wilfried's changes. Some tokens
10748 weren't getting recognized, and INSTANCE wasn't correctly
10749 reported to ch-parse.y as a PREDEF_MODEDCL.
10751 Thu Jan 14 15:02:39 1993 Per Bothner (bothner@cygnus.com)
10753 * ch-tree.h (CH_CHARS_TYPE_P): New macro. Add comment
10754 explaining difference between char strings and char arrays.
10755 * ch-tree.h (CH_STRING_TYPE_P): Add FIXME re bitstrings.
10756 * ch-tree.c (build_string_type): Add comment.
10758 Wed Jan 13 15:19:15 1993 Per Bothner (bothner@cygnus.com)
10760 * calls.c, expr.c, function.c, stmt.c, varasm.c: Set
10761 MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
10762 * expmed.c (store_bit_field, extract_field_field): Undo
10763 yesterday's removal of MEM_IN_STRUCT_P "sanity test".
10765 * ch-decl.c (do_decls): Put back support for initializing.
10766 (Was accidentally removed in Jan 8 change.)
10768 Wed Jan 13 14:13:11 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
10770 * ch-lex.l (convert_bitstring): Correct typo in cast.
10772 Tue Jan 12 20:29:08 1993 Per Bothner (bothner@cygnus.com)
10774 * ch-lex.l (convert_bitstring): Change to pack bits
10775 within words, not bytes, and to use machine bit-order
10776 (not always little-endian).
10777 * ch-parse.y: Allow BOOLS(n) as well as BITS(n).
10778 Use build_bitstring_type, not build_string_type.
10779 * expmed.c (store_bit_field, extract_field_field): Remove
10780 "sanity test" that prevents use with SET_TYPE.
10781 * tree.c (build_bitstring_type, build_powerset_type,
10782 build_string_type): Move (so far) Chill-specific functions to ...
10783 * ch-tree.c: ... new file.
10784 * ch-tree.c (build_powerset_type, build_bitstring_type): Re-write.
10785 * ch-typeck.c (build_chill_array_ref): Handle bit strings better.
10786 * ch-typeck.c (chill_expand_tuple): Kludge to handle SET_TYPE.
10787 * Makefile.in (CHILL_OBJS): Add ch-tree.o.
10788 * ch-decl.c (do_decls): Call expand_decl.
10789 * stor-layout.c (layout_type): Handle SET_TYPE.
10790 * expr.c (expand_expr): Add FIXMEs about IN_EXPR.
10791 * ch-actions.c (lang_init): Add type and decl for new
10792 function __builtin_setbitinstring.
10793 * ch-expr.c (chill_expand_assignmment): Special-case handling
10794 for BIT_FIELD_REF with non-constant bit position (which is
10795 not yet handled by expand_expr).
10796 * ch-convert.c (convert): Handle SET_TYPE.
10798 Tue Jan 12 12:49:13 1993 Fred Fish (fnf@cygnus.com)
10800 * chill: If -B arg is given, use to find gcc.
10802 Fri Jan 8 20:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
10804 * ch-decl.c: revert to avoid seg fault
10806 Fri Jan 8 14:20:42 1993 Bill Cox (bill@rtl.cygnus.com)
10808 * ch-decl.c: fix storage into correct offset in varying array.
10809 * ch-actions.c: define sizetype for everyone, use it to build
10811 * ch-parse.y: tiny cleanup.
10813 Wed Jan 6 13:25:33 1993 Bill Cox (bill@cygnus.com)
10815 * modules: use gdb rather than naked-gdb, to get opcodes
10816 in chill definition.
10818 Wed Jan 6 09:48:35 1993 Bill Cox (bill@cygnus.com)
10820 * ch-typeck.c: add code to handle references to elements of VARYING
10821 arrays. Simplify chill_give_type_to_expr. Add rough draft of run-
10822 time index checking for VARYING arrays (under #if 0).
10823 * ch-actions.c: new function cond_type_range_exception & calls.
10824 New function cond_range_exception, for more general range-checking.
10825 New function build_varying_struct, to do just that. Use the macros
10826 for the special varying field names.
10827 * ch-tree.h: define macros for varying field names.
10828 * ch-expr.c: use macros for varying struct names. Simplify
10829 chill_expand_array_assignment.
10830 * ch-parse.y: assure that build_varying_struct is called everywhere
10831 that it applies. Add a line-number note before the body of a DO
10833 * ch-loop.c: #ifdef out creation of new scope for DO loop body.
10835 Tue Jan 5 17:26:14 1993 Bill Cox (bill@cygnus.com)
10837 * c-decl.c: correct order of declaration of start_decl params,
10840 Tue Jan 5 15:59:36 1993 Per Bothner (bothner@cygnus.com)
10842 * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
10843 Move shared code into ...
10844 * ch-decl.c (start_chill_function): ... here.
10845 * ch-decl.c (start_chill_function): Add missing call to
10846 expand_start_bindings.
10847 * ch-decl.c (finish_chill_function): Add missing call to
10848 expand_end_bindings.
10850 Tue Jan 5 01:00:47 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10852 * Makefile.in: took out the rest of the runtime support
10854 Mon Jan 4 18:02:06 1993 Bill Cox (bill@cygnus.com)
10856 * ch-expr.c: make chill_expand_array_assignment not static.
10858 Mon Jan 4 17:57:48 1993 Per Bothner (bothner@cygnus.com)
10860 * ch-grant.c, ch-parse.y: Remove all code for explicitly
10861 calling initializer functions. This is not needed, since we
10862 use the same mechanism used for C++ static constructors.
10863 * ch-grant.c (chill_start_module_code): Make sure the
10864 init_name starts with the magic string also used for C++
10865 initializers. Also, don't embed the file name in the name,
10866 just use the module name.
10867 * ch-grant.c (chill_finish_module_code): Now that the
10868 initializer name follows the standard 'collect' convention,
10869 don't need to call assembler_constructor_alias, but can
10870 use the standard assemble_constructor instead.
10871 * varasm.c (assemble_constructor_alias): Remove no-longer-
10873 * ch-parse.y: Move code that is common to the beginning of
10874 all functions to a new macro INIT_ACTION.
10875 Make sure INIT_ACTION is also done for callaction, fixing a bug.
10876 * ch-parse.y (INIT_ACTION): Do chill_start_module_code()
10877 before emit_line_note(), not after.
10879 Mon Jan 4 11:43:12 1993 Bill Cox (bill@cygnus.com)
10881 * ch-parse.y: restore requirement for :upper-bound in array decl.
10882 * ch-actions.c: enhance upper, lower, length functions for VARYING.
10884 Mon Jan 4 09:28:44 1993 Bill Cox (bill@cygnus.com)
10886 * ch-actions.c: fix NOT of boolean expr.
10888 Mon Jan 4 08:42:57 1993 Bill Cox (bill@cygnus.com)
10890 * ch-actions.c: provide range-checking function
10891 * ch-lex.l: better compiler-directive error messages,
10892 allow underscores in exponents
10893 * ch-loop.c: prevent passing NULL ptr to printf
10895 Sun Jan 3 11:57:13 1993 Bill Cox (bill@cygnus.com)
10897 * ch-typeck.c: correct & enable array index range-checking
10899 Sun Jan 3 11:36:39 1993 Bill Cox (bill@cygnus.com)
10901 * ch-parse.y: define IGNORED_DIRECTIVE
10902 * ch-typeck.c: subtract array's lower domain value, even if
10903 index expression is constant.
10905 Sat Jan 2 23:05:14 1993 Fred Fish (fnf@cygnus.com)
10907 * ch-lex.l (convert_float): Fix misspelling in error message.
10909 Sat Jan 2 16:02:16 1993 Per Bothner (bothner@rtl.cygnus.com)
10911 * Makefile.in: Took out chill-runtime support.
10912 Chill run times are now in ../chillrt, not ./chillrt.p
10914 Sat Jan 2 15:04:13 1993 Bill Cox (bill@cygnus.com)
10916 * ch-hash.h, chill.gperf: cleanup. fewer keywords seen by ch-parse.y.
10918 Sat Jan 2 13:27:49 1993 Per Bothner (bothner@rtl.cygnus.com)
10920 * ch-lex.l (check_newline): Use the orginal versions (derived
10921 from the C code, not the simplified, special-case version).
10922 Also, fix that version of check_newline to not call yylex()
10924 * ch-lex.l (yy_input): Call check_newline to handle
10925 newlines and check for # directives.
10926 * ch-lex.l (syntax): Don't recognize #-directives; these
10927 are now handled by check_newline.
10928 * ch-actions.c (lang_init): Call the modified version of
10929 check_newline(). Do this at the *after* we've initialized
10930 standard types, so this can be done while lineno is still 0.
10932 Sat Jan 2 10:57:20 1993 Bill Cox (bill@cygnus.com)
10934 * ch-hash.h, chill.gperf: add remaining reserved words.
10936 Sat Jan 2 09:59:55 1993 Bill Cox (bill@cygnus.com)
10938 * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
10939 names for exceptions
10941 Fri Jan 1 12:30:31 1993 Fred Fish (fnf@cygnus.com)
10943 * ch-tree.h (JOINER): Define joiner character the same way
10945 * ch-grant.c (chill_start_module_code): Use JOINER character
10946 to implement name mangling for the initializer function name.
10947 Algorithm is designed to be simple, distinct from C++ mangled
10948 symbols, and easy to convert to demangled form.
10950 Thu Dec 31 10:30:51 1992 Bill Cox (bill@rtl.cygnus.com)
10952 * ch-expr.c: make array assignments work with indirect refs.
10953 * ch-actions.c: prepare for array parameter handling.
10954 * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
10956 Thu Dec 31 15:29:20 1992 Per Bothner (bothner@rtl.cygnus.com)
10958 * ch-lex.l (yy_input): Re-write to return more than one
10959 character at a time (execpt when reading seize-files).
10960 Don't increment lineno until we start reading the next line.
10961 This fixes some off-by-one errors in lineno.
10963 Wed Dec 30 16:15:23 1992 Per Bothner (bothner@rtl.cygnus.com)
10965 * ch-convert.c: Assume use of new common.c.
10966 * ch-convert.c (convert_to_reference, convert_from_reference):
10967 New routines, to handle loc-identity declared variables and
10968 LOC parameters (both of which are implemented as references).
10969 * ch-lang.c (convert_to_boolean, convert_to_char): Move to
10970 ch-convert.c, where they would seem to belong.
10971 * ch-convert.c (convert): New function, since we no longer
10972 link in c-convert.c.
10973 * ch-expr.c (chill_expand_assignment): Handle by calling
10974 convert() instead of chill_comptypes().
10975 Also handle the LHS being a reference.
10976 * ch-parse.y: Add a procedure call as an action.
10977 * ch-parse.y (locdec, optlocinit): Move handling of
10978 loc-identity declarations from optlocinit to locdec
10979 - and add working semantics for it.
10980 * ch-parse.y (seizestatement, visibilty_stmt): Simplify.
10981 * ch-parse.y (grantstatement etc): Don't bother making list.
10982 * ch-lex.l: #include <sys/types.h> before <sys/stat.h>.
10984 Wed Dec 30 16:06:55 1992 Bill Cox (bill@rtl.cygnus.com)
10986 * ch-parse.y, ch-expr.c: add support for declaring & assigning
10988 * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
10990 Tue Dec 29 15:28:48 1992 Bill Cox (bill@cygnus.com)
10992 * ch-actions.c: implement expressions of arrays of char,
10993 ( concatenation, relationals ), correct type of code parameters
10994 * ch-expr.c: correct type of code parameters
10996 Tue Dec 29 11:16:19 1992 Bill Cox (bill@cygnus.com)
10998 * ch-decl.c: cleanup.
10999 * ch-parse.y: put emit_line_note() calls in lotsa places,
11000 per Fred's request; be sure that statements get counted also.
11001 * ch-lex.l: standardize function headers.
11003 Tue Dec 29 10:41:56 1992 Fred Fish (fnf@cygnus.com)
11005 * ch-decl.c (start_chill_function): Always return 1, rather
11006 than a random value.
11007 * ch-lex.l (check_newline): Add a version for chill that
11008 just snarfs the right value for main_input_filename out of
11009 the first line of the input file, without disturbing the
11010 lexer state or requiring it's assistance.
11011 * ch-actions.c (lang_init): Call check_newline, like the
11012 other language frontends, to get main_input_filename set
11013 from first line of input file.
11015 Mon Dec 28 18:49:01 1992 Bill Cox (bill@cygnus.com)
11017 * ch-parse.y: clean up conflicts. The remaining one is
11020 Mon Dec 28 17:28:40 1992 Bill Cox (bill@cygnus.com)
11022 * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11023 clean up some parser conflicts.
11025 Mon Dec 28 15:00:20 1992 Bill Cox (bill@cygnus.com)
11027 * ch-parse.y, ch-lex.l: add keywords and parsing for most of
11030 Sat Dec 26 20:48:23 1992 Fred Fish (fnf@cygnus.com)
11032 * chillrt/chillrt0.c: Oops, SVR4 doesn't need leading '_'
11033 on build_exceptions.
11035 Sat Dec 26 11:00:36 1992 Fred Fish (fnf@cygnus.com)
11037 * ch-grant.c (chill_finish_module_code): Call
11038 assemble_constructor_alias rather than assemble_constructor.
11039 * varasm.c (assemble_constructor_alias): New function,
11040 like assemble_constructor, but also handles the case where
11041 ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11042 being used. Emits a symbol table alias name with the correct
11043 prefix for collect to find and add to the __CTOR_LIST__.
11044 * chillrt/chillrt0.c: Build on previous hack that gets
11045 _build_exceptions into the __CTOR_LIST__, to make it work
11046 for both the non GNU-ld case and for the SVR4 case.
11048 Tue Dec 22 18:24:55 1992 Bill Cox (bill@cygnus.com)
11050 * ch-loop.c: clean up location enumeration - one more
11053 Tue Dec 22 16:31:48 1992 Bill Cox (bill@cygnus.com)
11055 * ch-loop.c: Working version of location enumeration loop
11057 Tue Dec 22 14:42:14 1992 Bill Cox (bill@cygnus.com)
11059 * ch-lex.l: readability cleanup
11061 Mon Dec 21 14:58:39 1992 Bill Cox (bill@cygnus.com)
11063 * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11064 ch-loop.c: rough draft of location enumeration
11065 ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11066 ch-actions.c: finish making pred() and succ() work.
11068 Mon Dec 21 10:04:35 1992 Bill Cox (bill@cygnus.com)
11070 * ch-actions.c: allow pred(char) and succ(char).
11072 Sun Dec 20 16:04:28 1992 Bill Cox (bill@cygnus.com)
11074 * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11075 c-expr.c: make DO WITH work.
11077 Sun Dec 20 12:22:53 1992 Bill Cox (bill@cygnus.com)
11079 * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11082 Sat Dec 19 14:20:23 1992 Per Bothner (bothner@cygnus.com)
11084 * c-typeck.c (process_init_constructor): Add warning if
11085 there is a duplicate default initializer element.
11086 * ch-typeck.c (chill_give_type_to_expr): New function,
11087 to handle coercion of an expression to context-given type,
11088 Takes care of untyped tuples, and case expressions.
11089 * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11090 chill_expand_result), ch-parse.y <assignaction>:
11091 Use chill_give_type_to_expr().
11092 * ch-typeck.c (chill_handle_case_label): New parameter list,
11093 to handle the (new) conventions for <case_label>, including
11094 default elements and ranges.
11095 * ch-parse.y <expanded_case_label>, ch-typeck.c
11096 (expand_case_expr): Use new version of chill_handle_case_label.
11097 * ch-decl.c (push_syndecls): Change parameters: Instead of
11098 TREE_LIST representing a compete <synonym definition statement>,
11099 just pass the parts of a single <synonym definition> as 3
11100 different parameters. Also, use chill_give_type_to_expr(),
11101 to handle untyped tuples in the RHS.
11102 * ch-parse.y <syndeclist, syndef>: Don't bother trying to construct
11103 a tree - just call push_syndecls() on each <synonum_definition>
11105 * ch-parse.y (exprlist_get_single): Remove; no longer needed.
11106 * ch-parse.y: Handle <tuple> without mode name diferently from
11107 <tuple> with mode name. The latter is a <primval> that can be
11108 in most contexts, but if the <mode name> is missing, the <tuple>
11109 is only allowed in certain contexts. Use the new non-terminal
11110 <untyped_expr> to indicate those contexts where untyped tuples
11111 (and case expressions) are valid because the expression gets a
11112 type from its context (such as the RHS of an assignment).
11113 Use chill_give_type_to_expr in those contexts.
11115 Sat Dec 19 14:01:26 1992 Bill Cox (bill@cygnus.com)
11117 * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11119 Sat Dec 19 10:16:20 1992 Bill Cox (bill@cygnus.com)
11121 * ch-parse.y: clean up warning messages from byacc. bison
11122 still complains thrice.
11124 Fri Dec 18 12:33:29 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11126 * ch-actions.c (maybe_chill_comptypes): Delete unused
11128 (chill_comptypes): Add new parameter ERRSTR. All callers
11130 (build_chill_binary_op): Fix indentation to match GNU coding
11133 Fri Dec 18 08:18:13 1992 Bill Cox (bill@rtl.cygnus.com)
11135 * ch-parse.y, ch-expr.c, ch-actions.c, expr.c: major
11136 cleanup of expression and assignment handling.
11138 Thu Dec 17 10:16:32 1992 Bill Cox (bill@cygnus.com)
11140 * ch-parse.y: standardize indentation after c-parse.y
11142 Wed Dec 16 15:22:12 1992 Per Bothner (bothner@cygnus.com)
11144 * c-typeck.c (process_init_constructor): Add support for
11145 a default initializer element.
11146 * ch-parse.y: Implement default elements for tuples
11147 (as in '(else):' and '(*):' ).
11149 * ch-parse.y: Previous change to dis-ambiguate case-labels
11150 seems to have allowed getting rid of all of the expr_or_list hair.
11151 * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11152 initialization of multiple variables by a tuple" - the
11155 Wed Dec 16 11:17:53 1992 Bill Cox (bill@cygnus.com)
11157 * ch-parse.y: complete re-write of DO statement handling.
11158 now operational, except WITH is stubbed out. Improved
11159 syntax error message.
11160 * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11161 * ch-expr.c: fixes to IN_EXPR handling.
11163 Tue Dec 15 17:15:13 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
11165 * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11166 * ch-lex.c: Likewise.
11168 * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11169 by flex to avoid compiler error.
11171 Tue Dec 15 08:41:08 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11173 * ch-decl.c (do_decls): Handle initialization of multiple
11174 variables by a tuple.
11176 * ch-decl.c (do_decls,start_chill_function): Make DECL public
11177 if we're doing a GRANT ALL at top level.
11179 * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11182 * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11183 BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11185 Mon Dec 14 14:58:32 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11187 * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11188 (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11190 Mon Dec 14 13:36:44 1992 Bill Cox (bill@cygnus.com)
11192 * expr.c: install and test newer Pascal IN_EXPR code,
11193 but don't activate it - it's very verbose.
11195 Mon Dec 14 00:22:49 1992 Fred Fish (fnf@cygnus.com)
11197 * Makefile.in (LANGUAGES): Add chill.
11198 * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11199 New macros for chill native and cross installation names.
11200 * Makefile.in (COMPILERS): Add cc1chill.
11201 * Makefile.in (CHILL_OBJS): New macro, chill objects.
11202 * Makefile.in (CHILL_TREE_H): New macro, chill headers.
11203 * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11204 sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11205 install-librmt): New targets.
11206 * Makefile.in (install-native): Add install-libchill,
11209 Sun Dec 13 15:21:06 1992 Bill Cox (bill@cygnus.com)
11211 * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11213 Sun Dec 13 14:07:32 1992 Bill Cox (bill@cygnus.com)
11215 * ch-actions.c: fix unary operations, modulus ops,
11216 (discovered after extending regression tests).
11218 Sun Dec 13 12:16:32 1992 Bill Cox (bill@cygnus.com)
11220 * resync with Michael and Wilfried
11222 Sun Dec 13 09:11:25 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11224 * ch-parse.y (output_constant): Fixed some whitespace
11226 * ch-tree.h: Add declarations for new chill functions that
11227 have been implemented but not (yet) declared.
11229 Sat Dec 12 00:17:23 1992 Per Bothner (bothner@cygnus.com)
11231 * c-typeck.c (process_init_constructor): Warn about duplicate
11232 labels for labelled initializer elements.
11233 * ch-lex.l (various operator tokens, such as "+"): Don't
11234 set yylval.code to a TREE_CODE; this is better done in parser.
11235 * ch-parse.y: Some work with case labels and tuples.
11236 Get literal range as tuple (and case) labels working.
11237 Fix some problems introduced by recent grammar overhaul.
11239 Fri Dec 11 13:28:48 1992 Bill Cox (bill@cygnus.com)
11241 * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
11242 got long, real expressions working. We can also call a func-
11243 tion and use its return value.
11245 Thu Dec 10 14:45:17 1992 Per Bothner (bothner@cygnus.com)
11247 * ch-parse.y: Major change to remove or at least identify
11248 parser ambiguities. One result: We now allow actions that
11249 start with '(', as required by teh Blue Book. This does break
11250 some things; look for FIXME for things that need work.
11251 * ch-typeck.c (chill_expand_case_expr): We need an extra
11252 level of looping to (in the future) support <case label
11253 specification>s with more than one <case label list>.
11255 Thu Dec 10 09:21:41 1992 Bill Cox (bill@cygnus.com)
11257 * ch-actions.c, ch-expr.c: Implement string assignments
11260 Thu Dec 10 07:17:35 1992 Bill Cox (bill@cygnus.com)
11262 * ch-decl.c, ch-typeck.c: rest of previous commit.
11264 Wed Dec 9 18:26:29 1992 Bill Cox (bill@cygnus.com)
11266 * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
11267 regression test and fix bit arrays and set ops.
11269 Mon Dec 7 14:57:46 1992 Bill Cox (bill@cygnus.com)
11271 * ch-actions.c: implement crude relationals between
11272 non-exotic operands, such as integers.
11274 Mon Dec 7 10:42:35 1992 Bill Cox (bill@cygnus.com)
11276 * ch-actions.c: implement relational, logic operations
11277 on arrays of BOOLs.
11279 Mon Dec 7 08:55:20 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11281 * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
11282 indicate we are done with initialization.
11284 * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
11286 (start_chill_function): Ditto.
11288 * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
11289 (compiler_directive): Don't confuse compiler directives with
11290 equality comparison operators.
11292 * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
11294 Sun Dec 6 13:12:32 1992 Bill Cox (bill@cygnus.com)
11296 * ch-actions.c: repair set inequality code.
11298 Sun Dec 6 11:15:59 1992 Bill Cox (bill@cygnus.com)
11300 * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
11301 relational expressions, including (<, <=, =, /=, >, >=, IN).
11303 Fri Dec 4 13:54:58 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
11305 * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
11306 Pascal-required ones, since C++ no longer needs them. When
11307 Chill's public, a comment can be added to the effect that
11308 SET_LE_EXPR is also used by Chill.
11310 Fri Dec 4 12:05:01 1992 Bill Cox (bill@cygnus.com)
11312 * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
11314 Fri Dec 4 10:23:10 1992 Bill Cox (bill@cygnus.com)
11315 * Get *.def and *.c in sync.
11317 Fri Dec 4 06:48:41 1992 Fred Fish (fnf@cygnus.com)
11319 * ch-actions.c (lang_init): Change types "long" and
11320 "ulong" from 16 bits to 32.
11321 * dwarfout.c (fundamental_type_code): Use FT_signed_char
11322 for type "byte" and FT_unsigned_char for type "ubyte".
11324 Thu Dec 3 15:13:24 1992 Bill Cox (bill@cygnus.com)
11325 * ch-actions.c, ch-tree.def, ch-parse.y: preparation
11326 for powerset expressions.
11328 Tue Dec 2 17:02:30 1992 Bill Cox (bill@cygnus.com)
11329 * ch-actions.c: sketch code for exceptions generated
11330 by builtin routines.
11332 Tue Dec 2 12:49:50 1992 Bill Cox (bill@cygnus.com)
11333 * ch-actions.c, ch-parse.y: add support for lower()
11334 upper() builtin functions.
11336 Wed Dec 2 12:03:30 1992 Fred Fish (fnf@cygnus.com)
11338 * Makefile.in (chillrt0.o, install-chillrt0): Remove.
11339 * chill (library): Remove chillrt0.o.
11340 * chillrt/Makefile: Remove maintenance of chillrt0.o as a
11341 separate file. Now gets put in libchill.a.
11343 Tue Dec 2 10:100:20 1992 Bill Cox (bill@cygnus.com)
11345 * ch-parse.y, ch-actions.c: add support for num()
11348 Wed Dec 2 09:52:06 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11350 * ch-decl.c (fixup_unknown_type): New function.
11351 (push_newmode,push_synmode): Call `fixup_unknown_type' when we
11352 see a declaration that uses `unknown_type_node'. FIXME.
11354 * ch-grant.c (decode_constant): New function.
11355 (decode_decl): Call `decode_constant' for CONST_DECLs.
11357 * ch-lex.l (char action): Use ridpointers instead of
11358 lookup_name to get "char"'s declaration.
11360 * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
11361 when we need to build a TYPE_DECL.
11363 Tue Dec 2 09:44:05 1992 Bill Cox (bill@cygnus.com)
11365 * ch-typeck.c: clean up a gcc warning with a forward
11366 declaration of build_string_type.
11368 Tue Dec 1 16:51:05 1992 Bill Cox (bill@cygnus.com)
11370 * ch-actions.c: completely remove those builtin calls
11371 that are duplicated in c-decl.c
11373 Tue Dec 1 16:38:51 1992 Fred Fish (fnf@cygnus.com)
11375 * ch-actions.c (lang_init): Ifdef out initializations for
11376 __builtin_abs and __builtin_fabs, since they are duplicates of
11377 initializations in c-decl.c, and trigger spurious warnings.
11379 Tue Dec 1 16:35:18 1992 Bill Cox (bill@cygnus.com)
11381 * ch-parse.y: make size() work with a typename argument.
11383 Tue Dec 1 16:15:56 1992 Bill Cox (bill@cygnus.com)
11385 * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
11386 functions min, max, card.
11388 Tue Dec 1 12:35:56 1992 Bill Cox (bill@cygnus.com)
11390 * ch-lex.l: fix char-type
11392 Tue Dec 1 11:10:56 1992 Bill Cox (bill@cygnus.com)
11394 * ch-parse.y, ch-actions: added parsing and processing
11395 for upper, lower, and length built-ins.
11397 Tue Dec 1 09:40:49 1992 Fred Fish (fnf@cygnus.com)
11399 * dwarf.h (LANG_CHILL): Add as GNU extension.
11400 * dwarfout.c (output_compile_unit_die): Test language_string and
11401 set LANG_CHILL if appropriate.
11402 * ch-parse.y (language_string): New for chill.
11403 * chillrt: Renamed directory chill to chillrt.
11404 * chill: Renamed chillsh to chill.
11405 * Makefile.in: Adjust for renamings.
11406 * chillrt/Makefile: Adjust for directory renaming.
11408 Mon Nov 30 17:35:33 1992 Fred Fish (fnf@cygnus.com)
11410 * chillsh: New script frontend (ala g++), installed as "chill".
11411 Can't be called "chill.sh" because make tries to cat it into the
11412 "chill" directory. Can't be called just "chill" cause that's
11413 already there as a directory.
11414 * Makefile.in: Add rules to install chillsh as "chill".
11415 * chill/libchill.c: Temporarily ifdef out stuff that wants
11416 to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
11417 which itself causes linkage to fail.
11419 Mon Nov 30 16:28:19 1992 Bill Cox (bill@cygnus.com)
11421 * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
11422 conversion routines.
11423 * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
11424 Added production for SIZE(expr).
11425 * ch-actions.c: Add semantic routine chill_sizeof ().
11427 Mon Nov 30 16:20:40 1992 Per Bothner (bothner@cygnus.com)
11429 * ch-lex.l, ch-parse.y: Translate token PFEIL into English ARROW.
11430 * ch-parse.y (op6): Remove handling of string repetition operator,
11431 until we can figure out a way to parse it correctly.
11432 * ch-parse.y (optmodename): New non-terminal.
11433 * ch-parse.y (tuple): Merge the two variants using optmodename.
11434 * ch-parse.y (location): Add semantic actions for
11435 dereferencing operator ->.
11437 Mon Nov 30 08:01:29 1992 Bill Cox (bill@cygnus.com)
11439 * ch-actions.c: removed compile warning, better code for abs.
11441 * ch-parse.y: add productions for builtin functions succ, pred,
11442 abs, and size. Add %tokens also. Sort %tokens alphabetically.
11444 * ch-lex.l: add parsing for builtin function names, such as abs,
11445 pred, succ, etc. Put flex -a option into Makefile.in, so we can
11446 clean up the lexer soon.
11448 Tue Nov 24 14:18:48 1992 Per Bothner (bothner@rtl.cygnus.com)
11450 * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
11451 New functions, for code common to CASE actions and expressions.
11452 * chill.y: Replace some code by calls to chill_handle_case_label
11453 and chill_handle_case_default.
11454 * ch-typeck.c (chill_expand_case_expr): Add semantics.
11456 * tree.c: Change doing_chill_thang from extern to common.
11458 Mon Nov 23 18:34:22 1992 Per Bothner (bothner@rtl.cygnus.com)
11460 * ch-tree.def: New CASE_EXPR type, for case expressions.
11461 * ch-expr.c (chill_expand_expr): Hook for CASE_EXPR.
11462 * ch-typeck.c (chill_expand_case_expr): New function.
11463 Placeholder to implement case expressions.
11464 * ch-typeck.c (chill_expand_result, chill_expand_return):
11465 Handle mode-unspecified tuples and case expressions in
11466 the context of RETURN and RESULT actions.
11467 * chill.y (assignaction): Handle case expressions in the
11468 context of the RHS of an assignment action.
11469 * chill.y (caseaction): Remove spurious duplicate OF in grammar.
11470 * chill.y: Handle labeled structure tuples.
11471 * chill.y: New rules to parse CASE expressions.
11472 * tree.c (build_function_types): Allow Chill functions
11473 to return arrays and functions.
11475 Wed Nov 18 13:50:28 1992 Per Bothner (bothner@rtl.cygnus.com)
11477 * ch-typeck.c (chill_expand_tuple): New function. Expand a
11478 tuple (constructor) given an expected (context) type.
11479 * chill.y: Implement 'LHS := TUPLE' using expand_chill_tuple,
11480 using the mode of the LHS and the expected type of the TUPLE.
11481 * chill.y: Implement initialization.
11482 * chill.y: Fix some syntax bugs (forbidlist must be surrounded
11483 by parentheses), and remove or note ambiguities.
11484 * chill.y: Started converting layout style to be like c-parse.in.
11485 * chill.y: Implement IF expressions.
11486 * chill.y: Added syntax rules for tuples. Labelled and unlabelled
11487 array tuples should now work (in some contexts).
11488 * ch-actions.c: Initialize doing_chill_thang to 1.
11489 * ch-decl.c (do_decls): Set DECL_INITIAL if there is an
11490 initializer, to make pushdecl and finish_decl work.
11491 * c-decl.c (convert_for_assignment): If Chill, don't convert
11492 function and arrays into pointers. (Maybe functions should
11493 still be converted?)
11494 * c-typeck.c (grokdeclarator): Allow functions in Chill
11495 to return arrays and functions.
11497 Mon Nov 16 15:40:47 1992 Per Bothner (bothner@rtl.cygnus.com)
11499 * chill.y (exprlist_get_single): New function, used when
11501 * chill.y: Re-did parsing of tuples to remove ambiguities.
11504 Tue Nov 10 16:30:55 1992 Per Bothner (bothner@rtl.cygnus.com)
11506 * ch-typeck.c (chill_expand_result); Set TREE_SIDE_EFEFCTS
11507 flags on assignment to result.
11508 * ch-typeck.c (build_chill_array_ref): Subtract lower
11509 bound of domain if non-zero. Preliminary hook for range checking.
11510 * ch-tree.h, chill.l: Combine variables range_check and
11511 range_check_disabled into global variable range_checking.
11512 * ch-tree.h: Better definitions of CH_CLASS_IS_VALUE
11513 CH_CLASS_IS_DERIVED.