1 1999-10-26 Mark Mitchell <mark@codesourcery.com>
3 * ch-tree.h (remember_end_note): Remove prototype.
4 * decl.c (poplevel): Don't call remember_end_note.
6 Fri Sep 24 10:48:10 1999 Bernd Schmidt <bernds@cygnus.co.uk>
8 * ch-tree.h (builtin_function): Don't declare.
9 * decl.c (builtin_function): New arg CLASS. Arg FUNCTION_CODE now of
10 type int. All callers changed.
11 Set the builtin's DECL_BUILT_IN_CLASS.
13 1999-09-20 Nick Clifton <nickc@cygnus.com>
15 * lang.c (lang_decode_option): Extend comment.
17 1999-09-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19 * lex.c (maybe_downcase, getlc, handle_generic_pragma,
20 check_newline): Use uppercase ctype macro from system.h.
22 1999-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24 * actions.c (warn_unhandled): Use xstrdup, not xmalloc/strcpy.
26 Fri Sep 10 10:32:32 1999 Bernd Schmidt <bernds@cygnus.co.uk>
28 * ch-tree.h: Delete declarations for all tree nodes now moved to
32 * decl.c: Delete their definitions.
33 (init_decl_processing): Call build_common_tree_nodes and
34 build_common_tree_nodes_2 instead of building their nodes here.
35 Use set_sizetype instead of assigning sizetype.
37 Tue Sep 7 15:59:56 1999 Dave Brolley <brolley@cygnus.com>
39 * parse.h: Undefine DELAY if it's defined.
40 (PACK,NOPACK,POS): Remove erroneous comments regarding these tokens.
41 Also, move them to their proper place alphabetically.
43 1999-09-04 Mark Mitchell <mark@codesourcery.com>
45 * Make-lang.in (cc1chill): Depend on ggc-callbacks.o.
46 * Makefile.in (CHILL_OBJS): Add ggc-callbacks.o.
48 1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
50 * parse.c (language_string): Constify.
52 1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
54 * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
55 Remove hacks for stuff which now comes from libiberty.
57 1999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
59 * lang.c (chill_print_error_function): Constify a char*.
61 1999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
63 * Makefile.in (ch-version.c): Constify a char*.
65 * actions.c (id_cmp, warn_unhandled, adjust_return_value,
66 update_else_range_for_int_const, update_else_range_for_range,
67 update_else_range_for_range_expr, update_else_range_for_type,
68 compute_else_range, check_case_value,
69 chill_handle_case_label_range,
70 chill_handle_multi_case_label_range,
71 chill_handle_multi_case_else_label, chill_handle_multi_case_label,
72 chill_handle_multi_case_label_list print_missing_cases): Add
74 (build_exception_variant): Cast the function argument of qsort.
75 (build_rts_call, warn_unhandled, chill_convert_for_assignment,
76 adjust_return_value, chill_expand_result,
77 build_multi_case_selector_expression, print_missing_cases):
79 (print_missing_cases): Introduce an intermediary non-const ptr.
80 Add brackets and indent.
82 * ch-tree.h (maybe_building_objc_message_expr,
83 maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
84 (push_handler, pop_handler): Add prototypes.
85 (builtin_function, valid_array_index_p,
86 build_chill_exception_decl, build_rts_call,
87 chill_convert_for_assignment, display_int_cst,
88 build_chill_addr_expr, check_have_mode, get_identifier3,
89 build_chill_string, register_seize_path, get_unique_identifier,
90 add_taskstuff_to_list, gnuchill_version): Constify a char*.
91 (finish_chill_function): Add void prototype argument.
93 * convert.c (convert_to_reference, convert_to_boolean,
94 convert_to_char, base_type_size_in_bytes, remove_tree_element,
95 check_ps_range, digest_powerset_tuple, digest_structure_tuple,
96 digest_array_tuple, convert1): Add static prototypes.
97 (base_type_size_in_bytes): Hide unused function.
98 (display_int_cst, digest_array_tuple): Constify a char*.
100 * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
101 proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
102 build_implied_names, bind_sub_modules, layout_array_type,
103 do_based_decl, handle_one_level, label_value_cmp,
104 find_implied_types): Add static prototypes.
105 (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
107 (layout_chill_variants): Cast the function argument of qsort.
108 (start_chill_function, fix_identifier, init_decl_processing):
110 (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
111 Use xcalloc instead of xmalloc/bzero.
112 (builtin_function, build_chill_exception_decl,
113 finish_outer_function): Constify a char*.
115 * except.c (start_handler_array, finish_handler_array): Add static
118 * expr.c (chill_expand_expr, chill_expand_case_expr,
119 check_arglist_length, internal_build_compound_expr,
120 is_really_instance, invalid_operand, invalid_right_operand,
121 build_chill_abstime, build_allocate_memory_call,
122 build_allocate_global_memory_call, build_return_memory,
123 build_chill_duration, build_chill_floatcall,
124 build_allocate_getstack, build_chill_allocate,
125 build_chill_getstack, build_chill_terminate, build_chill_inttime,
126 build_chill_lower_or_upper, build_max_min,
127 build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
128 build_compare_set_expr, scalar_to_string, build_concat_expr,
129 build_compare_string_expr, compare_records, string_char_rep,
130 build_boring_bitstring): Add static prototypes.
131 (check_have_mode, chill_expand_expr, build_chill_floatcall,
132 build_allocate_getstack, build_max_min, build_chill_function_call,
133 expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
134 string_char_rep): Constify a char*.
136 * gperf (hash, in_word_set): Add prototypes.
138 * grant.c (newstring, strfree, append, prepend,
139 grant_use_seizefile, decode_layout, grant_array_type,
140 grant_array_type_selective, get_tag_value,
141 get_tag_value_selective, print_enumeral, print_enumeral_selective,
142 print_integer_type, find_enum_parent, print_integer_selective,
143 print_struct, print_struct_selective, print_proc_exceptions,
144 print_proc_tail, print_proc_tail_selective, find_in_decls,
145 in_ridpointers, grant_seized_identifier, globalize_decl,
146 grant_one_decl_selective, compare_memory_file, search_in_list,
147 really_grant_this): Add static prototypes.
148 (newstring, append, prepend, grant_use_seizefile,
149 print_integer_type, decode_constant, grant_one_decl_selective,
150 header_template): Constify a char *.
152 * inout.c (add_enum_to_list, build_chill_io_list_type,
153 build_io_types, declare_predefined_file, build_access_part,
154 textlocation_mode, check_assoc, assoc_call, check_transfer,
155 connect_process_optionals, connect_text, connect_access,
156 check_access, check_text, get_final_type_and_range,
157 process_io_list, check_format_string, get_max_size,
158 check_exprlist): Add static prototypes.
159 (declare_predefined_file, check_assoc, assoc_call, check_transfer,
160 check_access, check_text, process_io_list): Constify a char*.
162 * lang.c (deep_const_expr, chill_print_error_function): Add static
165 * lex.c (close_input_file, maybe_number, string_or_char): Constify
167 (ch_lex_init, skip_directive, same_file, getlc, yywrap,
168 yy_refill): Add static prototypes.
169 (build_chill_string, same_file, register_seize_path): Constify a
172 * lex.h (finish_chill_seizes): Remove unused prototypes.
174 * loop.c (build_temporary_variable, maybe_make_for_temp,
175 get_unique_identifier): Constify a char*.
177 * parse.c (ch_parse_init, check_end_label, end_function,
178 build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
179 forward_token_, require, check_token, expect, define__PROCNAME__):
180 Add static prototypes.
181 (build_prefix_clause, expect): Constify a char*.
182 (parse_expression, parse_primval, parse_untyped_expr,
183 parse_opt_untyped_expr, parse_opt_actions): Add void prototype
185 (parse_opt_name_string, parse_simple_name_string,
186 parse_name_string, parse_defining_occurrence, parse_name,
187 parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
188 parse_spec_module, parse_semi_colon,
189 parse_defining_occurrence_list, parse_mode_definition,
190 parse_mode_definition_statement, parse_synonym_definition,
191 parse_synonym_definition_statement, parse_on_exception_list,
192 parse_on_alternatives, parse_loc_declaration,
193 parse_declaration_statement, parse_optforbid, parse_postfix,
194 parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
195 parse_grant_statement, parse_seize_statement,
196 parse_param_name_list, parse_param_attr, parse_formpar,
197 parse_formparlist, parse_opt_result_spec, parse_opt_except,
198 parse_opt_recursive, parse_procedureattr, parse_proc_body,
199 parse_procedure_definition, parse_processpar,
200 parse_processparlist, parse_process_definition,
201 parse_signal_definition, parse_signal_definition_statement,
202 parse_then_clause, parse_opt_else_clause, parse_expr_list,
203 parse_range_list_clause, pushback_paren_expr, parse_case_label,
204 parse_case_label_list, parse_case_label_specification,
205 parse_single_dimension_case_action,
206 parse_multi_dimension_case_action, parse_case_action,
207 parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
208 parse_asm_action, parse_begin_end_block, parse_if_action,
209 parse_iteration, parse_delay_case_event_list,
210 parse_delay_case_action, parse_do_action, parse_receive_spec,
211 parse_receive_case_action, parse_send_action, parse_start_action,
212 parse_call, parse_tuple_fieldname_list, parse_tuple_element,
213 parse_opt_element_list, parse_tuple, parse_operand6,
214 parse_operand5, parse_operand4, parse_operand3, parse_operand2,
215 parse_operand1, parse_operand0, parse_case_expression,
216 parse_then_alternative, parse_else_alternative,
217 parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
218 parse_step, parse_opt_layout, parse_field_name_list,
219 parse_fixed_field, parse_variant_field_list,
220 parse_variant_alternative, parse_field, parse_structure_mode,
221 parse_opt_queue_size, parse_procedure_mode, parse_program,
222 parse_pass_1_2): Add static prototypes.
223 (parse_process_definition): Remove extra argument in function call.
224 (parse_range_list_clause): Likewise.
226 * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
227 satisfy_list, satisfy_list_values): Add static prototype.
228 (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
230 * tasking.c (make_process_struct): Remove unused prototype.
231 (validate_process_parameters, get_struct_variable_name,
232 decl_tasking_code_variable, get_struct_debug_type_name,
233 get_process_wrapper_name, build_tasking_enum,
234 build_tasking_message_type, build_receive_signal_case_label,
235 build_receive_buffer_case_label, build_receive_buffer_case_end,
236 build_receive_signal_case_end): Add static prototypes.
237 (struct_name, struct_debug_name, data_name, wrapper_name,
238 get_struct_type_name, get_struct_debug_type_name,
239 get_tasking_code_name, get_struct_variable_name,
240 get_process_wrapper_name): Constify a char*.
241 (validate_process_parameters, get_struct_variable_name,
242 decl_tasking_code_variable): Hide unused functions.
243 (build_start_process, add_taskstuff_to_list, build_queue_length):
246 * tree.c (make_powerset_type): Add static prototype.
247 (get_identifier3, build_alias_decl, decl_check_rename): Constify a
250 * typeck.c (extract_constant_from_buffer,
251 expand_constant_to_buffer, build_empty_string,
252 make_chill_pointer_type, make_chill_range_type,
253 apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
254 apply_chill_field_layout): Add static prototype.
255 (valid_array_index_p, extract_constant_from_buffer,
256 chill_expand_tuple): Constify a char*.
257 (layout_chill_struct_type): Cast the function argument of qsort.
259 1999-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
261 * actions.c (lang_identify): Constify a char*.
263 * lang.c (chill_print_error_function): Likewise.
264 (lang_init): Remove redundant prototype for `print_error_function'.
266 1999-07-25 Richard Henderson <rth@cygnus.com>
268 * decl.c (va_list_type_node): New.
270 1999-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
272 * Make-lang.in (CHILL.stage1): Depend on stage1-start.
273 (CHILL.stage2): Likewise for stage2-start.
274 (CHILL.stage3): Likewise for stage3-start.
275 (CHILL.stage4): Likewise for stage4-start.
277 Tue May 18 00:21:34 1999 Zack Weinberg <zack@rabi.phys.columbia.edu>
279 * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
282 1999-05-10 18:21 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
284 * lang-specs.h: Pass -$ to the preprocessor.
286 Tue May 4 14:52:53 1999 Dave Brolley <brolley@cygnus.com>
288 * actions.c (chill_expand_assignment): Use powersetlen to calculate the
289 length of an array of packed bits.
291 Tue Apr 20 23:37:01 1999 Nathan Sidwell <nathan@acm.org>
293 * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
296 Wed Apr 14 21:07:30 1999 Mumit Khan <khan@xraylith.wisc.edu>
298 * config-lang.in (compilers): Add exeext.
299 (stagestuff): Likewise.
301 Fri Apr 2 15:49:44 1999 Jeffrey A Law (law@cygnus.com)
303 * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
305 Wed Mar 31 10:44:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
307 * Makefile.in (hash.h): Generate using gperf language 'C', not
308 'KR-C', so gperf uses the `const' keyword on strings.
310 * gperf (resword): Const-ify a char*.
312 Sun Mar 28 00:30:36 1999 Jeffrey A Law (law@cygnus.com)
314 * Make-lang.in (CHILL.dvi): New target.
315 (CHILL.mostlyclean): Remove remnants of old runtime library structure.
317 1999-02-20 Craig Burley <craig@jcb-sc.com>
319 * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
320 target instead of the chill.texi file.
321 (ch/chill.info): New target, depends on the chill.texi source file.
322 Its command writes ch/chill.info instead of chill.info.
323 (CHILL.install-info): Install from ch/chill.info instead of
325 If any ch/chill.info* files exist, delete *all* chill.info* files
326 in $infodir first, not just the ones corresponding to the
327 files to be installed (just in case the docs get smaller).
329 Sun Jan 31 20:34:29 1999 Zack Weinberg <zack@rabi.columbia.edu>
331 * decl2.c: Don't define flag_no_ident here. Don't process
333 * ch-tree.h: Don't declare flag_no_ident here.
334 * lang-specs.h: Map -Qn to -fno-ident.
336 Tue Jan 19 23:24:36 1999 Jeffrey A Law (law@cygnus.com)
338 * Makefile.in (typeck.o): Depend on insn-codes.h.
339 * actions.c (chill_handle_multi_case_label): Initialize "expr".
340 * decl.c (poplevel): Initialize "block_previously_created".
341 * expr.c (chill_expand_expr): Initialize "size0" and "size1".
342 (fold_set_expr): Initialize "buffer1".
343 * inout.c (process_io_list): Initialize "to_assign".
344 (check_exprlist): Initialize "result".
345 * parse.c (expand_expr): Declare.
346 (parse_multi_dimension_case_action): Initialize "end_case_label".
347 * tasking.c (build_start_process): Initialize "struct_type_node".
348 * typeck.c (apply_chill_field_layout): Initialize "word".
349 (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
350 signed/unsigned comparison warning.
352 Mon Jan 18 11:55:06 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
354 * ch-tree.h: Remove conflicting prototypes for pedwarn,
355 warning_with_decl, and make_dcl_rtl.
357 Sun Jan 17 21:53:23 1999 Jeffrey A Law (law@cygnus.com)
359 * Makefile.in: Do not put ^Ls at the start of a line.
361 Wed Jan 6 02:53:38 1999 Jeffrey A Law (law@cygnus.com)
363 * Makefile.in: Add some missing $(exeext). Remove some obsolete
365 * Make-lang.in: Similarly.
367 Tue Nov 24 09:57:34 1998 Jeffrey A Law (law@cygnus.com)
369 * Makefile.in (lex.c): Do not depend on hash.h.
370 (lex.o): Depend on hash.h.
372 Mon Oct 19 12:13:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
374 * Makefile.in (lex.o): Depend on dwarfout.h.
376 * lang-specs.h: Add missing braces in initializer.
378 * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
380 Thu Oct 15 09:25:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
382 * expr.c (build_chill_card): Use &&, not &, when comparing truth
385 * parse.c (parse_spec_module): Remove unused variable
386 `module_name', but preserve function call from initialization.
387 (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
389 * inout.c (init_text_location): Remove unused variable `textlength'.
391 Wed Oct 14 22:19:48 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
393 * typeck.c (build_chill_cast): Fix typo in assignment statement.
395 * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
396 when printing a `tree'.
398 Fri Oct 9 13:01:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
400 * ch-tree.h (build_delay_case_end): Remove unused parameter.
401 (build_receive_case_end): Likewise.
402 (check_queue_size): Likewise.
404 * parse.c: Callers changed.
406 * satisfy.c: Likewise.
408 * tasking.c (build_receive_buffer_case_end): Remove unused
409 parameter `label_cnt'.
410 (build_receive_signal_case_end): Likewise.
411 (build_receive_case_end): Likewise.
412 (build_delay_case_end): Likewise.
413 (check_queue_size): Likewise for parameter `type'.
416 Thu Oct 8 05:57:41 1998 Jeffrey A Law (law@cygnus.com)
418 * typeck (type_for_mode): Only return TItype nodes when
419 HOST_BITS_PER_WIDE_INT is >= 64 bits.
420 (type_for_size): Similarly.
421 * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
422 when HOST_BITS_PER_WIDE_INT is >= 64 bits.
423 (init_decl_processing): Only create TItype nodes when
424 HOST_BITS_PER_WIDE_INT is >= 64 bits.
426 Wed Oct 7 12:19:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
428 * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
429 (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
431 Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
433 * lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
434 HANDLE_GENERIC_PRAGMAS.
435 (handle_generic_pragma): New function: Parse generic pragmas.
437 Wed Sep 30 20:22:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
439 * parse.c (emit_label): Fix return-type of prototype.
441 Wed Sep 30 19:41:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
443 * actions.c (chill_handle_multi_case_label): Always return a value
444 in function returning non-void.
446 * except.c: Include OS headers before any local ones.
448 * typeck.c (layout_chill_range_type): Change type of variable
449 `negprecision' to int.
450 (apply_chill_array_layout): Initialize variables `stepsize' and
452 (layout_chill_struct_type): Change type of variable `min_align' to
454 (smash_dummy_type): Change name of variable `main' to `main_tree'.
456 Wed Sep 30 19:24:41 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
458 * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
459 ensure enough bits for calculation.
461 * ch-tree.h (check_text_length): Remove unused parameter.
463 * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
464 function sprintf into the appropriate type for printing.
466 * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
468 (print_mode): Likewise.
469 (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
471 * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
472 the format specifier.
474 * inout.c (check_text_length): Remove unused parameter `type'.
475 (build_chill_associate): Initialize variables `arg1', `arg2',
476 `arg3', `arg4' and `arg5'.
477 (build_chill_modify): Likewise.
478 (scanformcont): Change type of variable `curr' to `unsigned char'.
480 * lex.c (maybe_downcase): Cast the argument of `tolower' to
483 * satisfy.c (satisfy): Remove unused parameter in call to
486 * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
487 as a `long' in call to function `error'.
488 (decl_tasking_code_variable): Likewise.
490 Wed Sep 30 19:03:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
492 * grant.c (decode_decl_selective): Cast switch's enum argument to
494 (really_grant_this): Add default case in switch.
496 * typeck.c (chill_resulting_class): Add default cases in switch.
497 Also add `break' statements after each case.
499 Tue Sep 29 21:37:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
501 * ch-tree.h (build_compare_expr): Change first argument's type
502 from `enum chill_tree_code' to `enum tree_code'.
503 (build_compare_discrete_expr): Likewise.
505 * expr.c (build_compare_set_expr): Likewise.
506 (build_compare_string_expr): Likewise.
507 (build_compare_expr): Likewise.
508 (build_compare_discrete_expr): Likewise. Also add default case in
510 (compare_int_csts): Add default case in switch statement.
512 Sun Sep 20 11:02:55 1998 Robert Lipe <robertl@dgii.com>
514 * except.c: Include system.h.
516 * Makefile.in (except.o): Depend on system.h.
518 Sun Sep 20 09:25:13 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
520 * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
521 lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
522 typeck.o): Depend on system.h and toplev.h.
523 (except.o): Depend on toplev.h.
524 (grant.o): Depend on system.h, toplev.h and output.h.
526 * actions.c: Include system.h and toplev.h. Remove redundant
528 (build_cause_exception): Add default case in switch.
529 (update_else_range_for_range): Add parentheses around && within ||.
530 (chill_handle_multi_case_label_list): Remove unused variable
532 (print_missing_cases): Reconcile format specifiers vs arguments in
535 * ch-tree.h: Don't include stdio.h. Wrap prototypes using FILE*
536 with macro BUFSIZ. Add missing prototypes.
538 * convert.c: Include system.h and toplev.h. Remove redundant
540 (convert): Remove unused variable `errstr'.
542 * decl.c: Include system.h and toplev.h. Remove redundant
544 (builtin_scope): Add missing initializers.
545 (clear_scope): Likewise.
546 (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
547 (copy_lang_decl): Likewise for parameter `node'.
548 (c_decode_option): Likewise for parameter `argc'.
549 (push_extern_function): Likewise for parameter `granting'.
550 (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
551 (pushdecl): Remove unused variable `t'.
552 (lookup_name_current_level): Make static and hide.
553 (lookup_name_for_seizing): Make static.
554 (finish_decl): Remove unused variable `type'.
555 (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
556 (complete_array_type): Mark parameters `type', `initial_value' and
557 `do_default' with ATTRIBUTE_UNUSED.
558 (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
559 (start_enum): Likewise.
560 (shadow_record_fields): Remove unused variables `type' and `parent'.
562 * except.c: Include toplev.h. Remove redundant prototypes.
564 * expr.c: Include system.h and toplev.h. Don't define NULL.
565 Remove redundant prototypes.
566 (internal_build_compound_expr): Mark parameter `first_p' with
568 (build_allocate_getstack): Remove unused variable `init'.
569 (build_chill_pred_or_succ): Likewise for variable `limit'.
570 (varying_to_slice): Likewise for variable `doamin' [sic].
571 (finish_chill_binary_op): Likewise for variables `code0' and
572 `code1'. Remove unused label `finish'. Add explicit braces to
573 avoid ambiguous `else'.
574 (build_chill_addr_expr): Remove extra parameter in call to `error'.
575 (build_chill_unary_op): Remove unused variables `class' and `type0'.
576 (powersetlen): Remove unused variables `domain' and `temp'.
578 * grant.c: Include system.h, toplev.h and output.h. Don't handle
579 strchr/strrchr. Remove redundant prototypes.
580 (decode_constant_selective): Remove unused variables `op' and `wrk'.
581 (push_granted): Mark parameters `name' and `decl' with
584 * inout.c: Include system.h and toplev.h. Remove redundant
586 (textlocation_mode): Use &&, not &, when comparing two truth
588 (scanformcont): Remove unused label `do_the_action'.
590 * lang.c: Include system.h and toplev.h. Remove redundant
592 (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
593 (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
594 (lang_print_xnode): Likewise for parameters `file', `node' and
596 (lang_decode_option): Explicitly declare `explicit_ignore_case'.
597 (incomplete_type_error): Mark parameters `value' and `type' with
600 * lex.c: Include system.h and toplev.h. Remove redundant
601 prototypes. Don't handle strchr/strrchr. Use CAPITALIZED
602 versions of ctype macros from system.h. Cast ctype arguments to
603 unsigned char when necessary.
604 (last_token, RETURN_TOKEN): Hide definition.
605 (push_back): Remove unused function.
606 (readstring): Change variable `i' to unsigned.
607 (yywrap): Remove unused variable `node'.
609 * loop.c: Include system.h and toplev.h. Remove redundant
611 (chill_unsigned_type): Hide prototype and definition.
612 (begin_loop_scope): Remove unused variable `firstp'.
613 (nonvalue_begin_loop_scope): Likewise.
615 * parse.c: Include system.h and toplev.h. Remove redundant
617 (quasi_signal): Hide.
618 (PEEK_TOKEN): Change return type to `enum terminal'.
619 (parse_mode_definition_statement): Remove unused variable `names'.
620 (parse_formpar): Remove unused parameter `in_spec_module'. All
622 (parse_formparlist): Likewise.
623 (parse_processpar): Remove unused variable `parms'.
624 (parse_definition): Add explicit braces to avoid ambiguous `else'.
625 (parse_multi_dimension_case_action): Initialize variable
626 `begin_test_label'. Remove unused variable `new_test'.
627 (parse_case_action): Remove unused variable `caseaction_flag'.
628 (parse_asm_clobbers): Remove unused variable `expr'.
629 (parse_delay_case_action): Initialize variable `label_cnt'.
630 (parse_action): Make function static.
631 (parse_tuple_element): Remove unused variable `list'.
632 (parse_primval): Add default case in switch.
633 (parse_variant_alternative): Remove unused variables `x' and
636 * satisfy.c: Include system.h and toplev.h. Remove redundant
639 * tasking.c Include system.h and toplev.h. Remove redundant
642 (get_struct_variable_name): Likewise.
643 (validate_process_parameters): Mark parameter `parms' with
645 (build_start_process): Initialize variable `tuple'.
646 (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
648 * timing.c: Include system.h and toplev.h.
649 (build_after_timeout_start): Remove unused variable `goto_where'.
651 * tree.c: Include system.h and toplev.h. Remove redundant
654 * typeck.c: Include system.h and toplev.h. Remove redundant
656 (extract_constant_from_buffer): Make function static. Add
657 explicit braces to avoid ambiguous `else'.
658 (expand_constant_to_buffer): Likewise.
659 (build_chill_slice): remove unused variable `is_static'.
660 (chill_compatible): Add explicit braces to avoid ambiguous `else'.
661 (apply_chill_array_layout): Remove unused variable `offset'.
662 (smash_dummy_type): Remove unused variable `save_lang_specific'.
663 (initializer_constant_valid_p): Add default case in switch.
665 Mon Sep 14 16:46:36 1998 Dave Brolley <brolley@cygnus.com>
667 * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
668 domain type of the array.
670 * expr.c (build_chill_function_call): Remove redundant call to
671 chill_convert_to_assignment
673 Thu Sep 10 17:52:36 1998 Dave Brolley <brolley@cygnus.com>
675 * actions.c (chill_convert_for_assignment): Make a copy of the result
676 node before modifying it.
678 Sat Sep 5 16:55:37 1998 John Carr <jfc@mit.edu>
680 * Make-lang.in: Comment ^L characters. Sun make doesn't like them.
682 Sat Sep 5 23:49:50 1998 Jeffrey A Law (law@cygnus.com)
684 * Makefile.in (INCLUDES): Update after recent reorganization at the
685 toplevel gcc directory.
687 Sat Sep 5 22:25:51 1998 Richard Henderson <rth@cygnus.com>
689 * Makefile.in: Update dependancies for top-level gcc files that moved.
691 Sat Sep 5 02:21:08 1998 Jeffrey A Law (law@cygnus.com)
693 * Makefile.in: Tweak to avoid building runtime. It's built
696 Thu Sep 3 15:32:03 1998 Dave Brolley <brolley@cygnus.com>
698 * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
700 Wed Sep 02 09:25:29 1998 Nick Clifton <nickc@cygnus.com>
702 * lex.c (check_newline): Change how HANDLE_PRAGMA is called.
703 Generate warning messages if unknown pragmas are encountered.
704 (pragma_getc): New function: retrieves characters from the
705 input stream. Defined when HANDLE_PRAGMA is defined.
706 (pragma_ungetc): New function: replaces characters back into the
707 input stream. Defined when HANDLE_PRAGMA is defined.
709 Mon Aug 31 15:35:16 1998 Dave Brolley <brolley@cygnus.com>
711 * decl.c (layout_chill_variants): Calculate nlables properly.
713 Mon Jul 27 17:21:01 1998 Dave Brolley <brolley@cygnus.com>
715 * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
718 Mon Jul 13 14:20:12 1998 Nick Clifton <nickc@cygnus.com>
720 * lang-options.h: Format changed to match changes in gcc/toplev.c
721 to implement a --help option.
723 Wed Jul 8 02:58:35 1998 Jeffrey A Law (law@cygnus.com)
725 * lang.c (lang_init_options): New function.
727 Wed Jun 10 12:08:09 1998 Dave Brolley <brolley@cygnus.com>
729 * lang-options.h: Remove -I.
730 * ch-tree.h (c_decode_option): New argc/argv interface.
731 * decl.c (c_decode_option): New argc/argv interface.
732 * lang.c (lang_decode_option): New argc/argv interface.
734 Wed May 27 10:33:41 1998 Dave Brolley <brolley@cygnus.com>
736 * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
737 chill_handle_multi_case_label_range were reversed.
739 * Make-lang.in (chill): Use the correct gcc in the driver script.
741 Thu May 21 14:40:44 1998 Dave Brolley <brolley@cygnus.com>
743 * convert.c (digest_array_tuple): Move conversion to
744 chill_convert_for_assignment.
746 * actions.c (chill_convert_for_assignment): Allow conversion of array
747 constructor to bitstring constructor for assignment to array of packed bits.
749 Thu May 14 13:57:51 1998 Dave Brolley <brolley@cygnus.com>
751 * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
753 Wed May 13 14:07:51 1998 Dave Brolley <brolley@cygnus.com>
755 * typeck.c (build_chill_slice): Adjust slice index to account for the
756 lower bound of the array.
758 * actions.c (chill_expand_assignment): Convert function arguments to the
760 (chill_expand_assignment): Ditto.
762 Mon May 11 16:20:57 1998 Dave Brolley <brolley@cygnus.com>
764 * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
765 of the array_type to the slice_type.
766 (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
769 * loop.c (build_loop_iterator): Disallow location enumeration for
772 * convert.c (digest_array_tuple): Allow conversion of an array tuple
773 to a bitstring for assignment to a packed array of bits.
775 Mon May 4 16:28:58 1998 Dave Brolley <brolley@cygnus.com>
777 * ch-tree.def (PACKED_ARRAY_REF): New tree code.
778 * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
779 (chill_location): Handle PACKED_ARRAY_REF.
780 (apply_chill_array_layout): Allow PACK for arrays of single bits.
781 * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
782 (invalid_operand): Check PACKED_ARRAY_REF operands.
783 * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
785 Thu Apr 23 15:33:20 1998 Dave Brolley <brolley@cygnus.com>
787 * typeck.c (apply_chill_field_layout): Only integral fields can be packed
790 Tue Apr 21 14:30:10 1998 Jeffrey A Law (law@cygnus.com)
792 * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
793 (init_decl_processing): Handle TI types.
794 * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
795 (type_for_size): Handle TI types.
796 (type_for_mode): Handle TI types.
798 Mon Apr 20 13:12:26 1998 Dave Brolley <brolley@cygnus.com>
800 * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
803 * actions.c (chill_convert_for_assignment): Check that the rhs is not
806 Tue Apr 14 13:17:44 1998 Dave Brolley <brolley@cygnus.com>
808 * lex.c (init_parse): Now returns char* containing the filename.
810 * typeck.c (get_type_precision): Declare.
811 (apply_chill_field_layout): Use the minimum number of bits necessary to
812 represent discrete types as the natural length of the field.
814 Thu Apr 9 12:46:55 1998 Dave Brolley <brolley@cygnus.com>
816 * lex.c (finput): Move definition here from toplev.c
817 (init_parse): New function replaces init_lex.
818 (init_parse): Add code to open source file.
819 (finish_parse): New function.
820 (close_input_file): File was being closed more than once.
822 * lang.c (finput): Declare.
823 * ch-tree.h (init_lex): Remove.
826 Wed Apr 8 14:47:33 1998 Dave Brolley <brolley@cygnus.com>
828 * actions.c (compute_else_range): Fix loop index error.
829 (chill_handle_multi_case_label_range): Move error checking to
830 chill_handle_multi_case_label.
831 (chill_handle_multi_case_else_label): Convert ELSE range values to
832 the type of the corrersponding CASE selector.
834 Wed Apr 8 13:02:50 1998 Jeffrey A Law (law@cygnus.com)
836 * actions.c (sizetype_tab): Do not declare.
837 * lang.c (lang_print_xnode): New function.
839 Mon Mar 23 14:43:06 1998 Dave Brolley <brolley@cygnus.com>
841 * grant.c (decode_layout): New function.
842 (grant_array_type): Call decode_layout to export layout information to
846 Fri Mar 20 16:06:41 1998 Dave Brolley <brolley@cygnus.com>
848 * parse.c (parse_tuple_element): Call had arguments in wrong order.
850 Thu Mar 19 13:42:33 1998 Dave Brolley <brolley@cygnus.com>
852 * typeck.c (apply_chill_array_layout): Use
853 TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
856 Wed Mar 18 16:25:48 1998 Dave Brolley <brolley@cygnus.com>
858 * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
861 * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
864 Tue Mar 17 14:16:08 1998 Dave Brolley <brolley@cygnus.com>
866 * parse.c (gen_label_rtx): Declare before use.
867 (emit_jump): Declare before use.
868 (emit_label): Declare before use.
869 (parse_case_label_list): Pass in CASE selector so we can mark it as having
870 an (ELSE) label if necessary.
871 (parse_case_label_specification): Pass in the CASE selector list so that
872 the CASE selectors can be passed to parse_case_label_list.
873 (parse_multi_dimension_case_action): Modify to generate branching code in
875 (parse_case_expression): Compute (ELSE) range before generating CASE expression.
876 (parse_variant_alternative): Remove error for (ELSE) specified.
878 * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
880 * decl.c (layout_chill_variants): Add code to check compatibility of ranges
881 and discrete mode names.
883 * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
885 * actions.h (build_multi_case_selector_expression): Make it extern.
886 (chill_handle_multi_dimension_case_label): Remove.
887 (compute_else_ranges): New function.
889 * actions.c (update_else_range_for_int_const): New function.
890 (update_else_range_for_range): New function.
891 (update_else_range_for_range_expr): New function.
892 (update_else_range_for_type): New function.
893 (compute_else_range): New function.
894 (compute_else_ranges): New function.
895 (chill_handle_multi_case_else_label): New function
896 (chill_handle_multi_case_label_range): Don't generate tests for conditions
897 which are always true or false.
898 (chill_handle_multi_case_label): Ditto.
899 (chill_handle_multi_case_label): Implement (ELSE) label support.
900 (chill_handle_multi_case_label): First argument is now the selector tree not
902 (chill_handle_multi_dimension_case_label): Removed.
903 (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
904 reversed on entry, so reverse it here.
906 Tue Mar 10 15:02:26 1998 Dave Brolley <brolley@cygnus.com>
908 * actions.c (chill_handle_multi_case_label_range): Add more error checking.
909 (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
910 (chill_handle_multi_case_label): Improve Error handling.
912 Mon Mar 9 12:39:00 1998 Dave Brolley <brolley@cygnus.com>
914 * actions.c (chill_handle_multi_case_label_range): Added.
915 (chill_handle_multi_case_label): Add support for discrete ranges and
918 * typeck.c (apply_chill_array_layout): Added more error checking.
919 (apply_chill_field_layout): Added more error checking.
921 Wed Mar 4 16:08:26 1998 Dave Brolley <brolley@cygnus.com>
923 * convert.c (convert): Call build_simple_array_type with new argument.
925 * ch-tree.h(build_simple_array_type): Add argument for array layout.
927 * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
928 (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
929 (apply_chill_array_layout): New function to implement array layout.
930 (layout_chill_array_type): Call apply_chill_array_layout and reset
931 TYPE_ATTRIBUTES to NULL_TREE.
932 (build_chill_array_type): Extend to handle one array layout per index mode.
933 (smash_dummy_type): Call build_simple_array_type with new argument.
935 * satisfy.c (satisfy): Call SATISFY on array layout tree.
937 Wed Feb 25 14:36:41 1998 Dave Brolley <brolley@cygnus.com>
939 * typeck.c (next_struct_offset): Added.
940 (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
941 or POS layout to a structure field.
942 (layout_chill_struct_type): Add call to apply_chill_field_layout.
944 * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
945 in the field layout tree.
947 * parse.c (pack_warn_printed): Remove.
948 (nopack_warn_printed): Remove.
949 (step_warn_printed): Remove.
950 (pos_warn_printed): Remove.
951 (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
953 * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
956 Thu Feb 19 17:33:06 1998 Dave Brolley <brolley@cygnus.com>
958 * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
959 (parse_opt_mode): Removed incorrect comment about association of array
960 layouts with nested array elements.
961 (parse_opt_mode): Allow for one layout per index mode specified.
963 Wed Feb 18 23:48:57 1998 Richard Henderson <rth@cygnus.com>
965 * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy.
967 Wed Feb 18 17:35:05 1998 Dave Brolley <brolley@cygnus.com>
969 * parse.c (parse_field): Get rid of warning for multiple case selectors.
971 * decl.c (layout_chill_variants): Fix loop indexing error.
973 Mon Feb 16 15:54:47 1998 Dave Brolley <brolley@cygnus.com>
975 * parse.c (parse_case_expression): Remove code which checked for
976 unimplemented (ELSE) label.
977 (parse_case_expression): Add code to handle multi dimensional case
980 * expr.c (check_case_selector_list): Fixed to return a list of the
981 selectors which were checked.
982 (chill_expand_case_expr): Remove "sorry" message for multi dimension
984 (chill_expand_case_expr): Reverse order of case alternatives.
985 (chill_expand_case_expr): Add "error" message for multiple case
988 * actions.h (build_chill_multi_dimension_case_expr): Added.
990 * actions.c (build_multi_case_selector_expression): Renamed from
991 build_multi_case_expression.
992 (chill_handle_multi_dimension_case_label): Call above function by its
994 (build_chill_case_expr): Don't reverse the list elements here. It may
996 (build_chill_multi_dimension_case_expr): New function implements multi
997 dimensional case expression.
999 Thu Feb 12 15:44:50 1998 Dave Brolley <brolley@cygnus.com>
1001 * parse.c (parse_case_action): Implement multi-dimension CASE action.
1002 (parse_multi_dimension_case_action): Added.
1003 (parse_single_dimension_case_action): Added based on code moved from
1006 * expr.c (check_case_selector_list): Added.
1008 * ch-tree.h (check_case_selector_list): Added.
1010 * actions.h (chill_handle_single_dimension_case_label): Added.
1011 (chill_handle_multi_dimension_case_label): Added.
1013 * actions.c (chill_handle_single_dimension_case_label): Added.
1014 (chill_handle_multi_case_label): Added.
1015 (chill_handle_multi_case_label_list): Added.
1016 (build_multi_case_expression): Added.
1017 (chill_handle_multi_dimension_case_label): Added
1019 Fri Feb 6 16:43:41 1998 Dave Brolley <brolley@cygnus.com>
1021 * actions.c (sizetype_tab): Fix declaration to match gcc changes.
1023 Thu Feb 5 14:03:00 1998 Dave Brolley <brolley@cygnus.com>
1025 * decl.c (chill_tree_code_type): Change this to be an array of char like
1026 the tree_code_type in the rest of gcc.
1028 * ch-tree.def (chill_tree_code_type): See decl.c.
1030 Thu Jan 29 15:34:18 1998 Dave Brolley <brolley@cygnus.com>
1032 * tasking.c (error_with_decl): Correct prototype.
1033 (build_gen_ptype): Reverse arguments.
1035 * lang.c (chill_real_input_filename): Add definition.
1036 (chill_print_error_function): Correct second argument.
1037 (lang_init): Set chill_real_input_filename.
1039 * expr.c (NULL): Protect definition with #ifndef.
1041 * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
1042 (init_decl_processing): Change last argument to 'sizeof(char)'.
1045 Tue Nov 25 10:44:19 1997 Nick Clifton <nickc@cygnus.com>
1047 * Make-lang.in (mostlyclean): Use && to separate commands, so that
1048 if the directory change fails, the rule will not loop.
1050 Mon Mar 3 12:08:19 1997 Fred Fish <fnf@cygnus.com>
1052 * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1053 spaces and use single tab character on some lines.
1056 Tue Nov 26 05:12:40 1996 Wilfried Moser <moser@rtl.cygnus.com>
1058 * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1059 that the buffer location gets evaluated only once, in
1060 build_receive_buffer_case_end.
1062 * typeck.c (build_chill_bin_type): Rework.
1063 (layout_chill_range_type): Process BIN mode.
1064 (build_chill_array_type): Remove checking of layout. This is done
1067 * parse.c (parse_on_exception_list): Don't allow ON name:.
1068 (parse_opt_layout): Parse POS and STEP and return a tree instead
1071 * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1073 * grant.c (print_integer_type): Take care of BIN.
1075 * expr.c (build_chill_descr): Make descr static if requested
1077 (build_chill_length): Process text mode name and text location as
1078 described in Z.200/1992.
1079 (build_compare_expr): Don't allow < <= > >= for composite modes.
1081 * decl.c (grok_chill_fixedfields): Remove checking of
1082 layout. This is done at the parser.
1084 * convert.c (digest_structure_tuple): Take care of wrong (probably
1085 array) tuple. Printing error may cause sigsegv.
1087 * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1088 build_chill_array_type (layout is passed now as a tree instead of
1091 Fri Nov 15 15:17:44 1996 Per Bothner <bothner@deneb.cygnus.com>
1093 * convert.c (display_int_cst): Check that val is INTEGER_CST.
1094 (digest_array_tuple): Some extra error checks (i.e. that indexes
1095 are constant). If dynamic mode, result is not constant.
1097 Mon Oct 28 12:48:06 1996 Jeffrey A Law (law@cygnus.com)
1099 * typeck.c (signed_or_unsigned_type): If the given type already
1100 as the correct signedness, then just return it.
1102 * typeck.c ({un,}signed_type): If can't do anything, call
1103 signed_or_unsigned_type.
1105 Fri Sep 6 02:50:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1107 * typeck.c (build_chill_cast): In case of rangecheck, take care of
1108 constant expression (when defining a SYN).
1110 Thu Sep 5 04:30:32 1996 Wilfried Moser <moser@rtl.cygnus.com>
1112 * parse.c (define__PROCNAME__): New function to define a SYNONYM
1113 __PROCNAME__ (__procname__) which is a character string containing
1114 the name of the current procedure. This is quit the same as
1116 (parse_proc_body): Add call to define__PROCNAME__.
1118 * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1119 modes on one side and procedures on the other side..
1121 Wed Jul 24 01:13:51 1996 Wilfried Moser <moser@rtl.cygnus.com>
1123 * typeck.c: Replace all local variables and arguments named `index'
1124 with `idx', `index' gets replaced by `strchr' which makes debugging
1126 (valid_array_index_p): New argument to indicate that we are processing
1127 LENGTH (varying string) on the lefthand side of an assignment. The
1128 index check is different in this case.
1129 (build_chill_cast): In case of expression conversion do an OVERFLOW
1130 check with the limits of the target mode.
1132 * ch-tree.h: New prototype for valid_array_index_p.
1134 * actions.c (expand_varying_length_assignment): Add new argument to
1135 call to valid_array_index_p to indicate we are processing
1136 LENGTH on the lefthand side of an assignment.
1138 * loop.c: Rename loop_stack to loopstack to avoid clashes with
1139 global variable ../stmt.c:loop_stack.
1141 Tue Jun 18 23:04:06 1996 Per Bothner <bothner@deneb.cygnus.com>
1143 * expr.c (resolve_component_ref): Set TREE_SIDE_EFFECTS properly.
1145 Mon Jun 10 15:01:51 1996 Per Bothner <bothner@deneb.cygnus.com>
1147 * typeck.c (build_chill_reference_type): Copy novelty for reference.
1148 * satisfy.c (satisfy): If REFERENCE_TYPE, copy novelty.
1150 Thu May 30 04:55:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1152 * typeck.c (valid_array_index_p): For varying character strings
1153 we must check if the index is less then the actual length instead
1156 Wed May 15 06:07:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
1158 * ch-tree.h: Add prototype for test_range.
1160 * inout.c (process_io_list): Fix duplicate function call if
1161 writetext argument is a function returning a varying string.
1163 Tue May 14 21:08:47 1996 Per Bothner <bothner@deneb.cygnus.com>
1165 Re-do string comparisons. Old way could re-use temporary
1166 (SAVE_EXPR created for an argumnet is variable) prematurely.
1167 * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR): New codes.
1168 * decl.c (init_decl_processing): Remove __eqstring, __gestring,
1169 __gtstring, __lestring, __ltstring, __nestring declarations.
1170 * expr.c (build_char_array_expr): Rename to build_compare_string_expr.
1171 Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1172 (chill_expand_expr): Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1173 (build_compare_expr): Use new build_char_array_expr name.
1175 Mon Apr 8 14:08:30 1996 Per Bothner <bothner@kalessin.cygnus.com>
1177 Cleanup of April 5 fix:
1178 * actions.c (test_range): New function.
1179 (check_range): Simplify to use test_range.
1180 * convert.c (digest_powerset_tuple): Move error message from here ...
1181 (check_ps_range): ... to here. Also, simplify to use test_range.
1183 Fri Apr 5 03:41:05 1996 Wilfried Moser <moser@rtl.cygnus.com>
1185 * convert.c (check_ps_range): New function to perform range check
1186 of powerset tuple elements. This is quite the same as check_range,
1187 however, the actions on rangefail are different.
1188 (digest_powerset_tuple): Call check_ps_range.
1190 * loop.c (build_loop_iterator): Chaeck if location enumeration
1191 is requested for BOOLS(n) and print an error message.
1193 Wed Mar 6 17:46:48 1996 Per Bothner <bothner@kalessin.cygnus.com>
1195 * parse.c (parse_primval): Emit error if !ignore (before: pass==2).
1197 Implement parameterised array and string modes (using LANG_TYPE).
1198 * parse.c (parse_opt_mode): Handle parameterized arrays and strings.
1199 * grant.c (decode_mode): Support extended use of LANG_TYPE.
1200 * satisfy.c (cycle_error_print): Ignore non-decls in chain.
1201 (safe_satisfy_decl): No error if non-decl (pointer type) in cycle.
1202 (satisfy): Return immediately if laid out non-pointer type.
1203 (satisfy case LANG_TYPE): Handle paramertised mode.
1204 (satisfy case POINTER_TYPE/REFERENCE_TYPE): Push type on chain;
1205 return immediately if already in chain.
1206 * typeck.c (smash_dummy_type): Handle parameterized modes and CHAR(N).
1207 Change return type (can now return error_mark_node).
1208 (build_readonly_type): Return return value from smash_dummy_type.
1209 * ch-tree.h: Change smash_dummy_type return type.
1211 Tue Mar 5 22:31:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1213 * typeck.c (build_chill_slice): Re-do index_type calculation.
1214 * typeck.c (layout_chill_range_type): Use compare_int_csts rather
1215 than tree_int_cst_lt to avoid signed/unsigned problems.
1217 * typeck.c (copy_novelty): Use copy_node rather than build_type_node.
1218 * typeck.c (smash_dummy_type): Use copy_novelty for NEWMODE of range.
1220 * decl.c (init_decl_processing): More portable sizetype initialization.
1222 * tree.c (build_string_type): Generalize to also create bitstrings.
1223 Return error_mark_node if an argument is an ERROR_MARK.
1224 (build_bitstring_type): Simplify - just call build_string_type.
1226 Tue Mar 5 03:48:32 1996 Wilfried Moser <moser@blues.cygnus.com>
1228 * actions.c (warn_unhandled): Add missing assignment.
1230 * loop.c (build_loop_iterator): In case of IN, check if
1231 expression has a mode, otherwise make an error.
1233 Mon Mar 4 23:12:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
1235 * convert.c (digest_powerset_tuple): Check tuple elements
1236 for compatibility; if compatible, call convert.
1238 Thu Feb 29 23:39:54 1996 Per Bothner <bothner@kalessin.cygnus.com>
1240 Simplify NOVELTY representation.
1241 * ch-tree.h (CH_NOVELTY): Re-implement as plain TYPE_CONTEXT.
1242 (CH_NOVELTY_FLAG): Removed. (Just use CH_NOVELTY.)
1243 * decl.c (push_modedef): Make copy even for SYNMODE.
1244 but not for internal typedefs (indicated by make_newmode==-1).
1245 * tasking.c: Call push_modedef with make_newmode==-1.
1246 * typeck.c (chill_novelty): Remove.
1247 (smash_dummy_type): Removed unused event/buffer stuff. Update.
1248 * grant.c (decode_decl), inout.c (build_io_types),
1249 expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1250 tasking.c (build_instance_type): Simplify using new CH_NOVELTY.
1252 Solidify READ mode handling.
1253 * decl.c (do_decl, push_syndecl, start_chill_function):
1254 Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1255 * typeck.c (build_chill_slice): Set TREE_READONLY appropriately.
1256 (build_chill_array_ref_1, build_chill_bitref): Likewise.
1257 (build_chill_cast): Set TREE_READONLY depending on result type (only).
1258 * convert (convert_from_reference, convert): Likewise.
1259 * expr.c (resolve_component_ref): Set TREE_READONLY appropriately.
1260 (build_chill_function_call): Error if OUT/INOUT arg is TREE_READONLY.
1261 * actions.c (chill_expand_assignment): Also error if TREE_READONLY.
1262 Use convert_from_reference.
1264 Thu Feb 29 11:14:09 1996 Per Bothner <bothner@kalessin.cygnus.com>
1266 * parse.c (parse_do_action): DO WITH expressions are evaluated in
1267 outer scope. Also call save_if_needed.
1268 * decl.c (shadow_record_fields); Fix and simplify.
1270 Tue Feb 27 22:19:40 1996 Per Bothner <bothner@cygnus.com>
1272 * convert.c (display_int_cst): Gereralize to wider range of ints.
1274 Thu Feb 22 06:12:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1276 * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1278 * decl.c (do_decl): In case of chill_varying_type_p, check if
1279 type of fixed part is error mark and do nothing in this case.
1281 * lex.c (convert_bitstring): Don't complain when length of
1282 bitstring is 0 (BOOLS(0) is a valid mode).
1284 * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1285 (domain) is error mark.
1287 * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1288 error_mark_node, just return.
1290 Tue Feb 20 00:01:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
1292 * parse.c (parse_variant_alternative): When checking for ELSE take
1293 care of tagless variants.
1295 Mon Feb 19 05:54:45 1996 Wilfried Moser <moser@rtl.cygnus.com>
1297 * parse.c (parse_case_action): Check if ELSE was specified
1298 in a case label list (this is only valid for array tuples).
1299 (parse_case_expression): Deto.
1300 (parse_variant_alternative): Deto.
1302 Tue Feb 13 17:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1304 * typeck.c (chill_location): Cleanup. Neither SLICE_EXPR nor
1305 BIT_FIELD_REF are referable, even if their base strings are.
1307 Fri Feb 9 02:25:33 1996 Wilfried Moser <moser@rtl.cygnus.com>
1309 * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1310 checking the expression.
1312 * convert.c (convert): Set TREE_CONSTANT when taking the
1313 address of a function.
1315 * decl.c (start_chill_function): Check if the mode is really
1316 a mode to avoid subsequent segfaults.
1318 * typeck.c (string_assignment_condition): Add checking of
1321 Thu Feb 8 01:37:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1323 * actions.c (build_cause_exception): Print warning of unhandled
1324 exception only once for each exception.
1326 Mon Feb 5 22:17:13 1996 Per Bothner <bothner@kalessin.cygnus.com>
1328 * tree.c (discrete_count), ch-tree.h: New function.
1329 * expr.c (build_concate_expr, build_chill_repetition_op,
1330 chill_expand_expr): Use discrete_count; make sure arguments
1331 to size_binop are sizetype.
1332 (powersetlen): Trvialize using discrete_count.
1334 * inout.c (process_io_list): Use new assign_temp function.
1335 * inout.c (build_enum_tables): Avoid taking address of array_ref,
1336 which sometimes gets optimized to a constant.
1338 * expr.c (finish_chill_unary_op): Call convert_to_class on argument.
1339 Remove some obsolete TREE_UNSIGNED stuff.
1340 * lex.c (convert_integer): Removed more TREE_UNSIGNED stuff.
1342 Thu Feb 1 15:11:20 1996 Doug Evans <dje@charmed.cygnus.com>
1344 * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1346 Wed Jan 31 17:13:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1348 * decl.c (char_array_type_node, wchar_array_type_node): Removed.
1349 (init_decl_processing): Remove array_domain_type; don't set
1350 char_array_type_node or wchar_array_type_node.
1351 * decl.c (init_decl_processing): Use fixup_unsigned_type to
1352 simplify code to create boolean_type_node and char_type_node.
1354 Mon Jan 29 14:20:10 1996 Doug Evans <dje@charmed.cygnus.com>
1356 * lex.c (check_newline): Pass character after `#pragma' to
1357 HANDLE_PRAGMA. Don't call get_directive_line if at end of line.
1359 Fri Jan 26 05:56:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1361 * expr.c (build_chill_function_call): Add check and error for
1362 actual argument is a TYPE_DECL.
1364 * parse.c (parse_set_mode): Print a warning if the set mode contains
1365 numbered and unnumbered set elements.
1367 Wed Jan 24 05:10:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1369 * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1371 * decl.c (layout_enum): Add check for negative values if
1372 enum is numbered and duplicate values in an enum.
1374 Mon Jan 15 06:21:52 1996 Wilfried Moser <moser@rtl.cygnus.com>
1376 * actions.c (chill_expand_assignment): Add check for lefthand side
1377 of an assignment is a location.
1379 * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1382 * expr.c (is_really_instance): New function to check if a datum
1383 is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1385 (build_chill_component_ref): call is_really_instance.
1387 Wed Jan 10 13:47:14 1996 Per Bothner <bothner@kalessin.cygnus.com>
1389 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): Removed; now in ../tree.h.
1391 Mon Jan 8 15:29:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1393 * expr.c (build_char_array_expr): Add save_if_needed's if varying.
1394 Also, remove unused len0 and len1.
1396 Mon Dec 11 17:36:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1398 * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1399 build_chill_getassociation, build_chill_getusage,
1400 build_chill_gettextrecord, build_chill_gettextaccess: Simplify
1401 - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1403 * parse.c (parse_action): Minor simplification.
1405 Thu Dec 7 00:02:47 1995 Wilfried Moser <moser@rtl.cygnus.com>
1407 * parse.c (parse_action): In case of CALL, do a check if there
1408 is really a function call.
1410 Tue Dec 5 05:06:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1412 * convert.c (display_int_cst): Fix printing of control sequence.
1414 Thu Nov 30 21:07:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
1416 * grant.c (decode_constant, decode_constant_selective): Make work
1417 for REAL_IS_NOT_DOUBLE case.
1419 * decl.c (CHILL_INT_IS_SHORT): New macro.
1420 (init_decl_processing): Use CHILL_INT_IS_SHORT.
1421 Change name of integer_type_node from _cint to long.
1423 Mon Nov 27 17:07:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
1425 * loop.c (top_loop_end_check): Check while condition *after*
1426 getting next powerset element.
1428 Mon Nov 27 05:29:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
1430 * parse.c (parse_receive_case_action): Fix typo in error message.
1432 * convert.c (display_int_cst): Format characters like strings in
1433 grant.c(decode_constant).
1435 * grant.c: Remove the old forbid stuff.
1437 * lex.c (readstring): Fix reading of '^^'.
1439 * parse.c (parse_procedure_mode): nreverse param_types.
1441 Thu Nov 23 05:39:57 1995 Wilfried Moser <moser@rtl.cygnus.com>
1443 * actions.c (chill_expand_assignment): Check for assigning to
1444 location with non-value mode.
1446 * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1447 Add new and change some prototypes.
1449 * decl.c (init_nonvalue_struct): New function to generate
1450 initialisation code for non-value structs.
1451 (init_nonvalue_array): New function to generate initialisation
1452 code for non-value array's.
1453 (do_decl): Call one of the above mentioned functions in case
1454 we have a mode with the non-value property.
1455 (start_chill_function): Print error message if a non-value mode
1456 gets returned without LOC and check for arguments of non-value
1457 modes only gets passed by LOC.
1459 * grant.c (print_proc_tail): Fix for procedure returning LOC.
1461 * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1462 association_type_node.
1463 (invalidate_access_recordmode): New function to set the
1464 record mode of an ACCESS to error_mark_node in case of
1465 record mode has the non-value property.
1466 (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1467 (build_access_mode, build_chill_gettextaccess): Deto.
1468 (check_exprlist): Correct processing of repetition factor.
1470 * lex.c (readstring): Correct processing of control
1471 sequences of the form '^([H | D | O | B]'xx)'.
1473 * loop.c: Cleanup iterator handling (done by Per).
1474 (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1475 functions for starting and ending a loop scope in case
1476 of initialising an array with non-value property.
1478 * parse.c (check_end_label): Remove '\n' from error message.
1479 (parse_loc_declaration): Print error in case of loc-identity
1480 declaration without initialisation or with keyword INIT.
1481 (parse_do_action): Clean up iterator handling (done by Per).
1483 * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1484 message in case of TYPE_DECL is a signal and the mode has the
1486 (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1487 the array type if the array element mode has the non-value
1489 (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1490 type if one of the fields have the non-value property. If the
1491 record is a buffer mode and the element mode of the buffer has
1492 the non-value-p., invalidate it (see
1493 tasking.c (invalidate_buffer_element_mode). Same for access modes.
1495 * tasking.c (build_signal_descriptor): If the signal type have
1496 the non-value property, do nothing.
1497 (build_receive_signal_case_label): Don't do an assignment if the
1498 signal type have the non-value property.
1499 (build_receive_buffer_case_label): Add check for buffer element
1501 (expand_send_buffer): Deto.
1502 (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1503 (invalidate_buffer_element_mode): New function to set type of
1504 buffer element mode to error_mark_node.
1505 (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1507 Wed Nov 15 13:26:20 1995 Jeffrey A Law (law@cygnus.com)
1509 * inout.c (intsize_of_charsexpr): Move declaration to top
1510 of file to avoid error from solaris2.5 cc.
1512 Thu Nov 9 02:50:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
1514 * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1515 mode, temporarily reset maximum_field_alignment to 0 before
1516 layouting it to be compatible with the runtime library.
1518 * inout.c (build_chill_gettextaccess): Deto.
1520 Mon Nov 6 04:12:06 1995 Wilfried Moser <moser@rtl.cygnus.com>
1522 * decl.c (do_decl): If type is READonly, add check if an
1523 ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1524 and print an error if this is true. Variables of this modes
1525 may not be declared READonly.
1526 Add check for mode is one of the above and an init value was
1527 given. This is also not allowed.
1528 Add initialisation of variables of the above modes during
1529 runtime. This influence the mechanism for detecting to
1530 build a constructor.
1531 (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1532 BUFFER, and EVENT mode must not be READonly.
1533 (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1534 TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1535 (declare_predefined_file): Move to inout.c.
1536 (init_decl_processing): Add definitions for new built-in's.
1537 (finish_outer_function): Build a constructor only if
1538 build_constructor is set.
1540 * except.c: On Linux native, setjmp is __setjmp.
1542 * expr.c (build_chill_component_ref): New function. It gets called
1543 from parse.c instead of build_component_ref. Functions checks if the
1544 user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1545 EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1546 (build_chill_floatcall): New function to resolve CHILL's floating
1547 point builtin calls (SIN, COS, TAN, etc.).
1548 (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1549 build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1550 GETSTACK, and TERMINATE built-in's.
1551 (build_generalized_call): Process new built-in's.
1553 * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1554 (decode_mode_selective): deto.
1556 * inout.c: Completely rewritten for implementing Chapter 7 of
1557 Z.200 (input and output).
1559 * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1562 * lex.h (enum rid): Add RID_ASSOCIATION.
1564 * parse.c: New flag build_constructor to indicate if a constructor
1565 should be generated at the end of compilation or not. See
1567 (parse_begin_end_block): Don't emit a line note.
1568 (parse_primval): Call build_chill_component_ref instead of
1569 build_component_ref.
1570 (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
1571 modes, USAGE modes, WHERE modes.
1573 * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
1574 ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
1575 (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
1577 * typeck.c (extract_constant_from_buffer): Fix thinko in case
1578 of ! BYTES_BIG_ENDIAN.
1579 (build_chill_cast): Implement representation conversion between
1581 (chill_similar): Add check of ACCESSes.
1582 (layout_chill_range_type): Check for real ranges and print
1585 * Make-lang.in: Change compiler version.
1586 chill also depends on Makefile.
1588 * chill.in: Process command line option -Xlinker like -Tdata.
1590 * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
1591 CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
1592 Add some prototypes.
1593 (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
1594 BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
1595 Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
1597 * gperf, hash.h: Remove definition of WHERE.
1599 Thu Oct 5 06:22:19 1995 Wilfried Moser <moser@rtl.cygnus.com>
1601 * grant.c (decode_constant_selective): Add some newlines
1602 to generated SPEC MODULE.
1604 Wed Oct 4 18:16:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1606 * decl.c (pop_chill_function_context): Remove some bogosity.
1608 Wed Oct 4 05:14:00 1995 Wilfried Moser <moser@rtl.cygnus.com>
1610 * grant.c (print_integer_selective): In case of a RANGE of
1611 a SET mode, try to find and grant the parent mode.
1612 (grant_seized_identifier): Dont write it out, if the identifier
1613 doesn't have a seize file (it may come from a SPEC MODULE
1614 defined in the compilation unit).
1616 Fri Sep 22 14:04:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1618 * actions.c (check_non_null): Wrap expr in SAVE_EXPR if needed.
1620 Wed Sep 20 13:51:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1622 * expr.c (force_addr_of): Optimize an INDIRECT_REF using
1623 convert_to_pointer rather than convert (which in case of
1624 a REFERENCE_TYPE would losingly call convert_from_reference).
1626 Wed Sep 20 04:03:58 1995 Wilfried Moser <moser@rtl.cygnus.com>
1628 * inout.c (build_chill_writetext): In case of character string:
1629 Add processing of a concatenation including varying character
1631 (intsize_of_charsexpr, get_max_size): New functions to determine
1632 the maximum size of varying character strings.
1634 * grant.c (decode_constant, decode_constant_selective): Add
1635 processing of COMPONENT_REF.
1637 * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
1638 for SYNONYM's with STRUCT mode.
1640 Mon Sep 18 17:25:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1642 * expr.c (force_addr_of): Optimize of value is INDIRECT_REF.
1643 * typeck.c (build_chill_slice): Call mark_addressable.
1645 Mon Sep 18 14:38:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1647 * expr.c (chill_expand_expr): Make a copy before calling __psslice
1648 if the array is neither referable nor BLKmode.
1649 (build_set_expr): Renamed to ...
1650 (build_compare_set_expr): Allow one opperand to be boolean.
1651 (build_compare_expr): Check both operands for SET_EXPR,
1652 before checking for discrete types (for -fold-strings).
1654 Fri Sep 15 11:35:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1656 * satisfy.c (safe_satisfy_decl): For a CONST_DECL, set TREE_TYPE
1657 to error_mark_node or error.
1659 Fri Sep 15 00:26:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1661 * grant.c (decode_constant_selective): Add processing of
1662 TREE_OPERAND (val, 0).
1664 Wed Sep 13 14:24:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1666 * ch-tree.h (CH_IS_INSTANCE_MODE): Redefine to use CH_SIMILAR.
1667 * convert.c (convert): Use CH_IS_INSTANCE_MODE.
1668 * inout.c (build_chill_writetext): Likewise.
1669 * tasking.c (build_receive_case_start, build_delay_case_start): Ditto.
1670 * parse.c (parse_start_action): Remove redundant tests.
1671 * tasking.c (build_start_process): Also test that optset is instance.
1672 (build_copy_number, build_proc_type, expand_send_signal): Use
1673 CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
1674 * actions.c, convert.c (instance_type_node): Remove redundant
1677 Wed Sep 13 14:19:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1679 * regression.awk2: Use \ line-continuation-markers
1680 to remove gratuitous gawk dependency.
1682 Mon Sep 11 17:26:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1684 * typeck.c (build_chill_modify_expr): Use force_addr_of.
1685 (mark_addressable): Handle INDIRECT_REF of ADDR_EXPR.
1687 * typeck.c (check_case_value), ch-tree.h: Moved to ...
1688 * actions.c (check_case_value): ... here. Also check for
1689 compatibility with selector (which is passed as extra argument).
1690 (chill_handle_case_label_range): Take selector argument,
1691 and use it to call check_case_value.
1692 (chill_handle_case_label): Take extra selector argument.
1693 * ch-tree.h (chill_handle_case_labe): Add prototype.
1694 * except.c expr.c, parse.c: Remove chill_handle_case_label prototypes.
1695 * actions.c, except.c, expr.c, parse.c: Pass extra selector
1696 argument to function calls as needed.
1698 Mon Aug 28 02:47:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1700 * grant.c (decode_constant_selective): Fix a bug in writing items
1703 Thu Aug 24 04:52:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1705 * parse.c (parse_case_expression): Print warning only in
1708 * actions.c (print_missing_cases): Correct printing of
1711 Wed Aug 23 15:26:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1713 * parse.c (parse_case_label_list): Take extra parameter to
1714 indicate if we're parsing a tuple or a case-label-spec.
1715 If former, don't allow '(' EXPR ')' ',' but backup instead.
1716 (parse_case_label_specification, parse_tuple_element):
1717 Pass appropriate new argument to parse_case_label_list.
1719 Wed Aug 23 06:08:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1721 * inout.c (build_chill_readtext): Add processing of BOOL's and
1724 * grant.c (decode_constant): Process nonprintable characters
1727 Fri Aug 11 15:26:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1729 * except.c (initialize_exceptions): Name setjmp "setjmp" and not
1730 "__builtin_setjmp" (which is not recognized by expand_call).
1732 Wed Aug 9 23:35:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
1734 * loop.c (end_loop_scope): Need to call kept_level_p,
1735 in argument to poplevel.
1737 Wed Aug 9 05:48:30 1995 Wilfried Moser <moser@rtl.cygnus.com>
1739 * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
1740 file might be empty). Install chill.install instead.
1742 Tue Aug 8 21:46:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1744 * loop.c (end_loop_scope): Do poplevel *after* expand_end_bindings.
1746 Tue Aug 8 00:51:09 1995 Wilfried Moser <moser@rtl.cygnus.com>
1748 * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
1749 of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
1751 * decl.c (start_chill_function): Likewise ...
1753 Mon Aug 7 18:35:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1755 * tasking.c (build_process_wrapper): Also set DECL_ASSEMBLER_NAME
1756 of PARM_DECL, since otherwise dbxout_symbol_name may barf.
1758 Mon Jul 31 14:32:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1760 * loop.c: Re-written implementation of powerset iteration.
1761 (declare_temps): iter_var is now integer index into bitstring,
1762 and powerset_temp just uses save_expr (normally needs no temp).
1763 (top_loop_end_check): Pass index to start searching (from iter_var)
1764 to library function, instead of dependning on latter to clear old bits.
1765 (increment_temps): UNless DOWN, increment iter_var.
1766 * decl.c (init_decl_processing): Declare new types for
1767 __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
1769 Mon Jul 31 12:47:28 1995 Per Bothner <bothner@cygnus.com>
1771 * convert.c (digest_array_tuple): Set TREE_STATIC if possible.
1773 Fri Jul 28 05:11:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
1775 * lex.c (readstring): Process integer literals starting with
1776 H', D', or B' within a control sequence.
1778 Thu Jul 27 23:08:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
1780 * parse.c (parse_do_action): Don't call push_action, but defer
1781 push_handler until begin_loop_scope.
1782 Call parse_opt_handler here, to move handler scope inside loop block.
1783 (parse_action): After do_action, nothing to do now.
1784 * loop.c (begin_loop_scope): Also call push_handler here.
1785 (declare_temps): Copy derived flag to user_var.
1786 (declare_temps): For POWERSET, always copy to temporary (even if
1787 constant), since the runtime clears bits from it.
1789 * expr.c (build_chill_sizeof): Use convert_to_class.
1790 * satisfy.c (safe_satisfy_decl): Cleanup handling of CONST_DECL -
1791 set proper value of CH_DECL_FLAG on both the decl and its value.
1793 * convert.c (digest_array_tuple); Slightly better errors.
1795 Wed Jul 26 22:13:39 1995 Per Bothner <bothner@cygnus.com>
1797 * expr.c (expand_packed_set): Also allocate the CONSTRUCTOR itself.
1798 (fold_set_expr): Simplify accordingly.
1799 (build_concat_expr): Constant fold bitstring CONCAT_EXPRs.
1801 Thu Jul 13 12:21:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1803 * typeck.c (build_chill_slice): Use build1 instead of build.
1804 * typeck.c (xtract_constant_from_buffer): Pass correct precision
1807 * typeck.c (expand_constant_to_buffer): Handle RANGE_EXPR index.
1808 * convert.c (digest_array_tuple): Generate RANGE_EXPR as index
1809 for tuples with ranges.
1811 Thu Jun 29 23:41:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1813 * typeck.c (build_chill_slice): Re-implement to use casts
1814 instead of build_chill_array_ref_1 (which doesn't always work).
1815 * convert.c (convert): Remove old bugs code.
1817 Tue Jun 27 05:00:04 1995 Wilfried Moser <moser@rtl.cygnus.com>
1819 * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
1820 expression so that a possible handler at the if action will
1822 (parse_proc_body): New argument to indicate if the function
1823 raises exceptions or not. In case the function will raise
1824 exception: start a handler, parse the function and generate
1825 code for reraising the exceptions (call chill_reraise_exceptions).
1827 * except.c (chill_reraise_exceptions): New function to generate
1828 code for reraising exceptions are specified at the function
1831 * ch-tree.h: Add prototype for chill_reraise_exceptions.
1833 * decl.c (build_chill_function_type): When the function (type)
1834 raise an exception, generate two new arguments (additional to the
1835 formal parameters), the filename and linenumber of the caller.
1836 (start_chill_function): likewise...
1838 * expr.c (build_chill_function_call): If the called function raises
1839 exceptions, give current filename and linnumber as aditional
1842 * actions.c (build_cause_exception): Handle case when function
1843 propagates the exception.
1845 * grant.c (print_proc_tail, print_proc_tail_selective): If the
1846 function(type) raises exceptions, don't process the last to
1847 parmeters of the formal argument list, they are compiler
1850 * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
1851 the exception lists are equal.
1853 Thu Jun 22 19:27:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1855 * loop.c (flag_local_loop_counter): Change default to 1.
1856 (end_loop_scope): Set 'keep' parameter in poplevel call.
1857 (declare)_temps): Don't set IDENTIFIER_LOCAL_VALUE, since that
1858 is handled (correctly!) by pushdecl.
1859 (begin_loop_scope): Call pushlevel here,
1860 * parse.c (parse_do_action): Move pushlevel so only called for WITH.
1861 * decl.c (struct scope): Remove n_incomplete field and its uses.
1862 (pushdecl): Re-write to use proclaim_decl. Remove old C-isms.
1863 (init_decl_processing): Re-name integer_type_node as "_cint" to
1864 remove complaint from pushdecl about chill_integer_type_node as "int".
1866 Tue Jun 20 18:15:58 1995 Doug Evans <dje@canuck.cygnus.com>
1868 * Make-lang.in (chill-runtime): Restore patch to disable building of
1869 runtime libraries for cross compilers. This patch should remain
1870 until a build of a freshly checked out devo "just works".
1872 Mon Jun 19 06:01:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
1874 * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
1876 * decl.c (init_decl_processing): Remove builtin function
1877 __cause_exception. New builtin functions __cause_ex1 and
1880 * except.c (is_handled): Return 0 when no handler found,
1881 1, if the handler is in local scope and 2, if function
1882 may propagate the exception.
1884 * actions.c (build_cause_exception): New argument to
1885 indicate if a warning should be printed when
1886 causing an unhandled exception. Call is_handled here.
1888 * ch-tree.h: Change prototype for build_cause_exception.
1889 New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
1890 identifier already has been written to grant file.
1892 * grant.c (write_spec_module): If not GRANT ALL specified,
1893 write only this identifiers to grant file which are
1894 neccessary to form a prober grant file. This will shorten
1895 grant files and speed up compilation.
1896 (decode_constant_selective, decode_mode_selective,
1897 get_type_selective, decode_decl_selective,
1898 grant_array_type_selective, get_tag_value_selective,
1899 print_enumeral_selective, print_integer_selective,
1900 print_struct_selective, print_proc_tail_selective,
1901 grant_one_decl_selective): New functions.
1903 * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
1904 directives to grant file.
1906 * parse.c (parse_on_exception_list): Fis constructing of
1909 Wed Jun 14 15:21:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1911 * typeck.c (valid_array_index_p): Check for syntax error, where
1912 index is a mode, rather than a value.
1914 * expr.c (build_chill_binary_op_1): Remove unused function.
1916 Sat Jun 10 11:36:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
1918 * except.c (is_handled): New function.
1919 Various fixes here and there to make it work.
1921 * parse.c (parse_param_name_list): Set DECL_ASSEMBLER_NAME.
1922 (Otherwise dbxout may crash.)
1924 * satisfy.c (satisfy case FUNCTION_TYPE): Check for non-type result.
1925 * decl.c (start_chill_function): If result type was error_mark,
1926 kludge type chill_os result_decl to avoid extra errors.
1927 * actions.c (chill_expand_result, chill_expand_return): If type of
1928 chill_result_decl is error_mark, do nothing.
1930 * typeck.c (chill_similar): Fix thinko in recent change.
1932 * config-lang.in (diff_exclude): Remove ch/lex.c - now it's a
1933 true source file, and is never longer generated with [f]lex.
1935 * regression.sh: Pass -s to make clean (to make it silent).
1936 Explicitly call gawk, instead of depending of '#!' to work.
1937 Add --objdir flags. Never send mail to bill.
1939 Thu Jun 8 15:08:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1941 * typeck.c (chill_similar): Add extra parameter. Use to to prevent
1943 (chill_equivalent, chill_l_equivalent): Also add new parameter.
1944 * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT): Modify to match.
1946 Tue Jun 6 17:14:49 1995 Per Bothner <bothner@kalessin.cygnus.com>
1948 * loop.c (declare_temps): If -flocal-loop-counter, make sure to
1949 pushdecl the new variable (created with decl_temp1).
1950 And fix the type of the local variable for powerset iteration.
1952 Tue Jun 6 15:07:19 1995 Per Bothner <bothner@cygnus.com>
1954 * typeck.c (mark_addressable): Handle ADDR_EXPR inside
1955 NOP_EXPR inside INDIRECT_EXPR. For TRUTH_ANDIF_EXPR,
1956 TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
1957 (which is used for range-checks and suchlike).
1959 Thu Jun 1 02:45:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1961 * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
1962 GE_EXPR (don't do invert_truthvalue, just switch operands).
1964 Wed May 31 14:00:38 1995 Doug Evans <dje@canuck.cygnus.com>
1966 * lang-options.h: New file.
1967 * lang-specs.h: New file.
1969 Wed May 24 01:45:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1971 * actions.c (assign_stack_temp): Remove unneeded declaration.
1973 Tue May 23 00:17:38 1995 Per Bothner <bothner@kalessin.cygnus.com>
1975 * parse.c (parse_on_exception_list): Return list of exception
1976 names in pass 1, not in pass 2. (Return non-NULL dummy if pass 2.)
1977 (parse_on_alternatives): Call chill_handle_on_labels even if ignoring.
1978 (parse_opt_handler): Likewise for chill_start_default_handler.
1979 * except.c (push_handler): Clear on_alt_list only if pass 1.
1980 (chill_handle_on_labels): Build on_alt_list in pass 1,
1981 retrieve it in pass 2.
1983 Fix so that decl_temp1 does not expand_decl_init, which calls
1984 free_temp_slots, which loses in the middle on an expression.
1985 * decl.c (finish_decl): Don't call expand_decl_init.
1986 (do-decl): Do initialization assignment even if stack variable.
1987 * parse.c (parse_loc_declaration): Call free_temp_slots.
1989 * decl.c (finish_decl), ch-tree.h: Remove last two always-NULL
1990 parameters. Cleanup never-used code.
1991 * decl.c, except.c: Update calls to finish_decl.
1993 * decl.c (case_else_node): Define new variable.
1994 (init_decl_processing): Initialize it.
1995 (make_chill_variants): If variant label is case_else_node (i.e. it
1996 is (ELSE):), treat that as an ELSE variant.
1997 * ch-tree.h (case_else_node): Declare case_else_node.
1998 * parse.c (parse_case_label): Use case_else_node.
2000 Mon May 22 10:18:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2002 * grant.c (print_proc_tail): Also call print_proc_exceptions.
2003 (decode_decl): Don't explicitly call print_proc_exceptions for
2005 (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
2007 * actions.c (chill_convert_for_assignment): Use save_if_needed,
2008 instead of save_expr, in case value is a reference.
2010 * typeck.c (build_chill_slice): Fix old thinko (missing call to
2011 build_pointer_type).
2013 * actions.c (size_int): Remove unused and conflicting prototype.
2015 Wed May 17 16:23:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
2017 * actions.c (chill_convert_for_assignment): Call save_expr if
2018 range_checking (twice).
2020 Tue May 16 11:33:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
2022 * typeck.c (layout_chill_range_type): Re-organize error checking.
2023 Add extra parameter to indicate if non-constant bounds are allowed.
2024 If bounds are bad, set them to the min_value of the parent.
2025 * ch-tree.h (layout_chill_range_type): Update declaration.
2026 * satisfy.c (satisfy): Update call of layout_chill_range_type.
2027 * typeck.c (build_chill_range_type): Likewise.
2028 * tree.c (build_string_type): Likewise.
2030 Tue May 16 00:37:51 1995 Wilfried Moser <moser@rtl.cygnus.com>
2032 * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
2034 Mon May 15 12:54:32 1995 Per Bothner <bothner@kalessin.cygnus.com>
2036 * satisfy.c (satisfy): Supress error message for REF <error_mark>.
2037 * decl.c (push_modedef): Check for TREE_CODE != ERROR_MARK, instead
2038 of against error_mark_node. (smash_dummy_type can copy error marks.)
2039 (finish_decl): Simplify C-derived check for incomplete type,
2040 and suppress if it is an ERROR_MARK.
2041 Don't call rest_of_decl_compilation if type is an ERROR_MARK.
2043 Sun May 14 22:52:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
2045 * convert.c (convert): Handle array types with different modes.
2047 Thu May 11 15:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2049 * loop.c (build_loop_iterator): Handle the case of a non-local
2050 loop counter having reference type.
2052 Thu May 11 07:04:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
2054 * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2055 build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2056 to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2058 Mon May 8 15:27:16 1995 Per Bothner <bothner@kalessin.cygnus.com>
2060 * expr.c (build_chill_card): Do constant folding, if possible.
2061 (build_max_min): Do constant folding for MIN/MAX of powersets.
2063 Mon May 8 06:57:21 1995 Wilfried Moser <moser@rtl.cygnus.com>
2065 * expr.c (build_chill_sizeof): Add corect processing of a
2066 SIGNAL definition without data.
2068 Sat May 6 16:27:10 1995 Doug Evans <dje@canuck.cygnus.com>
2070 * Make-lang.in (maintainer-clean): Renamed from realclean.
2072 Tue May 2 06:16:23 1995 Wilfried Moser <moser@rtl.cygnus.com>
2074 * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2075 otherwise "handler stack" will get out of sync.
2077 Mon Apr 24 09:51:07 1995 Per Bothner <bothner@rtl.cygnus.com>
2079 Fixes to support module-level non-static temporary variables.
2080 * parse.c (parse_loc_declaration): If all_static_flag and not
2081 resursive, tell do_decls to make new decl static.
2082 * decl.c (do_decl): Don't use maybe_static function to force static.
2083 (do_decl): Don't let initialization count as "using" the variable.
2084 (maybe_static): Removed.
2085 (finish_decl): Call expand_decl and expand_decl_init if needed
2086 (as it will be for non-static temporaries).
2088 Fri Apr 21 21:02:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2090 * convert.c, expr,c typeck.c (expand_decl): Remove usused declaration.
2092 Fri Apr 21 02:27:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2094 * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2095 LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2096 GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2098 Thu Apr 20 15:29:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
2100 * parse.c (yytext, finput): Remove unused declarations.
2102 * parse.c (proc_action_level): New variable.
2103 (parse_proc_body): New function. Common code from
2104 parse_procedure_definition and parse_process_definition moved here.
2105 Save, set, and restore proc_action_level from action_nesting_level.
2106 (parse_action case RETURN): Pass proc_action_level to
2107 expand_goto_except_cleanup.
2109 Thu Apr 20 06:02:20 1995 Wilfried Moser <moser@rtl.cygnus.com>
2111 * grant.c (really_grant_this): Add processing of LABEL_DECL's
2114 Tue Apr 18 18:16:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
2116 * lex.c ( convert_bitstring): Use BYTES_BIG_ENDIAN rather
2117 than BITS_BIG_ENDIAN to layout bits within bitstring.
2118 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2121 Sun Apr 16 19:55:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
2123 * decl.c (finish_chill_function): If currently global_function_decl,
2124 don't set outer_function to global_function_decl.
2126 Wed Apr 12 22:45:06 1995 Per Bothner <bothner@kalessin.cygnus.com>
2128 * decl.c (start_chill_function): Normal functions are nested.
2129 (finish_chill_function): No longer takes a 'nested' parameter.
2130 Normal functions are nested.
2131 Never call permanent_allocation, since it does little good (all normal
2132 functions are nested), and trashes some things we need.
2133 (finish_outer_function): Update call to finish_chill_function.
2134 * grant.c (chill_finish_compile): Likewise.
2135 * tasking.c (build_process_wrapper): Likewise.
2136 * parse.c (end_function): Likewise.
2137 * ch-tree.h (finish_chill_function): Update declaration.
2139 * parse.c (parse_asm_clobbers): Re-enable.
2140 (expand_asm_operands): function.
2141 (parse_asm_action): Re-enable. Don't do anything in pass 1.
2143 * typeck.c (build_chill_slice): Do constant folding.
2144 Also, work around problem where expand_expr constant folds ARRAY_REF.
2145 (sort_constructor): Remove unused function.
2147 * expr.c (chill_expand_expr case CONCAT_EXPR): Make sure we
2148 emit_block_move if needed with correct size.
2150 * inout.c (build_chill_io_list_type): Simplify.
2152 * lex.c (check_newline): Uncomment some dwarf stuff,
2153 which needs get_directive_line, which we no longer have.
2155 Wed Apr 5 16:05:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
2157 * Makefile.in (C_OBJS, xcc1chill): Removed. We no longer
2158 link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2160 * expr.c (build_chill_component_ref): Renamed to build_component_ref.
2161 (chill_truthvalue_conversion): Renamed to truthvalue_conversion.
2162 * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2163 typeck.c: Update accordingly.
2164 * typeck.c (valid_array_index_p): We only need to save_expr (index)
2165 if we're range-checking.
2166 * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2167 mark_addressable, initializer_constant_valid_p, check_case_value,
2168 type_for_size, type_for_mode): New functions, copied from
2169 ../c-common.c and ../c-typeck.c.
2171 * lang.c (incomplete_type_error): New. (Was in c-common.o.)
2172 * decl.c (constant_expression_warning): New. (Was in c-common.o.)
2174 * lang.c (string_index_type_dummy): Remove definition from here.
2175 * tree.c (string_index_type_dummy): Define here instead.
2176 * lang.c (lang_init): Move init of string_index_type_dummy
2177 (which is too late) from here ...
2178 * decl.c (init_decl_processing): ... to here.
2180 * decl.c (signed_boolean_type_node): New variable.
2181 (init_decl_processing): Initialize it.
2183 * parse.c: Comment out ASM action support, for now.
2185 * loop.c (maybe_skip_loop): Make return void, not int.
2186 Use build_compare_discrete_expr.
2187 (increment_temps): Use chill_expand_assignment.
2189 Thu Mar 30 23:28:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
2191 * decl.c (do_decl): If default-initializing variable-length
2192 string to "" (or []), make it lifetime_bound.
2194 Thu Mar 30 02:51:59 1995 Wilfried Moser <moser@rtl.cygnus.com>
2196 * parse.h, hash.h, gperf: New compiler directives
2197 EMPTY_ON and EMPTY_OFF.
2199 * lex.c: New variables empty_checking and runtime_checking_flag.
2200 (ch_lex_init): Initialize empty_checking and range_checking
2201 when switching from pass 1 to 2.
2202 (read_directive): Add processing of EMPTY_OFF/ON.
2204 * expr.c (build_chill_indirect_ref): New argument do_empty_check
2205 to indicate if null pointer checking should be done or not.
2206 It's not always necessary to do a null pointer check.
2208 * decl.c (lookup_name): Add argument to call to
2209 build_chill_indirect_ref.
2210 (shadow_record_fields): ...
2211 * parse.c (parse_primval): ...
2212 * tasking.c (build_process_wrapper): ...
2213 (build_receive_buffer_case_label): ...
2215 * ch-tree.h: Change prototype of build_chill_indirect_ref.
2216 Add declaration of runtime_checking_flag and empty_checking.
2218 * actions.c (check_non_null): Do null pointer checking only
2219 when enabled (empty_checking != 0).
2221 Wed Mar 29 15:18:23 1995 Per Bothner <bothner@kalessin.cygnus.com>
2223 * actions.c (chill_expand_assignment): Add 'else' so we don't do
2224 regular assignment in addition to spacial assignment (e.g. for slices).
2226 * ch-tree.h (convert_to_discrete): Add declaration.
2227 * typeck.c (convert_to_discrete): New function.
2228 (valid_array_index_p): Use convert_to_discrete. Also simplify.
2229 (build_chill_slice): Say sorry if variable-length bitstring.
2230 (build_chill_slice_with_length): Re-do bounds check.
2231 * expr.c (check_case_selector): Re-write to use convert_to_discrete.
2232 (build_chill_num, build_chill_pred_or_succ): Use convert_to_discrete.
2234 * decl.c (do_decl): Don't do redundant chill_convert_for_assignment.
2236 Wed Mar 29 00:00:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
2238 * expr.c (build_chill_num): need_unsigned have to be set for
2239 characyer strings of length 1 too. Happens when compiling
2240 with -fold-strings and do NUM(a(i)).
2242 * parse.c (parse_loc_declaration): Print error message only
2244 (parse_mode): Likewise ...
2246 * tasking.c (build_tasking_message_type): Temporarily reset
2247 maximum_field_alignment to get proper aligned temp. variables
2248 gets passed to runtime system.
2250 Tue Mar 28 00:08:06 1995 Per Bothner <bothner@cygnus.com>
2252 * typeck.c (my_build_array-ref): Merged into build_chill_array_ref_1.
2253 But don't convert index to integer_type_node. And we don't need to
2254 check the we're given an array.
2255 * typeck.c (valid_array_index_p): If flag_old_strings, convert
2256 chars(1) to char and bools(1) to bool before index checking.
2258 Sun Mar 26 22:42:39 1995 Per Bothner <bothner@cygnus.com>
2260 * ch-tree.h (struct module): Added next module field.
2261 * decl.c (first_mdoule, next_module): New global variables.
2262 (switch_to_pass_2): Re-initialize next_module.
2263 (push_module): In pass 2, reuse the same module objects from pass 1.
2265 * decl.c (declare_predefined_file): Set DECL_IN_SYSTEM_HEADER.
2267 * typeck.c (valid_array_index_p): Do range check on original index,
2268 before we convert to domain type.
2270 Fri Mar 24 11:43:39 1995 Per Bothner <bothner@kalessin.cygnus.com>
2272 * parse.c (parse_fixed_field): New function.
2273 (parse_variant_field_list): New function replaces parse_simple_fields.
2274 (parse_variant_alternative, parse_field): Update to use new functions.
2275 (parse_field): Error message if neither CASE nor NAME.
2277 * actions.c (check_non_null): New function - checks for NULL pointers.
2278 * ch-tree.h (check_non_null): New declaration.
2279 * tasking.c (expand_send_signal): Call check_non_null.
2280 * expr.c (build_chill_indirect_ref, build_chill_function_call): Same.
2281 * lex.h (enum rid): Add RID_EMPTY.
2282 * lex.c (init_lex): Initialize ridpointers[RID_EMPTY].
2284 * lex.c (read_directive): Remove 2 calls of to_global_binding_level
2286 Wed Mar 22 16:36:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
2288 * tasking.c (tasking_list): Change to chain of TREE_VEcs, rather than
2289 chain of (nested) TREE_LIST nodes.
2290 (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2291 TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE): New macros.
2292 (tasking_setup, tasking_registry, add_taskstuff_to_list): Use them.
2294 * ch-tree.h (C_TYPE_FIELDS_READONLY): Rename to TYPE_FIELDS_READONLY.
2295 (TYPE_READONLY_PROPERTY): New macro, to match Z.200 concept.
2296 * typeck.c (build_chill_modify_expr): Don't check for read-only-ness,
2297 since it is redundant for chill_expand_assignment and breaks
2298 reach-bound initialization in do_decl.
2299 (my_build_array_ref): Simplify by using TYPE_READONLY_PROPERTY.
2300 (layout_chill_array_type): Set TYPE_FIELDS_READONLY if appropriate.
2301 * actions.c (chill_expand_assignment): Check TYPE_READONLY_PROPERTY
2302 instead of TREE_READONLY of the target's type.
2303 * expr.c (build_chill_function_call): Likewise.
2304 * inout.c (build_chill_readtext): Likewise.
2305 * decl.c (do_decl): Likewise, to check if init is required.
2307 * typeck.c (build_chill_bitref): Removed unused RANGE_EXPR hack.
2309 Wed Mar 22 07:52:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
2311 * tasking.c (build_start_process): Get a unique identifier for
2312 the start arguments.
2314 Tue Mar 21 07:36:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
2316 * expr.c (fold_set_expr): At label build_result: Add setting unused
2317 bits to 0. This is the same as the runtime library does.
2319 * parse.c (expect): Function returns now int, 0, if the expected
2320 token was not got, 1 when it was found.
2321 (parse_synonym_definition): In case of syntax error (missing =),
2322 set expr to NULL_TREE and mode to error_mark to avoid subsequent
2325 * chill.texi: Add chapter about differences to Z.200/1988.
2327 Mon Mar 20 18:01:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2329 * lang.c (chill_print_error_function): New function, to report
2330 module name if not inside a function.
2331 (lang_init): Set print_error_function to chill_print_error_function.
2333 * tasking.c (max_queue_size, buffer_element_mode): Cleanup
2334 to remove unreachable code.
2336 * grant.c (chill_finish_compile): Avoid doing a lookup_name
2337 to find init function (which got broken by recent nesting re-org).
2339 * decl.c (poplevel): Push and pop function context around
2340 call to output_inline_function (as done for C and C++).
2342 Thu Mar 16 17:56:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2344 * parse.c (parse_pass_1_2): If unknown top-level token, skip pass 2.
2346 Wed Mar 8 13:54:33 1995 Doug Evans <dje@canuck.cygnus.com>
2348 * Make-lang.in (chill-runtime): Temporarily disable building of
2349 runtime libraries for cross compilers.
2351 Mon Mar 6 23:36:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2353 * parse.c, decl.c: Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2355 * configure: Merge in tolerance for new flags (e.g. --x-libraries).
2357 Sat Mar 4 15:47:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2359 * expr.c (build_chill_arrow_expr): Error if pass == 1.
2361 Thu Mar 2 19:28:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2363 * decl.c (do_decl): Setting seen_action must be done in pass 1.
2364 (save_decl): Don't set DECL_CONTEXT to global_function_decl.
2365 (start_chill_function): Simplify due to above change.
2367 * parse.c (parse_case_label): Hack to distinguish (ELSE) from (*).
2368 * grant.c (decode_constant): Emit ELSE in case label.
2370 * parse.c (serious_errors): New global variable.
2371 * parse.c (to_global_binding_level): Set serious_errors.
2372 (parse_pass_1_2): Exit after pass 1 if serious_errors > 0.
2373 * lex.c (readstring): Recover from unterminstaed control sequence.
2375 Tue Feb 28 17:08:08 1995 Per Bothner <bothner@kalessin.cygnus.com>
2377 Re-write of module-level actions. No longer generate a module
2378 function for module-level actions. Instead, put them inside
2379 a new global dummy function. Nest everything logically inside it.
2381 * lex.h, grant.c (chill_module_name): Removed declaration.
2382 * grant.c (write_spec_module): Instead use current_module->name.
2383 * grant.c (chill_start_module_code, chill_finish_module_code):
2385 * grant.c (chill_finish_compile): Make rtl for global function.
2387 * actions,c (push_action): Don't call chill_start_module_code.
2388 * expr.c (build_chill_function_call, build_generalized_call):
2390 * parse.c (INIT_ACTION): Likewise.
2392 * parse.c (seen_action): New variable.
2393 * parse.c (end_function): Always call pop_chill_function_context.
2394 (parse_procedure_definition): Always call push_chill_function_context.
2395 (parse_modulion): Parse optional handler.
2396 (parse_modulion, parse_spec_module): Do find_granted_decls.
2397 (parse_action): Set seen_action if global and a real action.
2398 ([arse_program): Call start_outer_function and finish_outer_function.
2400 * ch-tree.h: Appropriate updates.
2402 * tasking.c (generate_tasking_code_variable): Make it lifetime-bound.
2403 (build_process_header): Always push_chill_function_context;
2404 we are now always nested.
2405 (build_process_wrapper): Always pop_chill_function_context.
2407 * tasking.c (build_start_process): Only expand_start_bindings and
2408 expand_end_bindings if pass 2.
2410 * decl.c (global_function_decl): New variable.
2411 (do_decl): Implement reach-bound initialization of static variables.
2412 (start_chill_function): Set DECL_CONTEXT to NULL if
2413 it would be global_function_decl (so as to not confuse gcc backend).
2414 (start_chill_function, finish_chill_function): If compiling
2415 global_function_decl in pass 2 and !seen_action, suppress it.
2416 (set_module_name): New function.
2417 (global_bindings_p): Re-defined to check against global_function_decl.
2418 (start_outer_function, finish_outer_function): New functions.
2420 Tue Feb 28 16:00:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
2422 * typeck.c (build_chill_modify_expr): Inline logic from
2423 chill_expand_array_assignment,
2424 * actions.c (chill_expand_array_assignment): Removed.
2425 (chill_expand_assignment): Remove call to removed function.
2427 * lex.c (reinit_parse_for_function): Removed empty unused function.
2428 * decl.c (start_chill_function): Don't call removed function.
2430 Tue Feb 28 00:29:51 1995 Per Bothner <bothner@cygnus.com>
2432 * configure: Merge in code for calculating host, build, and
2433 target and canon_{host,build,target} from ../configure.
2434 Fix calculation of mainsrcdir. Host canon_* variables
2435 to merge in build-make (as in ../configure).
2437 Sun Feb 26 18:59:02 1995 Per Bothner <bothner@kalessin.cygnus.com>
2439 * typeck.c (expand_constant_to_buffer): Use new function
2440 get_set_constructor_bytes.
2442 Tue Feb 21 01:41:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
2444 * inout.c (build_chill_writetext): Add processing of
2445 conditional expressions in argument list.
2447 * parse.c (parse_opt_name_string): Print error message only
2450 * chill.texi: Add chapter about compiler directives.
2452 Tue Feb 14 16:45:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2454 * decl.c (start_chill_function): Set FUNCTION_NEEDS_STATIC_CHAIN
2457 * decl.c (decl_temp1): Make lifetime_bound iff static.
2459 Fri Feb 3 04:30:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
2461 * grant.c (really_grant_this, search_in_list): New static
2462 functions to determine if a decl should be written to
2464 (write_spec_module): Add call to really_grant_this.
2466 Fri Jan 27 00:06:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2468 * actions.c (check_expression): Apply Per's patch.
2469 (chill_expand_result): New argument to indicate if we come
2470 from a RETURN or RESULT action. Change various error messages.
2472 * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2473 New argument for chill_expand_result.
2475 * chill.in: In case of -fgrant-only, clear library, libpath and
2476 startfile to avoid warnings from gcc.
2478 * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2480 * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2482 * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2483 and subsequent SEIZEs to grant file, if the seize file is
2486 * lex.c (read_directive): Process new compiler directive
2487 USE_SEIZE_FILE_RESTRICTED.
2488 (handle_use_seizefile_directive): Same as above.
2489 (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2490 if this seize file is used restricted.
2492 * parse.c (parse_action, case RETURN): Change RETURN expr action
2493 to RESULT expr; RETURN. This enables range checking and
2494 exception delivery in case of rangefail.
2496 Tue Jan 17 07:38:27 1995 Wilfried Moser <moser@rtl.cygnus.com>
2498 * decl.c (init_decl_processing): Add definition of
2499 library function __inbitstring (see expr.c).
2501 * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2502 __inpowerset fir POWERSET's and function __inbitstring for
2503 BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2504 in case of BITSTRING's we have to do one.
2505 (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2506 statement with no effect).
2508 Fri Jan 13 13:35:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2510 * actions.c (check_expression): Simplify result.
2512 * ch-tree.h (SET_CH_NOVELTY_NONNIL): New macro.
2513 * expr.c, timing.c, typeck.c: Use SET_CH_NOVELTY_NONNIL.
2515 * typeck.c (valid_array_index_p), ch-tree.h: Change interface
2516 to return modified index expression. Call error if out-of-range.
2517 * actions.c, typeck.c: Modify
2518 for new valid_array_index_p interface.
2520 * actions.c (build_chill_slice): Copy novelty of index type.
2522 Fri Jan 13 13:04:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
2524 * convert.c (digest_array_tuple): Allow mode name in array
2525 tuple label. Print error message instead of aborting.
2527 * parse.c (parse_body): Error message only if pass 1.
2529 * decl.c (check_identifier), ch-tree.h: Remove. Unused.
2531 Wed Jan 11 14:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
2533 * parse.c (parse_modulion): Undo yesterday's change (to allow
2534 an ON-handler to follow) until we re-implement module.
2536 Tue Jan 10 17:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
2538 * loop.c (declare_temps): Remove bogus prohibition against
2539 iterating over BOOL arrays.
2541 * parse.c (parse_semi_colon): Make it a pedwarn (instead of an
2542 error) if a semi-colon is missing before an END.
2543 (parse_action): Likewise.
2544 * parse.c (parse_modulion): Allow an ON-handler to follow.
2546 * parse.c (parse_set_mode): Use parse_expression to get
2547 values for number set elements.
2549 * expr.c (build_compare_expr): Make sure result has
2550 CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2551 (finish_chill_binary_op): Likewise for IN_EXPR.
2553 Tue Jan 10 04:46:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
2555 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2556 checking the argument.
2557 (chill_expand_assignment): Take care of a newmoded dst_offset
2558 when calling __pscpy and a newmoded from_pos when calling
2561 * expr.c (chill_expand_expr): When calling __psslice take care
2562 of a newmoded min_value.
2564 * parse.c (parse_name_string): Print error message only in
2567 Tue Jan 3 19:56:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
2569 * typeck.c (build_chill_array_ref_1): Use varying_to_slice
2570 instead of building a VRAY_ARRAY_REF node.
2571 * ch-tree.def (VARY_ARRAY_REF): Removed.
2572 * actions.c (chill_expand_assignment): Will never call
2573 expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
2574 (expand_assignment_to_varying_array): Removed.
2575 * convert.c (convert): Remove unneeded VARY_ARRAY_REF support.
2576 * expr.c (chill_expand_expr): Likewise.
2578 Tue Jan 3 19:50:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
2580 * parse.c (parse_iteration): Set step_value to NULL if missing.
2581 * loop.c (ITER_TYPE): Remove DO_RANGE.
2582 (build_loop_iterator): Implement old DO_RANGE in terms of DO_STEP.
2583 (begin_loop_scope): Don't return on error.
2584 (build_loop_iterator): Calculate loop variable type using
2585 resulting classes (as in Z200), rather than precision.
2587 * loop.c (initialzie_iter_var, bottom_loop_end_check): For DO_STEP,
2588 make iter_var one less to avoid overflow.
2589 * loop.c (build_loop_iterator): If !flag_local_loop_counter,
2590 declare a new variable if needed, as allowed by Z200 (1984).
2592 * ch-tree.h (ch_class): Add typedef.
2594 * typeck.c (chill_resulting_class): New function.
2595 (chill_root_resulting_class): Remove.
2596 * ch-tree.h (CH_RESULTING_CLASS): New macro.
2597 (CH_ROOT_RESULTING_CLASS): Re-implement using CH_RESULTING_CLASS.
2599 Tue Jan 3 19:36:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
2601 * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
2602 Change interface to take IDENTIFIER tree node, rather char char*.
2603 (check_expression): Change (simplify) callers appropriately.
2604 * parse.c (parse_action), typeck.c (valid_array_index_p): Likewise.
2605 * lex.h (enum rid): Add RID_ASSERTFAIL.
2606 * lex.c (init_lex): Enter RID_ASSERTFAIL.
2607 * parse.c (parse_action case ASSERT): Fix thinko TRUTH_ANDIF_EXPR
2608 to TRUTH_ORIF_EXPR. Use RID_ASSERTFAIL.
2610 * typeck.c (discrete_type_p): Re-implement using INTEGRAL_TYPE_P.
2612 Tue Jan 3 19:20:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2614 Move checking for modeless tuples in invalid contexts from parser
2615 to semantic function check_have_mode (for better error recovery):
2616 * expr.c (check_have_mode), ch-tree.h: New function.
2617 * satisfy.c (safe_satisfy_decl): Use check_have_mode.
2618 * expr.c (build_compare_expr, finish_chill_binary_op,
2619 finish_chill_unary_op): Likewise.
2620 * parse.c (parse_primval): Don't complain about mode-less tuple here.
2622 Tue Jan 3 17:36:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
2624 * expr.c (varying_to_slice): Support varying arrays whose
2625 lower bound is non-zero.
2627 * parse.c (parse_body): Allow (with warning) definition to
2630 * expr.c (check_case_selector), ch-tree.h: New function.
2631 (chill_expand_case_expr): Use it.
2632 * parse.c (parse_case_action): Likewise.
2634 Fri Dec 23 00:47:54 1994 Wilfried Moser <moser@rtl.cygnus.com>
2636 * actions.c (chill_expand_return): Change error message.
2638 * ch-tree.h: Change prototypes of do_decl and do_decls.
2640 * convert.c (convert): Add missing initialisation of
2641 variable orig_e_constant.
2643 * decl.c: Change all calls to do_decl.
2644 (maybe_static): New function to process the ALL_STATIC_ON/OFF
2645 compiler directives.
2646 (do_decls): New argument.
2647 (do_decl): New argument and process reachbound and lifetime
2648 bound initialisation.
2650 * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
2653 * grant.c: Change all calls to do_decl.
2655 * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
2658 * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
2661 * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
2663 * tasking.c: Change all calls to do_decl.
2665 Mon Dec 19 23:13:58 1994 Wilfried Moser <moser@rtl.cygnus.com>
2667 * parse.c (parse_procedure_definition): Save chill_at_module_level
2668 flag, set ot to 0 and restore it at the end of function.
2669 A sequence BEGIN x: PROC () RETURN; END x; END; at module level
2670 have produced an error.
2672 * expr.c (build_chill_repetition_op): Fix typo in error message.
2674 Tue Dec 13 12:26:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2676 * actions.c (expand_assignment_to_varying_array): Fix thinko:
2677 build_chill_array_ref -> build_chill_array_ref_1.
2679 Sun Dec 11 23:04:27 1994 Per Bothner <bothner@rtl.cygnus.com>
2681 * actions.c (chill_expand_assignment): Simplify the lhs if it is
2682 a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
2684 Thu Dec 8 13:45:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2686 * loop.c, ch-tree.h (build_loop_iterator): Fix to return void.
2687 If start_exp is ERROR_MARK, return.
2688 * expr.c (build_generalized_call): More robust on syntax errors.
2690 Tue Dec 6 02:33:23 1994 Wilfried Moser <moser@rtl.cygnus.com>
2692 * inout.c (build_chill_readtext): In case of reading a SET mode
2693 pass ignore_case flag to runtime library.
2695 Tue Nov 29 14:41:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2697 * parse.c (parse_receive_case_action): Print error only if pass==1.
2698 * decl.c (push_scope_decls): Use error_with_file_and_line
2699 to get correct line number of SEIZE.
2701 Mon Nov 28 16:59:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
2703 * expr.c (resolve_component_ref): Call fold on result.
2705 * expr.c (resolve_component_ref): Use check_expression.
2706 * actions.c (chill_convert_for_assignment): Likewise.
2707 * actions.c (cond_exception), ch-tree.h: Removed.
2708 * actions.c (check_expression): First part of COMPOUND_EXPR
2709 should be boolean_type_node; void_type_node loses in SAVE_EXPRs.
2711 * actions.c (chill_convert_for_assignment):
2712 Check string_assignment_condition for varying strings too.
2714 * typeck.c (build_chill_cast): If the types have different sizes,
2715 don't allow nondiscrete->discrete conversion, and only allow
2716 discrete->nondiscrete if input expression is constant.
2718 * typeck.c (chill_similar): Don't use losing array_type_nelts.
2720 * ch-tree.h (ELSE_VARIANT_NAME): New.
2721 * convert.c, decl.c, grant.c: Use ELSE_VARIANT_NAME.
2722 * decl.c (handle_one_level): Recurse on ELSE_VARIANT_NAME too.
2724 Reduce dependencies on ../c-typeck.c:
2725 * expr.c: Fix c_expand_start_case -> expand_start_case.
2726 Fix c_expand_expr_stmt -> expand_expr_stmt.
2727 (build_chill_indirect_ref): Call convert instead of build_c_cast.
2728 * loop.c (bottom_loop_end_check): Don't use build_modify_statement.
2729 * expr.c, except.c, typeck.c: Don't call default_conversion.
2730 * typeck.c (string_assignment_condition): Fix build_component_ref ->
2731 build_chill_component_ref.
2732 * decl.c: Fix build_indirect_ref -> build_chill_indirect_ref (twice).
2733 * decl.c: Don't set unused constructor_no_implicit (from c-typeck.c).
2734 * decl.c: Don't call declare_function_name.
2736 * parse.c: Don't always keep a valid token in terminal_buffer[0].
2737 The extra look-ahead may have made the parser faster, but caused
2738 some problems synchronizing with the lexer. Specifically:
2739 (PEEK_TOKEN): Now calls an optimized variant of peek_token_(0).
2740 (next_token_): Don't call peek_token_. Renamed to forward_token_.
2741 (NEXT_TOKEN): Renamed to FORWARD_TOKEN.
2742 (parse_program): Don't call yylex yet.
2744 * parse.c (parse_action): Re-do case ASSERT.
2745 Fix c_expand_expr_stmt -> expand_expr_stmt.
2747 * lex.l: Re-written to not use [f]lex, and renamed to ...
2748 * lex.c: ... new lexer.
2749 * Makefile.in, Make-lang.in: Remove [f]lex crud.
2751 * lex.h (enum rid), lex.c (init_lex): Added RID_ELSE.
2753 Tue Nov 22 15:19:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2755 * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
2757 Fri Nov 18 14:27:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
2759 * parse.c (parse_structure_node): Simpler, and more robust.
2761 Wed Nov 16 14:40:52 1994 Ian Lance Taylor (ian@cygnus.com)
2763 * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
2764 not at compile time.
2765 * typeck.c (expand_constant_to_buffer): Likewise.
2766 extract_constant_from_buffer): Likewise.
2768 Tue Nov 15 14:41:53 1994 Per Bothner <bothner@kalessin.cygnus.com>
2770 * convert.c (convert): Call build_chill_range_type rather than
2771 build_index_2_type (which has obstack and canonicalization problems).
2772 * expr.c (build_chill_pred_or_succ): Convert expr to root class
2774 * loop.c (declare_temps): If location iterated over is not
2775 a location, make a temporary variable for it.
2777 Mon Nov 14 16:33:47 1994 Per Bothner <bothner@kalessin.cygnus.com>
2779 * typeck.c, ch-tree.h (chill_equivalent): Change to return
2780 a tree (a Boolean expression). Also, add some missing tests.
2781 * ch-tree.h (CH_EQUIVALENT): Modify accordingly.
2783 * expr.c (chill_expand_expr case CONCAT_EXPR): When the 2nd operand
2784 is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
2785 Also, replace MEM (which is not a mode) by Pmode.
2787 * ch-tree.h, typeck.c (chill_comptypes): Removed.
2788 * convert.c (convert): Remove calls to chill_comptypes.
2790 Fri Nov 11 13:06:29 1994 Wilfried Moser (moser@rtl.cygnus.com)
2792 * grant.c (write_grant_file): Call pfatal_with_name instead
2793 of abort when something goes wrong when opening or writing
2795 unlink grant file if something goes wrong during writing
2798 * Make-lang.in (CHILL_SRCS): Add timing.c
2800 * ch-tree.h: Add prototype for chill_tasking_type_node.
2801 * lex.l (equal_number): Use chill_tasking_type_node instead of
2802 integer_type_node for converting the result.
2803 Print error messages in pass 2, in pass 1 no error will be
2805 * tasking.c: New variable chill_tasking_type_node for all
2806 generated tasking related variables.
2807 Use chill_tasking_type_node instead of chill_unsigned_type_node.
2809 * expr.c (chill_expand_expr): Apply Per's change.
2811 * expr.c (build_chill_sizeof): In case of error just
2812 return error_makr_node.
2813 Set CH_DERIVED_FLAG at the result.
2815 * timing.c (build_after_timeout_start): Clear the the timeout
2816 level to know if we are in the action part of AFTER statement
2817 or in the TIMEOUT part.
2819 * typeck.c (build_chill_slice_with_length): Convert the class
2820 of the result to class of first value in expression.
2822 * inout.c (build_chill_writetext, build_chill_readtext): Use stack
2823 temporary variables for the iolist so that they can get reused in
2824 subsequent calls. Emit code immediately instead of building a
2827 Fri Nov 4 12:00:54 1994 Per Bothner <bothner@kalessin.cygnus.com>
2829 * expr.c (build_chill_function_call): Don't set TREE_TYPE
2830 of assignment to void_type_node - it confuses save_expr.
2831 * decl.c (init_decl_processing): Removed unused code.
2832 * parse.c: Changes to avoid warnings.
2834 * grant.c (chill_finish_module_code): Minor simplification.
2835 * lex.l (readstring): Set *len to 1 on error.
2837 Thu Nov 3 01:05:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2839 * grant.c (decode_decl): Add granting of BASED declarations.
2841 Wed Nov 2 12:14:31 1994 Per Bothner <bothner@kalessin.cygnus.com>
2843 * expr.c (build_chill_lower_or_upper): Take more care to
2844 ensure result has the right class.
2845 (build_chill_pred_or_succ): Be more careful to get the right
2846 resulting class, and check bounds using *root* mode.
2848 * typeck.c (build_chill_slice_with_range): Check that array
2849 really is an array or string.
2850 (build_chill_slice_with_length): Likewise.
2852 * typeck.c (extract_constant_from_buffer): Fix calculation of
2853 SET_TYPE size. (Cannot depend on 1-byte TYPE_PRECISION field.)
2855 Wed Nov 2 05:33:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2857 * Make-lang.in: Change version of compiler.
2859 * ch-tree.h: Add new prototypes.
2861 * decl.c (init_decl_processing): Remove timing related
2862 initialisations. Add call to timing_init.
2864 * parse.c (parse_action): Process AFTER action.
2866 * tasking.c (build_receive_case_start,
2867 build_receive_signal_case_label, build_receive_buffer_case_label,
2868 build_delay_case_start, build_delay_action, expand_send_buffer):
2869 Add processing of timesupervision.
2870 (tasking_init): Change definitions of runtime functions.
2872 * timing.c (timing_init): New function for initialisation of
2873 timing related stuff.
2874 (build_cycle_start, build_cycle_end): Changed due to
2875 implementation of timesupervision.
2876 (build_after_start, build_after_timeout_start, build_after_end):
2877 Implement the AFTER action.
2878 (build_timeout_preface, build_timesupervised_call): New functions
2879 to handle timesupervision in case of blocking system calls (i.e.
2880 SEND buffer action, RECEIVE CASE action etc.).
2882 Thu Oct 27 12:50:24 1994 Per Bothner <bothner@kalessin.cygnus.com>
2884 * expr.c (build_chill_repetition_op): Fix repeating all-zero
2885 bitstring with orig_len!=1. Also, call build_boring_bitstring
2886 if original string was all ones, using one range. Also:
2887 Cannot use one-bit TYPE_PRECISION to get bitstring length.
2889 Tue Oct 25 14:11:07 1994 Per Bothner <bothner@kalessin.cygnus.com>
2891 * convert.c (convert): When converting BOOL constant to
2892 bit-string, bit_one_node and bit_zero_node were switched.
2893 * actions.c (chill_expand_assignment): Use force_addr_of,
2894 not build_chill_addr_expr - latter yields bogus error.
2896 Fri Oct 21 14:26:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
2898 * expr.c (build_chill_indirect_ref): Check for POINTER_TYPE (only)
2899 after converting from REFERENCE_TYPE.
2900 * expr.c (build_compare_expr): Convert to common mode *after*
2901 we've checked compatibility.
2903 Fri Oct 21 02:29:15 1994 Wilfried Moser (moser@rtl.cygnus.com)
2905 * lex.l (check_newline): Use getc instead of getlc to read
2906 the filename in a # line name directive to avoid possibly
2907 downcaseing of a filename.
2909 Thu Oct 20 05:37:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2911 * expr.c (build_chill_indirect_ref): Add check for really
2912 dereferencing a pointer.
2914 * convert.c (convert): Take care of TREE_CONSTANT of a
2915 SYNONYM having mode ARRAY () VARYING something.
2917 Mon Oct 17 02:30:38 1994 Wilfried Moser (moser@rtl.cygnus.com)
2919 * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
2920 boolean_true_node and boolean_false_node. TRUE and FALSE have
2921 the BOOL derived class.
2923 * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
2924 of NUM. NUM delivers the INT derived class.
2926 * grant.c (write_spec_module): Add writing of
2927 <> USE_SEIZE_FILE "x.grt" <>
2929 to generated grant file.
2931 Thu Oct 13 14:45:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2933 * convert.c (convert_from_reference): Make non-static.
2934 * ch-tree.h (convert_from_reference): Add prototype.
2935 * parse.c (parse_name): If the decl is a REFERENCE_TYPE, just
2936 call convert_from_reference - and not a full-scale convert.
2938 * convert.c (convert): Only call digest_array_tuple if ARRAY_TYPE.
2939 * typeck.c (chill_expand_tuple): Print error if type is
2940 neither array, struct, or powerset.
2942 * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
2943 UNDEFINED_EXPR): Call preserve_temp_slots for temp targets.
2944 If target is not MEM, make temp (even if not REG) to simplify
2945 - and don't copy original target to temp target first. (Not needed.)
2947 * lang.c (maybe_objc_comptypes): Just return -1.
2949 Wed Oct 12 12:24:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2951 * tasking.c (tasking_setup): Fix breakage from previous check-in.
2953 Tue Oct 11 16:00:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2955 * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
2956 timing.c, typeck.c: Change build1 (ADDR_EXPR, ptr_type_node, XX)
2957 to force_addr_of (XX). Add call to mark_addressable where needed
2958 for other calls to build 1 (ADDR_EXPR, TYPE, XX).
2960 Thu Oct 6 06:36:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
2962 * inout.c (build_chill_writetext): Remove processing
2965 Tue Oct 4 14:08:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2967 * convert.c (convert): If flag_old_strings, support converting
2968 CHARS(1) and BOOLS(1) to INT.
2970 Fri Sep 30 01:44:51 1994 Wilfried Moser (moser@rtl.cygnus.com)
2972 * inout.c (build_chill_readtext): Add check for item is
2973 referable and not READonly. Add processing of BITSTRINGs.
2975 Mon Sep 26 16:19:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
2977 * expr.c (build_chill_descr): Add missing call to mark_addressable.
2978 * loop.c (toop_loop_end_check): Replace build1 (ADDR_EXPR ...)
2979 with call to force_addr_of (which calls mark_addressable).
2980 * expr.c (build_chill_descr, build_chill_inttime): Likewise.
2981 * inout.c (build_chill_writetext): Likewise.
2983 Mon Sep 26 05:19:21 1994 Wilfried Moser (moser@rtl.cygnus.com)
2985 * grant.c (print_struct): Move printing of VARYING from
2987 * grant.c (grant_array_type): ... to here.
2989 Mon Sep 26 00:09:08 1994 Per Bothner (bothner@kalessin.cygnus.com)
2991 * ch-tree.h (force_addr_of): New prototype.
2992 * expr.c (force_addr_of): Call mark_addressable. Make non-static.
2993 * inout.c (build_chill_writetext): Use force_addr_of.
2995 Sun Sep 25 23:41:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2997 * except.c (push_handler), actions.h: Removed unused parameter.
2998 * actions.c (push_action): Remove unused paramater.
2999 * parse.c, actions.c: Remove no-longer-used parameter to
3000 calls to push_handler and push_action.
3002 * decl.c (push_extern_process): Only build types in pass 1.
3003 * tasking.c (build_process_header): Only build types in pass 1.
3004 * tasking.c (build_start_process): Do pushdecl/popdecl etc
3005 even after an error (to maintain consistency between passes).
3007 * convert.c (convert_to_boolean): Allow any integral input type.
3009 Sat Sep 24 22:47:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3011 * typeck.c (extract_constant_from_buffer): Add (somewhat kludgey)
3012 support for UNION_TYPE. (Patch from Wilfried.)
3013 Also, reverse RECORD_TYPE constructor list.
3015 Fri Sep 23 19:06:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
3017 * expr.c (build_concat_expr): Fix calculation of result_size.
3019 Wed Sep 21 00:54:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
3021 Give up on trying to use the cleanup mechanism in stmt.c to
3022 make sure the exception handler get unlinked on goto/exit/return.
3023 Instead, do it ourselves. (Much simpler.)
3024 * except.c, ch-tree.h (action_nesting_level): New global.
3025 * ch-tree.h (DECL_ACTION_NESTING_LEVEL): New macro.
3026 * decl.c (define_label): Set DECL_ACTION_NESTING_LEVEL.
3027 * except.c (expand_goto_except_cleanup): New function.
3028 (cleanup_chain): New variable.
3029 (push_handler, pop_handler): Adjust action_nesting_level.
3030 (emit_setup_handler): Push cleanup.
3031 (chill_finish_on): Pop cleanup.
3032 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
3033 Call expand_goto_except_cleanup.
3034 * parse.c (parse_action): Before RETURN, call
3035 expand_goto_except_cleanup.
3037 Mon Sep 19 00:59:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3039 * lex.l (equal_number): Make sure converted synonym
3040 is on permanent obstack.
3041 * typeck.c (extract_constant_from_buffer): Fix INTEGER_TYPE
3042 loop to traverse in big-endian order.
3044 Sat Sep 17 20:48:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
3046 * typeck.c (build_chill_cast): Call mark_addressable.
3047 * expr.c (build_chill_function_call): Call mark_addressable.
3049 Thu Sep 15 23:47:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
3051 * typeck.c (expand_constant_to_buffer): Fix an endian-ness
3052 problem for INTEGER_CST.
3053 (extract_constant_from_buffer): Likewise.
3055 Thu Sep 15 22:59:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3057 * decl.c (pushlevel): Do different things depending on
3059 * decl.c, parse.c, tasking.c: Change argument to to pushlevel to 1.
3060 * actions.c (push_action): Take new parameter.
3061 * except.c (push_handler): Likewise.
3062 * parse.c: Change calls to push_action and push_handler.
3063 * loop.c (begin_loop_scope): Always call expand_start_bindings.
3064 * loop.c (end_loop_scope): Always call expand_end_bindings.
3065 * except.c (emit_setup_handler): Add a cleanup to
3066 unlink from exception stack if we return/exit/goto from here.
3067 * loop.c (begin_loop_scope): Move pushlevel from here ...
3068 * parse.c (parse_do_action): ... to here.
3070 Clean up do-decl interface (for decl_temp1).
3071 * parse.c (parse_loc_declaration): If global_bindings_p (),
3073 * decl.c (do_decl): Don't test global_bindings_p ().
3075 * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3077 (struct scope::keep, scope::keep_if_subblocks): Likewise.
3078 (keep_next_level): Likewise.
3079 (kept_level_p, pushlevel, poplevel): Simplify.
3081 * decl.c (init_decl_processing): Don't call init_iterators.
3082 * Makefile.in (C_OBJS): Don't get ../c-iterator.o - not needed.
3084 Thu Sep 15 05:54:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3086 * lex.l (readstring): Add processing of control sequence
3087 in character string literals. The granting mechanism writes
3088 this to grant files.
3090 Tue Sep 13 06:19:42 1994 Wilfried Moser (moser@rtl.cygnus.com)
3092 * expr.c (compare_records): In case of -fpack do always
3093 a memcmp instead of comparing each field of the
3094 structure. If the structure is a variant structure,
3097 Mon Sep 12 13:15:09 1994 Per Bothner (bothner@cygnus.com)
3099 * grant.c (write_spec_module): Add cast, to avoid PCC warning.
3100 * grant.c (header_template): Don't use ANSI-specific string
3101 literal concatenation.
3103 Fri Sep 9 01:53:30 1994 Wilfried Moser (moser@rtl.cygnus.com)
3105 * tasking.c (get_process_wrapper_name): New function.
3106 (add_taskstuff_to_list): Add a new argument, which is
3107 the entrypoint of a process.
3108 (build_process_header): Change PROCESS arguments to be
3109 like arguments of a function. There will be a wrapper
3110 which is the real entry point for a PROCESS. This wrapper
3111 is automatically build after a PROCESS definition and gets
3112 as argument a pointer to a structure looking like the
3113 arguments of the PROCESS. This wrapper will call the
3114 PROCESS (see build_process_wrapper).
3115 (build_process_wrapper): New function (see above).
3116 (build_start_process): Change processing of arguments.
3117 (tasking_setup): Add processing of a different entry point
3118 in case of PROCESSes.
3120 * parse.c (parse_process_definition): Add call to
3121 build_process_wrapper.
3122 * parse.c (end_function): Remove the poplevel() call.
3123 build_process_header no longer makes the corresponding
3126 * grant.c (print_proc_tail): Remove special processing
3127 of PROCESSes, they look now like normal functions.
3129 * decl.c (init_decl_processing): Add declaration of memcmp
3132 * ch-tree.h: Add new prototype for build_process_wrapper,
3133 change prototypes for add_taskstuff_to_list and
3134 build_process_header.
3136 * grant.c (write_spec_module): Write GNUCHILL and gcc
3137 version into grant file.
3139 * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3140 GNUCHILL_VERSION to ch/Makefile.
3141 * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3143 * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3144 will get generated every time a new Makefile will get
3146 * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3149 * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3150 to the compiler to avoid generation of an object file.
3152 Thu Sep 8 12:07:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
3154 * convert.c (display_int_cst), ch-tree.h: New function.
3155 * convert.c (digest_array_tuple): Use digest_int_cst to
3156 provide better error messages. Return error_mark_node on error.
3157 * grant.c (decode_const): Simplify by using digest_int_cst.
3158 * grant.c (format_character, find_assoc): Removed.
3160 * decl.c (do_decl): Add missing TREE_CHAIN.
3162 * decl.c (finish_incomplete_decl): Removed.
3163 (init_decl_processing): Don't set incomplete_decl_finalize_hook.
3164 (finish_decl): Remove old C-specific code to deduce size of
3165 array from initialization.
3166 (complete_array_type): Just make it abort.
3168 * except.c (finish_handler_array): Avoid calling C-specific kludge
3169 complete_array_type.
3171 * convert.c (digest_constructor): Rename, and re-write to:
3172 (digest_array_tuple, convert): No longer use the code in
3173 ../c-typeck.c; use a Chill-only implementation (sigh).
3175 * typeck.c (chill_expand_tuple): Remove unneeded call to
3176 complete_array_type.
3178 * expr.c (fold_set_expr), grant.c (decode_constant),
3179 typeck.c (expand_constant_to_buffer): Update name of called
3180 function unpack_set_constructor to get_set_constructor_bits.
3181 * expr.c (powersetlen ): Remove redundant call to convert.
3183 * ch-tree.h (unpack_set_constructor): Removed obsolete declaration.
3185 * inout.c (build_chill_writetext): Handle 64-bit integer literals
3186 by trying to convert them to a smaller type.
3188 * lex.l (convert_number): Always use long long type (possibly
3189 unsigned) to avoid problems with constant folding truncation.
3191 Mon Sep 5 08:08:22 1994 Wilfried Moser (moser@rtl.cygnus.com)
3193 * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3194 Add new prototype (see tasking.c).
3196 * expr.c (build_generalized_call): Add processing of
3197 BUILT_IN_QUEUE_LENGTH.
3199 * tasking.c (build_queue_length): New function.
3201 * tasking.c (tasking_init): Add new external function definition.
3203 Thu Sep 1 15:38:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3205 * lex.l (default_lex): New function. Progress towards
3206 getting rid of [f]lex.
3208 * lex.l (convert_number): Use mul_double and add_double.
3209 Set result type to a reasonable type in which the literal
3210 will fit. Give error message if literal is too big.
3212 * lex.l (equal_number): Switch (temporarily) to permanent obstack.
3214 * typeck.c (build_chill_slice_with_range): Check for empty
3215 slice *after* we have checked for upper/lower limit in range.
3217 * grant.c (decode_mode): Remove unused code. (BOOL and
3218 CHAR ranges are represented as INTEGER_TYPEs.)
3220 * tasking.c (build_process_header): Add missing call to
3221 expand_start_bindings.
3222 * parse.c (end_function): Add missing expand_end_bindings.
3224 Wed Aug 31 17:25:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3226 * decl.c (init_decl_processing): Set set_alignment.
3228 Tue Aug 30 16:40:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
3230 * actions.c (print_missing_cases, check_missing_cases,
3231 BITARRAY_TEST, BITARRAY_SET): New functions and macros,
3232 to check for completeness of case actions and expressions.
3233 * decl.c (c_decode_option, init_decl_processing):
3234 Don't set warn_switch.
3235 * expr.c (chill_expand_case_expr): Call check_missing_cases
3236 instead of check_for_full_enumeration_handling.
3237 * parse.c (parse_case_actions): Call check_missing_cases.
3239 * expr.c (build_chill_binary_op): Remove some dead code.
3240 * expr.c (chill_truthvalue_conversion): Call build_chill_binary_op
3241 instead of build_binary_op.
3242 * ch-tree.h (binary_op_error, build_binary_op): Unused. Removed.
3244 * parse.c (end_function): Use kept_level_p in parameter to
3245 poplevel. This reverts a June 13 change.
3247 Fri Aug 26 11:50:19 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3249 * configure: Ignore --without, as ../configure does.
3251 Wed Aug 24 01:17:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3253 * lex.l: Change rule for decimal numbers to allow identifiers
3254 to start with an underscore (_).
3256 Fri Aug 19 16:38:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3258 * tasking.c (build_receive_signal_case_label): Remove backwards
3259 chill_convert_for_assignment (which converted whatever garbage
3260 was in the *target* to the type of the signal argument!).
3262 Fri Aug 19 07:10:43 1994 Wilfried Moser (moser@rtl.cygnus.com)
3264 * inout.c (build_chill_io_list_type, build_enum_tables),
3265 tasking.c (build_tasking_struct): Temporarily reset
3266 maximum_field_alignment to 0, so that the compiler-built
3267 data structures needed by the RTS can be independent of -fpack.
3269 Thu Aug 18 13:39:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
3271 * typeck.c (build_init_struct): Temporarily reset
3272 maximum_field_alignment to 0, so that the compiler-built
3273 data structures needed by the RTS can be independent of -fpack.
3275 Wed Aug 17 23:48:33 1994 Wilfried Moser (moser@rtl.cygnus.com)
3277 * parse.c (parse_primval, expect, parse_on_exception_list):
3278 Print error message only in pass 2.
3280 Wed Aug 17 13:47:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3282 * decl.c (switch_to_pass_2): Revert June 13 change,
3283 (Don't exit after pass 1 if an error was found.)
3285 * ch-tree.def (SLICE_EXPR): New tree-code.
3286 * typeck.c (build_chill_slice): For building a slice of a
3287 bit-string, just generate a SLICE_EXPR.
3288 * decl.c (init_decl_processing): Declare __pscpy.
3289 * actions.c (chill_expand_assignment): Handle a SLICE_EXPR
3290 on the LHS of assignment, by calling __pscpy.
3291 * expr.c (chill_expand_expr): Handle SLICE_EXPR (as a RHS
3292 value) by using __psslice to copy slice to a temp.
3294 Wed Aug 17 05:52:44 1994 Wilfried Moser (moser@rtl.cygnus.com)
3296 * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3297 * expr.c (build_chill_length): Enable LENGTH built-in to process
3298 Buffers and Events too (Z.200/1992).
3299 * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3300 a linux system the previous version was not able to run.
3301 * tasking.c: Correct processing of infinite buffer- and event-length
3302 to avoid RANGEFAIL warning.
3304 Thu Aug 11 11:46:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3306 * parse.c (parse_if_expression_body): Don't call the C-specific
3307 build_conditional_expr. Just do build_nt (COND_EXPR, ...).
3308 * convert.c (convert): Convert a COND_EXPR by converting
3311 * convert.c (convert): Don't call convert before
3312 convert_to_reference. It's apt to do weird and unneedful things.
3313 * convert.c (convert): If the expression is varying, just call
3314 varying_to_slice, which simplifies quite a bit.
3316 * ch-tree.h (varying_to_slice): Add prototype.
3317 * typeck.c (varying_to_slice): Remove prototype.
3319 * satisfy.c (satisfy): Move case PAREN_EXPR from type 'e'
3322 * except.c (emit_setup_handler): Temporarily reset the
3323 maximum_field_alignment to zero so the compiler's exception
3324 data structures can be compatible with the run-time system,
3325 even when we're compiling with -fpack.
3327 * expr.c (compare_records): Call saved_if_needed on operands.
3329 * expr.c (build_set_expr case NE_EXPR): Don't use __nepowerset
3330 which has been reimplemented to just call __eqpowerset and
3331 invert the result. Inline this new implementation by
3332 handling as EQ_EXPR, and inverting the result.
3333 * decl.c (init_decl_processing): Don't define unused __eqpowerset.
3335 * typeck.c (valid_array_index_p): The TRUTH_ANDIF_EXPR has
3336 type boolean_type_node, not void_type_node. (Fixing this
3337 avoids a crash in the back-end.)
3339 * grant.c (decode_constant): In a CALL_EXPR, if the argument
3340 list is not a TREE_LIST (as in string repetiation), don't
3343 Wed Aug 10 13:13:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3345 * decl.c (proclaim_decl): Use CH_DECL_ENUM to check that a
3346 CONST_DECL is from a SET definition. (This is safer than
3347 checking that the type is ENUMERAL_TYPE, because synonym
3348 definitions may have a NULL TREE_TYPE.)
3349 Also, if we have duplicate enums whose types are identical,
3351 * decl.c (proclaim_decl, pushdecllist, push_scope_decls): Add
3352 an extra 'quiet' parameter, which is true if we're called from
3353 bind_sub_modules. (In that case an error message about duplicated
3354 decls would be repeated later, so suppress it.)
3356 * parse.c (stmt_count): Removed, not used.
3357 (INIT_ACTION): Call emit_line_note only if !ignoring.
3358 (parse_begin_end_block): Do INIT_ACTION even if ignoring.
3360 Fri Aug 5 12:39:11 1994 Per Bothner (bothner@kalessin.cygnus.com)
3362 * parse.c (parse_untyped_expr): Add missing semi-colon.
3364 Thu Aug 4 17:40:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3366 * parse.c (parse_untyped_expr): Fix various problem for the
3367 case that we see a '(': Add missing 'case' keyword.
3368 Only recurse if '(' is followed by 'if', 'case' or '[',
3369 and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3371 * parse.c (parse_send_action): Remove extra nreverse.
3373 Thu Jul 28 04:00:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3375 * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3378 Tue Jul 26 22:48:15 1994 Michael Tiemann (tiemann@blues.cygnus.com)
3380 * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3381 Added a missing call to `require' as well.
3383 Tue Jul 19 10:30:12 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3385 * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3386 the extern declaration in the flex skeleton.
3388 Mon Jul 18 23:06:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3390 * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3391 Check the type of the instance expr using CH_COMPATIBLE,
3392 and not just == instance_type_node. (This allows
3393 the expression to have mode READ INSTANCE).
3394 * tasking.c (build_instance_type): Give instance_type_node
3395 a non-null novelty (i.e. different from a struct).
3396 * tasking.c (build_receive_case_start, build_delay_case_start):
3397 Check that for a location using CH_LOCATION_P.
3399 Mon Jul 18 13:22:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
3401 * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3402 to modify a tree code.
3404 Mon Jul 18 11:24:57 1994 Bill Cox (bill@rtl.cygnus.com)
3406 * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3409 Mon Jul 18 05:40:15 1994 Doug Evans (dje@canuck.cygnus.com)
3411 * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3413 Thu Jul 14 18:37:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3415 * parse.c (parse_send_action): Do tree_cons *before* checking
3418 Mon Jul 11 15:33:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3420 * convert.c (digest_structure_tuple): Don't use convert to
3421 coerce initial value, use chill_convert_for_assignment instead.
3422 (Thus we also get range_checking.)
3424 * expr.c (build_chill_card): Use force_addr_of instead of
3425 build_chill_addr_expr.
3427 * loop.c (build_temporary_variable): Stylistic tweak.
3428 * loop.c (maybe_make_for_temp): Initialize temp using
3429 explicitly, not using assignment. Avoids a problem if
3430 the expression is read-only.
3431 * typeck.c (smash_dummy_type): Always used the saved TYPE_NAME
3432 and CH_NOVELTY_FLAG.
3434 Wed Jul 6 20:12:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3436 * expr.c, ch-tree.h (finish_chill_unary_op): New function,
3437 based on code ripped out of build_chill_unary_op.
3438 (build_chill_unary_op): Call finish_chill_unary_op unless pass==1.
3439 * satisfy.c (satisfy): Call finish_chill_unary_op when needed.
3441 Mon Jun 27 11:29:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3443 * tree.c (save_if_needed), ch-tree.h: New function.
3444 * typeck.c (build_chill_slice_with_range,
3445 build_chill_slice_with_length): Call save_if_neeed on array arg.
3446 * expr.c (varying_to_slice): Re-write to use save_if_needed.
3448 * typeck.c (extract_constant_from_buffer): Handle BOOLEAN_TYPE.
3450 Mon Jun 27 01:11:10 1994 Wilfried Moser (moser@rtl.cygnus.com)
3452 * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3453 that it is always the same, regardless if compiled with -fpack
3456 Tue Jun 14 16:44:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3458 * lex.l (yywrap): Kludge to work around mis-synchronization
3459 between lexer (which read ahead) and parser: Don't emit
3460 (left-over) uze_seizefile directives at the end of file.
3462 * typeck.c (build_chill_array_ref): Allow the derived
3463 array indexing syntax for arrays of bit strings.
3464 Add a comment explaining why.
3466 * typeck.c, ch-tree.h (string_assignment_condition): Change
3467 the interface. Return a boolean expression (which can be
3468 used in a conditional at run-time); never expand anything.
3470 * actions.c (chill_convert_for_assignment): Check
3471 string_assignment_condition here, rather than in callers.
3472 * actions.c (chill_expand_assignment): Don't need to check
3473 string_assignment_condition here.
3474 * expr.c (build_chill_function_call): Likewise.
3475 * satisfy.c (safe_satisfy_decl): Update accordingly.
3476 * decl.c (do_decl): Simplify testing and conversion by
3477 deferring everything to chill_convert_for_assignment.
3479 * parse.c: Combine the two variables 'ignore_exprs' and
3480 'ignore_actions' into one variable called 'ignoring'.
3481 * ch-tree.h: Add 'extern int ignoring'.
3482 * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3483 Rename ignore_actions and ignore_exprs to ignoring.
3484 Remove unneeded extern declarations.
3485 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3486 build_chill_arrow_expr, build_generalized_call, build_delay_action,
3487 build_buffer_type, build_event_type): I changed my mind. It is
3488 cleaner to check for 'ignoring' in the parser, rather than here.
3489 * parse.c (parse_action, parse_primval, parse_opt_mode):
3490 Therefore we must check for ignoring here.
3491 * parse.c (parse_loc_declaration): Set ignoring in pass 2
3492 when parsing the mode.
3494 * tasking.c (generate_tasking_code_variable): Do arithmetic
3495 on signal_code etc using unsigned rather than signed shorts.
3497 * grant.c (static char* current_grant_modename): Removed.
3498 * grant.c (decode_decl case CONST_DECL): Remove error message.
3500 * Make-lang.in (CHILL_SRCS): Add $(srcdir)/ch/parse.c.
3501 * Makefile.in: Fix dependencies for parse.o.
3502 Remove some duplicate dependencies for $(TREE_H).
3504 Mon Jun 13 14:25:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3506 * typeck.c (build_chill_cast): Allow a value cast between
3507 non-discrete object of the same size, but with a pedwarn.
3508 * typeck.c (bit_string_assignment_condition,
3509 char_string_assignment_condition): Merge near-duplicate functions
3510 and place the code in string_assignment_condition.
3512 * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3514 * decl.c (start_chill_function, finish_chill_function): Make
3515 parameter level have same nesting level as body, as required by Z200.
3516 * decl.c (switch_to_pass_2): Always exit if an error has been found.
3517 * decl.c (pop_module): Copy DECL_SEIZEFILE to a new ALIAS_DECL
3518 generated from GRANT ALL.
3519 * decl.c (lookup_name_for_seizing): Don't seize from
3520 the nesting level of builtins (predefined objects).
3521 * decl.c (lookup_name_for_seizing): Make more robust on error.
3523 * decl.c (start_chill_function): MAKE DECL_NAME (chill_result_decl)
3524 be 'RESULT' (or 'result'). This makes it more accessible from gdb.
3525 Also, use do_decl to declare it, so that debugging symbols are
3526 generated. And, re-arrange so that actions that need to
3527 be done both passes (such as push_levels) use the same code.
3529 * parse.c (get_type_of): If ignore_exprs, don't lookup name.
3530 * parse.c (end_function): Fix poplevel params.
3531 * parse.c (expect): Don't read forwards on an error.
3532 * parse.c (parse_field): Don't define two tag_list locals!
3533 * parse.c (parse_pass_1_2): Better error message.
3535 * parse.c (parse_mode, parse_opt_mode): Have parse_mode call
3536 parse_opt_mode, rather than vice versa. If parse_opt_mode
3537 returns NULL_EXPR, then parse_mode gives an error.
3538 Change parse_opt_mode (and any functions it calls) to only
3539 return NULL_TREE if there is no mode (even on ignore_exprs).
3540 (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3541 Never return NULL_EXPR.
3542 * tasking.c (build_buffer_type, build_event_type): Return
3543 void_type_node instead of NULL_EXPR if ignore_exprs is true.
3545 * parse.c (parse_synonym_definition): Call parse_untyped_expr
3546 only if we have a mode.
3547 * parse.c (parse_send_action): Parse list of untyped_expr's,
3548 rather than a list of (typed) expressions.
3549 * parse.c (parse_primval): Emit error if '[' seen without
3550 preceding mode name. (If this is to be allowed, call
3551 parse_untyped_expr instead.)
3553 * parse.c (parse_array_index): Renamed to ...
3554 (parse_index_mode): ... to match Z200 terminology.
3555 Re-write to resolve some of the nastier ambiguities,
3556 and allow things like ' CHAR(10) : CHAR(20) '.
3558 * parse.c (parse_tuple_element): Change interface to return
3559 reversed list, so don't call nreverse.
3560 * parse.c (parse_tuple): No longer nreverse element list here.
3561 * parse.c (parse_opt_element_list): Do nreverse here instead.
3562 * parse.c (parse_case_label_list): Call nreverse at end.
3564 Fri Jun 10 15:36:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3566 * typeck.c (chill_similar): Remove bogus "else".
3568 Wed Jun 8 00:01:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
3570 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): New macro (and comment)
3571 to make it clearer that we are using TYPE_MAX_VALUE in a special way.
3572 * typeck.c (build_chill_slice): Use TYPE_ARRAY_MAX_SIZE.
3573 * expr.c (chill_expand_expr case CONCAT_EXPR): Likewise.
3574 * convert.c (convert): When converting a fixed string/array
3575 to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
3576 of (the type of) the padding.
3577 * convert.c (convert): If the concatenation is non-constant, use
3578 the low-level 'build' to set the type of the result (which is usually
3579 a fixed-size array) rather than depend on build_chill_binary_op
3580 to figure it out (it's unable to simplify the size to a constant).
3582 Mon Jun 6 18:16:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
3584 * lang.c (lang_decode_option): Let -fspecial_UC imply
3585 -fno-ignore-case without requiring it explicitly.
3586 * lang.c (lang_decode_option): Support (experimentally)
3587 the -fpack and -fno-pack flags.
3589 Thu Jun 2 20:49:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3591 * configure: Add support for --program-prefix and --program-suffix.
3593 Tue May 31 18:12:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3595 * convert.c (digest_constructor): Check that initial value
3596 is compatible with element mode before calling convert.
3597 * typeck.c (chill_compatible): A string mode is not compatible
3598 with an untyped constructor.
3599 * decl.c (do_decl): Clean up error messages. Use error_with_decl.
3601 * ch-tree.h: Fix inconsistencies: bool_true_node ->
3602 boolean_true_node, and bool_false_node -> boolean_false_node.
3603 * typeck.c (valid_array_index_): Minor simplification.
3605 Tue May 31 04:33:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3607 * inout.c (build_chill_writetext): Add correct processing
3608 of POWERSET RANGE (setmode).
3610 * lex.l (same_file): Add searching for file(s) in
3613 Fri May 27 14:22:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
3615 * Make-lang.c (CHILL.mostlyclean, CHILL.distdir): Don't list
3616 yacc/bison output files, since the grammer is no longer in yacc.
3617 * config-lang.in (diff_excludes): Likewise.
3619 Thu May 26 16:38:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3621 * gperf, hash.h, lex.l, parse.h: Rename PROCESS_TYPE token
3622 (in some files spelled PROCESS_TYPE_ to avoid clashes
3623 with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
3625 Thu May 26 02:18:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3627 * timing.c (build_cycle_start): Change call to __define_timeout.
3628 * decl.c (init_decl_processing): Change definitions of
3629 __define_timeout and __wait_timeout.
3631 Wed May 25 11:53:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
3633 Replace yacc-based parser with a recursive-decent parser.
3634 (This may seem backwards, but Chill [like C++] is not a
3635 language that is remotely LALR(1). Using a R-D parser
3636 allows us to use look-ahead and to back-up to resolve the
3637 difficult ambiguities.)
3639 * parse.c, parse.h: New files, containing new r-d parser.
3640 * Makefile.in: Update accordingly.
3641 * actions.c (chill_convert_for_assignment): Don't return
3642 NULL_EXPR if ignore_exprs is true. It simplifies the parser
3643 if we consistently reserve NULL_EXPR for a missing expression.
3644 * expr.c (build_chill_function_call): Likewise.
3646 * lex.l: Tweaks for new parser.
3647 * lex.l (prepare_paren_colon, paren_paren_colon_level,
3648 paren_level): Ugly hack no longer needed.
3650 * expr.c (build_chill_function_call): Cleanup.
3651 Call chill_convert_for_assignment to convert IN/INOUT
3652 paramaters on both input and output. For LOC parameters,
3653 give error if actual is a non-referable location.
3654 * actions.c (convert_for_assignment): Add new parameter (a
3655 "place" string used in error messages).
3656 * actions.c (adjust_parm_or_field): Removed.
3657 * actions.c (chill_expand_assignment): Take just a single LHS,
3658 and move support for multiple assignments to ...
3659 (expand_assignment_action): ... here. Some cleaning up.
3660 * timing.c (build_cycle_start): Adjust accordingly.
3661 * actions.c (expand_assignment_to_varying_array): Likewise.
3662 * tasking.c (many places): Ditto.
3663 * ch-tree.h: Fix declarations appropriately.
3665 * parse.c (parse_defining_occurrence_list): Return a single
3666 IDENTIFIER_NODE (instead of a singleton list) in the common
3667 case. Minor complication to save a minor amount of space.
3668 * decl.c (do_based_decls): Move guts of code into ...
3669 (do_based_decl): ... this new function.
3670 * decl.c (do_decls): Handle either IDENTIFIER_NODE or a TREE_LIST.
3671 * decl.c (push_syndecl): Replace by ...
3672 (push_syndecl): ... (which only supports a single name).
3673 (push_modedef): Only handle a single name.
3674 * tasking.c (build_process_header, build_signal_struct_type):
3677 * expr.c (build_generalized_call): Handle string repetition.
3678 * expr.c (build_chill_repetition_op): Change interface.
3679 * grant.c (decode_constant): Allow parameter list to be
3680 a non-TREE_LIST. (Used for string repetition.)
3682 Wed May 25 11:28:48 1994 Per Bothner (bothner@kalessin.cygnus.com)
3684 * lex.l (make_identifier): Replaced by ...
3685 (read_identifier, handle_name): ... new functions.
3686 * lex.l: Parse an identifiers using read_identifier using
3687 read_identifier and handle_name, rather than having [f]lex
3688 do it. (One reason is that lex uses a fixed-size buffer.)
3690 * lex.l (read_directive, skip_directive): New functions.
3691 Use them to parse compiler-directives, instead of rather
3692 ugly and useless use of lexer start conditions.
3694 Tue May 24 22:36:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
3696 * decl.c (unnamed_module_number): Renamed to ...
3697 (module_number): .. and make non-static.
3698 (push_module): Always increment module_number.
3699 * lex.l (yywrap): Print warning if no modules seen.
3701 * decl.c (pop_module): Don't set DECL_SEIZEFILE of granted
3702 decl to current_seizefile_name (which is unreliable).
3703 * grant.c (chill_grant): Set it here instead.
3705 * expr.c (fold_set_expr): Use int_size_in_bytes instead of
3706 TYPE_PRECISION (which is not defined for a SET_TYPE).
3708 Fri May 20 15:21:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
3710 Cleanup to remove need for variables in common storage.
3711 * decl.c: Remove unused use of current_obstack.
3712 * actions.c (maybe_chill_check_decl): Remove unused function.
3713 * actions.h, lang.c: Remove uses of doing_chill_thang.
3714 * ch-tree.h (void_list_node): Make extern (rather than common).
3715 * decl.c (void_list_node): Add definition.
3717 Thu May 19 06:54:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3719 * configure (build): Build canon_host and canon_target
3720 to pass it to all subsequently generated Makefiles (needed
3721 for testsuite/execute in case of cross build).
3723 Wed May 18 13:27:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3725 * grant.c (decode_mode): Remove. It checks the TYPE_NAME of
3726 the input type, which loses with the no-longer-new 2-pass
3727 implementation, since the input "type" could be an IDENTIFIER_NODE.
3728 * grant.c (raw_decode_mode): Rename to decode_mode.
3730 Tue May 17 13:19:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3732 * typeck.c (chill_location): Neither a STRING_CST nor a
3733 CONSTRUCTOR is a location.
3734 * typeck.c (chill_root_mode): Convert a function to a
3735 pointer-to-function.
3736 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3737 build_chill_arrow_expr): If ignore_exprs, return operand
3738 rather than NULL_EXPR. This makes it easier for the parser to
3739 distinguish missing expressions.
3740 * expr.c (build_max_min): Convert the lower bound of a
3741 set to a long before calling run-time routine.
3742 * expr.c (build_chill_pred_or_succ): Use discrete_type_p
3743 to check the argument type.
3744 * expr.c (build_chill_arrow_expr): If argument is not a location,
3745 do a predwarn if it is a STRING_CST or has function type.
3747 Tue May 17 06:05:13 1994 Wilfried Moser (moser@rtl.cygnus.com)
3749 * configure (build): Remove building of canon_host and canon_target.
3750 It doesn't work in any case.
3752 Mon May 16 02:10:35 1994 Wilfried Moser (moser@rtl.cygnus.com)
3754 * configure (build): Build canon_host and canon_target
3755 to pass it to all subsequently generated Makefiles (needed
3756 for testsuite/execute in case of cross build).
3757 * Make-lang.in (chill-runtime): Change chill to CHILL in the case
3758 statement to build chill-runtime automatically.
3760 Mon May 9 15:30:08 1994 Doug Evans (dje@canuck.cygnus.com)
3762 * Makefile.in (FLAGS_TO_PASS): Define.
3764 (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
3765 * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
3766 (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
3768 Sun May 8 13:05:00 1994 Per Bothner (bothner@cygnus.com)
3770 * Make-lang.in (cc1chill): Should not depend on libgcc.a.
3772 Thu May 5 18:58:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3774 * decl.c (copy_lang_decl): New (dummy) function.
3776 Mon May 2 14:33:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
3778 * parse.y (sendaction): Fix thinko (in sense of condition).
3779 * tasking.c (build_receive_case_label): Another thinko.
3781 * parse.y (optsigdest): Force ignore_exprs to 0 while parsing
3784 * decl.c (build_chill_function_type): Don't call layout_type
3785 (since that may prevent parameter or result types being
3786 properly satisfied).
3787 * satisfy.c (satisfy): Layout FUNCTION_TYPEs.
3788 * parse.y (procmode): Call build_chill_pointer_type, rather
3789 than build_pointer_type (which incorrectly sets TYPE_SIZE).
3791 * parse.y (get_type_of): Handle TYPE_DECL (again).
3792 * parse.y (optresultspec): Call build_chill_reference_type, rather
3793 than build_reference_type (which incorrectly sets TYPE_SIZE).
3794 * parse.y (range_or_mode): Rename to plain range, since it
3795 no longer matches modename.
3796 * actions.c (chill_handle_case_label_range): New function, with
3797 functionality moved out of chill_handle_case_label.
3798 * actions.c (chill_handle_case_label): Handle here the case that
3799 the label_value is a TYPE_DECL (modename). Also clean up some.
3800 * typeck.c (build_chill_slice_with_length): Convert max_index
3801 to the type of min_value. (Old code broke on varying strings.)
3803 Sun May 1 13:53:36 1994 Doug Evans (dje@canuck.cygnus.com)
3805 * Makefile.in (BC_OBJS): Delete all references
3806 (OBJS): Cat ../stamp-objlist to get language independent files.
3807 (../cc1chill): Delete dependency on $(OBJS).
3808 * Make-lang.in (cc1chill): Depend on stamp-objlist.
3810 Sat Apr 30 14:50:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
3812 * lex.h, lex.c: Remove lastiddecl.
3813 * lex.l (name_type_signal): Simplify. We no longer check for
3814 TYPENAME or SIGNALNAME (which was unreliable with two passes).
3815 Also rename to make_identifier.
3816 * parse.y: Cleaned up grammar to not need SIGNALNAME or TYPENAME.
3817 * Makefile.in (stamp-parse); One conflict fewer!
3818 * parse.y (rccase_label_flag): Moved to tasking.c.
3819 * parse.y (rccase_label): Move most of the logic to
3820 build_receive_case_label in tasking.c.
3821 * parse.y (sendaction): Re-write to not depend on SIGNALNAME.
3823 * parse.y (name): Do name lookup here (and not in location).
3824 * parse.y: Replace most uses of NAME by higher-level non-terminals:
3825 simple_name_string, name_string, defining_occurrence, or name.
3827 * tasking.c (build_receive_signal_case_label,
3828 build_receive_buffer_case_label): New functions, split out from
3829 build_receive_case_label.
3830 * tasking.c (build_receive_case_label): Change parameters
3831 and return type. Moved stuff here (from the parser).
3832 * tasking.c (struct rc_state_type): Removed had_errors.
3833 Return error_mark_node instead.
3834 * tasking.c (build_rccase_set_error), ch-tree.h: Removed.
3836 * expr.c (build_generalized_call): If func is a signal type,
3837 call build_signal_descriptor.
3839 * parse.y (arrayindex): Renamed to index_mode, to match Z.200.
3840 * parse.y (ioindexmode): Removed; use index_mode instead.
3841 * expr.c (build_generalized_call): If args is a RANGE_EXPR,
3842 we have either a slice or a range mode, depending on func.
3843 * parse.y (index_mode): If we got an 'expr', only allow a name,
3845 * parse.y (call): A slice with both end points can be a range
3846 mode, so defer handling to build_generalized_call (or index_mode).
3848 * typeck.c (build_chill_slice_with_length): Fix type-checking.
3849 * typeck.c (chill_novelty): Undo (part of) change of April 28:
3850 The novelty of a range mode is the novlety of the parent.
3851 * typeck.c (chill_root_mode): Don't return integer_type_node
3852 if argument has non-nil novelty.
3854 * decl.c (global_bindings_p): Return -1 as true, for the sake
3855 of variable_size (in ../stor-layout.c).
3857 Fri Apr 29 13:42:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
3859 * parse.y: Remove TYPENAME and modename. These are now plain
3860 NAMEs. Modify parsing actions appropriately.
3861 * expr.c (build_generalized_call): Handle the case that
3862 TREE_CODE (func) == TYPE_DECL (as in a cast).
3863 * lex.l (name_type_signal): Never return TYPENAME.
3864 * parse.y (get_type_of): If pass 1, just return the argument.
3866 * decl.c (do_decl): If an initializer has the wrong type,
3867 replace it by NULL_TREE, to avoid subsequent errors.
3869 Thu Apr 28 15:21:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3871 * Makefile.in: Add new file timing.c to rules.
3872 * timing.c: New file. Implements the timing actions AT,
3874 * decl.c (init_decl_processing): Add new builtin function
3876 * expr.c (build_chill_indirect_ref): Change error message and
3877 add check agains an IDENTIFIER_NODE.
3878 * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
3879 They are no longer needed.
3880 * grant.c (print_integer_type): Add processing of builtin types
3882 * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
3883 * parse.y (timingactions): split up to afteraction, ataction
3885 * parse.y (afteraction): New rule.
3886 * parse.y (ataction): New rule and put actions in.
3887 * parse.y (cycleaction): New rule and put actions in.
3888 * parse.y (sendaction): Add code for SEND buffer.
3889 * parse.y (rccase_label): Change error processing.
3890 * tasking.c (build_gen_inst): More checks.
3891 * tasking.c (build_gen_code): Add checking for argument is a
3892 PROCESS or a SIGNAL.
3893 * tasking.c (struct rc_state_type): Add new fields for easier
3895 * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
3896 * tasking.c (build_rccase_set_error), ch-tree.h: New function.
3897 * tasking.c (build_receive_case_label): Add processing of BUFFER's.
3898 * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
3899 New functions to process the end of a RECEIVE CASE action in case
3900 of BUFFER's and SIGNAL's.
3901 * tasking.c (build_receive_case_end): Do only general processing and
3902 call one of the above mentioned functions.
3903 * tasking.c (build_delay_case_start, build_delay_case_label,
3904 build_delay_case_end): Rewritten due to new implementation of events.
3905 * tasking.c (build_delay_action): Rewritten due to new implementation
3907 * tasking.c (expand_send_buffer), ch-tree.h: New function.
3908 * timing.c (build_at_action, build_cycle_start, build_cycle_end),
3909 ch-tree: New functions.
3911 Thu Apr 28 14:11:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
3913 * typeck.c (smash_dummy_type): Handle the special case of a
3914 NEWMODE of a range mode, as required by Z200, by creating a
3915 new parent mode with the new novelty (and casting the min
3916 and max of the range to teh new parent mode).
3917 * typeck.c (chill_novelty, chill_root_mode): Remove special
3918 kludges for of NEWMODE ranges.
3919 * expr.c (build_chill_lower_or_upper): New function, combining
3920 the "guts" of build_chill_lower and build_chill_upper.
3921 * expr.c (build_chill_lower_or_upper): Simplify; no longer
3922 need to kludge the novelties.
3924 * typeck.c (valid_array_index_p): A string index expression
3925 need not be Compatible with the index type; only similar.
3927 * decl.c (layout_chill_variants): If error seen, skip stuff
3928 (rather than aborting or crashing).
3929 * decl (push_modedef): If newdecl's type is an error mark,
3930 continue rather than aborting.
3932 Thu Apr 28 02:07:42 1994 Doug Evans (dje@cygnus.com)
3934 * Make-lang.in: Update of directory reorg from fsf.
3935 * config-lang.in: Ditto.
3937 Mon Apr 25 13:09:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
3939 * typeck.c (chill_similar): Check RECORD_TYPEs properly,
3940 * convert.c (convert): If all else fails, just call convert1.
3941 Thus we can now convert RECORD_TYPEs (assuming they are similar).
3943 * parse.y, lex.l: Remove BUFFERNAME (use location/expr instead).
3944 * parse.y: Re-do BUFFER handling (similar to previous EVENT change).
3945 * grant.c (raw_decode_mode): Re-do BUFFER mode handling.
3946 * ch-tree (lang_type_record): Removed max_queue_size field.
3947 * tasking.c (build_buffer_type): Re-write.
3948 * tasking.c (max_queue_size): Fix to support buffer modes.
3949 * tasking.c (buffer_element_mode), ch-tree.h: New function.
3950 * tasking.c ch-tree.h (expand_send_buffer): Now has 3 parameters.
3951 * parse.y (modename): No longer match SIGNALNAME. Instead, add it
3952 to name and simple_name_string. This removes a reduce/reduce conflict.
3953 * Makefile.in (stamp-parse): Expect fewer conlicts.
3955 * lex.l (yywrap): Move check for circularly seizeing current
3956 grant-file from here ...
3957 * lex.l (handle_use_seizefile_directive): ... to here.
3958 This is to avoid calling stat on a not-yet written grantfile,
3959 now that we're using same_file (which calls stat).
3960 * grant.c (set_use_this_gf): Removed.
3961 * grant.c (set_default_grant_file): Set grant_file_name here,
3962 because we need it earlier (due to above lexer change).
3964 * typeck.c (layout_chill_struct_type): Remove useless code to
3965 remove zero-width bitfield (which messes up CONST_DECLs).
3967 Sat Apr 23 13:16:39 1994 Bill Cox (bill@rtl.cygnus.com)
3969 * Makefile.in (check): Assure that 'ld' is available before checking.
3971 Thu Apr 21 13:23:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3973 * grant.c (print_an_int): Removed.
3974 (raw_decode_mode): Generalized to use decode_constant
3975 instead of print_an_int.
3976 (decode_constant): Print directly, instead of calling print_an_int.
3977 * parse.y (event_list): Fix syntax.
3978 * parse.y (optqueuesize): Default is NULL_TREE, not zero.
3979 * tasking.c (check_queue_size): New function, for error checking.
3980 * ch-tree.h: Add declaration for check_queue_size.
3981 * satisfy.c (satisfy case RECORD_TYPE): Satisfy constant fields
3982 (used for queue size of EVENT and BUFFER), and call check_queue_size.
3984 Tue Apr 19 13:42:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
3986 Re-implement EVENT modes to support general EVENT objects
3987 (and not just EVENT names), according to Z200. (Not finished!)
3988 * tasking.c, ch-tree.h (max_queue_size): New function.
3989 * parse.y (dcalternative, event_list, event_list_head): New
3990 implementation of DELAY CASE, avoiding parsing ambiguities.
3991 (call, locdec, delayaction): Remove old EVENTNAME kludges.
3992 * lex.l (name_type_signal): Remove EVENTNAME recognition.
3993 * tasking.c (build_event_type): Re-written.
3994 * typeck.c (chill_similar), decl.c (print_lang_type):
3995 Use new max_queue_size function.
3996 * typeck.c (layout_chill_struct_size): Ignore CONST_DECL.
3997 * tasking.c (build_delay_action): Preliminary changes - just to
3998 make it compile. FIXME!
3999 * grant.c (raw_decode_mode): Use new max_queue_size function.
4000 Move EVENT support from LANG_TYPE to RECORD_TYPE.
4001 * ch-tree.h (process_event_decls): Removed.
4003 Tue Apr 19 11:44:01 1994 Bill Cox (bill@rtl.cygnus.com)
4005 * regression.sh: Complete previous change - eliminate all
4006 references to objdir as a user parameter.
4008 Mon Apr 18 10:17:55 1994 Bill Cox (bill@cygnus.com)
4010 * Makefile.in (check): Simplified regression.sh call.
4011 * regression.sh: Change command-line parsing. Default
4012 srcdir to the script's path. Calculate objdir
4013 internally - don't pass it in.
4015 Thu Apr 14 13:30:19 1994 Wilfried Moser (moser@phishhead.cygnus.com)
4017 * expr.c (build_chill_duration): Add range checking.
4019 * lex.l (init_lex): Add predefined names DURATION and TIME.
4020 * lex.h (enum rid): Add RID_DURATION and RID_TIME.
4021 * ch-tree.h: Add prototypes and externals.
4022 * decl.c (init_decl_processing): Add builtin function
4024 * expr.c (build_generalized_call): Add processing of some
4026 * expr.c (build_chill_abstime): New function to process builtin
4028 * expr.c (build_chill_inttime_type): New function to built type
4029 for the INTTIME builtin.
4030 * expr.c (build_chill_inttime): New function to process builtin
4032 * expr.c (build_chill_duration): New function to process builtin's
4033 MILLISECS, SECS, MINUTES, HOURS and DAYS.
4035 Tue Apr 12 11:55:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4037 * lex.l (chill_same_grant_file): Rename to same_file. Change to
4038 take two files names rather than two DECLs. Also check that the
4039 filesystems (st_dev) are equal. Finally, make static.
4040 * lex.l (handle_use_seizefile_directive): Check for duplicate
4041 USE_SEIZE_FILE directives using same_file.
4042 * decl.c (pop_module): Remove dubious call to chill_same_grant_file.
4044 Sun Apr 10 17:19:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
4046 * decl.c, ch-tree.h (chill_result_decl): New variable. Used to
4047 store RESULT value. (Cannot use DECL_RESULT; see comment in decl.c.)
4048 * actions.c (chill_expand_result, chill_expand_return):
4049 Use chill_result_decl appropriately.
4050 * ch-tree.h, decl.c, actions.c (saved_result_rtx): Removed.
4051 Subsumed by chill_result_decl.
4053 * expr.c (chill_expand-expr case CONCAT_EXPR): Generate temporary
4054 using the mode of the result type, and don't assume it is BLKmode.
4056 Fri Apr 8 17:46:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
4058 * actions.c (chill_expand_assignment): Check for compatibility
4059 _after_ "expanding out" a binary operation. This fixes
4060 the case "STRING //:= CHAR".
4062 * lex.l (equal_number): Convert symbol to integer_type_node, to
4063 force the value to be INT-derived (and avoid novelty conflicts).
4065 Mon Apr 4 22:06:31 1994 Per Bothner (bothner@cygnus.com)
4067 * ch-tree.h (CH_FUNCTION_SETS_RESULT): New flag.
4068 * ch-actions.c (chill_expand_return), ch-tree.h: Extra
4069 parameter, indicates if implicit return at end of function.
4070 * ch-parse.y: Modify accordingly.
4071 * ch-actions.c (chill_expand_return): Various improvements.
4073 * decl.c, ch-tree.h (result_never_set): New variable.
4074 * actions.c (chill_expand_result, chill_expand_return): Clear it.
4075 * ch-parse.y (end_function): Warn if no RETURN or RESULT action.
4077 * decl.c, ch-tree.h (saved_result_rtx): New variable.
4078 * decl.c (start_chill_function): Use saved_result_rtx as return
4079 value if there is a RESULT in a REG that might get clobbered.
4080 * actions.c (chill_expand_result): Save result in saved_result_rtx
4081 or assign to DECL_RESULT as appropriate.
4082 * decl.c, ch-tree.h (current_function_returns_value,
4083 current_function_returns_null, current_extern_inline):
4084 Don't use. Only define first two to allow linking with ch-typeck.c.
4086 * typeck.c (chill_l_equivalent): Add forward declaration.
4088 Fri Apr 1 11:02:27 1994 Wilfried Moser (fs_moser at rcsw47)
4090 * lex.l (readstring): Handle control sequence in all cases (Z.200
4093 Fri Apr 1 13:11:27 1994 Per Bothner (bothner@kalessin.cygnus.com)
4095 * configure: Simplify and fix the logic for looping through
4098 Thu Mar 31 18:59:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
4100 * ch-tree.h (CH_L_EQUIVALENT): Moved from typeck.c.
4101 * typeck.c (chill_similar): Add support for checking
4102 FUNCTION_TYPEs for similarity. Also, treat
4103 pointer-to-function-type the same as function-type.
4105 Thu Mar 31 11:22:56 1994 Wilfried Moser (fs_moser at rcsw47)
4107 * ch-tree.h: Change prototype of function expand_send_signal.
4108 * parse.y: Change calls to expand_send_signal.
4109 * tasking.c (expand_send_signal): Change handling of optsetto
4110 argument. New argument signame to get a possible destination
4111 process for the signal.
4113 Wed Mar 30 14:54:48 1994 Wilfried Moser (fs_moser at rcsw1j)
4115 * tasking.c (make_process_struct): Change error message in case of
4116 a process argument has other attribute then IN or LOC.
4117 * tasking.c (build_start_process): Add check that the optset is
4118 referable in case it is specified (this makes
4119 noncompile/start_.ch working).
4121 Tue Mar 29 13:24:27 1994 Wilfried Moser (fs_moser at rcsw1h)
4123 * Makefile.in: Change version string to 1.2.1
4124 * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4126 * ch-tree.h: Change prototype for build_chill_readtext.
4127 * decl.c (init_decl_processing): Add builtin_function _readstring,
4128 _readunixstd and READTEXT.
4129 * expr.c (build_generalized_call): Add processing of READTEXT.
4130 Delete handling of no longer valid builtin_functions.
4131 * gperf: Remove keyword READTEXT.
4132 * parse.y: Remove token READTEXT.
4133 * inout.c (build_chill_io_list_type): Add building type for
4135 * inout.c (build_chill_readtext): Implement the function
4137 * inout.c (build_chill_writetext): Do some cleanups.
4139 Tue Mar 29 12:30:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
4141 * typeck.c (build_chill_cast): Re-arrange, to support casts
4142 of const integer to type of different size, if there is
4143 an integral type of the desired size: Go through the
4144 const conversion code.
4146 * actions.c (adjust_parm_or_field): Move support for LOC to ...
4147 * expr.c (build_chill_function_call): ... here.
4148 Fix a number of bugs in OUT/INOUT handling.
4150 * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4151 parse.y (location), typeck.c (chill_comptypes): Remove unused
4152 support for ENCAPSULATED_ARRAY_P.
4153 * typeck.c (build_chill_array_parm_type), ch-tree.h: Remove; unused.
4155 * ch-tree.h, decl.c (shadow_record_fields), decl.c
4156 (shadow_record_fields), expr.c (chill_expand_case_expr,
4157 build_chill_function_call), grant.c (chill_finish_compile),
4158 typeck.c (build_empty_string, build_init_struct): Rename magic
4159 identifiers of the form "<...>" to "__..." for better portability.
4161 * actions.c (adjust_parm_or_field): Remove extraneous
4162 call to build_chill_repetition_op.
4163 * expr.c (build_chill_function_call): Some simplifictions
4164 (since neither valtail nor typetail can be NULL).
4165 Clean up error message for OUT//INOUT not location to use only 1 line.
4166 Add error message for OUT/INOUT if type is READonly.
4167 * typeck.c (build_chill_modify_expr): Simplify.
4169 Sun Mar 27 19:30:25 1994 Bill Cox (bill@rtl.cygnus.com)
4171 * Makefile.in: Clean up generally. Assure that
4172 runtime is built before running regressions.
4173 Build correct parameters to regression.sh.
4174 Remove a lot of 'clean' cruft.
4175 * Make-lang.in, config-lang.in: New files for
4176 subdirectory architecture.
4178 Sat Mar 26 10:39:12 1994 Bill Cox (bill@rtl.cygnus.com)
4180 * Makefile.in (check): Build correct parameters for regression.sh.
4182 Fri Mar 25 10:13:06 1994 Bill Cox (bill@rtl.cygnus.com)
4184 * configure: Also mark regression.awk3 as executable.
4185 * regression.sh: Add comments about command-line options.
4186 Calculate srcdir correctly, defaulting to the script's path.
4187 Add OPT flag to pass to the Makefiles, to specify the
4188 compiler's optimization level, and -O and -O2 options.
4189 Delete GLOBAL flag and tests. Use a different make.log
4190 file for optimized and unoptimized test results. Add the
4191 compiler's host and target triples to the report header.
4193 Wed Mar 23 21:41:26 1994 Bill Cox (bill@rtl.cygnus.com)
4195 * expr.c (build_chill_function_call): Handle INOUT and OUT
4196 parameters better (for the rangefail test, at least).
4198 Wed Mar 23 14:13:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4200 * regression.sh (srcdir, objdir): Fixed hard-wired paths.
4201 (grep args): Changed [XYZ-] to [-XYZ] for SCO.
4203 Wed Mar 23 13:34:18 1994 Bill Cox (bill@rtl.cygnus.com)
4205 * expr.c (build_generalized_call): Revert previous change.
4206 To do this correctly, we need a new parsing mechanism, and
4207 C++ initializer technology.
4209 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
4211 * expr.c (build_generalized_call): Be sure we're inside the
4212 module-level function before calling build_gen_inst, for
4215 Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
4217 * regression.sh (dodirectory): Count the gcov and abort tests
4218 among the .dat files.
4220 Tue Mar 22 15:39:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4222 * satisfy.c (safe_satisfy_decl): When checking that a SYN
4223 value fits in a specified discrete type, don't convert first,
4224 and use compare_int_csts instead of tree_int_cst_lt.
4226 Tue Mar 22 15:25:38 1994 Bill Cox (bill@rtl.cygnus.com)
4228 * configure: Generate better .gdbinit files.
4230 Tue Mar 22 11:59:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4232 * actions.c (check_range): Don't emit dynamic checks
4233 if not current_function_decl.
4235 * parse.y (arrayindex): Allow expr (error is emitted
4236 at semantic level if not the NAME of a type).
4237 * typeck.c (build_chill_cast): Re-enable some casts.
4238 * satisfy.c (safe_satisfy_decl): Remove redundant CONST check.
4240 Tue Mar 22 11:46:28 1994 Bill Cox (bill@rtl.cygnus.com)
4242 * configure: Access the utils directory correctly.
4243 * expr.c (build_compare_expr): Reenable compatibility test.
4245 Tue Mar 22 11:24:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4247 * typeck.c (valid_array_index_p): Call
4248 build_compare_discrete_expr instead of build_compare_expr.
4249 * typeck.c (build_chill_cast): Improve logic.
4250 * satisfy.c (safe_satisfy_decl): Simplify test.
4252 Tue Mar 22 10:17:58 1994 Bill Cox (bill@rtl.cygnus.com)
4254 * actions.c (chill_expand_assignment): Correct detection of
4255 string assignment case.
4256 * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4257 the actual parameters need to be converted to the unsigned long
4258 type explicitly. Do that.
4259 * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4261 Mon Mar 21 16:25:07 1994 Bill Cox (bill@rtl.cygnus.com)
4263 * Makefile.in: Correct prediction of grammar conflicts.
4264 * actions.c(check_range): Fix reference to NULL_TREE pointer.
4265 And allow compile-time errors even if range_checking is off.
4266 * parse.y: Clean up some comments.
4267 * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4269 Mon Mar 21 13:29:23 1994 Per Bothner (bothner@kalessin.cygnus.com)
4271 * typeck.c (layout_chill_range_type): Instead of tree_int_cst_lt
4272 use compare_int_csts (which is more robust when signedness differs).
4273 Also, convert the bounds *after* doing range checking.
4275 * ch-tree.def (SET_IN_EXPR): New.
4276 * expr.c (chill_expand_expr): Code to expand SET_IN_EXPR,
4277 moved from expand_expr in ../expr.c. Also add some extra
4278 conversions (because we're now using build_chill_function-call).
4279 * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4280 Use SET_IN_EXPR in place of IN_EXPR.
4282 * expr.c (build_compare_discrete_expr), ch-tree.h: New function,
4283 with code moved from build_compare_expr.
4284 * expr.c (build_compare_expr): Re-enable compatibility test.
4286 Mon Mar 21 11:02:33 1994 Bill Cox (bill@rtl.cygnus.com)
4288 * Makefile.in: Rewrite byacc related rules.
4289 * actions.c (chill_convert_for_assignment): Use the
4290 referenced type only for generating range checks.
4291 * configure: Add 'utils' directory to SUBDIRS variable.
4293 Sun Mar 20 21:49:59 1994 Bill Cox (bill@rtl.cygnus.com)
4295 * actions.c (check_range): Call build_compare_expr rather than
4297 (adjust_parm_or_field): Call convert_for_assignment rathern than
4298 convert, to get the range-checking.
4299 * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4300 Generate a compile-time message if possible.
4301 (build_compare_expr): Comment out compatibility test - should
4302 not be needed in here. Fix a couple of typos. Add some types
4303 to some build calls.
4305 Sun Mar 20 11:48:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
4307 * decl.c (init_decl_processing): Clean up parameter type
4308 list for __setbitpowerset,
4310 * typeck.c (chill_compatible_classes): Allow the M-reference
4311 to be compatible with the N-value class, with suitable M and N.
4312 * typeck.c (build_chill_slice): Don't smash a void TREE_TYPE.
4313 (We don't need to, and it causes confusion.)
4315 * expr.c (build_compare_expr): Fix thinko. Add save_exprs.
4317 * expr.c (build_compare_expr): Fix a transcription bug
4318 (for converting NULL INSTANCEs). Also #include convert.h.
4320 * expr.c (compare_int_csts): New. Compare INTEGER_CSTs.
4321 Works even if their types have different TREE_UNSIGNED.
4322 * expr.c (finish_chill_binary_op): Moved code dealing with
4323 the comparison operators from here ...
4324 * expr.c (build_compare_expr): ... to new function here.
4325 Also, for discrete types, tries to Do The Right Thing, even for
4326 differing values of TYPE_PRECISION and TREE_UNSIGNED.
4328 * ch-tree.h: Declare new functions.
4329 * typeck.c (valid_array_index_p): Various cleanups,
4330 including using new build_parse_expr.
4331 * parse.y: Use new build_compare_expr.
4333 * inout.c (build_chill_writetext): Handle REFERENCE_TYPE args.
4335 Sun Mar 20 08:54:27 1994 Bill Cox (bill@rtl.cygnus.com)
4337 * actions.c (expand_assignment_to_varying_array):
4338 Call build_chill_array_ref to get index checking.
4339 (chill_convert_for_assignment): Delete unused errstr
4341 (chill_expand_assignment): Call build_chill_array_ref
4342 to get runtime index checking.
4343 (expand_varying_length_assignment): Use new interface
4344 to varying_array_index_p.
4345 * ch-tree.h (varying_array_index_p): New proto.
4346 * convert.c (convert): Call build_chill_array_ref
4347 to get runtime index checking.
4348 * expr.c (build_chill_pred_or_succ): Fix cond tree
4349 to have consistent operand types.
4350 * typeck.c (valid_array_index_p): Change interface to pass
4351 validity conditions back on caller's TREE_LIST. We
4352 cannot link the conditions to anything which a
4353 layout_type routine will expand, since that will occur
4354 before the exception handler is set up.
4355 Change calls to valid_array_index_p also.
4357 Fri Mar 18 14:40:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
4359 * actions.c, except.c, loop.c, tasking.c: Call
4360 build_chill_function_call instead of the C-specific
4361 build_function_call.
4362 * except.c (initialize_exceptions): Fix parmtype of __builtin_setjmp.
4363 * loop.c (top_loop_end_check): Coerce library function arg.
4364 * convert.c, expr.c: Re-write to avoid calls to C-specific
4365 function build_unary_op (e.g. by calling build1 directly).
4367 * typeck.c (chill_equivalent): Change to force failure
4368 for non-matching integral types (even if not ranges).
4370 * typeck.c, ch-tree.h (build_chill_slice): Make non-static.
4371 * expr.c (varying_to_slice): Call build_chill_slice (and not
4372 build_chill_slice_with_length, which does bunches of range
4373 checking and does not allow the length to be zero).
4374 * convert.c (convert): Fix off-by-one error.
4375 * actions.c (chill_expand_array_assignment): Minor cleaning up.
4377 Fri Mar 18 00:12:48 1994 Per Bothner (bothner@deneb.cygnus.com)
4379 * decl.c (init_decl_processing): __lepowerset and __ltpowerset
4380 take *two* pointer parameters, not one.
4381 * satisfy.c (satisfy): Only call the appropriate layout routine
4382 if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4383 * typeck.c (build_chill_slice_with_length): Fix Bill's previous fix.
4385 Thu Mar 17 17:29:43 1994 Bill Cox (bill@rtl.cygnus.com)
4387 * expr.c (build_chill_function_call): Give function call the correct
4389 * typeck.c (build_chill_slice_with_length): Restore dynamic range
4390 checking, so it doesn't obscure the CONSTANTness of the length.
4392 Wed Mar 16 17:23:31 1994 Per Bothner (bothner@kalessin.cygnus.com)
4394 * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4395 [case CONCAT_EXPR]): Remove kludge setting slice size upper bound
4396 in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4397 * typeck.c (build_chill_slice): Use TYPE_MAX_VALUE of
4398 array_type if needed for size upper bound of slice_type.
4399 * expr.c (build_concat_expr): Improve calculation of size upper bound.
4401 * typeck.c (valid_array_index_p): Check compatibility using
4403 * typeck.c (build_chill_slice_with_length); For now revert
4404 calling valid_array_index_p on length. (It makes it harder
4405 to realize when the slice is constant length.)
4406 * expr.c (build_chill_indirect_expr): Minor tweak. (This
4407 seems to work around a weird C compiler bug. ??)
4409 * expr.c (build_chill_function_call): Cleanup so it doesn't
4410 call build_function_call (in c-typeck.c).
4411 * typeck.c, expr.c: Use build_chill_function_call instead of
4412 build_function_call (in c-typeck.c).
4414 * parse.y (discrete_mode): Move some of the rules from
4415 non_array_mode into new non-terminal.
4416 (arrayindex): Use discrete_mode (with NAME and TYPENAME) to
4417 avoid some misparses.
4418 * ch-tree.h (SLICE_PTR, SLICE_LENGTH): Removed; unused.
4419 * convert.c (digest_structure_tuple): Add missing parameter.
4420 * decl.c (comptypes): Remove unused prototype.
4421 * decl.c (build_chill_function_type): Handle NULL return_type
4422 correctly (convert to void_type_node).
4423 * decl.c (init_decl_processing): layout boolean_type_node *after*
4424 we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4426 Wed Mar 16 16:08:22 1994 Bill Cox (bill@rtl.cygnus.com)
4428 * ch-tree.h: Add prototype.
4429 * convert.c (convert): Correct calculation of padding length.
4430 * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4431 parse.y where it belongs. This permits the removal of a kludge
4432 in make_process_struct.
4433 * lex.l, parse.y: Call to_global_level for several errors. Add
4434 code to output error in only one pass.
4435 * tasking.c (make_process_struct): Delete kludge inserted on
4437 (build_receive_case_end): Add Wilfried's check for errors.
4439 Tue Mar 15 08:42:12 1994 Bill Cox (bill@rtl.cygnus.com)
4441 * actions.c: Fix comment.
4442 (build_rts_call): Ifdef it out - never used.
4443 (expand_varying_length_assignment): call valid_array_index_p.
4444 rather than validate_varying_array_ref.
4445 * ch-tree.h: Fix prototype for valid_array_index_p.
4446 * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4448 (build_hill_lower, build_chill_upper): Return value now inherits
4449 the novelty of the input parameter.
4450 (varying_to_slice): Use CH_NOVELTY macro rather than calling
4451 chill_novelty directly.
4452 * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4454 (print_integer_type): Pass string value as APPEND's second parameter.
4455 (decode_decl): Pass a boolean expression as print_proc_tail's
4457 (chill_finish_module_code): Make xmalloc's parameter unsigned.
4458 * lex.l: Pass sizes to xmalloc as unsigned ints. Pass second
4459 parameter to in_word_set as unsigned.
4460 * loop.c (build_loop_start): Check top_loop_end_check return value.
4461 * parse.y: Add casts to int for third do_decls parameter, fifth
4462 build_loop_iterator parameter, etc.
4463 * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4464 * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4465 valid_array_index): Delete them. They're now unused.
4466 (valid_array_index_p): Add function, call it everywhere that an
4467 array index is checked.
4468 (build_chill_slice): Restore old functionality where varying_to_slice
4469 is called to handle slices of varying arrays, rather than handling
4471 (build_chill_slice_with_range, build_chill_slice_with_length):
4472 Check range limits for TREE_CONST before calling tree_int_cst_lt.
4473 Delete now-obsolete checks of constant indices.
4475 Mon Mar 14 17:26:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
4477 * parse.y (modeless_expr): New rule to allow ([...]) and (if...)
4478 to count as untyped_exprs. (This is not really permitted by the
4479 Blue Book, but has been requested by customers.)
4481 Thu Mar 10 10:11:02 1994 Bill Cox (bill@rtl.cygnus.com)
4483 * chill.texi: Document new command-line options.
4484 * expr.c (build_chill_num): Set unsigned parameter for
4485 type_for_size call correctly (unsigned for enums).
4486 * lang.c (lang_decode_option): Add command-line options to
4487 enable/disable runtime range-checking.
4488 * lex.l: Eat more whitespace.
4490 Thu Mar 10 09:41:37 1994 Bill Cox (bill@rtl.cygnus.com)
4492 * Makefile.in: Have rules to make parse.h, y.tab.c and other
4493 derived files. This allows the gcc/configure list of CHILL
4494 files machinery to work.
4495 * ch-tree.h (permanent_allocation): Add a parameter flag.
4496 * decl.c (finish_chill_function, finish_decl): Provide the
4497 new permanent_allocation flag.
4498 (poplevel): Return early, avoid a seg fault.
4499 * lex.l (NORMAL): Replace this whole state with the predefined
4500 INITIAL state. Force compilation state to global level after
4501 compiler directive error - prevents endless loop on error.
4502 (handle_use_seizefile_directive): Rewrite for readability.
4503 (chill_same_grant_file): Reindent.
4504 Generally handle whitespace differently.
4505 * regression.prpt: Print ten PR numbers per line. The report's
4508 Wed Mar 9 09:58:51 1994 Bill Cox (bill@rtl.cygnus.com)
4510 * decl.c (do_decl): Suppress the string-assignment-condition
4511 error - it was too often seen.
4512 * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4513 runtime-changing length (as in a slice), get the parent array's
4514 allocation size from its type tree.
4515 * typeck.c (build_chill_slice): Support VARYING arrays. Pass
4516 parent array's static allocation size along in the slice type.
4518 Wed Mar 9 08:54:24 1994 Bill Cox (bill@rtl.cygnus.com)
4520 * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4522 Tue Mar 8 11:51:10 1994 Bill Cox (bill@rtl.cygnus.com)
4524 * expr.c (build_chill_sizeof): Fix typo in error msg, add
4526 * lex.l (name_type_signal): Add debug output.
4527 * parse.y (call): Allow EVENTNAME and BUFFERNAME parameters
4528 to a call, so that SIZE () works on them.
4529 * tasking.c (make_process_struct): Force ignore_exprs non-zero
4530 when processing a SEIZEd PROCESS declaration. This prevents
4531 grox-fixed_fields from returning a NULL, and indirectly protects
4532 the chill_integer_type_node tree from corruption.
4534 Mon Mar 7 19:14:05 1994 Bill Cox (bill@rtl.cygnus.com)
4536 * Makefile.in: Use the 'all' target to build the runtime
4537 library and chillrt0.o.
4538 * README: Explain rules for files in this directory.
4539 * addtest, addtest.man, build-release,
4540 chill.regress.cron: Move to utils subdirectory.
4541 * expr.c (build_chill_function_call): Mark the INOUT
4542 temporary so it doesn't get optimized into a
4543 register. Fixes the execute/inout.ch bug.
4544 * typeck.c (layout_chill_range_type): Restrict it
4545 from complaining about an empty string type's
4548 Mon Mar 7 09:06:39 1994 Bill Cox (bill@rtl.cygnus.com)
4550 * Makefile.in (compiler): Restore this target.
4551 (OBJS, BC_OBJS): Delete unused variables.
4552 Add $(FLAGS_TO_PASS) to sub-make invocations.
4553 * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4554 tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4556 Sat Mar 5 18:37:50 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4558 * except.c (finish_handler_array): When computing address of
4559 the array ex_decl, don't call build_array_ref.
4561 Sat Mar 5 17:43:36 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4563 * loop.c (declare_temps): Force powerset temp to memory.
4565 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4567 * typeck.c (layout_chill_range_type): Convert highval and
4568 lowval to a common type before range-checking them.
4570 Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4572 * ch-tree.h: Add loop-related prototypes.
4573 * decl.c, grant.c: Fix -Wall violations.
4574 * parse.y: Fix format of %type directives.
4576 Fri Mar 4 10:04:18 1994 Wilfried Moser (fs_moser at rcsw1h)
4578 * Makefile.in: Update version number.
4579 * expr.c: Fix a comment.
4580 * inout.c (build_chill_writetext): Add handling of a REAL.
4581 * lex.l (INITIAL): Remove all code to discard 'header lines'.
4583 * parse.y (optheader): Remove - it's obsolete, as is the
4584 HEADEREL token definition.
4586 Fri Mar 4 09:41:18 1994 Bill Cox (bill@rtl.cygnus.com)
4588 * addtest: Fix suffix removal when suffix is .c186.
4589 * regression.sh: Allow for underscores on PR filenames.
4590 * typeck.c: Check in the rewrite mentioned earlier.
4592 Thu Mar 3 09:42:10 1994 Wilfried Moser (fs_moser at rcsw1h)
4594 * tasking.c (build_process_header): Build a debug structure
4595 for easier access to PROCESS parameters.
4597 Thu Mar 3 09:42:10 1994 Bill Cox (bill@rtl.cygnus.com)
4599 * typeck.c (*string_assignment_condition): Complete rewrite
4600 of a verbose first draft.
4602 Wed Mar 2 16:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4604 * actions.c (adjust_return_value): Simplify.
4605 Delete references to CH_RETURNS_LOC, extra parameters to
4606 push_extern_function and start_chill_functions.
4607 (convert_for_assignment): Check whether to generate runtime
4608 range-checking code. Handle reference_type in convert call.
4609 (chill_expand_assignment): Produce an INDIRECT_REF for a
4610 reference_type on the LHS. Delete conversions subsumed by
4611 convert_for_assignment.
4612 * ch-tree.h: Delete parameters from prototypes.
4613 * decl.c (print_lang_decl): Print out signal flag.
4614 (push_extern_function, start_chill_function): Delete
4615 extra parameters, references to CH_RETURNS_LOC.
4616 * grant.c (chill_finish_compile): Delete extra parameter.
4617 * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
4618 push_extern_function and start_chill_functions.
4619 * regression.sh (checkprms): Skip PRMS discrepancies if we
4620 can't access PRMS for some reason.
4621 * satisfy.c: Correct indentation.
4622 * tasking.c (build_process_header): Delete extra parameters
4623 passed to push_extern_function and start_chill_functions.
4625 Wed Mar 2 10:33:50 1994 Bill Cox (bill@rtl.cygnus.com)
4627 * addtest: Require a fill filename. Be more careful about
4628 adding the same test twice.
4629 * expr.c: Add FIXME to comment.
4630 * regression.sh: Add configure script call.
4632 Tue Mar 1 16:24:20 1994 Wilfried Moser (fs_moser at rcsw1h)
4634 * Makefile.in: Change version of chill to 1.1.2
4635 * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
4637 Tue Mar 1 07:34:56 1994 Bill Cox (bill@rtl.cygnus.com)
4639 RETURN of LOC value is only half-baked. Stay tuned...
4640 * actions.c (adjust_parm_or_field): Add to comment.
4641 (adjust_return_value): New function for issuing errors about
4642 RETURN and RESULT expressions. Also converts them.
4643 (chill_expand_result, chill_expand_return): Call new
4644 adjust_return_value function.
4645 * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
4646 New parameter for push_extern_function and start_chill_function.
4647 * decl.c (push_extern_function, start_chill_function): New parameter
4648 to say whether return value is a LOC.
4649 * expr.c (build_chill_indirect_ref): Further qualify the issuing
4650 of the error message.
4651 * grant.c (raw_decode_mode): Move test for instance mode under
4653 (start_chill_module_code, chill_finish_compile): Add new
4654 parameter to start_chill_function calls.
4655 * parse.y (get_type_of): Do lookup_name more often.
4656 (quasi_pdef, procedure, procmode, optresultspec): Set
4657 CH_RETURNS_LOC flag.
4658 (optresultattr): Code keywords as a bitmask.
4659 * tasking.c (build_process_header): Add new parameter to
4660 start_chill_function call.
4662 Sat Feb 26 12:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4664 * Makefile.in: Replace undefined $(RM) with rm -f.
4665 * configure: Make sure scripts are executable.
4666 * regression.sh: Make variables to invoke make
4667 and awk. Don't process a directory if it
4670 Fri Feb 25 14:48:48 1994 Bill Cox (bill@rtl.cygnus.com)
4672 * Makefile.in (check): Force the building of ../gcov and
4673 ../xgcc before testing. Move the printf dependency here
4674 since we don't need it until we're testing.
4675 * addtest: Strip suffix from each input filename.
4676 * decl.c (do_decl): Correct error checking. Call
4677 string_assignment_condition for some of it.
4678 * tasking.c (build_gen_inst): Add ability to pass an integer
4679 for either the process ID or the copy number. If a number
4680 is passed, range-check it against the CHILL unsigned type
4682 (build_buffer_descriptor): Add draft code to check the buffer
4683 name for correctness.
4685 Wed Feb 23 15:07:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
4687 New cleaner solution to the following problem:
4688 Chill allows an action to be followed by an ON-handler.
4689 But we don't know if an action has a handler until we've parsed
4690 its end, yet we want to generate extra code to set up an
4691 exception handling contour only if needed. The old solution
4692 would generate code for the action into an rtl sequence, and then
4693 splice in the exception-setup code if we later found we needed it.
4694 This has a few problems (for example it confuses the management
4695 of stack temporaries), and is ugly. Now that the compiler is 2-pass
4696 we have a cleaner solution: In pass 1, we remember which actions
4697 were followed by ON-handlers. In pass 2, we use this information
4698 to generate appropriate code before an action.
4699 * except.c (push_handler, pop_handler): In pass 1, set up data
4700 structures (global_handler_list) to remember if an action has an
4701 ON-handler. In pass 2, digest this information, and setup
4703 * except.c, actions.h (pop_handler): Take an extra int arg.
4704 * except.c (emit_setup_handler): New function, with code (moved
4705 from chill_start_on) to emit code before an action that has a handler.
4706 * except.c (except_init_pass_2): New function.
4707 * parse.y (pass1_2): Call except_init_pass_2 before pass 2.
4708 * parse.y (POP_UNUSED_ON_CONTEXT): Don't call pop_sequence.
4709 * parse.y: Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
4710 in pass 1 as well as pass 2.
4711 * parse.y (BEGIN ... END): Re-arrange logic to avoid block_stack
4712 (local to ../stmt.c) getting out of sync.
4713 * actions.c (push_action): Don't need to emit a NOP,
4714 now that we're no longer moving sequences around.
4715 * actions.c (push_action): Call push_handler even in pass one.
4717 Wed Feb 23 11:06:14 1994 Bill Cox (bill@rtl.cygnus.com)
4719 * decl.c (do_decl): Check for possible overflow in initializing
4720 a declared variable.
4721 * expr.c (build-chill_indirect_ref): Add error message for
4722 a syntax error that C programmers converting to CHILL are
4723 quite likely to make.
4724 * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
4727 Tue Feb 22 17:54:43 1994 Bill Cox (bill@rtl.cygnus.com)
4729 * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
4730 defined. Build chill script differently, and build an install script.
4731 Add an action to run the regression test.
4732 * actions.c (chill_expand_assignment): Change
4733 string_assignment_condition call.
4734 * ch-tree.h: Add prototype.
4735 * expr.c (build_chill_function_call): Change
4736 string_assignment_condition call.
4737 * satisfy.c (safe_satisfy_decl): Add check that string INIT value
4738 will fit in the declared mode.
4739 * typeck.c (string_assignment_condition): Add flag to disable
4740 runtime code generation. Add code to generate runtime test.
4742 Mon Feb 21 14:04:20 1994 Bill Cox (bill@rtl.cygnus.com)
4744 * Makefile.in (check): Add target to trigger a regression test.
4746 Mon Feb 21 13:54:20 1994 Bill Cox (bill@rtl.cygnus.com)
4748 * decl.c (do _based_decls): Add error check for
4749 decls BASED on a PROC or PROCESS name.
4751 Mon Feb 21 13:24:02 1994 Bill Cox (bill@rtl.cygnus.com)
4753 * grant.c (chill_finish_compile): Bypass handling
4754 module-level code if an earlier error has made
4756 * tasking.c (build_start_process): Generate error,
4757 return if process name unknown.
4759 Mon Feb 21 14:29:41 1994 Wilfried Moser (fs_moser at rcsw47)
4761 * expr.c (build_generalized_call): Use
4762 build_arrow_expr semantics for ADDR () builtin.
4764 Mon Feb 21 12:49:14 1994 Bill Cox (bill@rtl.cygnus.com)
4766 * tasking.c (build_gen_inst): Output correct
4767 constructor for GEN_INST.
4769 Mon Feb 21 08:14:59 1994 Wilfried Moser (fs_moser at rcsw47)
4771 * lex.l (yywrap): Fix punctuation error.
4773 Sun Feb 20 19:58:14 1994 Bill Cox (bill@rtl.cygnus.com)
4775 * regression.sh: Fix cvs update-related commands.
4776 Have cron job always perform the update, so it's
4777 always reporting on the current state of the
4779 * typeck.c (string_assignment_condition): Allow a
4780 mis-match if the LHS is varying.
4782 Fri Feb 18 18:10:04 1994 Bill Cox (bill@rtl.cygnus.com)
4784 * actions.c (expand_chill_assignment): Add call to test the
4785 string assignment condition.
4786 * expr.c (build_chill_function_call): Add call to test the
4787 string assignment condition.
4788 * regression.awk2: Report WITHDRAWN PRs as well.
4789 * regression.sh: Delete extra commentary about FEEDBACK PRs.
4790 * typeck.c (string_assignment_condition): Add function to
4793 Fri Feb 18 16:30:40 1994 Bill Cox (bill@rtl.cygnus.com)
4795 * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
4796 and exclude them from the regression test report. Mark them
4797 in the list of PRs as 'W' status.
4799 Thu Feb 17 09:13:42 1994 Wilfried Moser (fs_moser at rcsw47)
4801 * Makefile.in: Define a version number. Build chill script
4802 differently. Makefile depends upon ../configure, not configure.
4803 * chill.in: Define some new flags.
4805 Wed Feb 16 19:44:33 1994 Bill Cox (bill@rtl.cygnus.com)
4807 * grant.c (decode_constant): Restore a 'return result' statement
4808 that seems to have gotten lost.
4810 Wed Feb 16 12:37:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
4812 * ch-tree.h (various STRING-type macros): Use new TYPE_STRING_FLAG.
4814 * typeck.c (make_chill_array_type): Remove unused args.
4815 Simplify to build only one-dimensionsal arrays, so change
4816 index list to single index. Call layout_chill_array_type
4817 if pass!=1. And rename to: build_simple_array_type.
4818 * typeck.c (layout_chill_array_type): Only recurse
4819 if TREE_TYPE has not been laid out.
4820 * typeck.c (build_chill_array_type): Update accordingly.
4821 * typeck.c (build_chill_slice): Replace calls to build_array_type
4822 (which does hash-canonicalization, which breaks if we later set
4823 the TYPE_STRING_FLAG) by calls to build_simple_array_type.
4824 * convert.c (convert): The same.
4826 * grant.c (decode_constant): Clean up. Remove remnants of switch
4827 on TREE_TYPE of the value, and fold those cases into first switch.
4829 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4831 * Makefile.in: Add printf as a dependency of ../cc1chill.
4832 * regression.sh: Make srcdir and objdir really work.
4834 Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4836 * expr.c (build_char_array_expr): Fix spelling
4838 * tree.c (build_string_type): Make check for overlarge
4841 Wed Feb 16 02:37:43 1994 Mike Stump (mrs@cygnus.com)
4843 * grant.c (decode_constant): Remove useless tests
4844 for STRING_TYPE (which isn't used by anyone, including CHILL).
4846 Tue Feb 15 15:35:07 1994 Bill Cox (bill@cygnus.com)
4848 * build-release: Add refinements to checkout commands.
4849 * decl.c (init_decl_processing): Move initialization of
4850 chill_unsigned_type_node before 1st call to build_string_type.
4851 * tree.c (build_string_type): Add compile-time test of string
4853 * typeck.c (layout_chill_range_type): Add compile-time range limit
4856 Tue Feb 15 08:55:37 1994 Bill Cox (bill@cygnus.com)
4858 * Makefile.in: Add stamp-chill-objs as a dependency of ../cc1chill.
4859 * regression.sh: Rename test directory names.
4861 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4863 * Makefile.in: Change interface with parent directory's
4864 Makefile, decoupling the lists of each others' files.
4866 Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4868 * lex.l: Delete obsolete comment.
4869 * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
4870 instance constructor.
4872 Mon Feb 14 04:04:16 1994 Bill Cox (bill@rtl.cygnus.com)
4874 * lex.l (maybe_number): Add octal to numbers
4875 handled by Feb 1 change.
4877 Sat Feb 12 16:24:22 1994 Bill Cox (bill@rtl.cygnus.com)
4879 * actions.c, convert.c, decl.c, expr.c, lex.l,
4880 tasking.c, typeck.c: gcc -Wall cleanups.
4881 * ch-tree.h: Change loop-related prototypes.
4882 * loop.c, parse.y: Rewrite to set up correct loop scope.
4883 Fix error path where loop variable not declared.
4885 Fri Feb 11 11:12:29 1994 Bill Cox (bill@rtl.cygnus.com)
4887 * Makefile.in: Add rule to build printf. Make it a dependency
4889 * printf.c: New tool for regression testing script.
4890 * regression.sh: Look for print in ${objdir}.
4892 Thu Feb 24 17:31:12 1994 Wilfried Moser (fs_moser at rcsw1j)
4894 * tasking.c (build_gen_inst): Allow integer expression as argument
4895 1 to this function. This was a change request to get rid of
4896 unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
4897 or STRUCT (t UINT, c UINT).
4899 Thu Feb 10 09:49:31 1994 Bill Cox (bill@rtl.cygnus.com)
4901 * regression.awk3: Recognize upper-case PRMS state names.
4903 Wed Feb 9 15:26:19 1994 Bill Cox (bill@cygnus.com)
4905 * parse.y (dowithaction): Allow EXIT from DO WITH.
4907 Tue Feb 8 13:13:54 1994 Bill Cox (bill@rtl.cygnus.com)
4909 * configure: Change to require grant.c for evidence that we've
4910 found the source directory.
4911 * decl.c (init_decl_processing): delete unused builtin_slice
4912 function declaration.
4913 * expr.c (chill_expand_expr): Calculate powerset's length
4914 correctly, calling powersetlen to do it.
4915 * regression.sh: Replace BASE references with objdir references.
4916 * typeck.c (build_chill_slice): Build the compound expression
4919 Mon Feb 7 15:56:07 1994 Bill Cox (bill@rtl.cygnus.com)
4921 * expr.c (build_chill_lower, build_chill_upper): Handle
4922 LOC parameter types.
4923 * regression.sh: Correct path to executable sub-shell-scripts.
4925 Mon Feb 7 11:33:47 1994 Bill Cox (bill@rtl.cygnus.com)
4927 * regression.sh: Pervasive changes to allow for separate
4928 source and object directories.
4930 Wed Feb 2 17:5620 1994 Bill Cox (bill@rtl.cygnus.com)
4932 * decl.c (find_implied_typed): Delete obsolete reference to
4934 * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
4937 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4939 * Makefile.in: Delete bogus runtime/Makefile lines.
4940 * configure: Build testsuite directory.
4942 Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4944 * configure: Correct srcdir for chill.examples directory.
4946 Wed Feb 2 11:24:57 1994 Wilfried Moser (fs_moser at rcsw47)
4948 * ch-parse.y (rule call): Add
4949 BUFFERNAME LPRN untyped_expr RPRN
4950 to enable generating a descriptor same as for SIGNALS.
4951 * ch-tasking.c (generate_tasking_code variable,
4952 decl_tasking_code_variable): Implement overflow check of
4953 taskingcode in case a tasking code is specified with the
4954 compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
4957 Wed Feb 2 09:31:37 1994 Bill Cox (bill@rtl.cygnus.com)
4959 * configure: Add ${srcdir} to Makefile.in's path.
4960 * loop.c: Delete unused whitespace.
4962 Tue Feb 1 17:09:41 1994 Bill Cox (bill@rtl.cygnus.com)
4964 * expr.c (string_char_rep): Process STRING_CST correctly.
4966 Tue Feb 1 15:29:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
4968 * expr.c (build_boring_bitstring): New function.
4969 * expr.c (build_chill_repetition_op): Fix a number of bugs in
4970 implementation of bitstring repetition.
4971 Also, implement repetition of Booleans.
4973 Tue Feb 1 15:28:21 1994 Bill Cox (bill@rtl.cygnus.com)
4975 * configure: Delete code to check for gas or ld. Add code to
4976 store a config.status file in each configured subdirectory.
4977 * expr.c (): Spell concatbitstring as concatps, which is the
4978 runtime routine name.
4979 * regression.sh: Force use of GNU make.
4981 Tue Feb 1 15:22:12 1994 Bill Cox (bill@rtl.cygnus.com)
4983 * tasking.c: Mark compiler-generated temps to prevent
4986 Tue Feb 1 17:38:51 1994 Wilfried Moser (fs_moser at rcsw1j)
4988 * lex.l (equal_number): Improve check for number after = in a
4990 * tasking.c (build_tasking_struct): Make field TaskValue
4991 pointer to chill_unsigned_type_node.
4992 * tasking.c (generate_tasking_code_variable): Declare tasking
4993 code variable as chill_unsigned_type_node.
4994 * tasking.c (decl_tasking_code_variable): Declare tasking
4995 code variable as chill_unsigned_type_node.
4997 Mon Jan 31 14:01:58 1994 Bill Cox (bill@rtl.cygnus.com)
4999 * addtest (update_Makefile): No longer build actions - they're
5000 now in pattern rules.
5001 * ch_makedepend: Do the grep first, to avoid processing non
5002 USE_SEIZE_FILE lines.
5003 * configure: Pervasive rewrite to support configuring regression
5006 Mon Jan 31 04:35:53 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5008 * typeck.c (build_chill_slice): Compute EXTENT correctly.
5010 Sun Jan 30 14:33:12 1994 Bill Cox (bill@rtl.cygnus.com)
5012 * tasking.c (build_gen_inst): Return a typed tuple with
5015 Sun Jan 30 12:01:07 1994 Bill Cox (bill@rtl.cygnus.com)
5017 * actions.c (chill_expand_assignment): Recognize LENGTH builtin
5018 in the left hand side, pass it to
5019 expand_varying_length_assignment.
5020 (expand_varying_length_assignment): Clean up bitrot.
5021 * convert.c (convert): Revert most recent change.
5022 * loop.c (maybe_skip_loop): New function, split out of
5023 begin_chill_loop. Add conditional to skip processing an empty
5025 * parse.y (assignaction): Delete code to recognize LENGTH
5027 * typeck.c (validate_varying_array_ref): Correct misleading comment.
5029 Sat Jan 29 10:54:06 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5031 * typeck.c (build_chill_slice): Pass a valid identifier to
5032 `get_unique_identifier'.
5034 * convert.c (convert): Rename LENGTH variable to MAXIDX, and
5035 use correct value for VAR_LENGTH when initializing a varying array.
5037 * decl.c (do_decl): Set DECL_COMMON.
5039 * actions.c (check_range): Temporarily inhibit warnings so the
5040 compiler doesn't warn the user about useless range checks that it
5041 might create. It's far easier for the compiler to figure out that
5042 a range check need not be done than it is for us to try to figure
5043 it out for ourselves.
5045 * expr.c (build_concat_expr): Generalize to handle bitstrings.
5046 (scalar_to_string): New function.
5047 (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5048 library call (__concatbitstring).
5050 Sat Jan 29 08:43:54 1994 Bill Cox (bill@rtl.cygnus.com)
5052 * ch_makedepend: Fix the 'sed' command so that seize file
5053 name can be delimited by double quotes as well as apostrophes.
5055 Thu Jan 27 17:26:19 1994 Per Bothner (bothner@kalessin.cygnus.com)
5057 * typeck.c (my_build_array_ref): Do constant folding.
5059 Thu Jan 27 16:24:24 1994 Bill Cox (bill@rtl.cygnus.com)
5061 * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5062 decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5063 lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5064 tree.c, typeck.c: New 'Copyright' line for 1994.
5066 Thu Jan 27 14:12:07 1994 Mike Stump (mrs@cygnus.com)
5068 * configure: Don't configure this directory with this configure,
5069 just subdirectories and cleanup.
5070 * Makefile.in (Makefile): Run config.status in parent directory,
5071 if we need rebuilding.
5073 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
5075 * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5078 Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
5080 * expr.c (build_concat_expr): Fix SunOS portability problem.
5082 Wed Jan 26 14:57:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
5084 * convert.c (digest_powerset_tuple): New function, used to set
5085 TREE_CONSTANT and TREE_STATIC properly.
5086 (digest_structure_tuple, convert (NULL to instance, non-varying
5087 to varying)): Set TREE_CONSTANT and TREE_STATIC when appropriate.
5088 * expr.c (varying_to_slice): Preserve novelty of slice type.
5089 * expr.c (build_concat_expr): Make sure class of result is
5090 correct (including correct novelty).
5091 * satisfy.c (safe_satisfy_decl): If value of CONST_DECL is
5092 not TREE_CONSTANT, emit an error.
5093 * typeck.c (build_chill_slice): Preserve novelty of result.
5094 * typeck.c (build_chill_slice): Simplify for varying argument
5095 (by using varying_to_slice).
5096 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5098 * typeck.c (build_chill_cast): Use above new functions to convert
5099 constant expressions.
5100 * typeck.c (copy_novelty), ch-tree.h: New function.
5101 * chill.texi: Update for new constant conversion semantics.
5103 Tue Jan 25 14:00:02 1994 Wilfried Moser (fs_moser at rcsw1j)
5105 * ch-decl.c (init_decl_processing): Add new builtin function
5106 DESCR. Add call to build_chill_descr_type.
5107 * ch-expr.c: Add function build_chill_descr_type, which actually
5108 build the type the DESCR builtin returns.
5109 Add function build_chill_descr, which process the DESCR builtin.
5110 * ch-expr.c (build_chill_length): Add code to enable
5112 * ch-expr.ch (build_generalized_call): Add processing of DESCR
5114 * ch-grant.c: Add code to avoid producing of unnecessary grant
5116 * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5117 for build_chill_descr.
5118 * ch-inout.c (build_chill_io_list_type): Change generation of the
5119 type passed to runtime library according to the new definition.
5120 * ch-inout.c (build_chill_writetext): Change processing of format
5121 string that a character constant is allowed as format string if
5122 compiler gets called with -fold-strings option.
5123 * ch-inout.c (build_chill_writetext): Change processing of
5124 integers in case NEWMODE x = INT.
5125 * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5126 * ch-inout.c (build_chill_writetext): Add processing of
5129 Tue Jan 25 09:07:10 1994 Mike Stump (mrs@cygnus.com)
5131 * Makefile.in (all, OBSTACK): Build interesting things be default,
5132 and make sure we include OBSTACK.
5134 Sun Jan 23 12:35:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
5136 * grant.c (decode_constant): Handle RANGE_EXPR.
5137 Simplify handling of CONSTRUCTOR.
5139 * typeck.c (build_chill_slice): Use build_chill_array_ref_1,
5140 not build_chill_array_ref.
5142 Sat Jan 22 16:23:30 1994 Per Bothner (bothner@kalessin.cygnus.com)
5144 * parse.y: Generate a RANGE_EXPR (instead of a confusing
5145 TREE_LIST) to indicate a range in case and tuple lables.
5146 * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5147 Update accordingly to handle these RANGE_EXPRs.
5148 * satisfy.c (satisfy): Don't call finish_chill_binary_op
5151 Fri Jan 21 15:39:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
5153 * expr.c (force_addr_of): New function, to encapsulate passing
5154 by reference a powerset or string to a library function.
5155 * expr.c (build_min_max, build_set_expr): Use force_addr_of.
5156 * expr.c (chill_expand_expr case CONCAT_EXPR): Fix passing of
5157 rtl modes. (Old code fails on 64-bit Alpha.)
5158 * expr.c (build_chill_function_call): Remove bogues check for
5159 READonly variable passed as parameter.
5160 * expr.c (build_set_expr): Merge common code.
5161 * parse.y (string repetition): Fix logic for 2-pass scheme.
5162 * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5163 satisfy.c (satisfy): Handle REPLICATE_EXPR.
5164 * chill.texi: Fix typo.
5166 Mon Jan 17 13:55:48 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
5168 * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5169 tree.c can find ch-tree.h.
5171 Sat Jan 15 15:34:11 1994 Mike Stump (mrs@rtl.cygnus.com)
5173 * configure: Fix problem so that building in a separate directory
5176 Sat Jan 15 09:51:02 1994 Bill Cox (bill@rtl.cygnus.com)
5178 * Makefile.in: Recurse down into runtime to
5179 create its Makefile, and to clean up.
5180 * configure: Recurse into runtime to make its Makefile.
5182 Sat Jan 15 09:15:22 1994 Bill Cox (bill@rtl.cygnus.com)
5184 << This set of CHILL frontend sources is now the
5185 maintainable and master set. Accept no substitutes! >>
5186 * Makefile.in, configure: Completely rewritten
5187 to be invoked by gcc/Makefile.in and
5189 * addtest (update_ChangeLog): Fix insertion
5191 * regression.sh: Add global option to suppress results of
5193 * cpy.sh: Add necessary edits to files as they
5195 * actions.c, ch-tree.def, ch-tree.h, convert.c,
5196 decl.c, except.c, expr.c, grant.c, inout.c,
5197 lang.c, lex.h, lex.l, loop.c, parse.y,
5198 satisfy.c, tasking.c, typeck.c: Latest
5199 versions from the repository.
5201 Fri Jan 14 12:28:39 1994 Bill Cox (bill@rtl.cygnus.com)
5203 * addtest: Fix insertion of line into ChangeLog.
5204 * configure: Add a script.
5205 * Makefile.in: Hack from ../Makefile.in
5206 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5207 * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5209 Mon Jan 10 11:38:07 1994 Bill Cox (bill@rtl.cygnus.com)
5211 * build-release: Rewrite for easier tailoring.
5213 Wed Jan 5 08:38:21 1994 Bill Cox (bill@cygnus.com)
5215 * actions.c, convert.c, decl.c, except.c, expr.c,
5216 inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5217 Current versions from devo/gcc.
5219 Wed Dec 29 14:07:10 1993 Bill Cox (bill@rtl.cygnus.com)
5221 * addtest: Don't add comment headers to source or .dat files
5222 if they're already present.
5224 Wed Dec 29 13:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
5226 * mktg_leads: New file.
5227 * regression.sh, regression.awk2: Updated status report scripts.
5228 * addtest: New script to add a test to a directory.
5229 * ch_makedepend: Add full path to ch_decomment.
5230 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5231 lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5232 Updated copies of actual sources.
5233 * chill.brochure, chill.texi: Update with current status.
5234 * cpy.sh: Script for updating copies of sources.
5235 * chill.patches: New script for creating a patch release.
5238 Wed Dec 8 09:35:54 1993 Bill Cox (bill@rtl.cygnus.com)
5240 * build-release: Delete lots of unused regression-testing cruft.
5241 * chill.brochure: Initial draft of marketing brochure.
5242 * chill.patches: Preliminary script for building patch sets
5244 * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5245 building a tcov report on the CHILL compiler.
5247 Sun Nov 21 08:34:33 1993 Bill Cox (bill@rtl.cygnus.com)
5249 * Makefile.in: Adjust gperf rule for names in this directory.
5250 * ch_decomment.l: New file. Ignores CHILL comments.
5251 Executable is used bu ch_makedepend.
5252 * ch_makedepend: New script. Makes CHILL dependencies for
5254 * gperf, hash.h: New files about lexer tokens.
5255 * regression.sh: Delete notes justifying non-summing
5257 * regression.awk2: Report PRMS status when there are
5258 missing test results.
5259 * regression.awk3: Add #! line, so this can be used separately.
5260 * Other files: latest versions copied from devo/gcc.
5262 Sat Oct 30 15:02:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
5264 * chill.texi: Add new node about conversions.
5266 Fri Oct 29 14:17:31 1993 Bill Cox (bill@cygnus.com)
5268 * chill.regress.cron: Change path to executable, enable PR report.
5269 * regression.awk2: Add terminating periods to messages.
5270 * regression.sh: Change path to testsuites. Add disclaimer at end
5271 of report. Print explicit lists of resolved/unresolved PRs.
5273 Thu Oct 28 09:22:20 1993 Bill Cox (bill@rtl.cygnus.com)
5275 * regression.sh: More PR-related status is printed.
5277 Thu Oct 21 19:24:02 1993 Bill Cox (bill@rtl.cygnus.com)
5279 * regression.sh: Simplify the paths, make the source
5280 and test files accessed separately from the executables.
5282 Wed Oct 20 16:35:30 1993 Bill Cox (bill@rtl.cygnus.com)
5284 * regression.sh: Finally fix the file-delete problem.
5286 * build-release: Make more verbose, fix comment.
5288 Mon Oct 18 00:21:24 1993 Bill Cox (bill@cygnus.com)
5290 * regression.sh: Build linker if -U option. Put stderr
5291 into make.log files, too. Also report on Z.200 examples.
5292 * regression.awk3: New script to help build release note.
5294 Fri Oct 15 16:33:54 1993 Bill Cox (bill@cygnus.com)
5296 * regression.sh, regression.prpt: Output PR status only
5297 conditionally. Add command-line flag for CVS updates.
5299 Thu Oct 14 07:53:59 1993 Bill Cox (bill@rtl.cygnus.com)
5301 * regression.sh: Count PRs accurately.
5302 * Makefile.in: New file.
5304 Sat Oct 9 19:46:58 1993 Bill Cox (bill@rtl.cygnus.com)
5306 * regression.awk?: Add program fragments for
5307 report of PRMS/test exceptions.
5308 * regression.sh: Add options and PRMS reports.
5310 Fri Oct 8 06:44:41 1993 Bill Cox (bill@rtl.cygnus.com)
5312 Create chill frontend directory, populate it.
5313 Later, the chill-specific frontend files will be moved here.
5315 * chill: Moved here from gcc directory.
5316 * chill.regress.cron: Add crontab file for regression tests.
5317 * regression.sh: Add regression test control script.
5320 # What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5322 Sat Jan 15 14:54:07 1994 Bill Cox (bill@rtl.cygnus.com)
5324 * ch-*.*: All of these files are now moved to the ch subdirectory.
5325 Further update changes should be recorded in the ch/ChangeLog file.
5327 Fri Jan 14 21:09:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
5329 * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5330 ch-satisfy.c, ch-typeck.c: Undo all of initializer-related changes
5331 that Tiemann did earlier this month.
5332 * c-typeck.c (really_start_incremental_init): Save
5333 constructor_elements and (old value of) constructor_stack
5334 on constructor_stack, to allow for nested initializers.
5335 * ch-convert.c (digest_constructor): If we need a varying
5336 array, and have a constructor (for the array elements),
5337 make sure to use convert so that the constructor gets
5338 wrapped in an implicit record constructor.
5339 * ch-decl.c (do_decl): If there is no initializer for a
5340 varying array (or bitstring), create default constructor.
5342 * ch-expr.c (build_chill_lower): Fix thinko for ARRAY_TYPE.
5343 * ch-satisfy.c (safe_satisfy_decl): Make sure that we make
5344 original decl to check if we need to make an rtl.
5346 * ch-typeck.c (build_chill_array_ref_1), ch-tree.h: New function
5347 which does the actual work for build_chill_array_ref (which
5348 now just loops over an argument list).
5349 * ch-actions.c, ch-expr.c, ch-inout.c: Use build_chill_array_ref_1
5350 instead of build_chill_array_ref where appropriate.
5351 * ch-actions.c, ch-expr.c, ch-typeck.c: Make operand 1 of a
5352 VARY_ARRAY_REF is a single index, not an index list.
5354 * ch-grant.c (__init_list): Renamed to _ch_init_list, to
5355 avoid a conflict on the Alpha.
5357 Wed Jan 12 10:19:35 1994 Bill Cox (bill@rtl.cygnus.com)
5359 * ch-lex.l (WS): Add BS, VT and CR to definition of
5361 (convert_number): Allow for uppercase hex digits.
5363 Tue Jan 11 19:43:55 1994 Bill Cox (bill@cygnus.com)
5365 * ch-actions.c (lookup_and_handle_exit): Correct
5366 conditional so error messages are output.
5367 * ch-expr.c (build_chill_addr_expr): Add error message.
5368 * ch-grant.c (chill_finish_module_code): Avoid abort by
5369 giving the init_list constructor a type.
5370 (chill_finish_compile): Delete unused code.
5371 * ch-lex.l: Make most build_init_2 calls from the
5372 permanent obstack, so that enumeration values endure.
5373 * ch-loop.c (build_chill_iterator): Add several error
5376 Tue Jan 11 12:31:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
5378 * ch-expr.c, ch-typeck.c: Rewrite some instances of
5379 'struct ch_class class = chill_expr_class (expr);' to
5380 'struct ch_class class; class = chill_expr_class (expr);'
5381 to work around a bug in /usr/ucb/cc on SunOS4.
5383 Mon Jan 10 18:29:36 1994 Bill Cox (bill@rtl.cygnus.com)
5385 * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5386 * ch-expr.c (expand_packed_set): Add new parameter to pass
5387 set's minimum ordinal value. Fix loop invariant problem.
5388 (fold_set_expr): Change to add new parameter to
5389 expand_packed_set call.
5390 * ch-grant.c: Move extern declaration to ch-tree.h.
5391 * ch-lex.l (convert_bitstring): Also output the bitstring
5393 * ch-tree.h: Add prototype.
5395 Mon Jan 10 11:29:41 1994 Bill Cox (bill@rtl.cygnus.com)
5397 * ch-inout.c: Fix comment.
5398 * ch-tree.h: Add prototype.
5400 Sun Jan 9 18:22:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
5402 * ch-tree.h (chill_expr_class): New prototype.
5403 * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5404 Convert result to correct class.
5405 * ch-expr.c (build_chill_repetition_op): Preserve CH_DERIVED_FLAG.
5406 Also, fix some bugs for bitstrings (with ranges).
5408 (Patches from Tiemann.)
5409 * ch-convert.c (convert1): New function to force TREE_TYPE.
5410 (convert): Use convert1 where appropriate.
5411 * ch-typeck.c: Formatting change.
5412 * ch-parse.y (build_chill_constructor): Fix thinko.
5414 * ch-expr.c (varying_to_slice): If array is not referable,
5415 call save_expr on it, rather than stabilize_reference.
5416 * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5417 Don't force value to value class if mode is not explicitly
5418 specified. Also, make sure convert etc is only done once.
5420 Sat Jan 8 16:37:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
5422 * ch-decl.c (build_chill_function_type): Don't call
5423 build_function_type, because it does hash canonicalization,
5424 which once in a while looses badly.
5425 * tree.c (build_function_type): Remove no-longer-needed test
5426 for doing_chill_thang.
5428 * ch-tree.h (CH_DERIVED_FLAG): New flag.
5429 * ch-tree.h (enum ch_expr_class): Renamed to ch_class_kind.
5430 (struct ch_class): New type, used to represent a Chill
5431 'class' as a first-class value.
5432 (CH_ROOT_RESULTING_MODE): Replaced by CH_ROOT_RESULTING_CLASS.
5433 * ch-typeck.c (chill_expr_class): Change interface to return
5435 (chill_compatible, chill_compatible_classes): Update accordingly.
5436 (chill_root_resulting_mode): Replace by ....
5437 (chill_root_resulting_class): ... new function.
5438 * ch-convert.c (convert_to_class): New function.
5439 * ch-decl.c (layout_enum): Mark enum values with CH_DERIVED_FLAG.
5440 * ch-lex.l (string_or_int): Rename to string_or_char.
5441 * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5442 convert_float, convert_number): Set CH_DERIVED_FLAG for literals.
5443 * ch-expr.c (finish_chill_binary_op): Use convert_to_class.
5444 * ch-satisfy.c (safe_satisfy_decl): For CONST_DECL, make sure
5445 DECL_INITIAL gets set to result of convert.
5446 Also, clear CH_DERIVED_FLAG for SYN value.
5447 * expr.c (store_constructor): If a [power]set is exactly one
5448 word long, use single-word move.
5450 Sat Jan 8 08:38:29 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5452 * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5454 Wed Jan 5 05:18:46 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5456 * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5457 ARRAY_TYPE before assuming so. Also, subtract 1 from LENGTH in
5458 computation of SLICE_END.
5460 * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5462 * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5464 * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5465 for unary set operations).
5467 * ch-expr.c (build_chill_array_expr): Take new argument FORCE. All
5468 callers changed. All callers changed.
5470 * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5471 being NULL_TREE until we've started walking the list of values via
5472 the loop over VARIANTs.
5474 * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5475 treat it as an enum value (and hence constant). Also, only set
5476 TREE_STATIC if the constructor is indeed constant.
5477 * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5478 VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5479 recurse on the DECL_INITIAL.
5481 Wed Jan 5 01:24:50 1994 Bill Cox (bill@cygnus.com)
5483 * Makefile.in: Add CHILL to LANGUAGES variable.
5484 * ch-actions.c (check_range): Call build_binary_op instead of
5485 fold, build to get the common types chosen.
5486 (cond_range_exception, cond_overflow_exception,
5487 cond_type_range_exception): Delete, obsolete.
5488 (chill_convert_for_assignment): Enable this, get particular
5489 about when to generate rangecheck code.
5490 * ch-expr.c (build_chill_function_call): Sketch in where to
5491 perform chill_convert_for_assignment on actual parameters.
5492 (build_chill_addr_expr): Correct compiler warning.
5493 * ch-loop.c (build_chill_iterator): Add runtime check for
5494 negative loop step expression.
5495 * ch-tree.h: Add prototype.
5496 * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5497 A varying array's length field counts the NUMBER of active array
5498 array entries, not the byte-length of them.
5500 Tue Jan 4 17:57:39 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5502 * ch-decl.c (do_decl): Call `suspend_momenary' if the
5503 converted constructor must live on the permanent_obstack.
5504 * ch-convert.c (convert): When building a new SET_TYPE
5505 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5506 * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5508 * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5510 * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5511 on permanent_obstack if necessary.
5513 * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5514 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5516 * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5517 the patch below helped to mess up.
5519 * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5520 (build_chill_addr_expr): Take new argument ERRORMSG.
5521 All callers changed. Also, call `build_chill_addr_expr' where
5522 we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5523 that now calls `mark_addressable' automagically.
5525 * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5526 This is needed because variables may appear in initialization
5527 statements, and their DECL_INITIALs are their values at
5528 initialization time.
5529 * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5530 to handle VAR_DECLs as initializers.
5532 * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5533 they aren't destroyed for later use.
5535 Tue Jan 4 15:25:30 1994 Bill Cox (bill@cygnus.com)
5537 * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5538 parameter for varying_array_ref calculations.
5539 (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5540 * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5541 of bogus error in votrics.
5542 (build_chill_slice_with_length): Change for debug tracability.
5544 Tue Jan 4 02:43:37 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5546 * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5547 handling variant record initializers.
5548 (various places): Change `pop_init_level' calls to match
5549 `push_init_level' wrt implicit variable.
5551 * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5552 `integer_type_node' before using it in comparisons. FIXME: should
5553 this be done in `chill_max_vary_array_index' by default?
5555 Tue Jan 4 00:24:14 1994 Bill Cox (bill@cygnus.com)
5557 * ch-actions.c: Fix comments.
5558 * ch-parse.y: Define caseaction_flag.
5559 (caseaction): Create new caseaction_flag node at the start,
5560 then free it at the end. Check it before the ELSE code.
5561 (expanded_case_label): Check the flag here. If set in either
5562 place, generate a jump to the end of the case.
5563 * ch-typeck.c (build_chill_slice_with_length,
5564 build_chill_slice_with_range): Add lots of compile-time
5565 parameter range checking.
5567 Mon Jan 3 21:49:04 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5569 * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
5570 implicit==0 everywhere, not 1.
5571 (digest_constructor): Ditto.
5573 * ch-actions.c (check_range): Permit limits to be NULL_TREE.
5574 Also, hack out some dead code.
5575 * ch-typeck.c (build_chill_slice): Check varying and non-varying
5576 slice constructs for range failures.
5577 (build_chill_slice_with_range): Reindented, but not changed.
5579 * ch-typeck.c (chill_max_vary_array_index): New function.
5580 * ch-expr.c (chill_expand_expr): Call it.
5582 * ch-decl.c (var_data_id, var_length_id): New variables.
5583 (init_decl_processing): Initialize them. All calls to
5584 get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
5585 by references to these variables. This simplifies the code
5586 w/o obscuring anything.
5588 Mon Jan 3 21:24:44 1994 Bill Cox (bill@cygnus.com)
5590 * c-typeck.c: Fix comment.
5591 * ch-actions.c (chill_expand_assignment): Error assigning to
5592 READONLY location. (PR_3903) Pass filename, linenumber
5593 to setbitpowerset runtime routine.
5594 * ch-decl.c (init_decl_processing): Add filename, linenumber
5595 parameters to setbitpowerset prototype.
5596 * ch-expr.c (build_chill_function_call): Error when passing a
5597 READonly location as a LOC or INOUT parameter.
5598 * ch-parse.y (mode): Correct code marking type as readonly.
5600 Mon Jan 3 19:03:55 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5602 * ch-actions.c (chill_expand_assignment): Disable code that defeats
5603 building varying array references.
5604 * ch-expr.c (chill_expand_expr): Add rangecheck code to
5605 VARY_ARRAY_REF case.
5606 * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
5607 function (in this case, `validate_varying_array_ref') when we're
5608 doing a `build_' operation.
5610 * ch-typeck.c (validate_varying_array_ref): Simplify interface
5611 since INDEX parameter can never meaningfully be an INDEXLIST.
5612 * ch-actions.c (expand_varying_length_assignment): Caller changed.
5614 Mon Jan 3 07:29:45 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5616 * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
5617 * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
5618 if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
5619 (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
5620 call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD). This
5621 can happen when constructors are output incrementally.
5622 * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
5623 * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
5626 Sun Jan 2 08:17:09 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5628 * ch-convert (digest_structure_tuple): Handle SET_TYPEs. Also, call
5629 `convert' so we can handle INSTANCE types (and other anomolies)
5632 * ch-convert.c (digest_structure_tuple): Fixed variant
5633 structure initialization. Also fixed a typo (TYPE_NAME
5634 was being used on a FIELD_DECL instead of DECL_NAME).
5635 * c-typeck.c (initializer_constant_valid_p): Pass missing
5636 ENDTYPE argument on recursive call.
5637 (set_init_field): New function, needed by ch-convert.c change above.
5639 * ch-decl.c (layout_chill_variants): Added a FIXME next to an
5640 almost certain typo.
5642 * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
5643 TREE_CONSTANT for static references.
5644 * ch-except.c (chill_start_on): Change calls to
5645 `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
5646 which has CHILL semantics.
5647 * ch-convert.c (convert): Ditto (albeit in some disabled code).
5649 Sat Jan 1 21:26:43 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5651 * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
5652 TREE_CODE of DECL in case it's altered by actions in the switch.
5654 * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan. CVS log
5655 mentions where to find code that triggers this case.
5657 * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
5660 * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
5661 we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
5662 (digest_constructor): Ditto.
5664 Sat Jan 1 10:29:19 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5666 * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
5667 so that CONSTRUCTORS are properly handled before being used.
5669 * ch-convert.c (chill_start_init): New function. All callers to
5670 `start_init' changed to call this function instead.
5671 (digest_struct_tuple): Defend against initialization machinery
5672 mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
5673 IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots. This is
5674 needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
5675 can be refered to throughout the compilation unit. Also remove an
5676 extraneous call to `process_init_element' erroneously added to the
5677 variant record sub-loop.
5678 (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
5679 CONSTRUCTORS of SET_TYPE.
5680 * ch-parse.y (build_chill_constructor): Refix typo. Also set
5681 TREE_STATIC if at top level.
5683 * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
5684 TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
5685 should have been called.
5687 * ch-convert.c (digest_struct_tuple): Restore code which tracks
5688 field initializations so that the compiler can deduce what variant
5689 initializations to assume.
5691 * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
5692 when we push into a scope that has a DECL with a CONSTRUCTOR as its
5695 * ch-parse.y (build_chill_constructor): Change the name of the
5696 parameter to something more meaningful. Fix typo. Also, handle case
5697 where element is an untyped CONSTRUCTOR.
5699 * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
5700 constant ADDR_EXPRs.
5701 (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
5702 on JBUF_REF (instead of calling `build1' which does not).
5704 * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
5706 * ch-typeck.c (chill_expand_tuple): Deleted.
5707 * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
5708 instead, use initialization machinery for CONSTRUCTORS that
5710 * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
5711 that are created here.
5712 * ch-satisfy (satisfy): Abort in case we would have called
5713 chill_expand_tuple. FIXME: some other code is needed here,
5714 but I don't know what yet.
5716 * ch-parse.y (build_chill_constructor): New function to
5717 propagate TREE_CONSTANT bits to CONSTRUCTORS.
5718 (untyped_expr rule): Use it.
5719 (primval rule): Use it.
5721 * ch-decl.c (do_decl): Call `finish_init'.
5722 * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
5723 this function, make sure the initialization machinery is set up.
5725 * ch-convert.c (digest_structure_tuple, digest_constructor): Add
5728 Fri Dec 31 11:31:01 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5730 * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
5731 as being TREE_CONSTANT. Otherwise it gets bounded by the initializer
5734 * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
5735 * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
5736 rewritten to work with GCC's initialization code. The basic change
5737 was to keep the initializers in sync with the initialization
5738 machinery that `process_init_element' imposes. Both of these
5739 functions now return `void'.
5740 * ch-convert.c (convert): Changed calls to `digest_...' functions.
5742 FIXME: the code handling UNION_TYPE (and variant records) has not
5745 Fri Dec 31 15:32:56 1993 Bill Cox (bill@rtl.cygnus.com)
5747 * ch-lex.l (convert_number): Output the converted number if
5749 * ch-parse.y (signaldef): Set ignore_exprs correctly for a
5752 Fri Dec 31 13:17:48 1993 Bill Cox (bill@cygnus.com)
5754 * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
5755 a RETURN without a value (which cannot have an exception
5756 handler) from a RETURN with a value (which can). Eliminate
5757 some shift/reduce and reduce/reduce conflicts.
5759 Thu Dec 30 17:42:32 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5761 * ch-inout.c (build_chill_writetext): Deal with 2 cases where
5762 types returned from `type_for_size' are not expected. FIXME.
5763 * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
5764 This is required when range checking is enabled.
5766 Thu Dec 30 14:28:25 1993 Bill Cox (bill@rtl.cygnus.com)
5768 DELAY CASE works now.
5769 * ch-decl.c (init_decl_processing): Move rest of tasking-related
5770 initialization into tasking_init().
5771 * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
5772 (optsetprio): New non-terminal.
5773 * ch-tasking.c (get_task_name): Delete, obsolete.
5774 (build_instance_type): build pointer to instance type also.
5775 (build_receive_case_start): Cleanup per -Wall messages.
5776 (build_receive_case_label): Move between start and end functions.
5777 (build_delay_case_start): Pass SET name and priority also.
5778 Generally update to correct functioning.
5779 (build_delay_case_label): Move between start and end fucntions,
5780 correct its functioning.
5781 (build_delay_case_end): Correct the code.
5782 (tasking_init): Lots of tasking-related code moved here from
5783 init_decl_processing.
5784 * ch-tree.h: Update, add prototypes.
5786 Wed Dec 29 10:13:10 1993 Bill Cox (bill@rtl.cygnus.com)
5788 * ch-expr.c (build_chill_indirect_ref): Revert change which
5789 failed full regression testing.
5790 * ch-lex.l (name_type_signal): Add debug output.
5791 * ch-parse.y (structured_variable): Add a debug variable.
5793 Wed Dec 29 02:05:51 1993 Bill Cox (bill@rtl.cygnus.com)
5795 * ch-decl.c (get_next_decl): Revert change which failed full
5798 Tue Dec 28 18:20:14 1993 Bill Cox (bill@rtl.cygnus.com)
5800 DELAY actions work now.
5801 * ch-decl.c: Correct spelling in comments.
5802 (get_next_decl): NULL out the decl's TREE_CHAIN before returning
5803 it, to prevent accidental access to the remembered_decls.
5804 (init_decl_processing): Add wait_event to runtime functions.
5805 * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
5806 becoming a seg fault.
5807 * ch-grant.c: Correct a comment.
5808 * ch-loop.c: Delete/correct comments.
5809 * ch-parse.y (delaycaseaction): Add push/poplevel calls. Turn 'sorry'
5810 into rough draft of actual code.
5811 (delayaction): Don't make a new scope here, use get_unique_identifier
5813 (locdec): process event decls here, too.
5814 (mode): Add code to forbid READonly EVENT and BUFFER decls. Delete
5815 code which required EVENTs and BUFFERs to be declared at global scope.
5816 (simple_name_string): Add an EVENTNAME.
5817 * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
5818 becoming a seg fault.
5819 * ch-tasking.c (tasking_setup): Add the event queue's max. length
5820 as the 'entry_point' parameter in the list.
5821 (build_receive_case_start, build_receive_case_label): Defer
5822 calling runtime routine until we know whether we have a signal
5823 or a buffer to wait for.
5824 (build_delay_case_start, build_delay_case_end,
5825 build_delay_case_label, build_delay_action,
5826 process_event_decls): Added functions.
5827 * ch-typeck.c (chill_similar): Allow all integers of differing
5828 precisions to be similar.
5830 Thu Dec 23 18:00:40 1993 Bill Cox (bill@rtl.cygnus.com)
5832 * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
5833 options. Delete C-specific defines. Disable piping from
5834 pre-processor to cc1chill (even if -pipe is specified), since cc1chill
5835 rewinds its input for its second pass. Piping still works
5836 from cc1chill to as.
5838 Thu Dec 23 12:31:55 1993 Bill Cox (bill@rtl.cygnus.com)
5840 * ch-tasking.c (decl_tasking_code_variable): Assure that the
5841 tasking_code variable is allocated on the permanent obstack.
5842 (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
5843 queue length (passed as the entry_point parameter).
5844 Other changes to variable names to increase 'self-documentation'
5845 the only kind GNU CHILL will get, for a while..
5847 Wed Dec 22 10:46:31 1993 Bill Cox (bill@rtl.cygnus.com)
5849 * ch-decl.c (do_seize): Delete - it's unused. Fix comments.
5850 * ch-loop.c (build_chill_iterator): Convert BY expression
5851 so loop involving a SET works. Additional errors generated
5852 for numbered SET expression as start or end expression.
5853 * ch-tree.h: Prototypes for future DELAY functions.
5854 * ch-typeck.c: Standard indentation.
5856 Tue Dec 21 15:30:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
5858 * ch-actions.c (build_cause_exception): New function.
5859 (expand_cause_exception): Re-write to use build_cause_exception.
5860 (check_expression, check_range): New functions.
5861 (chill_convert_for_assignment): New function.
5862 * ch-expr.c (build_chill_pred_or_succ): New function.
5863 (build_chill_succ, build_chill_pred): Removed.
5864 (build_generalized_call): Use build_chill_pred_or_succ.
5865 * ch-lex.h, ch-lex.l (init_lex): Add RID_OVERFLOW and RID_RANGEFAIL.
5866 * ch-lex.l (init_lex): Use new macro to make more terse.
5867 * ch-typeck.c (chill_equivalent): New function.
5868 Also check that ranges have the same bounds.
5869 * ch-typeck.c (my_build_array_ref): Add optional range-checking.
5870 * ch-typeck.c (chill_location): Handle COMPOUND_EXPR properly.
5871 Return 2 if also a referable.
5872 * ch-typeck.c (chill_referable): Re-define to use chill_location.
5873 * ch-tree.h (CH_EQUIVALENT): Re-defined to use chill_equivalent.
5875 * dbxout.c (dbxout_type): Output the type attribute "@S;" to
5876 distinguish a string from a char array, and to distinguish a
5877 bitstring from regulat (power)set. (Needed for Chill.)
5878 * dbxout.c (dbxout_type): Only check for baseclasses in
5879 type.binfo is a vector. (It is used in Chill for tagged unions.)
5881 Fri Dec 17 09:56:07 1993 Bill Cox (bill@rtl.cygnus.com)
5883 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
5884 ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
5885 ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
5887 * ch-actions.c (chill_expand_assignment): Error if assigning
5888 a value to a BUFFER or EVENT variable.
5889 * ch-expr.c (invalid_left_operand): Delete, unused.
5890 * ch-grant.c (tasking_setup): Call build_enum_tables.
5891 * ch-inout.c (get_final_type_and_range, build_enum_tables,):
5893 (build_chill_writetext): Lots of changes to support other
5894 basic CHILL data types.
5895 * ch-loop.c (build_chill_iterator): Lots of new code to check
5896 the expressions in a STEP loop.
5897 * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
5898 names in receivecasealternative. Generate error messages
5899 if they're mixed in the same receive case.
5900 (process_buffer_decl): Renamed from build_buffer_decl.
5901 * ch-tree.h: Fix prototypes.
5902 * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
5903 correctly. Thanks Per!
5905 Wed Dec 15 15:05:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
5907 * ch-decl.c (push_scope_decls): Re-arrange some more, so
5908 that normal SEIZES (without ALL) are handled before SEIZE ALL.
5910 Wed Dec 15 13:01:22 1993 Bill Cox (bill@rtl.cygnus.com)
5912 * ch-loop.c (declare_temps): Calculate end-of-array pointer
5913 using correct type (NOT chill_integer_type).
5914 (begin_chill_loop): Build loop-bypass expression in the
5915 type of the start expression, not in the unsigned type.
5917 Tue Dec 14 15:41:32 1993 Per Bothner (bothner@kalessin.cygnus.com)
5919 * ch-decl.c (push_scope_decls): Re-arrange so that normal
5920 (non-seize) declarations are proclaim_decl'd *before* we
5921 handle the ALIAS_DECLs for seizes. The advantage is
5922 that we can now test for (an approximation) to the
5923 'seizeable' concept, thus avoiding duplicate definitions
5924 when a module has both GRANTs and SEIZE ALL.
5926 * ch-expr.c (build_chill_arrow_expr): No longer re-write
5927 addr-of-conversion to pointer-conversion-of-addr.
5928 * ch-expr.c (build_chill_addr_expr): Re-write to just use
5929 build_chill_arrow_expr.
5931 Mon Dec 13 16:44:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
5933 * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr): Don't re-write
5935 * ch-tree.h (chill_root_resulting_mode): Fix typo (missing '_').
5937 * ch-expr.c (finish_chill_binary_op): Use CH_ROOT_RESULTING_MODE
5938 macro (which works on expressions), rather than CH_RESULTING_MODE
5939 (which works on modes, and isn't quite correct).
5940 * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE): New macro.
5941 * ch-typeck.c (chill_read_compatible, chill_compatible):
5942 Use the new macro, which handles NEWMODEs of PTR correctly.
5943 * ch-typeck.c (chill_similar): Return 1 rather than 0 for
5944 dynamic-length array (and string) types (e.g. slices).
5945 * ch-typeck.c (chill_root_mode): If the mode has a Novelty,
5946 just return it as is. (This is still not 100% correct for
5947 NEWMODE of RANGEs, but is close enough.)
5949 Mon Dec 13 16:27:06 1993 Bill Cox (bill@rtl.cygnus.com)
5951 * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
5952 build_buffer_decl, which then seg faults.
5953 * ch-tasking.c (build_buffer_descriptor): Move declaration
5954 of bufdecl closer to its use.
5956 Mon Dec 13 14:57:55 1993 Bill Cox (bill@rtl.cygnus.com)
5958 * ch-actions.c (chill_expand_result): Use expand_expr_stmt
5959 to avoid C-specific conversions.
5960 * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
5961 * ch-parse.y (sendaction): Delete unused statement, use the 'name'
5963 * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
5965 (build_buffer_decl): Save the tasking_code_variable's decl
5966 in the buffer decl tree.
5967 (build_buffer_descriptor): Real, working version.
5969 Mon Dec 13 03:13:36 1993 Bill Cox (bill@rtl.cygnus.com)
5971 * ch-decl.c (print_lang_identifier): Delete code
5972 to print buffer size - it's no longer kept here.
5973 * ch-parse.y (expand_send_buffer): Renamed from
5975 (locdec): Enable building of a buffer decl.
5976 (optresultspec, optresultattr): Add optional
5977 result attributes such as LOC. Semantics
5979 * ch-tasking.c (expand_send_buffer): Renamed.
5980 * ch-tree.h (build_send_buffer): Renamed.
5981 * ch-typeck.c (chill_expr_class): Do more complete,
5982 job of classifying expressions. Thanks, Per.
5984 Mon Dec 13 00:59:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
5986 * ch-typeck.c (chill_expr_class): Return CH_DERIVED_CLASS
5987 for bitstring constants.
5988 * ch-typeck.c (chill_novelty): The novelty of an (unnamed)
5989 range mode is that of its parent mode; the novelty of READ M
5992 Sat Dec 11 15:14:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
5994 * ch-expr.c (varying_to_slice): Call stabilize_reference
5995 rather than save_expr.
5996 * ch-typeck.c (build_chill_slice): Don't emit warning
5997 if array is a SAVE_EXPR (it is effectively referable).
5998 * ch-typeck.c (chill_root_resulting_mode): Handle
5999 correctly the case that one operand is DERIVED and one is VALUE.
6001 Fri Dec 10 10:00:42 1993 Bill Cox (bill@rtl.cygnus.com)
6003 * ch-grant.c (decode_decl): Restore code mistakenly deleted.
6004 Move instance-handling code to raw_decode_mode.
6005 * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
6006 Add rough draft of DELAY statement handling.
6007 * ch-tasking.c (build_event_type): New function.
6008 * ch-tree.h (build_event_type): Add prototype.
6009 * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
6011 Wed Dec 8 18:02:26 1993 Bill Cox (bill@rtl.cygnus.com)
6013 Parse and grant BUFFER modes.
6014 * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
6015 Moved from decode_decl.
6016 * ch-parse.y: Fix several sorry() messages.
6017 * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
6020 Wed Dec 8 12:59:54 1993 Per Bothner (bothner@kalessin.cygnus.com)
6022 * ch-actions.c (chill_expand_assignment): In a multiple
6023 assignment, check that all the targets are equivalent.
6025 * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT): New function
6026 and macro to (partially) implement the relation l-equivalent.
6027 * ch-typeck.c (chill_read_compatible): Implement at least
6028 initial check of read-only-ness.
6029 * ch-typeck.c (build_readonly_type): Fix thinkos.
6031 Wed Dec 8 09:11:46 1993 Bill Cox (bill@rtl.cygnus.com)
6033 * ch-decl.c (pop_module): Only warn about duplicate grant
6034 statements if they inhabit different files, by examining
6035 inode numbers. Only report compatibility problems in pass 1.
6036 * ch-lex.l (chill_same_grant_file): New function to support the
6039 Tue Dec 7 17:10:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
6041 * ch-decl.c (start_chill_function): Handle attributes in pass 1,
6042 rather than in pass 2. (It seems to make more sense that way.)
6043 * ch-parse.y (procedureattr): Build attribute list if pass != 2.
6045 * ch-parse.y (mode): Don't call build_readonly_type in pass 2.
6047 Mon Dec 6 14:35:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
6049 This implements NOVELTY and READONLY checking.
6050 * ch-tree.def: Added comment about use of LANG_TYPE.
6051 * ch-typeck.c (build_readonly_type, smash_dummy_type): New functions.
6052 * ch-tree.h: New prototypes.
6053 * ch-decl.c (push_modedef): If newmode, lazily "copy" the given mode
6054 immediately (even if it's just a type name), using a LANG_TYPE.
6055 * ch-parse.y (mode): Call build_readonly_type to handle READ.
6056 * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6057 ch-satisfy.c (satisfy): Handle a LANG_TYPE.
6058 * ch-decl.c: Remove chill_modes_equiv and other unused junk.
6059 * ch-satisfy.c (safe_satisfy_decl/CONST_DECL): Better
6060 mode compatibility checking for SYN declarations.
6062 * ch-typeck.c (chill_similar): Be more general when checking set
6063 modes for similarity - specifically support calling chill_similar
6064 BEFORE the modes have been satisfied (needed by proclaim_decl).
6065 * ch-decl.c (proclaim_decl): Allow duplicate definitions
6066 of set elements of similar set modes.
6068 * ch-parse.y (caseaction): Call language-independent
6069 expand_start_case rather than c_expand_start_case (which
6070 doesn't allow chars or booleans).
6072 Sat Dec 4 22:16:19 1993 Bill Cox (bill@rtl.cygnus.com)
6074 * ch-actions.c (cond_range_exception,
6075 cond_type_range_exception): Check command-line flag before
6076 generating code. Fix comments.
6077 * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6078 code, commented out.
6079 * ch-loop.c (build_chill_iterator): Comment out
6080 exception code generation.
6081 * ch-parse.y: Delete quasi_signal flag, use
6082 current_module->is_spec_module instead.
6083 * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6084 Delete quasi_decl flag. Look at current_module
6086 * ch-tree.h: Take quasi_decl flag out of buffer
6088 * ch-typeck.c (valid_array_index, chill_similar):
6089 Comment out runtime range checking for now.
6090 * expr.c (store_constructor): Fix word-size set problem.
6091 * varasm.c (emit_set_data): Fix word-size set problem.
6093 Wed Dec 1 19:08:12 1993 Bill Cox (bill@rtl.cygnus.com)
6095 * ch-actions.c: Delete unused prototype for build_compound_expr.
6096 * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6097 expression to lp->iter_type before expanding it. Prevents an abort
6098 deep in expand_expr and friends.
6100 Wed Dec 1 17:00:44 1993 Bill Cox (bill@rtl.cygnus.com)
6102 * ch-actions.c (chill_expand_assignment): Comment out strange
6103 test and its error message.
6104 * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6105 jump around the loop.
6106 * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6108 Wed Dec 1 14:19:51 1993 Bill Cox (bill@rtl.cygnus.com)
6110 * ch-actions.c (cond_exception): Clarify that it generates
6111 an exception if the given expression is TRUE. Make it so, Number One.
6112 * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6113 (print_lang_type): Print max queue size.
6114 Add casts to DECL_TASKING_CODE_DECL references. Fixes a
6115 portability problem.
6116 (init_decl_processing): Add filename and linenumber arameters
6117 to tasking and memory-allocate runtime prototypes.
6118 * ch-expr.c (finish_chill_binary_op): Check for division
6119 by a constant zero. Replace build_temporary_variable
6120 calls with decl_temp1 calls, to decouple from ch-loop.c.
6121 (build_chill_succ, build_chill_pred): Sketch code to generate
6122 exceptions. Add error check for numbered set.
6123 (build_generalized-call): Correct call for return_memory.
6124 Standardize whitespace before left parens.
6125 * ch-grant.c: Use new macro for checking for BUFFER mode.
6126 * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6128 * ch-loop.c (build_temporary_variable): Make static, unavailable
6130 (declare_temps): Make user's variable for him/her, in the
6131 true Z.200 case, where it hasn't previously been declared.
6132 (begin_chill_loop): simplify control flow a bit.
6133 * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6134 (rccase_label): Delete bogus error checks. Rough draft of
6135 BUFFER-related code.
6136 (assertaction): Remove logical negation - it's now in cond_exception.
6137 (locdec): Sketch of buffer-related code.
6138 (non_array_mode): Add EVENT and BUFFER modes here. Add setting of
6139 set-numbered flag for pred and succ functions.
6140 (optqueuesize): Default to integer_zero_node.
6141 (simple_name_string): Add BUFFERNAME.
6142 * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6143 (build_chill_start_process, expand_send_signal,
6144 build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6145 to tasking-related runtime calls. Sketches of BUFFER mode
6147 * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6148 macro, for portability to non-gcc compilers. Add prototypes
6149 for buffer-related functions.
6150 * ch-typeck.c: Replace build_temporary_variable calls with
6151 decl_temp1 calls, to decouple from ch-loop.c.
6152 (chill_similar): Add tests for BUFFER and EVENT modes.
6154 Wed Dec 1 14:05:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
6156 * ch-actions.c (malloc prototype): Remove; can cause conflicts.
6158 Wed Dec 1 09:49:58 1993 Bill Cox (bill@rtl.cygnus.com)
6160 * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6162 Tue Nov 30 14:05:23 1993 Bill Cox (bill@rtl.cygnus.com)
6164 * ch-decl.c (init_decl_processing): Add filename, line number
6165 parameters to tasking-related runtime routines.
6166 * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6167 * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6169 (quasi_locdec): Set/reset quasi_decl flag.
6170 * ch-tasking.c (build_start_process, expand_send_signal,
6171 build_receive_case_start, build_send_buffer): Add filename. linenumber to
6172 (build_buffer_decl, build_buffer-type): New rough-draft functions.
6173 generated runtime routine call.
6174 * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6175 to mark a synchronization mode. Update the prototypes.
6176 * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6179 Tue Nov 30 09:51:47 1993 Doug Evans (dje@canuck.cygnus.com)
6181 * cccp.c (main): Add missing chill sanitization.
6183 Sun Nov 28 15:50:10 1993 Bill Cox (bill@rtl.cygnus.com)
6185 * ch-loop.c (initialize_iter_var): Build count expression
6187 (bottom_loop_end_check): Call emit_line_note.
6188 (end_chill_loop): Delete emit_line_note call.
6189 * ch-parse.y (doaction): Move DO keyword
6190 after end_chill_loop call.
6192 Wed Nov 24 08:49:07 1993 Bill Cox (bill@rtl.cygnus.com)
6194 * c-typeck.c (c_expand_start_case): Back out previous
6197 Tue Nov 23 12:33:50 1993 Bill Cox (bill@rtl.cygnus.com)
6199 * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6200 type as a CASE label.
6202 Tue Nov 23 11:37:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
6204 * ch-decl.c (grok_chill_variantdefs): Use NULL as the name
6205 of variant fields (not __CASE or anything based on it).
6206 * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6207 Don't check for field name __CASE.
6209 Tue Nov 23 09:37:54 1993 Bill Cox (bill@rtl.cygnus.com)
6211 * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6212 name for the FIELD_DECL.
6213 * ch-parse.y (optstartset): More error tests.
6214 * ch-tasking.c (make_process_struct): Only report error in pass 1.
6215 (build_start_process): Remove bogus restriction, allowing
6216 an INSTANCE expression as the optset parameter.
6218 Mon Nov 22 17:56:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6220 * ch-tree.h (expand_function_end): Now is takes parameters, not 2.
6221 * ch-decl.c (finish_chill_function): Add 3rd parameter to
6222 call of expand_function_end.
6224 * ch-expr.c (chill_expand_expr): For set and strings ops,
6225 if target is in a register, use a stack temporary (since we must
6226 take its address). (Similar to Oct 29 change for store_constructor.)
6227 * ch-expr.c (resolve_component_ref): Fix variant field lookups.
6229 Mon Nov 22 14:23:13 1993 Bill Cox (bill@rtl.cygnus.com)
6231 * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6232 parameter 1 and its mode are always in sync.
6233 (build_chill_pred, build_chill_succ): Allow pred/succ of a
6235 * ch-loop.c (chill_unsigned_type): New function, used instead of
6236 unsigned-type, since it understands the chill_integer_type.
6237 (decl_iteration_var): Delete, use build_temporary_variable
6239 (declare_temps): Use lp->iter_type for the temp evaluations.
6240 (initialize_iter_var): More careful calculation, to handle
6241 MININT to MAXINT loops w/o overflow/underflow.
6242 (begin_chill_loop): Use the original start/end expressions
6243 for the loop bypass test.
6245 Mon Nov 22 14:02:06 1993 Per Bothner (bothner@kalessin.cygnus.com)
6247 * ch-typeck.c (build_chill_slice): If the argument is
6248 is constant, use a read-only static variant, as the
6249 existing algorithm assumes addressability.
6250 * ch-typeck.c (chill_compatible): De-reference reference types.
6251 * ch-typeck.c (layout_chill_range_type): Set TREE_UNSIGNED.
6253 Sat Nov 20 20:17:15 1993 Bill Cox (bill@rtl.cygnus.com)
6255 * ch-decl.c (init_decl_processing): Add filename
6256 and linenumber to allocate, free memory calls.
6257 * ch-expr.c (build_allocate_memory_call,
6258 (build_allocate_global_memory_call): Add
6259 filename, linenumber to call.
6260 * ch-loop.c: Complete rewrite for maintainability.
6262 Sat Nov 20 17:30:05 1993 Per Bothner (bothner@kalessin.cygnus.com)
6264 * ch-except.c: Make it so that (by default at least) the
6265 code to push/pop the __exceptionStack is done using library
6266 functions __ch_link_handler and __ch_unlink_handler. This
6267 provides better flexibility (for e.g. multi-threading).
6269 * ch-decl.c (layout_chill_variants): Allow (useless) selectors
6270 even for tag-less variants.
6272 Fri Nov 19 14:32:20 1993 Bill Cox (bill@rtl.cygnus.com)
6274 * ch-decl.c (init_decl_processing): Add memmove builtin
6275 function definition.
6276 * ch-actions.c (chill_expand_array_assignment): Use memmove
6277 call to copy an array or slice across the assignment.
6279 Wed Nov 17 18:23:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
6281 * ch-satisfy.c (satisfy): If a CONTRUCTOR already has a
6282 TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6283 to force expansion (processing of the elements).
6284 * ch-grant.c (decode_constant): If a tuple (CONTRUCTOR) has
6285 a mode, write it out.
6286 * ch-decl.c (init_decl_processing): Add some missing inits.
6288 Wed Nov 17 17:13:20 1993 Bill Cox (bill@rtl.cygnus.com)
6290 * ch-loop.c: Fix unterminated strings in design comments.
6291 Add enumeration to the iterator structure for type of loop.
6294 Wed Nov 17 16:40:05 1993 Bill Cox (bill@rtl.cygnus.com)
6296 * ch-decl.c (init_decl_processing): Add long parameters to lots
6297 of powerset runtime routines.
6298 * ch-expr.c (chill_expand_expr): Change parameters to powerset
6299 runtimes so bitlengths are long unsigned ints.
6300 * ch-inout.c (build_chill_writetext): Add filename and linenumber
6301 as runtime parameters, for better error messages.
6302 * ch-loop.c: general pre-rewrite cleanup.
6303 * expr.c (store_constructor): Rewrite set interface to
6304 setpowersetbits for long bitnumbers, rather than shorts.
6306 Tue Nov 16 13:41:12 1993 Bill Cox (bill@rtl.cygnus.com)
6308 * ch-expr.c (build_chill_function_call): Stop generating empty
6309 copyback statements, which lead to a seg fault.
6311 Tue Nov 16 12:20:17 1993 Per Bothner (bothner@cygnus.com)
6313 * ch-satisfy.c (satisfy): If satisfying a type whose
6314 TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6315 * ch-actions.c (build_exception_variant): Remove some crud.
6316 * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6317 Remove unused first argument.
6318 * ch-decl.c (start_chill_function): Call build_exception_variant
6319 in pass 1, not in pass 2.
6321 Tue Nov 16 11:10:03 1993 Bill Cox (bill@rtl.cygnus.com)
6323 * ch-decl.c (shadow_record_fields): Call new function
6324 build_chill_arrow_expr, which returns a ptr-to-a-type.
6325 * ch-expr.c (build_chill_arrow_expr): New function, works like
6326 build_chill_addr_expr used to do, returning a typed ptr.
6327 (build_chill_addr_expr): Now returns unbound ref - analogous
6329 * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6330 (operand6): Call build_chill_arrow_expr. Reindent a bit.
6331 * ch-tree.h (build_chill_arrow_expr): New prototype.
6333 Mon Nov 15 16:38:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
6335 * stor-layout.c (layout_type): If a SET_TYPE needs more than
6336 INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6338 * ch-decl.c (start_chill_function): Set DECL_CONTEXT of params.
6340 Mon Nov 15 14:49:17 1993 Bill Cox (bill@rtl.cygnus.com)
6342 * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6343 build_function_call, etc.) to tasking_init.
6344 * ch-gperf, ch-hash.h: Add ASM keyword.
6345 * ch-parse.y: Add ASM statement rules.
6346 (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6347 * ch-tasking.c: Move tasking stuff here.
6349 Sun Nov 14 15:50:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6351 * ch-parse.y (mode2): Split into array_mode and non_array_mode
6352 to resolve layout ambiguity.
6353 * ch-parse.y (checked_name): Remove. Use name_string instead.
6354 * ch-parse.y (variantdef): Don't crash if no tag fields.
6355 * ch-typeck.c (build_chill_array_type): If varying_p,
6356 actually do build_varying_struct here (rather than in ch-parse.y).
6358 Fri Nov 12 15:37:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
6360 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6361 static names. (Let make_decl_rtl generate a unique name.)
6363 Sun Nov 14 13:15:26 1993 Bill Cox (bill@rtl.cygnus.com)
6365 * ch-expr.c (build_chill_lower, cuild_chill_upper):
6366 Rewrite for modes, values, etc.
6367 * ch-inout.c (build_chill_writetext): Add ability
6368 to write out characters.
6369 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6370 static names. (Let make_decl_rtl generate a unique name.)
6371 * varasm.c (unpack_set_constructor): Subtract
6372 lower domain value from a bit's index value,
6373 to match the runtime and allow powersets
6374 with negative lower bounds.
6376 Fri Nov 12 14:00:48 1993 Bill Cox (bill@rtl.cygnus.com)
6378 * ch-inout.c (build_chill_writetext): Save reserved words in
6379 uppercase if -fspecial_UC was specified.
6381 Fri Nov 12 13:27:12 1993 Per Bothner (bothner@rtl.cygnus.com)
6383 * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6384 string concatenation by treating varying strings as slices.
6385 (varying_to_slice): New function.
6386 * ch-typeck.c (build_chill_slice): Changed to support the above.
6388 Fri Nov 12 12:07:28 1993 Bill Cox (bill@rtl.cygnus.com)
6390 * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6391 * ch-expr.c (build_generalized_call): Start module before a
6392 writetext action, so its variables are inside the module-level
6394 * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6395 for enumeration loop on a varying array.
6397 Thu Nov 11 07:49:53 1993 Bill Cox (bill@rtl.cygnus.com)
6399 * cccp.c (main): Disable trigraphs for CHILL.
6400 * ch-decl.c (grok_chill_fixedfields): Add special_UC
6401 to conditional to determine case of reserved words.
6402 Make PACK/UNPACK warning more specific.
6403 * ch-expr.c (build_generalized_call): Enable recognition
6404 of WRITETEXT call here.
6405 * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6406 word. It's only predefined.
6407 * ch-inout.c: Add special_UC to conditionals
6408 to determine case of reserved words.
6409 (build_chill_writetext): Change for call from
6410 build_generalized_call. Add code to format
6412 * ch-lang.c (lang_decode_option): Add special_UC and
6413 special_LC flags and logic to interlock with
6415 * ch-lex.l: Add special_UC to conditionals
6416 to determine case of reserved words.
6417 * ch-parse.y: Delete WRITETEXT as reserved word.
6418 * ch-tasking.c: Add special_UC to conditionals
6419 to determine case of reserved words.
6420 (build_instance_type): Make components of INSTANCE
6421 unsigned 16-bit integers.
6422 * ch-tree.h (build_chill_writetext): Fix prototype.
6423 * ch-typeck.c (build_chill_array_type): Make PACK
6424 /UNPACK warning more specific.
6425 * toplev.c (lang_options): Add -fspecial_LC
6426 and -fspecial_UC flags.
6428 Wed Nov 10 02:29:53 1993 Bill Cox (bill@rtl.cygnus.com)
6430 * Makefile.in: Move ch-hash.h from ch-lex.o
6431 rule to ch-lex.c rule, so flex is rerun.
6432 * ch-actions.c (chill_expand_assignment): Error if
6433 user tries to assign to a LHS function.
6434 * ch-decl.c (grok_chill_fixedfields): Use of PACK
6435 /UNPACK is only a warning.
6436 (init_decl_processing): Add ADDR as a builtin function.
6437 * ch-expr.c (build_generalized_call): Add ADDR
6438 as a builtin function.
6439 (build_chill_addr_expr): Sanity check parameters.
6440 * ch-gperf: Remove ADDR as a reserved word,
6442 * ch-hash.h: gperf'd version of the above.
6443 * ch-inout.c (chill_stdio_p): Recognize upper/lower
6445 * ch-lex.l: Make ignore-case work. Downcase
6446 token before checking for reserved words.
6447 * ch-parse.y: Delete ADDR as a reserved word.
6448 (mode2, optlayout): Allow PACK/UNPACK specifier.
6449 (call): Use build_generalized_call for
6450 primval LPRN modename RPRN.
6451 (primval): Delete ADDR reference. It's now only
6452 predefined, not reserved.
6453 * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6454 * ch-typeck.c (build_chill_array_type): Just
6455 a warning for PACK/UNPACK usage.
6456 * toplev.c: Add -fignore-case and -fno-ignore-case.
6458 Tue Nov 9 15:07:02 1993 Bill Cox (bill@rtl.cygnus.com)
6460 * ch-actions.c: Reindent for readability.
6461 * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6462 a conversion to INSTANCE.
6463 * ch-decl.c: Change special_UC to ignore_case everywhere.
6464 (init_decl_processing): Add builtin_function calls for lots of
6465 predefined functions.
6466 * ch-expr.c: Change builtin function handlers back to accepting
6467 args, not a treelist.
6468 (route_to_predefined_function): Delete it and its call.
6469 (build_generalized_call): Add lots of builtin functions.
6470 * ch-gperf (backwards, duration, inttime, null): Delete them.
6471 * ch-hash.h: New version.
6472 * ch-inout.c: Change special_UC to ignore_case everywhere.
6473 * ch-lang.c: Delete special_UC flag.
6474 * ch-lex.l: Change special_UC to ignore_case everywhere.
6475 * ch-loop.c (high_domain_value, low_domain_value): Change
6476 interfaces to build_chill_upper and built_chill_lower.
6477 * ch-parse.y: Delete lots of stuff which should only be predefined.
6478 * ch-tasking.c: Change special_UC to ignore_case everywhere.
6479 Change builtin function handlers back to accepting args,
6481 * ch-tree.h: Add lots of builtin functions to the enumerator.
6483 Mon Nov 8 18:08:27 1993 Bill Cox (bill@rtl.cygnus.com)
6485 * ch-tasking.c (tasking_init): Disable last-minute change for now.
6487 Mon Nov 8 17:30:22 1993 Bill Cox (bill@rtl.cygnus.com)
6489 * Makefile.in: New commands to build ch-hash.h. Add ch-lex.h to
6490 dependencies where it's used.
6491 * ch-decl.c (init_decl_processing): Build predefined constants
6492 for TRUE, FALSE and NULL. Add declaration for abs builtin
6494 (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6495 stuff for builtin constant like TRUE.
6496 * ch-expr.c (route_to_predefined_function): Add a bunch of
6497 predefined functions to the list.
6498 * ch-gperf: Define the list of reserved words, minus the predefined
6499 words, using the special_UC flag. Remove NULL, TRUE, FALSE -
6500 these are only predefined, not reserved.
6501 * ch-hash.h: Check this into repository, even though it's derived
6502 from ch-gperf, for those users who don't have gperf.
6503 * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6504 to refer to the IO types. Standardize the indentation.
6505 * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6506 * ch-lex.l: Total rewrite of reserved-word recognition, using
6507 the ch-hash.h lookup routines.
6508 * ch-parse.y: Delete a bunch of unused rules for predefined
6509 procedures and their parameters.
6510 * ch-tasking.c (tasking_init): Build predefined functions
6511 for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE. Not
6512 complete yet. Change interface to builtin handlers to accept
6513 just an expression list.
6515 Wed Nov 3 18:07:08 1993 Bill Cox (bill@rtl.cygnus.com)
6517 * Makefile.in: Debug, activate rule to make CHILL hash table.
6518 * ch-actions.c: Compress parameter type lists per standard.
6519 * ch-decl.c: Correct spelling in comment, compress parameter lists.
6520 (init_decl_processing): Check special_UC flag to build builtin
6521 function declarations.
6522 * ch-expr.c (route_to_predefined_function): Check for upper OR
6523 lowercase function names.
6524 * ch-gperf: Update the list of keywords.
6525 * ch-inout.c (build_chill_io_list): Check for special_UC flag
6526 to build I/O list type. Compress parameter lists.
6527 (chill_stdio_p): Check for special_UC flag in recognizing
6529 * ch-lang.c (lang_decode_option): Add command-line options
6530 for upper-case keywords and user labels.
6531 * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6532 if special_UC flag is set.
6533 (downcase, getlc, check_newline): Don't do this if ignore_case
6535 * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6536 multiple selector expressions.
6538 Sat Oct 30 01:06:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6540 * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6541 STRUCTs (and INSTANCEs) for equality.
6542 * ch-expr.c (invalid_operand): New functions, combines most of
6543 the functionality of invalid_left_operand and invalid_right_operand.
6544 * ch-convert.c (digest_constructor): Set TREE_CONSTANT if it is.
6546 Sat Oct 30 11:12:47 1993 Bill Cox (bill@rtl.cygnus.com)
6548 * Makefile.in (chill): Add back in the commands to build chill
6549 (the script) from chill.in.
6551 Fri Oct 29 16:25:38 1993 Per Bothner (bothner@kalessin.cygnus.com)
6553 * expr.c (store_constructor): If SET_TYPE target is in a register,
6554 use a stack temporary (since we must take its address).
6556 * ch-expr.c (build_allocate_global_memory_call,
6557 build_allocate_memory_call): Cast argument pointer to PTR,
6558 if needed (using location cast). Also, some other cleanups.
6559 * ch-parse.y (bracketed_action): Re-arrange things so that
6560 a handler following BEGIN END comes before the final poplevel.
6561 * ch-typeck.c (build_chill_cast): Just return if already correct type.
6563 Re-do DO WITH so that build_component_ref for is done lazily
6564 (at each reference) instead of eagerly (at the beginning
6565 of DO WITH). This is needed for tagged variants,
6566 * ch-tree.def (WITH_DECL): New declaration tree code.
6567 * ch-decl.c (lookup_name): Recognize WITH_DECLs.
6568 * ch-decl.c (handle_one_level): Variant parts are currently
6569 indicacted with '__CASE'. Recognize that.
6570 Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
6572 Thu Oct 28 22:17:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6574 * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
6575 Remove some old crud.
6576 * ch-typeck.c (build_chill_cast): Another attempt at a
6577 compromise between robustness and generality for casts.
6578 Location conversions are now less likely to confuse things.
6579 * ch-parse.y (optactions): Allow further optactions following
6580 an initial semicolon.
6581 * ch-parse.y: Add error messages on EVENT and BUFFER.
6583 * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
6584 Undo some of the Oct 27 changes.
6586 Convert (some) builtin functions previously using reserved
6587 names to be just predefined.
6588 * tree.h (enum builtin_in_function): Added END_BUILTINS at end.
6589 * ch-decl.c: Add predefines for allocate_memory,
6590 allocate_global_memory, return_memory, writetext.
6591 * ch-expr.c (check_arglist_length): New function.
6592 * ch-expr.c (build_generalized_call): If "function" is
6593 a builtin, build the appropriate tree.
6594 * ch-parse.y, ch-lex.l: No longer recognize many pre-defined
6595 functions at the lexer/parser level.
6596 * ch-tree.h (enum chill_built_in_function): New type.
6598 Thu Oct 28 16:43:36 1993 Bill Cox (bill@rtl.cygnus.com)
6600 * ch-expr.c (allocate_memory, allocate_global_memory):
6601 Check for invalid parameters, issue errors.
6602 * expr.c (store_constructor): Calculate bitlength, startrtx
6603 and endrtx of powerset correctly. Define targetx, use it
6606 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6608 * ch-expr.c (build_max_min): Error for passing empty tuple
6611 Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6613 * ch-decl.c (init_decl_processing): Make allocate
6614 builtins have a pointer-to-pointer-to-void
6615 first parameter, rather than a reference parameter.
6616 * ch-expr.c (build_allocate_memory_call,
6617 build_allocate_global_memory_call): Do automatic
6618 ADDR () on the first parameter, for backward
6620 * ch-grant.c (grant_one_decl): Don't grant if
6621 DECL_SOURCE_LINE is zero.
6622 (start_chill_module_code): Set DECL_SOURCE_LINE
6623 to zero so that module-level function isn't granted.
6624 * ch-parse.y (handleraction): Add return_memory action.
6625 * ch-typeck.c (chill_similar): Allow a void_type
6626 to be similar to anything. This makes allocate_memory
6627 and return_memory pointer parameters slide through.
6629 Tue Oct 26 00:12:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6631 * ch-typeck.c (build_chill_array_ref): Check for and complain
6632 if there are more index expressions than the array rank.
6634 * ch-actions.c (chill_expand_assignment): Emit appropriate
6635 error message if RHS of multiple assignment is tuple/case/if.
6636 * ch-tree.def (CONCAT_EXPR): Change TREE_CODE_CLASS from
6637 'e' to the more specific '2'. (Fixes a satisfy bug.)
6639 Thu Oct 21 17:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
6641 * ch-parse.y: Revert experimental error-generating change
6642 that was checked in by mistake.
6644 Thu Oct 21 12:15:30 1993 Bill Cox (bill@rtl.cygnus.com)
6646 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6647 code variables associated with a process or signal.
6648 (Apparently I forgot to actually check these in last time.)
6649 * ch-tasking.c: Replace last calls to get_tasking_code with
6650 working references to DECL_TASKING_CODE_DECL.
6652 Thu Oct 21 10:27:42 1993 Bill Cox (bill@rtl.cygnus.com)
6654 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6655 code variables associated with a process or signal.
6656 * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
6657 tasking_code_decl pointer, rather than trying to look it up
6658 in the hash table or linked scope list.
6660 Wed Oct 20 09:52:44 1993 Bill Cox (bill@rtl.cygnus.com)
6662 * ch-actions.c (lookup_and_handle_exit): Only output error message
6664 * ch-convert.c (convert): Correct conversion of VARYING array to/
6665 from non-VARYING one.
6666 * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
6668 (decl_tasking_code_var): Delete it. Its calls are replaced woth
6669 generate_tasking_code_variable calls, plus a little glue.
6670 (push_extern_process): generate tasking_code_variable as local
6671 static variable, point the process' function_decl at it for later
6672 reference by build_start_process.
6673 (print_mode): Use CHILL upper-case convention to print modes.
6674 * ch-lex.l: Must initialize tasking-related trees to NULL at start
6675 of each pass, or we lose the fact that the user did or did not
6676 specify a value for each of them.
6677 * ch-parse.y (check_end_label, action, exceptlist): Only output
6678 error message in pass 1.
6679 (sendaction): Add comments.
6680 (sigdef): Comment out special handling for external signals.
6681 Chain tasking_variable_decl onto signal structure decl, for
6682 easier non-symbol-table access later.
6683 * ch-tasking.c (generate_tasking_code_variable): Do work in both
6684 passes, using do_decl so we can pass the pass 2 value of the
6685 process_type or signal_code to it. Only update the process_type
6686 if the incoming pointer isn't null and pass == 2. Use a new
6687 parameter to know whether to include an init expression.
6688 (build_process_header): Attach tasking-code_variable to process
6689 function_decl for easy access later, not through the hash table.
6690 (build_start_process): Get tasking_code_variable out of the process'
6692 (build_signal_struct_type): Return the type decl, to be accessed by ...
6693 (build_signal_descriptor): .. this function.
6694 (build_receive_case_label): Get data buffer pointer not from hash
6695 table, but from Tiemann's current rc_state structure instead.
6696 * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
6697 macro for tasking_code_variable storage.
6699 Tue Oct 19 17:39:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
6701 * ch-lex.l (equal_number): If the "number" is a CONST_DECL,
6702 return its DECL_INITIAL.
6703 * ch-satisfy.c (safe_satisfy_decl): Change logic for rtl
6704 generation for decls to not use DECL_ASSEMBLER_NAME.
6705 * ch-decl.c: Set DECL_ASSEMBLER_NAME to DECL_NAME.
6706 This matches C, and allows dbxout to emit proper user-level names.
6707 (It would be cleaner to fix dbxout to use DECL_NAME ...)
6708 * ch-decl.c (outer_decls): New global list of the decls granted
6709 into the outer scope.
6710 (pop_module): Change code that grants into outer scope accordingly.
6711 (lookup_name_for_seizing): Similarly update.
6712 (push_scope_decls): Handle SEIZE ALL from the global scope
6713 by searching outer_decls.
6714 * ch-grant.c (grant_array_type): Fix thinko.
6715 * ch-inout.c (build_chill_writetext): Remove excessive TREE_TYPE.
6717 Mon Oct 18 15:57:00 1993 Per Bothner (bothner@kalessin.cygnus.com)
6719 * varasm.c (output_constructor): Add support for non-zero
6721 * c-typeck.c (output_init_element): Revert recent changes.
6722 * varasm.c (emit_set_data): Fix emitting set constant data.
6723 * ch-lex.l (yywrap): Reset line number to 0, not 1.
6724 It sets incremented to 1 by check_newline.
6725 * ch-tree.h: Restore old version.
6726 * ch-expr.c (finish_chill_binary_op): Convert TRUNC_DIV_EXPR
6727 to RDIV_EXPR if an operand is floating. (This functionality
6728 got dropped when hacking finish_chill_binary_op).
6730 * ch-actions.c (build_chill_case_expr): Set type to NULL_TREE.
6731 not error_mark_node.
6732 * ch-actions.c (chill_expand_assignment): Allow such borderline
6733 constructs as: LHS OR:= [X].
6734 * ch-convert.c (convert): Hande CASE_EXPR (and COND_EXPR)
6735 with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
6736 * ch-decl.c (do_decl): Remove CONSTRUCTOR kludge.
6737 * ch-typeck.c (chill_compatible): Allow expr to have NULL mode
6738 if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
6740 Mon Oct 18 13:20:53 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6742 * c-typeck.c (output_init_element): Limit previous changes to
6743 ARRAY_TYPE and SET_TYPE initializers.
6745 Sun Oct 17 23:15:00 1993 Bill Cox (bill@cygnus.com)
6747 * c-typeck.c (output_init_element): Handle NULL domain case.
6748 * ch-decl.c (do_decl): Revert bogus initializer type change.
6749 * ch-grant.c (chill_finish_module_code): Put module's decl onto
6750 the module_init_list, for chill_finish_compile's possible use.
6751 (chill_finish_compile): Rename variables for clarity, add
6752 commented-out code as example for assignment of module address to its
6755 Sun Oct 17 15:16:54 1993 Bill Cox (bill@cygnus.com)
6757 * ch-convert.c: Move semicolon to separate line - easier to see.
6758 * ch-decl.c (do_decl): Handle untyped_expr initializers by
6759 simply using the variable's declared type - no compatibility
6760 check can be made if the expression has no type.
6761 * ch-expr.c (expand_packed_set): Fix endless loop - increment
6763 (fold_set_expr): Fix two other endless loops by passing
6764 correct parameters to unpack_set_constructor.
6765 * varasm.c: Standardize 'for' loop.
6767 Sun Oct 17 12:16:21 1993 Bill Cox (bill@cygnus.com)
6769 * c-typeck.c (output_init_element): Handle initializer for
6770 array with non-zero lower index bound.
6772 Sat Oct 16 16:48:48 1993 Per Bothner (bothner@cygnus.com)
6774 * ch-expr.c (finish_chill_binary_op): Use TREE_SET_CODE
6775 to change TREE_CODE.
6777 Sat Oct 16 08:07:17 1993 Bill Cox (bill@rtl.cygnus.com)
6779 * ch-expr.c (finish_chill_binary_op): Disable
6780 rough-draft code, not intended for release.
6782 Fri Oct 15 21:44:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6784 * expr.c (store_constructor): use PROTO for pack_set_constructor
6786 Fri Oct 15 10:30:09 1993 Bill Cox (bill@cygnus.com)
6788 * ch-expr.c (finish_chill_binary_op): Activate some
6790 * expr.c (store_constructor): Subtract arrays minimum element.
6791 Makes orientexpress work.
6793 Fri Oct 15 09:26:24 1993 Bill Cox (bill@cygnus.com)
6795 * ch-convert.c, ch-expr.c: Add externs so it'll compile.
6796 * ch-tree.def: Add BASED_DECL definition.
6798 Thu Oct 14 13:20:02 1993 Bill Cox (bill@cygnus.com)
6800 * ch-actions.c (build_chill_cause_exception): Pass the
6801 *address* of the filename string to the runtime routine,
6802 rather than passing the string by value.
6804 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6806 * expr.c (store_constructor): Use a (usually) more efficient
6807 algorithm for setting SET types.
6809 Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6811 Changes to better support 1984 version of Chill, which doesn't
6812 really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
6813 * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings): New flag.
6814 * ch-typeck.c (chill_similar): Support flag_old_strings.
6815 * ch-convert.c (convert_to_boolean): Generalize code to
6816 convert singleton bitstring to Boolean.
6817 * ch-convert.c (convert): Use string_one_type_node.
6818 * ch-convert.c (convert): Add code to convert Boolean to BOOLS(1).
6819 * ch-convert.c (convert): In code that converts fixed string to
6820 varying use new 'e' variable, rather than original 'expr' variable.
6821 Allows cascaded conversions: CHAR -> CHARS(1) -> varying CHARS.
6822 * ch-decl.c (string_type_node, const_string_type_node,
6823 int_array_type_node), ch-tree.h: Removed.
6824 * ch-decl.c (string_one_type_node, bitstring_one_type_node,
6825 bit_zero_node, bit_one_node), ch-tree.h: New globals tree nodes.
6826 * ch-decl.c (init_decl_precessing): Remove some junk.
6827 * ch-expr.c (build_generalized_call): If flag_old_strings,
6828 treat string index as string slice. Also, better error checking.
6830 Added support for (some kinds of) BASED declarations.
6831 * ch-tree.def (BASED_DECL): New tree code.
6832 * ch-decl.c (lookup_name): Implement BASED_DECL using
6833 build_chill_indirect_ref.
6834 * ch-decl.c (do_based_decls): Make a BASED_DECL.
6835 * ch-parse.y: Call do_based_decls for DCL ... BASED(...).
6836 * ch-satisfy.c (safe_satisfy_decl): Handle BASED_DECL.
6838 Improve handling of set binary operations.
6839 * ch-expr.c (expand_packed_set): New function.
6840 (fold_set_expr): Re-write. Simpler, more general algorithm.
6841 (build_set_expr): Only used for comparsions now.
6842 (finish_chill_binary_op): Handle set ops better (more directly).
6843 (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
6844 fold_set_ne, fold_set_xor): Removed. No longer needed.
6846 * ch-decl.c: Remove calls to allocate_lang_decl.
6847 * ch-tree.c (build_string_type): If const length, layout immediately.
6849 Mon Oct 11 17:23:02 1993 Bill Cox (bill@cygnus.com)
6851 * ch-decl.c (init_decl_processing): Define __whoami and
6852 __wait_buffer functions.
6853 * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
6854 * ch-parse.y (sigdef): Add new add_taskstuff_to_list
6856 * ch-tasking.c (get_tasking_code): Search tasking_list for
6857 tasking code name match. Can't use lookup_name.
6858 (get_task_name): New function.
6859 (generate_tasking_code_variable): Return if pass 1.
6860 Always update *tasking_code_ptr.
6861 (build_process_header): Add new add_taskstuff_to_list
6863 (tasking_setup): New code to unpack the tasking
6864 list entries no built by ..
6865 (add_taskstuff_to_list): Accept new parameter,
6867 * ch-tree.h (add_taskstuff_to_list): Add new
6870 Mon Oct 11 14:54:50 1993 Per Bothner (bothner@kalessin.cygnus.com)
6872 * Makefile.in (cc1chill): Also link in $(BC_OBJS).
6874 Mon Oct 11 06:28:39 1993 Doug Evans (dje@canuck.cygnus.com)
6876 * ch-decl.c (flag_allow_single_precision): New global,
6877 from ss-931002 merge.
6879 Sun Oct 10 09:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
6881 * Makefile.in: Remove references to chill.in and
6882 ch-hash.h. Remove bogus cc1chil : chill
6885 Fri Oct 8 16:00:04 1993 Bill Cox (bill@cygnus.com)
6887 * ch-actions.c (adjust_parm_or_field): Add parameter to
6889 *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
6891 (decl_temp1): Add parameter to signal 'make this external'.
6892 (shadow_record_fields): Add parameter to decl_temp1 call.
6893 * ch-expr.c (chill_expand_case_expr): Add parameter
6895 * ch-grant.c (chill_finish_compile): Add code to spoof
6896 get_file_function_name, so we don't get __tmp_s1_code,
6897 for example, as the module-level code's name.
6898 * ch-loop.c (build_temporary_variable, begin_for_range,
6899 init_loop_counter): Add parameter to decl_temp1 call.
6900 * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
6901 for easier maintenance.
6902 (sendaction): Rewrite to receive SIGNALNAME token correctly
6903 from ch-lex.l (name_type_signal).
6904 (signaldef): Don't clear quasi_signal here.
6905 * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
6906 to make the variable public (visible to linker).
6907 (build_start_process): Add parameter to decl_temp1 call.
6908 (tasking_setup): Comment out band-aid hack which calls
6909 generate_tasking_code_variable. Shouldn't be necessary.
6910 Use null_pointer_node rather than integer_zero_node in
6911 entry_point. More rewrites.
6912 (build_signal_descriptor): Name the non-signal in the error msg.
6913 Rewrite the building of the signal envelope - avoid seg fault.
6914 Add parameter to decl_temp1 call.
6915 (expand_send_signal, build_receive_case_start,
6916 build_receive_case_end, build_buffer_descriptor): Add parameter
6918 * ch-tree.h: Add parameter to decl_temp1 proto.
6919 * chill: Add new CHILL frontend directory
6921 Tue Oct 5 13:51:27 1993 Bill Cox (bill@cygnus.com)
6923 * ch-grant.c: Standardize indentation.
6924 * ch-parse.y (end_function): Unconditionally poplevel for processes.
6925 * ch-tasking.c (build_process_header): Unconditionally pushlevel.
6926 (generate_tasking_code_variable): Stop using pass number to
6927 force a one-time action.
6928 * ch-tree.h (build_chill_slice): Delete proto since function went static.
6930 Mon Oct 4 13:52:36 1993 Bill Cox (bill@cygnus.com)
6932 * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
6933 called here in both passes. Set DECL_ASSEMBLER_NAME.
6934 (lookup_name_for_seizing): Move NULL test forward to prevent
6936 * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
6937 to prevent a seg fault in telebras/dynsto.ch. Make indentation
6939 * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
6940 (build_send_signal): Rename to expand_send_signal.
6941 (generate_tasking_code_variable): Return the var's decl.
6942 (build_signal_struct_type): Move generate_tasking_code_variable
6943 and add_taskstuff_to_list calls to ..
6944 * ch-parse.y (sigdef): .. here. And make indentation changes.
6945 * ch-tree.h: Rename functions, add return values.
6947 Mon Oct 4 15:43:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
6949 * ch-convert.c (digest_constructor): Convert element to element_type.
6950 * ch-parse.y (end_function): Use DECL_ARGUMENTS to check
6951 for parameterless process.
6953 Fri Oct 1 13:57:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
6955 * ch-typeck.c (chill_location): New function.
6956 Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
6957 * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c: Use
6958 chill_location instead of lvalue_p.
6961 Fri Oct 1 11:28:42 1993 Bill Cox (bill@cygnus.com)
6963 * ch-convert.c (convert): Back out Michael's changes, unintentionally
6965 * ch-lex.l (handle_use_seizefile_directive): No longer downcase
6967 * ch-parse.y (sendaction): Fix a couple of seg faults. Comment out
6968 SEND BUFFER processing for now.
6969 * ch-tree.h: Fix comment.
6971 Thu Sep 30 17:00:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
6973 * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P): New macros,
6974 for recognizing singleton strings.
6975 * ch-tree.h (MARK_AS_STRING_TYPE): New macro.
6976 * ch-tree.c (build_string_type, build_bitstring_type),
6977 ch-convert.c (convert): Use it.
6978 * ch-typeck.c (build_chill_slice): Take length rather than upper
6979 bound. This makes it easier to recognize that A(X UP LENGTH)
6980 really has fixed length. Also, if the argument is string,
6981 mark the slice as a string too. Also, handle varying strings.
6983 * ch-typeck.c (conflate_singleton_strings): New global.
6984 * ch-typeck.c (chill_similar): If conflate_singleton_strings is
6985 set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
6986 to CHAR/BOOL, as required by the 1984 version of Z.200.
6987 * ch-convert.c (convert_to_char): Convert CHARS(1) to CHAR.
6988 * ch-convert.c ( build_array_type_for_scalar): If input is string,
6990 * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h: Removed.
6991 * ch-convert.c (convert): Convert CHAR to CHARS(1).
6993 This fixes 'X // := Y' and is also a general simplification.
6994 * ch-actions.c (chill_expand_assignment): Convert 'LHS OP := RHS'
6995 to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
6996 Also, call save_expr on RHS if a multiple assignment.
6997 * ch-parse.y (assignaction): Therefore, no longer need to call
6998 stabilize_reference on RHS.
6999 * ch-typeck.c (build_chill_modify_expr), ch-tree.h: Remove
7000 modifycode parameter. Make it the caller's responsibility to
7001 handle <assigning operator>.
7002 * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
7003 ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
7005 Wed Sep 29 18:02:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
7007 * ch-lang.c (string_index_type_dummy), ch-tree.h: New variable.
7008 * ch-decl.c (integer_minus_one_node), ch-tree.h: New variable.
7010 * ch-parse.y (arrayindex: modename): Remove useless code.
7011 * ch-satisfy.c (satisfy): Don't gag on string_index_type_dummy,
7012 * ch-tree.c (build_string_type): Pass string_index_type_dummy as
7013 the parent type of the index range.
7014 * ch-typeck.c (layout_chill_range_type): Recognize and handle
7015 string_index_type_dummy - specifically allow an empty range.
7017 Wed Sep 29 13:36:23 1993 1993 Bill Cox (bill@cygnus.com)
7019 * ch-convert.c (convert_to_reference): Check for loc-identity
7020 mismatches correctly (and remove one of those chill_compatible
7022 * ch-decl.c (decl_tasking_code_var): New function, called from
7023 push_extern_process and push_extern_signal.
7024 * ch-parse.y (end_function): Delete parameter. Check current_function_decl
7025 whether it's actually a process, and whether it has parameters.
7026 Make Michael's change simplifying the pass 2 test, preventing a seg
7028 (procedure, process): Change calls to end_function, remove
7029 code saving value from build_process_header. Delete redundant chill_
7030 phrases from some function calls.
7031 * ch-tasking.c: Remove some redundant _chill phrases from function
7033 * ch-tree.h: Remove some redundant _chill phrases from function
7034 names. Add the CH_VARYING_ARRAY_TYPE macro, call it from
7035 all relevant places.
7036 * ch-typeck.c: Use the new macro. Cast TREE_CODEs to chill_tree_code.
7038 Wed Sep 29 13:07:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
7040 * ch-convert.c (convert_to_reference): Remove redundancies.
7041 * ch-convert.c (convert): Handle convert_to_reference
7042 with a recursive convert call.
7043 * ch-decl.c (do_decl): Add missing compatibility-checking
7044 of initializer (don't depend on convert).
7046 Tue Sep 28 00:02:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7048 * ch-tree.h (CH_LOCATION_P): New macro.
7049 * ch-typeck.c (layout_chill_range_type): Fix call to
7050 type_for_size, when figuring out a defaulted parent type.
7051 * ch-expr.c (build_chill_lower, build_chill_sizeof): Check
7052 for TREE_CODE_CLASS != 't' rather than == 'd'.
7053 * ch-expr.c (build_chill_function_call): Use CH_LOCATION_P
7054 to check for location, rather than TYPE_CODE_CLASS == 'd'.
7056 * ch-tree.c (build_string_type): Make 2-pass safe. Also,
7057 change parameter to be length, not index type.
7058 * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7059 (build_chill_string): Modify callers of build_string_type accordingly.
7060 * ch-lex.l (check_newline): Don't look for # directive inside a
7062 * ch-grant.c (grant_array_type): Make more robust for char-
7063 and bit-strings (allow non-constant sizes). Change parameters
7064 and return types. (raw_decode_mode): Use grant_array_type
7065 for bitstrings. (otherwise): Fix grant_array_type callers.
7067 Mon Sep 27 16:57:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
7069 Remove changes of Sep 15.
7070 * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7071 * ch-typeck.c (chill_similar): Don't allow a singleton
7072 powerset to be similar to its domain.
7073 * ch-convert.c (convert_to_boolean): Don't convert a singleton
7074 SET_TYPE constructor to a Boolean.
7076 * ch-actions.c (chill_expand_assignment): Handle IN_EXPR on
7077 LHS of assignment, which is what we're current (temporarily?) using.
7079 Mon Sep 27 06:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
7081 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7082 ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7083 ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7084 -Wall cleanup. Add prototypes where missing.
7085 Delete unused variables. Cast uses of tree_codes
7086 to chill_tree_code, which they are.
7088 Sun Sep 26 13:09:57 1993 Bill Cox (bill@rtl.cygnus.com)
7090 * ch-decl.c (do_decl): Save initializer in pass zero
7092 * ch-lex.l: Fix comments, indentation.
7093 * ch-parse.y: Standardize error messages to use
7094 uppercase for CHILL keywords rather than quoting them.
7095 Suggestion from docs department.
7096 * ch-tasking.c: Pervasive changes to get processes to
7098 * ch-tree.h: Delete prototypes for functions whic
7099 I made static inside ch-tasking.c.
7101 Sun Sep 26 02:40:02 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7103 * ch-lex.l (yywrap): Call `check_newline' in case the file
7104 started with a line directive.
7106 Sat Sep 25 13:54:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
7108 * ch-decl.c: Expand pre-amble comment.
7109 * ch-decl.c (struct scope, push_module): Use new field
7110 tail_chain_module to build child-module list in order.
7111 (Just to make compiler debugging a little less confusing.)
7113 * ch-decl.c (struct scope): New field weak_decls.
7114 * ch-decl.c (find_implied_types): New interface. Now pre-pend
7115 new enum types to a given input list. This makes it easier to
7116 avoid duplicates, which should at least be more efficient.
7117 Also, handle FUNCTION_DECL.
7118 * ch-decl.c (bind_saved_names): Removed. Distribute its
7119 functionality over new functions (push_scope_decls, pop_scope_decls,
7120 build_implied_names, bind_sub_modules). The goal (which seems to
7121 have been more-or-less attained) was to fix weak name handling.
7122 * ch-decl.c (poplevel): Use new function pop_scope_decls.
7124 * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7125 Use build_decl directly, rather than grok_chill_fixedfields
7126 (which depends on ignore_exprs and has more overhead).
7127 * ch-tasking.c (build_signal_struct): Construct the type
7129 * ch-typeck.c (build_chill_slice): Use my_build_array_ref rather
7130 than build_array_ref (which does C-specific "optimizations").
7131 (Hence move my_build_array_ref up earlier in the file.)
7133 Sat Sep 25 03:47:28 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7135 * ch-tasking.c: Declare static variable `void_ftype_void'.
7136 (chill_tasking_init): Initialize `void_ftype_void' here.
7137 (build_tasking_struct): Use, don't declare `void_ftype_void'.
7138 (generate_tasking_code_variable): Call `do_decl', not
7139 `decl_temp1' to declare TASKING_CODE_NAME.
7140 (tasking_setup): Drop into 1-pass mode so that all
7141 tasking-related declarations are installed in the global
7142 scope. Use correct CHILL types for initializers (since
7143 ptr_type_node doesn't have the right meaning for CHILL).
7144 Also, call `do_decl' instead of `decl_temp1' for
7146 (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7147 `chill_finish_compile' in sync between passes.
7149 * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7150 declarations on pass zero. Keep obstacks in sync, and always
7151 call `finish_decl' for pass zero declarations.
7152 (push_chill_extern_function): Keep obstacks in sync, and always
7153 call `finish_decl' for pass zero declarations.
7154 (build_enumerator): Ditto.
7155 (grok_chill_variantdefs): Change PASS test to exclude only
7157 (finish_struct): Ditto.
7158 * ch-expr.c (build_chill_component_ref): Ditto.
7159 (build_chill_binary_op): Ditto.
7160 * ch-tree.c (build_powerset_type): Ditto.
7161 (build_bitstring_type): Ditto.
7162 * ch-typeck.c (build_chill_range_type): Ditto.
7163 (build_chill_struct_type): Ditto.
7165 * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7166 extra pushing and popping of obstacks.
7168 * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7169 on IO_DESCRIPTOR. This causes IO_DESCRIPTOR to be laid out.
7171 * ch-grant.c (chill_finish_compile): Clear out both
7172 MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7175 * ch-parse.y (rccase_label): Add NAME rules so that pass one
7176 works w/o knowing we're parsing a signal. Simplify SIGNALNAME
7177 rules since we only get SIGNALNAME tokens in pass two.
7178 (sendaction): Ditto.
7179 * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7180 BUFFERNAME on pass two. The grammar now handles this.
7181 * ch-decl.c (lookup_remembered_decl): Deleted.
7183 Fri Sep 24 15:27:13 1993 Bill Cox (bill@cygnus.com)
7185 * ch-decl.c (lookup_remembered_names): Removed. It was being
7186 misused in ch-lex.l.
7187 * ch-lex.l (name_type_signal): Revert last change. Basically,
7188 we cannot use the C typedef/variable name trick in CHILL, due
7189 due to the language's 2-pass nature.
7190 * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7192 * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7194 Fri Sep 24 11:01:31 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7196 * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7197 checks so the pass == 0 case is handled for built-in types.
7198 (push_modedef): Add check for error_mark_node.
7199 (lookup_remembered_decl): New function.
7200 (pushlevel, poplevel) Change pass checks.
7201 (pushdecl): Check type as well for NULL.
7202 (build_enumerator): Handle pass == 0 case.
7203 * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7205 * ch-parse.y: Set pass to zero to indicate initial decl processing.
7206 Replace NAME references with SIGNALNAME references.
7207 (startaction): Only check copy number if not ignoring actions.
7208 Always call build_chill_start_process.
7209 (optstartset): Don't lookup the instance name.
7210 * ch-tasking.c (generate_tasking_code_variable): Replace
7211 do_decl call with decl_temp1 call.
7212 (build_chill_start_action): Check for ignore_actions here.
7213 (build_tasking_message_type): Layout the type.
7214 (rc_state_type): New structure to keep nested receive-case
7216 (build_chill_receive_case_start, build_chill_receive_case_end):
7220 Fri Sep 24 04:19:15 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7222 * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7223 should be a _DECL, not an IDENTIFIER_NODE.
7225 Thu Sep 23 18:18:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7227 * ch-decl.c (find_implied_types): Handle VAR_DECLs.
7229 * ch-decl.c (print_lang_identifier): Print IDENTIFIER_OUTER_VALUE.
7230 * ch-actions.c (chill_expand_result): Allow value-less RETURN.
7231 * ch-expr.c (resolve_component_ref): Recognize error_mark.
7233 * ch-convert.c (digest_constructor): Handle a nested powerset tuple.
7234 * ch-satisfy.c (satisfy): Use return value of layout_chill_range_type.
7235 * ch-typeck.c (chill_similar): Repeatedly get parent modes
7236 of ranges, not just once.
7237 * ch-typeck.c (chill_root_resulting_mode), ch-tree.h: New function.
7238 * ch-typeck.c (layout_chill_rang_type): Re-do type-checking
7239 to follow Blue Book better (check for Compatibility).
7241 * ch-tree.h (CH_ROOT_RESULTING_MODE): New macro.
7242 * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7243 New variables. The latter replaces in_seizefile.
7245 Changes to store in the new DECL_SEIZEFILE field each seize
7246 ALIAS_DECL the name in the most recent use_seize_file directive.
7247 (This requires that use_seize_file directives written to the
7248 grant file be written before the SEIZEs that need it.)
7249 Allow clashing declarations granted into the global scope
7250 (produce a warning), but remember the seizefile case from
7251 (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7252 The a SEIZE will select the granted decl that matches its
7253 DECL_SEIZEFILE (in other words: grants from the most recent
7254 use_seize_file will be preferred).
7255 * ch-tree.h (DECL_SEIZEFILE), ch-tree.def: New macro.
7256 * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE): Renamed
7257 to outer_value, IDENTIFIER_OUTER_VALUE.
7258 Changes to cause the use_seize_file directives to be written
7259 out in order as they're seen in source.
7260 * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7261 Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7262 * ch-lex.l (handle_use_seizefile_directive): Modify appropriately.
7263 Don't call grant_use_seizefile.
7264 * ch-lex.l (mark_use_seizefile_written): New function.
7265 * ch-grant.c (decode_decl): Write out use_seize_file directive,
7266 if needed, before writing a seize declarations.
7267 * ch-decl.c (pop_module): Handle decls granted into the global
7268 module specially, setting IDENTIFIER_OUTER_VALUE.
7269 * ch-decl.c (lookup_name_for_seizing): Check IDENTIFIER_OUTER_VALUE.
7271 Thu Sep 23 19:05:37 1993 Bill Cox (bill@cygnus.com)
7273 * ch-decl.c (push_chill_extern_process): Delete unused variables,
7274 declare the process' tasking_code variable as external.
7275 * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7277 * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7279 * ch-tree.h: Add prototype.
7280 * expr.c (store_constructor): Emergency first-aid. Rewrite later.
7282 Thu Sep 23 12:57:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7284 * ch-expr.c (build_chill_function_call): Move possible call to
7285 chill_start_module_code until we know we're not calling a builtin.
7286 * ch-decl.c (save_expr_under_name): Use pushdecllist,
7287 not proclaim_decl (which provide for popping the decl).
7288 * ch-parse.y (optname): Also allow TYPENAME.
7290 Thu Sep 23 09:18:35 1993 Bill Cox (bill@cygnus.com)
7292 * ch-decl.c (print_lang_decl): Make weak name output more standard.
7293 (print_lang_identifier): Make signal-data flag output more standard.
7294 (push_chill_extern_process): Pass correct arg tree to
7295 push_chill_extern_function.
7296 (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7297 Standardize function header layouts (Makes the tcov script
7299 * ch-except.c (chill_finish_on): Standardize function header.
7300 * ch-expr.c (fold_set_or): Standardize function header.
7301 * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7303 (decode_constant): Make sure that alpha operators are surrounded
7305 * ch-parse.y: Spell Z.200 correctly in comments.
7307 Wed Sep 22 10:42:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
7309 * ch-expr.c (build_chill_addr_expr), ch-tree.h: New function.
7310 * ch-parse.y, ch-decl.c (shadow_record_fields): Use it.
7311 * ch-lex.l (handle_use_seizefile_directive): Don't emit
7312 use_seize_file directive if in_seizefile.
7314 * ch-convert.c (digest_structure_tuple): Fix code that checks
7315 for excess init values.
7316 * ch-decl.c (layout_chill_variants): Move increment of nlabels
7317 inside the proper loop.
7318 * ch-grant.c (print_struct): Add missing loop for tag_list.
7319 (print_struct): Look for variant fields by checking for a
7320 UNION_TYPE, not a NULL name, since we must use a dummy name.
7321 * ch-parse.y (structured_variable): Various fixing.
7322 * ch-decl.c (shadow_record_fields): Rename arg decl -> struct_val.
7324 * ch-satisfy.c (safe_satisfy_decl): Disable copying of modes
7325 for NEWMODE (and hence novelty checking), until we figure out
7328 * ch-except.c (finish_handler_array): Use null_pointer_node,
7329 not integer_zero_node (which fails to type-check).
7331 * c-typeck.c (get_constructor_element_type): New function.
7332 * ch-tree.h (CH_NOVELTY_FLAG): Now also used in TYPE_DECLs.
7333 (CH_NOVELTY): Redefined to call new function chill_novelty.
7334 (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE): Removed.
7335 * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7336 Take extra output parameter (for M, as in M-value class).
7337 * ch-typeck.c (chill_novelty): New function. (Also de-references.)
7339 * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7340 New functions. Handle 2-pass and variant records.
7341 * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7342 * ch-satisfy.c (satisfy, case COMPONENT_REF):
7343 New case, call resolve_component_ref.
7345 * ch-expr.c (build_generalized_call): Extract single arg from
7346 arg list before calling build_chill_cast.
7348 * ch-parse.y (defining_occurrence_list): New non-terminal.
7349 Use it to replace locnamelist, synnames, and modenames.
7350 * ch-parse.y: Re-write parsing of variant records.
7352 * ch-decl.c (grok_chill_variantdefs): Now return a FIELD_DECL
7353 rather than just its type.
7354 * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7355 Change callers appropriately.
7357 * ch-tree.h (TYPE_TAG_VALUES): Add an extra level of TREE_LIST,
7358 to support multiple tag fields.
7359 * ch-grant.c (print_struct), ch-decl.c (layout_chill_variants):
7360 Support multiple tag fields.
7362 * ch-convert.c (remove_tree_element, digest_structure_tuple):
7363 New functions, to digest structure tuples, without calling the
7364 code in c-typeck.c. Handles variant tuples and tags (partially).
7365 * ch-convert.c (digest_constructor, convert): Call
7366 digest_structure_tuple when appropriate.
7367 * ch-convert.c (digest_constructor): Re-arrange a bit.
7369 * ch-decl.c (push_modedef): Defer copying of tree until ...
7370 * ch-satisfy (safe_satisfy_decl): ... here.
7372 * ch-decl.c (getdecls): Add kludge to help dbxout_init.
7374 Tue Sep 21 14:19:11 1993 Bill Cox (bill@cygnus.com)
7376 Partial tasking update - not done yet.
7377 * ch-actions.c: Comments, indentation.
7378 * ch-decl.c (push_chill_extern_process): No longer need to
7379 reformat the arg list for make_process_struct.
7380 (pop_module): Don't seg fault on null DECL_NAME.
7381 (handle_one_level): Error, not warning if tree not recognized.
7382 (shadow_record_fields): Rename formal param for readability.
7383 * ch-grant.c (decode_decl): Write proper header for a process.
7384 * ch-parse.y (quasi_pdef): process now uses processparlist,
7385 which doesn't change with the passes.
7386 (quasi_locdec): Call build_chill_reference_type to defer
7387 doing the type's layout.
7388 (processpar): Use paramnamelist, but reformat it into a
7389 list of identifiers in pass 2, so a processpar is the same
7390 structure in both passes.
7391 (locdec): Call build_chill_reference_type to defer doing the
7393 * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7394 build the decl. Only update the variable's tree in pass 2.
7395 (make_process_struct): Call build_chill_reference_type to defer
7396 doing the type's layout.
7397 (build_process_header): New code to call make_process_struct.
7398 New pass-2 code to make a PARM_DECL for start_chill_function.
7399 Pass a void_type_node, not a NULL_TREE for an empty list.
7400 Get input for shadow_record_fields from current_function_decl.
7401 (build_buffer_decl): Call do_decl not decl_temp1.
7402 * ch-typeck.c: Reindent to standards.
7403 * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7405 Mon Sep 20 12:00:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7407 * ch-typeck.c (classify_chill_expr): An expression with a
7408 REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7409 * ch-actions.c (adjust_parm_or_field):, ch-tree.h: Change last
7410 parameter, so we can reliably recognize LOC parameters.
7411 * ch-tasking.c, ch-expr.c: Change callers appropriately.
7413 Sun Sep 19 22:26:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7415 * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE): New macros.
7416 * ch-typeck.c (chill_referable, chill_read_compatible): New functions.
7417 * ch-typeck.c (chill_compatible): Allow un-resolved CONSTRUCTOR
7418 (with NULL TREE_TYPE), when reasonable. (Simplifies callers.)
7419 Also, handle case of expr being of reference class.
7420 * ch-actions.c (adjust_parm_or_field): Major re-arrange
7421 to handle conversions and LOC args better.
7422 * ch-actions.c (chill_expand_assignment): Simplify conversions.
7423 * ch-expr.c (build_chill_function_call): If needed, call
7424 chill_start_module_code.
7425 * ch-decl.c (declare_predefined_file): New function, used
7426 to pre-define stdin, stdout, and stderr.
7427 * ch-inout.c (chill_stdio_p): Change names of predefined
7428 files from chill-stdin etc to plain stdin (and change their types).
7429 * ch-lex.l: Remove some obsolete stuff.
7430 * ch-convert.c (convert): Move conversion from reference to
7431 to beginning of convert() so other conversion can work better.
7432 Also, remove bogus direct setting of TREE_TYPE.
7434 Fri Sep 10 12:23:41 1993 Wilfried Moser (fs_moser@cygnus.com)
7436 * Makefile.in: Change installation of the chill script. gcc will
7437 be called always with the full path. That made problems when
7438 somebody was using chill but didn't have the installation
7440 * ch-parse.y: Change parsing of WRITETEXT action.
7441 * ch-tree.h: Add some new prototypes according to the
7442 (partial) implementation of WRITETEXT.
7443 * ch-typeck.c: Add new function chill_varying_string_type_p. This
7444 functions checks a type for being CHAR(n) VARYING.
7445 * ch-decl.c (init_decl_processing): Add new built-in functions
7446 _writestring and _writeunixstd.
7447 Add call to build_chill_io_list_type in ch-inout.c.
7448 * ch-inout.c (build_chill_writetext): Add some code there.
7449 Add new function build_chill_io_list_type.
7450 Add new static function chill_stdio_p. This function checks
7451 the text argument for being chill_stdin, chill_stdout or
7454 Fri Sep 17 22:02:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
7456 * ch-decl.c (push_modedef): Fix TYPE_MAIN_VARIANT thinko.
7458 Thu Sep 16 18:38:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7460 * ch-decl.c (allocate_lang_decl): Do nothing.
7461 * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7462 No longer used; remove.
7464 * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7465 (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7466 (make_chill_variants, layout_chill_variants): Add (initial) part
7467 of support for multiple tags.
7468 * ch-decl.c (lookup_tag_fields): New function.
7469 * ch-parse.y (stmt_count): Not used; removed.
7470 * ch-parse.y (mode2): Clear current_fieldlist before
7471 parsing STRUCT fields; restore afterwards.
7473 * ch-parse.y (push_action): Moved to ch-actions.c.
7475 Wed Sep 15 18:19:37 1993 Bill Cox (bill@rtl.cygnus.com)
7477 * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7478 constructor to a boolean.
7480 Wed Sep 15 17:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
7482 * ch-decl.c (push_modedef): Enable novelty-setting code.
7483 * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7484 * ch-typeck.c (chill_similar): Add checking of singleton
7485 powerset against its base type.
7487 Tue Sep 14 17:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
7489 * ch-actions.c (adjust_parm_or_field): Create a
7490 temporary for an non-referencable actual parameter
7491 passed to a LOC formal parameter.
7492 (chill_expand_assignment): Correct compatibility checking.
7494 * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7495 * ch-parse.y (opsigdest): Only check for process name
7496 in pass 2, when we know.
7497 * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7498 * ch-typeck.c: Fix comment.
7500 Mon Sep 13 17:33:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
7502 * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7503 decl_seen_p, processed_decls, allocated, nr_decls): Removed
7504 no-longer-useful functions and variables that used to guard
7505 against writing a decl multiple times. Since we now just
7506 go through the decl list linearly, that is no longer an issue.
7507 * ch-satisfy.c (safe_satisfy_decl): Handle missing current_module.
7509 * ch-decl.c (start_chill_function): Clear DECL_ASSEMBLER_NAME.
7510 Don't make TREE_PUBLIC. Don't generate rtl yet.
7511 * ch-decl.c (pop_module): If a decl is granted, set TREE_PUBLIC,
7512 and its DECL_ASSEMBLER_NAME.
7513 * ch-decl.c (fix_identifier): New function.
7514 * ch-grant.c (grant_one_decl): Don't set TREE_PUBLIC.
7515 * ch-tree.h (struct module): New field prefix_name.
7516 * ch-satisfy.c (safe_satisfy_decl): If assembler_name isn't
7517 set, prefix it by the module name(s).
7518 * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7519 Call make_function_rtl if needed and !LOOKUP_ONLY.
7520 * ch-typeck.c (chill_similar): Flesh out substantially.
7521 * ch-typeck.c (chill_compatible): Re-structure.
7523 * ch-actions.c (adjust_parm_or_field): Use CH_COMPATIBLE
7524 instead of chill_comptypes to compare actual and formal.
7526 Sun Sep 12 21:10:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
7528 * ch-parse.y (labellist): Don't do anything if ignore_exprs.
7530 * c-typeck.c (output_pending_init_elements): Handle
7531 !constructor_incremental case of filling in empty positions.
7532 (Patch by Jim Wilson. CYGNUS LOCAL until we have approval.)
7533 * ch-decl.c (pop_module): Don't grant a seized name.
7534 * ch-grant.c (decode_constant): Support CALL_EXPR.
7535 * ch-tree.c (build_bitstring_type): Don't try to fold non-constant
7536 size if pass==1 (since it may be an unsatisfied name).
7539 Sun Sep 12 18:06:23 1993 Bill Cox (bill@rtl.cygnus.com)
7541 2-pass fixes for processes. Partially done.
7542 * ch-actions.c (chill_expand_assignment): Add real
7543 novelty-checking sketch, $ifdef'd out for now.
7544 * ch-decl.c: Generally fix indentation. Move tasking
7545 init code from init_decl_processing to ch-tasking.c.
7546 Delete ObjC-related cruft. More accurate parameter name
7547 for shadow_record_fields. Move debug_scope before
7549 * ch-expr.c (build_chill_function_call): Return if not
7551 * ch-grant.c (print_proc_tail): Avoid trying to format
7552 a VOID return type, or using a NULL pointer.
7553 (decode_decl): Minor changes for PROCESS arg access.
7554 * ch-lang.c (lang_decode_option): Use -itu flag to
7555 enable 'pedantic' mode.
7556 * ch-lex.l (init_lex): Initialize compiler-directive
7558 (name_type-signal): Disable the returning of SIGNAL and BUFFER
7560 * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
7561 All uses renamed also.
7562 (end_function): Always poplevel, not just in pass 2.
7563 (quasi_pdef): Check for end-label matching.
7564 (quasi_formparlist): Write more clearly.
7565 (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
7567 (rccase_label, sendaction): Use NAME, not SIGNALNAME
7569 (process): Handle like procedure.
7570 (mode): Add SIGNAL as a generic signal parameter. This
7571 is a client-specific extension, so pedantic is checked.
7572 * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
7573 * ch-tree.h (CH_NOVELTY): Make it an lvalue.
7574 * ch-typeck.c: Fix comment.
7576 Sun Sep 12 15:03:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
7578 * c-typeck.c (digest_init): Compare types using comptypes
7579 instead of comparing pointers. (Helps Chill front end.)
7580 * ch-expr.c (finish_chill_binary_op):
7581 * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
7582 ch-expr.c (finish_chill_binary_op): For now, prefer IN_EXPR
7583 over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
7584 (incomplete support for variable fields, and possible bug in
7585 optimize_bit_field_compare).
7586 * ch-expr.c (finish_chill_binary_op): Fix type-checking
7587 and appropriately coerce operands for IN_EXPR and comparsions.
7588 * expr.c (expand_expr, case ARRAY_REF): Coerce lower bound (if
7589 non-zero) to sizetype before subtraction.
7590 * expr.c (expand_expr): Remove Chills-specific calls to
7591 __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
7593 Fri Sep 10 15:47:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
7595 * ch-tree.def (UNDEFINED_EXPR): New kind of expression.
7596 * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
7597 ch-convert.c (convert): Handle UNDEFINED_EXPR.
7599 * ch-expr.c (build_char_array_expr): Move CONCAT_EXPR support to ...
7600 * ch-expr.c (build_concat_expr): ... here.
7601 Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
7602 Also, make result varying only if one of the operands are.
7604 * ch-expr.c (build_chill_binary_op): Move stuff from here to ...
7605 * ch-expr.c (finish_chill_binary_op): ... here, as needed for
7606 proper 2-pass split. Also, clean up and simplify heavily.
7608 * ch-tree.h (enum ch_expr_class): The 5 kinds of expression classes.
7609 * ch-typeck.c (classify_chill_expr): New function: Determine
7610 class of expression.
7611 * ch-typeck.c (chill_compatible_classes): Re-structure; fix
7613 * ch-tree.h (CH_CLASS_IS_XXX): Re-define to use classify_chill_expr.
7615 * ch-convert.c (maybe_turn_scalar_into_array): Complain
7616 unless scalar is a char constant (and we want a string).
7617 * ch-convert.c (convert): New code for converting to variable
7618 string/array. Avoid type errors by padding (with an UNDFIEND_EXPR).
7619 * ch-typeck.c (chill_expand_tuple): Don't do conversion to
7620 varying type here; that is handled by convert now.
7621 * ch-decl.c (digest_constructor): Moved to ...
7622 * ch-convert.c (digest_constructor): ... here.
7623 * ch-decl.c (do_decl): Simplify; just use convert for initializer.
7624 * ch-decl.c (chill_digest_init): Merged into convert, and removed.
7625 * ch-decl.c (init_decl_processing): Set constructor_no_implicit flag.
7626 * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
7627 Replace chill_digest_init by convert.
7628 * ch-actions.c (chill_expand_array_assignment): Simplify; use convert.
7629 * ch-lex.l (build_chill_string): Make string type be derived
7630 from integer, not sizetype, because upper bound can be -1.
7632 Thu Sep 9 18:21:46 1993 Bill Cox (bill@rtl.cygnus.com)
7634 * ch-typeck.c (my_build_array_ref): Delete pedantic
7635 C-specific error message.
7637 Thu Sep 9 17:44:20 1993 Jeffrey Wheat (cassidy@eclipse.cygnus.com)
7639 * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
7641 Thu Sep 9 12:22:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
7643 * ch-typeck.c (build_chill_array_ref): Remove redundant and
7644 broken call to my_build_array_ref.
7646 Wed Sep 8 13:03:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
7648 * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
7649 Don't use store_init_value, since it calls digest_init instead
7650 of chill_digest_init.
7651 * ch-except.c (finish_handler_array): Use build1 (ADDR_EXPR, ...)
7652 instead build_unary_op to avoid C-specific optimizations.
7653 * ch-typeck.c (my_build_array_ref): Don't use default_conversion
7654 to convert array to pointer.
7655 * c-typeck.c (process_init_default): New function, to support
7656 default values for array tuples in Chill.
7657 * c-typeck.c (default_conversion): Don't convert array to pointer
7659 * ch-decl.c (digest_constructor): New function; used to be guts
7660 of chill_digest_init. Now recursive, to handle nested tuples.
7662 * ch-decl.c (chill_digest_init): Handle struct labels.
7663 * ch-grant.c (get_tag_value): Use decode_constant in general case.
7664 * ch-grant.c (decode_constant): Add support for lots of missing
7665 binary and unary operators.
7667 Wed Sep 8 10:11:04 1993 Bill Cox (bill@rtl.cygnus.com)
7669 * ch-lang.c: Look for '-I' option for seize file path.
7670 * ch-lex.l: Fix comment about above option.
7672 Wed Sep 8 00:37:32 1993 Per Bothner (bothner@rtl.cygnus.com)
7674 * ch-satisfy.c: Move code to set (and restore) file-and-line
7675 from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
7676 alias decls that refer to real decls with errors.
7677 * ch-actions.c (lang_init): Move to ch-lang.c.
7678 * ch-decl.c (init_decl_processing): Move code to initialize
7679 file-and-line from here ...
7680 * ch-lang.c (lang_init): ... to here, to avoid clobbering.
7682 * ch-decl.c (chill_digest_init): Add support for SET_TYPE,
7684 * ch-typeck.c (chill_expand_typle): Just call chill_digest_init.
7685 * c-typeck.c: Fix various things that got broken
7686 in the latest merge.
7688 Tue Sep 7 15:45:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
7690 * ch-decl.c (build_enumerator): Handle a "unnamed set element"
7691 (obsolete feature) by generating a dummy name.
7692 * ch-decl.c (finish_decl): Call rest_of_decl_compilation with
7693 "correct" value of top-level (to get better debugging output).
7694 * ch-decl.c (bind_saved_names): Allow a null DECL_NAME.
7696 Tue Sep 7 15:48:35 1993 Bill Cox (bill@rtl.cygnus.com)
7698 * ch-actions.c (chill_expand_return): Correct breakage
7699 due to recent fsf merge.
7701 Tue Sep 7 11:16:10 1993 Bill Cox (bill@rtl.cygnus.com)
7703 * .cvsignore: Add multilib.h.
7704 * ch-decl.c (chill_digest_init): New function. Calls were
7705 changed, since it has fewer parameters than old digest_init.
7706 * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
7708 (elementlist): Delete unused code.
7709 * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
7710 * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
7711 * ch-tree.h: Delete digest_init prototype.
7712 * ch-typeck.c (digest_init): Much new code.
7714 Tue Sep 7 12:06:28 1993 Bill Cox (bill@rtl.cygnus.com)
7716 * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
7717 files to their pre-init-change state.
7719 Mon Sep 6 15:28:27 1993 Bill Cox (bill@rtl.cygnus.com)
7721 Preliminary adaptation to rms' new initializer code.
7722 * ch-decl.c (do_decl): Call chill_digest_init, not
7723 digest_init, which rms made static.
7724 * ch-expr.c (chill_truthvalue_conversion): Delete C-
7726 * ch-loop.c (init_loop_counter): Indent for readability.
7727 * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
7728 * ch-tree.h: Prototype changes for new init code.
7729 * ch-typeck.c (chill_expand_tuple): Call new init code.
7730 * chill.texi: Add necessary '-f' prefix on options.
7732 Wed Sep 1 13:21:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7734 * ch-convert.c (build_array_type_for_scalar),
7735 ch-tasking.c (build_chill_receive_case_end): Index type
7736 specification is now chain of types (not chain of TREE_LIST).
7737 * ch-satisfy.c (satisfy): Don't try to satisfy the
7738 abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
7739 * ch-expr.c (build_chill_binary_op): If pass 1, do NOT
7740 call finish_chill_binary_op.
7741 * ch-parse.y (arrayindex): Simplify.
7743 Tue Aug 31 14:57:35 1993 Bill Cox (bill@rtl.cygnus.com)
7745 * ch-decl.c (print_lang_decl): Print weak-name status.
7746 (print_lang_identifier): Print signal_data as T or F.
7747 * ch-lex.l (convert_bitstring, convert_charliteral,
7748 convert_float, convert_number): Pass string directly to convert
7749 as a parameter. Return token code consistently, return 0
7751 (equal_number): Parse differently, allowing hex, binary
7752 and octal constants.
7753 * ch-parse.y (dowithaction, structured_variable): Only
7754 push/pop scopes once per DO WITH.
7755 (structured_variable_list): Check ignore_actions flag here.
7756 * gcc.c: Delete 'traditional' from string, add 'itu'
7757 as the standard flag's name.
7759 Mon Aug 30 15:12:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
7761 * ch-typeck.c, ch-tree.h (build_chill_range_type): Take 3
7762 parameters instead of 2 (explicit low and high bounds).
7763 * ch-parse.y (arrayindex): Build range type from low:high.
7764 (rangesize, optrangesize): Removed.
7765 (where appropriate): Use new build_chill_range_type interface.
7766 * ch-grant.c: Clean up writing of range and array types.
7767 * ch-satisfy.c (satisfy): Don't ignore the return value of
7768 layout_chill_array_type. (It may be an error mark.)
7769 * ch-typeck.c (build_chill_array_type): Simplify.
7770 * ch-typeck.c (layout_chill_array_type): Clean up checks.
7772 Fri Aug 27 12:55:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
7774 * ch-decl.c (decl_temp1): Set DECL_ASSEMBLER_NAME.
7775 (push_chill_extern_function) Don't set current_function_decl.
7776 * ch-parse.y (tupleelement): Don't wrap index is a TREE_LIST
7777 (i.e. a range), don't wrap a PAREN_EXPR around it.
7778 * ch-grant.c (decode_constant): For tuple CONSTRUCTORs,
7779 add support for ranges in purpose.
7781 Wed Aug 25 16:58:13 1993 Bill Cox (bill@rtl.cygnus.com)
7783 * .cvsignore: Add g++.sum
7784 * ch-actions.c (chill_expand_result): Stop building a temp.
7785 Assign the expression directly into function's DECL_RESULT.
7786 * ch-decl.c: Add formfeeds.
7787 (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
7788 (push_chill_function_context): Delete C pedwarn message.
7789 * ch-expr.c: Move builtin functions together.
7790 * ch-parse.y (end_function): Delete unused code.
7791 Reformat %union for readability. Delete _MAX and _MIN
7794 Wed Aug 25 13:24:06 1993 Bill Cox (bill@rtl.cygnus.com)
7796 * ch-actions.c (get_result_tmp_name): Delete unused function.
7797 (chill_expand_result, chill_expand_return): Rewrite for
7799 * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
7800 chain field, so we can make a temp, evaluate a RESULT action's
7801 expression into it, and hang it on here.
7802 * ch-parse.y (end_function): Look for RESULT temps to emit.
7803 (assertaction): Indentation.
7805 Wed Aug 25 08:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
7807 * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
7808 It wasn't used anyway.
7810 Tue Aug 24 17:51:18 1993 Bill Cox (bill@rtl.cygnus.com)
7812 * ch-actions.c (chill_expand_result, chill_expand_return):
7813 No need to make a temp for the value, just use DECL_RESULT.
7815 Tue Aug 24 16:38:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7817 * ch-tree.c (layout_powerset_type): Remove redundant code.
7818 Generalize (in error message) to also handle bitstrings.
7819 * ch-tree.c (build_bitstring_type): Remove all layout-like
7820 stuff, and defer that to layout_powerset_type.
7821 * ch-expr.c (chill_expand_expr): For various SET_xxx_EXPRs,
7822 allocate stack temp for target using correct mode.
7824 Tue Aug 24 10:27:19 1993 Bill Cox (bill@rtl.cygnus.com)
7826 * ch-actions.c, ch-decl.c, ch-except.c,
7827 ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
7828 ch-typeck.c: Change build_modify_expr calls to
7829 build_CHILL_modify_expr calls.
7830 * ch-expr.c (build_chill_modify_expr): Adapted from
7831 build_modify_expr in c-typeck.c.
7833 Mon Aug 23 16:48:39 1993 Bill Cox (bill@rtl.cygnus.com)
7835 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7836 ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
7837 ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
7838 Major re-allocation of functions to files.
7840 Mon Aug 23 12:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
7842 Thanks for the tip, Jim.
7843 * Makefile.in: Add dependency lines for ch-except.o and
7844 ch-satisfy.o. Correct dependency lines for ch-convert.o,
7845 ch-expr.o, ch-inout.o, and ch-loop.o.
7846 (chill, install-common): Add clean-up commands.
7848 Sat Aug 21 17:11:26 1993 Bill Cox (bill@rtl.cygnus.com)
7850 * ch-decl.c (get_type_precision): New function.
7851 (layout_enum): Call it.
7852 * ch-tree.c (layout_powerset_type, build_bitstring_type):
7855 Sat Aug 21 13:59:40 1993 Bill Cox (bill@rtl.cygnus.com)
7857 * ch-decl.c (init_decl_processing): Define setbitpowerset
7859 * ch-expr.c (chill_expand_assignment): Call setbitpowerset
7861 * ch-parse.y: Indentation.
7863 Fri Aug 20 17:29:56 1993 Bill Cox (bill@rtl.cygnus.com)
7865 * ch-parse.y: Delete unused %type declaration.
7866 * ch-tasking.c (build_signal_struct): Delete return, since
7867 function returns void.
7868 * ch-typeck.c: Indent to standard.
7869 * stor-layout.c: Fix comment.
7870 * toplev.c: Change -L option ti -I.
7871 * varasm.c (emit_set_data): Align set constant to word
7874 Fri Aug 20 08:20:07 1993 Bill Cox (bill@rtl.cygnus.com)
7876 * ch-actions.c: Fix indentation, comments.
7877 * ch-decl.c (push_chill_extern_signal): Use same interface
7878 as build_signal_struct.
7879 * ch-parse.y (quasi_signaldef): Move build_signal_decl
7880 here to sigdef. Add quasi_signal to distinguish contexts
7881 where sigdef gets used.
7882 * ch-tasking.c: Replace make_signal_struct and build_signal_decl
7883 with build_signal_decl, which doesn't loop through a
7885 * ch-tree.h: Fix protos.
7887 Wed Aug 18 17:36:53 1993 Bill Cox (bill@cygnus.com)
7889 * ch-actions.c: Fix comments.
7890 * ch-decl.c (push_modedefs): Return the new decl.
7891 (shadow_record_fields): Move pushlevel (0) calls into
7892 the grammar, so they'll get done in both passes.
7893 * ch-parse.y (dowithaction): Always compute & save # of
7894 'with' variables seen (both passes), and always pop that
7896 (structured_variable_list): Always chain variables into a list.
7897 (structured_variable): Put pushlevel here (from shadow_record_fields).
7898 * ch-tasking.c: Indentation fixes.
7899 * ch-tree.h: Change proto.
7900 * chill.texi: Add Blue Book section numbers to unimplemented
7903 Wed Aug 18 15:48:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
7905 * ch-actions.c (build_generalized_call): New function.
7906 Classifies semantically (if pass 2) this that look like calls.
7907 * ch-parse.y (call): Invoke build_generalized_call.
7908 * ch-parse.y (sigdef): Use defining_occurrence instead of NAME.
7909 * ch-parse.y (opt_untyped_exprlist): New non-terminal.
7910 * ch-satisfy.c (satisfy): Handle CALL_EXPR.
7912 Tue Aug 17 16:36:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
7914 * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
7916 Mon Aug 16 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
7918 * ch-tree.h (TUPLE_NAMED_FIELD): New macro.
7919 * ch-parse.y (labelled structure tupleelement):
7920 Set TUPLE_NAMED_FIELD flag.
7921 * ch-grant.c (decode_constant): Check for TUPLE_NAMED_FLAG.
7922 * ch-satisfy.c (satisfy): Check for TUPLE_NAMED_FLAG.
7923 Do satisfy the elements of a CONSTRUCTOR even if call
7924 chill_expand_tuple isn't correct.
7925 * ch-satisfy.c (satisfy): Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
7926 * ch-parse.y (label_spec): Defer any semantic checking until ...
7927 * ch-decl.c (layout_chill_variants): ... here.
7928 Also make sure to call layout_type on the union type.
7929 * ch-decl.c (bind_saved_names): For weak names, allocate an
7930 ALIAS_DECL, rather than a CONST_DECL.
7932 Add support for implied (weakly visible) names.
7933 * ch-tree.h (DECL_WEAK_NAME): New macro.
7934 * ch-satisfy.c (satisfy of IDENTIFIER_NODE): Don't complain
7935 if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
7936 * ch-decl.c (proclaim_name): Handle DECL_WEAK_NAME appropriately.
7937 * ch-decl.c (concat_lists, find_implied_types): New functions.
7938 * ch-decl.c (bind_saved_names): Search for implied names.
7939 * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
7940 * ch-lang.c (layout_chill_struct_type): Don't use
7941 C_DECL_VARIABLE_SIZE.
7943 Mon Aug 16 16:10:43 1993 Bill Cox (bill@rtl.cygnus.com)
7945 * ch-actions.c: Delete extra space in error message.
7946 * ch-parse.y: Fix comment.
7947 * expr.c (store_constructor): Avoid passing NULL to convert,
7948 and getting back an error_mark_node and trying to process
7951 Mon Aug 16 14:41:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
7953 * ch-decl.c: Add more overview comments.
7954 * ch-decl.c (proclaim_decl): New function.
7955 * ch-decl.c (temp_pushdecl, struct shadowing): Removed.
7956 * ch-decl.c (bind_saved_names): Remove blevel parameter;
7957 use current_scope global instead. Do some other cleanups.
7958 * ch-decl.c (save_expr_under_name): Create an ALIAS_DECL.
7959 * ch-decl.c (pushdecllist, save_expr_under_name): Use proclaim_decl.
7960 * ch-satisfy.c (satisfy, safe_satisfy_decl): Be more careful
7961 to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
7963 * chill.texi: Start collecting Chill documentation here.
7964 * ch-parse.y (mode): Ignore READ specifier, for now.
7966 Mon Aug 16 11:13:07 1993 Bill Cox (bill@rtl.cygnus.com)
7968 * ch-actions.c (chill_comptypes): Correct handling reference
7970 (build_chill_length, build_chill_num,
7971 build_chill_sizeof): Convert result to CHILL integer.
7972 (build_chill_function_call): Clean up INOUT and OUT
7974 * ch-decl.c (build_chill_function_type): Handle INOUT and
7976 * ch-loop.c: Fix up comments.
7977 * ch-parse.y: Fix up comments.
7979 Sun Aug 15 15:06:01 1993 Bill Cox (bill@rtl.cygnus.com)
7981 * ch-actions.c (build_chill_lower, build_chill_upper):
7982 Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
7983 * ch-decl.c (save_expr_under_name): New function to save
7984 addressing expressions for DO WITH and DO FOR handling.
7985 (handle_one_level): Call new function.
7986 * ch-loop.c (init_loop_counter): Call it here, too.
7987 Check lp->user_var before passing it to lookup_name.
7988 (high_domain_value, low_domain_value): Correct call
7989 to build_chill_upper and build_chill_lower.
7990 (begin_chill_loop, end_chill_loop): Move pushlevel,
7991 poplevel up into the grammar, so they're done in both
7993 * ch-parse.y (doaction): Unconditionally make a scope
7994 for a loop, pop it later.
7995 (controlpart, iteration): Save return from
7996 build_chill_iterator.
7997 * expr.c: Readability changes.
7999 Sat Aug 14 19:42:32 1993 Bill Cox (bill@rtl.cygnus.com)
8001 * ch-expr.c (chill_expand_case_expr): Complete rewrite
8002 for 2-pass. About 1/2 the size, too.
8003 * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
8004 This assures that a label preceding a module's first action
8005 is enclosed in the module-level function that's generated.
8007 Sat Aug 14 14:56:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
8009 Re-implement how EXIT is done.
8010 'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
8011 'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
8012 Hence we no longer need any support for EXIT in stmt.c.
8013 * stmt.c (stamp_nesting_label, expand_exit_labelled): Removed.
8014 * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
8015 * ch-tree.c, ch-tree.h (munge_exit_label): New function.
8016 * ch-parse.y: Re-write bracked actions to support EXIT new way.
8017 * ch-decl.c, ch-loop.c: Remove calls to stamp_nesting_level.
8018 * ch-parse.y: Replace SC by new token semi_colon, which
8019 resets the 'label' global. Also make sure that label gets
8020 reset whenever we might start a new action statement.
8021 * ch-parse.y (possibly_define_exit_label): New function.
8023 * ch-except.c (chill_start_on): Wrap an ADDR_EXPR round the jmpbuf.
8024 * ch-grant.c (chill_finish_compile): Make sure
8025 get_file_function_name is only called once.
8026 * ch-expr.c (chill_expand_array_assignment): Use store_expr,
8027 instead of incorrectly calling emit_block_move.
8029 * ch-parse.y (procedure): Call push_chill_function_context
8030 in *both* passes (if nested).
8031 * ch-parse.y (primval): Call get_type_of before chill_expand_type.
8032 * ch-parse.y (tupleelement): Only build PAREN_EXPR during pass 1.
8034 Fri Aug 13 16:36:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8036 Re-implement GRANT and SEIZE, to support prefixes and prefix
8037 rename. All of the Blue Book semantics for these should
8038 now work (except FORBID).
8039 * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
8040 DECL_POSTFIX, DECL_POSTFIX_ALL): New ALIAS_DECL layout and macros.
8041 * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
8042 decl_check_rename): New functions.
8043 * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
8044 * ch-satisfy.c (satisfy_decl): Handle SYN initialized with tuple.
8045 * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
8046 * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8047 * ch-grant.c (decode_prefix_rename): New function.
8048 Use to print out GRANT and SEIZE statements.
8049 * ch-decl.c (ALL_POSTFIX): New global variable.
8050 * ch-decl.c (bind_saved_names, pop_module): Change to use new
8051 ALIAS_DECL layout, and support general prefix rename and ALL.
8052 * ch-decl.c (various places): Don't barf if DECL_ANME is NULL.
8053 * ch-parse.y (build_prefix_clause): New function (handle PREFIXED).
8054 * ch-parse.y (optprogendname, optname): Rename to opt_end_label.
8055 * ch-parse.y: Add support for compound name strings, but defer
8056 using all over teh place, due to parser ambiguities.
8057 Howver, do use defining_occurrence where appropriate.
8058 * ch-parse.y: Re-write syntax and semantics of GRANT and SEIZE
8059 statements to support Blue Book functionality. Neato!
8061 Fri Aug 13 17:10:52 1993 Bill Cox (bill@rtl.cygnus.com)
8063 * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8064 * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8065 (decl_temp): Deleted.
8066 * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8067 * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8068 readability, add comment.
8069 * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8070 * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8072 Fri Aug 13 13:39:59 1993 Bill Cox (bill@rtl.cygnus.com)
8074 * ch-decl.c (decl_temp): Break the chain of decls. This
8075 prevents an infinite loop.
8076 * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8077 * ch-lex.l (equal_number): Check passes in looking up a
8079 * ch-parse.y: Fix comments.
8080 * ch-tasking.c (tasking_setup): Only act in pass 2.
8081 (make_signal_struct, build_signal_decl,
8082 build_chill_receive_case_label): Don't go indirect
8083 thru NULL decl pointer.
8085 Thu Aug 12 11:02:34 1993 Bill Cox (bill@rtl.cygnus.com)
8087 * ch-actions.c (route_to_predefined_function): New function called
8088 from build_chill_function_call, to call the proper predefined routine.
8089 (build_chill_card, build_chill_length, build_chill_lower,
8090 build_chill_max, build_chill_min, build_chill_num,
8091 build_chill_pred, build_chill_sizeof, build_chill_succ,
8092 build_chill_upper): Rewritten to run only in pass 2.
8093 * ch-decl.c (init_decl_processing): Build predefined functions for card,
8094 length, lower, max, min, num, pred, sizeof, succ and upper. Delete
8095 unused builtin_function calls.
8096 * ch-grant.c (chill_finish_module_code): Save current_function_decl
8097 before calling finish_chill_function, and use that to build the
8098 initializer structure.
8099 * ch-lex.l: Remove following tokens, since they're now just predefined,
8100 not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8102 * ch-loop.c: Readability, indentation changes.
8103 * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8104 sizeof, succ and upper. Delete special rules for calls to these.
8105 Delete mode_location and upper_lower_arg non-terminals.
8106 (pmodearg): Eliminate convolutions.
8107 (call): Add rule for typename parameter.
8108 * ch-tasking.c: Readability changes.
8109 * ch-tree.h: Add prototypes.
8111 Thu Aug 12 00:38:17 1993 Per Bothner (bothner@kalessin.cygnus.com)
8113 * ch-decl.c (save_decl): Set DECL_CONTEXT (decl).
8114 * ch-grant.c (chill_finish_module_code): Call
8115 finish_chill_function with nested==0.
8116 * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y: Rename
8117 {push,pop}_c_function_context to {push,pop}_chill_function_context.
8118 * ch-parse.y (end_function): If nested, call
8119 pop_chill_function_context regardless of which pass we're in.
8121 Wed Aug 11 02:34:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
8123 * ch-actions.c (finish_chill_binary_op): Handle error marks.
8124 * ch-decl.c (do_decl): Laying out decl and generating rtl
8125 is too late to do here (if there are forward references), so ...
8126 * ch-satisfy.c (satify_decl): ... do it here instead.
8127 * ch-decl.c (finish_enum): Fixup types of enum decls now.
8128 * ch-satisfy.c (safe_satisfy_decl): New routine. Supports
8129 checking illegal cyclic definitions.
8130 All *satisfy* routines now take a 'chain' parameter (instead
8131 of 'lookup_only') used for checking cycles.
8132 * ch-satisfy.c (satisfy_decl): Return DECL_INITIAL if appropriate.
8133 * ch-satisfy.c (satisfy): Lots of little fixes.
8135 * ch-lex.l (init_lex): Make all the standard ridpointers be
8136 lowercase, so that lookup_name on lower-cased user input
8137 will find the standard types.
8138 * ch-lex.l: Remove all the standard types, in effect
8139 converting them from reservered anmes to predefined names.
8140 * ch-lex.l, ch-parse.y: Remove PREDEF_MODEDECL - no longer used.
8141 * ch-grant.c (gfile): Rename to grant_file_name.
8142 * ch-lex.l (yywrap): Don't try to seize current grant_file_name.
8144 * initname.c: Removed. get_file_function_name is now in tree.c
8145 * Makefile.in (CHILL_OBJS): Remove initname.o
8147 * ch-decl.c (do_decl): New function, based on loop body of do_decls,
8148 * ch-decl.c (do_decls): Just call do_decl.
8149 * ch-grant.c (chill_finish_module_code): Minor cleasnups.
8150 Use new do_decl routine. Clear init_entry_decl's source line.
8151 * ch-grant.c (print_proc_tail): Fix for new param list structure.
8152 * ch-parse.y (whatpdef): Removed. Cleaned up procedure
8153 and process, allowing proper end-label-checking.
8154 * ch-typeck.c (build_chill_cast): Remove decl->type conversion.
8156 Wed Aug 11 00:33:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
8158 * ch-decl.c (layout_enum): Don't call rest_of_type_compilation.
8160 * ch-lex.l (RETURN_PREDEF): Don't call lookup_name.
8161 * ch-expr.c (build_chill_indirect_ref): Call get_type_of.
8162 * ch-parse.y (call): Call get_type_of before build_chill_cast.
8164 Tue Aug 10 21:33:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
8166 * ch-actions.c (build_char_array_expr): If a concat operand is
8167 a constant char, convert it to a STRING_CST.
8168 * ch-decl.c (finish_decl): Call rest_of_decl_compilation
8170 * ch-typeck.c (build_chill_cast): Allow type to be TYPE_DECL.
8172 * ch-parse.y (actionlabel): Call define_label in both passes.
8173 * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8174 New functions, using lookup_name to find LABEL_DECLs.
8175 * ch-parse.y (GOTO, EXIT): Use above new functions.
8176 * ch-tasking.c (struct rc_state_type *current_rc_state):
8177 Use to store state for the current receive case statement.
8178 (build_chill_receive_case_start, build_chill_receive_case_end):
8179 Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8180 * ch-decl.c: Remove all stuff dealing with specific label scopes,
8181 including functions push_label_level, pop_label_level.
8182 * ch-decl.c (define_label): Re-write for 2-pass.
8183 * ch_tree.h (lang_identifier): Removed label_value.
8184 * ch-tree.h (IDENTIFIER_LABEL_VALUE): Removed.
8186 * ch-parse.y (modename): Changed to yield identifier, not type.
8187 This allows following changes, which work better for 2-pass:
8188 (location): primval ARROW optmodename -> primval ARROW optname.
8189 (primval): Tuple can now be prefixed by unsatisfied name.
8191 * ch-actions.c (chill_grant_only): Renamed to grant_only_flag.
8192 * ch-lex.l (yywrap): Don't read seizefiles if grant_only_flag.
8193 * ch-decl.c (switch_to_pass_2): Exit if grant_only_flag,
8195 * ch-satisfy.c (satisfy): Support CONSTRUCTOR, REFERENCE_TYPE.
8196 * ch-satisfy.c (satisfy_decl, satisfy): Kludge around
8197 to a TYPE_DECL can be simplified to its type.
8198 * ch-expr.c (build_chill_indirect_ref): New function.
8199 * ch-lex.l (prepare_paren_colon): Make kludge even uglier,
8200 since the left paran might already have been seen.
8201 * ch-lang.c (make_chill_pointer_type): Allow parameter
8202 to select pointer or reference type.
8203 (build_chill_reference_type): New function.
8204 Either function: Be more careful (in case arg is identifier).
8205 * ch-except.c (initialize_exceptions): Make
8206 exception_stack_decl be public.
8207 * ch-actions.c (build_char_array_expr): Can only
8208 constant fold if operands are STRING_CST.
8209 * ch-grant.c (raw_decode_mode): Allow TYPE_DECL.
8210 (chill_finish_compile: Set TREE_PUBLIC of init function to 1.
8212 Tue Aug 10 17:55:12 1993 Bill Cox (bill@rtl.cygnus.com)
8214 * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8215 * ch-decl.c: Fix comment.
8216 * ch-parse.y (pmodearg): Build tree_list in all cases.
8217 * varasm.c (assemble_tasssking_entry): Delete unused code.
8219 Tue Aug 10 13:58:21 1993 Bill Cox (bill@rtl.cygnus.com)
8221 * ch-actions.c (build_char_array_expr): save/restore
8222 a tree's constant status.
8223 (build_chill_binary_op): Don't convert an expression
8224 if the type we're converting to is NULL.
8225 * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8226 Call it from convert, and from ..
8227 * ch-expr.c (chill_expand_assignment): call new function.
8228 Move convert code earlier, too.
8229 * ch-decl.c (lookup_name): Delete bogus error message.
8230 * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8232 * ch-typeck.c (valid_array_index): Comment out some strange code
8233 which now seg faults.
8234 (chill_expand_tuple): Re-enable prepending of VARYING
8236 (chill_similar): Return FALSE if either mode is NULL_TREE.
8238 Tue Aug 10 07:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
8240 * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8241 Add commented-out calls to pushtag, in case we decide later
8242 to fill in TYPE_STUB_DECL for dbxout.
8243 * ch-lang.c (build_chill_struct_type): Add commented-out
8244 calls to pushtag, in case we decide later to fill in
8245 TYPE_STUB_DECL for dbxout.
8247 Mon Aug 9 23:09:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
8249 * ch-decl.c (chill_seize): Don't get_next_next in pass 2.
8250 * ch-decl.c (get_next_decl): Skip ALIAS_DECLs.
8251 * ch-decl.c (bind_saved_names): Handle SEIZE ALL.
8252 * ch-lang.c (layout_chill_struct_type): Don't call
8253 rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8254 * initname.c (get_file_function_name): Get new file and
8255 function for language-independent constructor name generation.
8256 * ch-grant.c (get_init_function_id): Removed.
8257 * ch-grant.c (chill_finish_compile): Call get_file_function_name
8258 instead of get_init_function_id.
8260 Mon Aug 9 18:33:36 1993 Bill Cox (bill@rtl.cygnus.com)
8262 * ch-decl.c: Formfeeds and comments.
8263 * ch-parse.y (quasi_formpar): Treat just like real formpar.
8264 Eliminate restriction on single name.
8265 (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8267 Mon Aug 9 17:21:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
8269 * ch-lex.h (enum rid), ch-lex.l (init_lex): Added RID_ALL.
8270 * ch-lang.c (build_chill_pointer_type): Layout the pointer type,
8271 if the pointee is laid out, even if pass==1.
8272 * ch-parse.y: Set ignore_exprs=(pass=2) for entire spec module.
8274 Mon Aug 9 15:44:01 1993 Bill Cox (bill@rtl.cygnus.com)
8276 This version compiles the 5-line program. Thanks, Per!
8277 * ch-decl.c (print_lang_decl, print_lang_identifier):
8278 Add appropriate calls to indent_to(). Rename reverse_scopes
8279 to switch_to_pass_2, and wait to set pass = 2 until
8281 * ch-grant.c (chill_finish_module_code): Set module_init_list
8282 non-NULL in pass 1; in pass2, chain on the module_init
8284 (chill_finish_compile): Clear module_init_list to NULL.
8285 * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8286 Rename reverse_scopes to switch_to_pass_2, delete setting
8288 * ch-tree.h: Rename reverse_scopes proto.
8290 Mon Aug 9 13:21:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
8292 * ch-decl.c (build_enumerator): If name is NULL,
8293 don't call save_decl or get_next_decl.
8294 * ch-decl.c (layout_enum): Fix calculation of next value.
8295 * ch-grant.c (print_enumeral): Re-do for new 2-pass scheme.
8296 * ch-grant.c (decode_constant): Better CONSTRUCTOR support.
8298 Mon Aug 9 11:59:12 1993 Bill Cox (bill@rtl.cygnus.com)
8300 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8301 ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8302 Lots of new prototypes.
8304 Mon Aug 9 01:00:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
8306 * ch-lex.h: Remove unused RID_'s. Make sure RID_MAX is last.
8307 * ch-decl.c (init_decl_processing): Moved ridpointers
8308 initialization to init_lex(). Use them consistently.
8309 * ch-lex.l (RETURN_PREDEF): New macro. Uses ridpointers
8310 for all preferedined types.
8311 * ch-lex.l (init_lex): Upper case all RIDs, so grantfiles
8312 (and error messages?) will use uppercase.
8313 * ch-decl.c (build_chill_enumerator): Merged into build_enumerator.
8314 * ch-lang.c (finish_chill_enum): Merged into ...
8315 * ch-decl.c (finish_enum): .... this function.
8316 * ch-decl.c (layout_enum): New function. Does all the pass-2
8317 stuff for enumerations.
8318 * ch-decl.c (finish_enum, start_enum): Only trivial pass-1 stuff.
8319 * ch-satisfy.c (satisfy): Support ENUMERAL_TYPE. Improve ranges.
8320 * ch-parse.y: Check ignore_exprs instead of ignore_decls when
8321 parsing and building types.
8323 Sun Aug 8 16:26:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8325 * ch-lex.h: Add some missing RID_'s.
8326 * ch-decl.c (init_decl_processing):
8328 Sun Aug 8 15:32:54 1993 Bill Cox (bill@rtl.cygnus.com)
8330 * ch-grant.c (module_has_actions): Delete this and all
8331 references. It was a botch.
8332 (chill_finish_module_code): Move finish_chill_function_call inside
8333 the test whether actions were found at module level.
8334 Use current_function_name in the initializer build,
8335 and init_entry_id in the module_list setup.
8336 (chill_finish_compile): Call lookup_name to get the
8337 decl from a module_init_list entry.
8338 * ch-parse.y: Revert module_has_actions additions.
8339 * ch-satisfy.c (satisfy): After satisfying the type referenced
8340 by a pointer_type, call layout type for the pointer.
8341 * ch-tasking.c (tasking_registry): Only active in pass 2.
8342 * ch-typeck.c: Call build_chill_pointer_type everywhere.
8344 Sun Aug 8 13:13:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
8346 * ch-tree.def (PAREN_EXPR): New unary op: '(' EXPR ')'.
8347 * ch-parse.y (primval): If pass 1, generate PAREN_EXRR.
8348 * ch-satisfy.c (satisfy): Reduce PAREN_EXPR to its operand.
8349 * ch-grant.c (decode_const): Handle PAREN_EXPR.
8350 * ch-decl.c (pop_module): Fix think. Inprove error message.
8352 Sun Aug 8 10:31:04 1993 Bill Cox (bill@rtl.cygnus.com)
8354 Generally, replace 'function' with 'procedure'
8355 and 'type' with 'mode' in error/warning messages.
8356 * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8357 * ch-decl.c: See Generally.
8358 (init_decl_processing): Call build_tasking_enum from here.
8359 Now, it doesn't need a flag to do its work only once.
8360 Also, build the TaskingStruct decl here.
8361 * ch-grant.c: Remove references to `current_grant_file';
8362 there's now only one. See Generally. Do gcc -Wall cleanup.
8363 * ch-lex.l: Remove references to `current_grant_file'
8364 and delete USE_GRANT_FILE token.
8365 * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8366 * ch-tasking.c (tasking_setup): Move TaskingStruct build
8367 to init_decl_procesing. Delete build_tasking_enum calls.
8368 * ch-tree.c: See Generally.
8369 * ch-tree.h: Add proto for build_tasking_struct.
8371 Sun Aug 8 08:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8373 * ch-decl.c: Make unnamed_module_number static, reset it to zero
8374 before pass 2, so same module names get generated in both passes.
8375 (push_module): Return user name or generated name.
8376 (init_decl_processing): Build __tmp_initializer_type.
8377 Code moved from chill_finish_module_code.
8378 * ch-grant.c: New flag module_has_actions. Set TRUE by push_actions,
8379 used, reset by chill_finish_module_code. Replaces test of
8380 module_function_name. Shuffled finish-up code to end of module.
8381 (chill_finish_module_code): Use global_bindings_p to determine
8382 'nested' parameter for finish_chill_function. Use new
8383 module_has_actions flag to trigger generation of module_init list
8384 entry. We now can handle not only multiple modules per file,
8385 but modules nested inside functions (I think).
8386 * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8387 * ch-parse.y (push_actions): Set module_has_actions flag.
8388 (modulion, spec_module): Save possibly-generated module name
8389 returned by push_module.
8390 * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8391 case for POINTER_TYPE.
8392 * ch-tasking.c: Replace build_pointer_type calls with
8393 build_chill_pointer_type calls.
8394 * ch-tree.h: Fix, add prototypes.
8396 Sat Aug 7 17:32:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8398 * ch-parse.y: Remove many useless tests for ignore_decls.
8399 * ch-parse.y: Remove obsolete support for _EXTERN and _INIT.
8400 * ch-parse.y: Reset ignore_exprs while parsing declarations,
8401 but handle initializers appropriately.
8402 * ch-grant.c (decode_constant): Update (for 2-pass) support
8403 for CONSTRUCTOR and SET_TYPE.
8404 * ch-grant.c (chill_initializer_name): Renamed to
8405 module_function_name.
8406 * ch-grant.c (function_generated): Removed;
8407 use module_function_name != NULL instead.
8408 * ch-tree.h, ch-parse.y: Removed unused current_locnamelist.
8409 * ch-decl.c (push_modedef): Simplify to take just one mode.
8410 * ch-tasking.c (make_process_struct, make_signal_struct):
8411 Change calls to push_modedef correspondingly.
8412 * ch-tree.c (build_powerset_type): Move the stuff that's
8413 suitable for pass 1 into new function make_powerset_type,
8414 and that for pass 2 into new function layout_powerset_type.
8415 * ch-lang.c: Move pass-1 stuff from build_chill_pointer_type
8416 into new function make_chill_pointer_type, and split
8417 build_chill_struct_type into make_chill_struct_type
8418 and layout_chill_struct_type.
8419 * ch-decl.c (grok_chill_variantdefs): Similarly split up
8420 into make_chill_variants and layout_chill_variants.
8421 * ch-satisfy.c (satisfy): Add support for SET_TYPE, and UNION_TYPE.
8422 Call layout_chill_struct_type for RECORD_TYPE.
8424 Sat Aug 7 09:59:55 1993 Bill Cox (bill@rtl.cygnus.com)
8426 Fixup previous check-in.
8427 * ch-decl.c: Restore unnamed_module_number, which *was*
8429 * ch-grant.c (get_init_function_id): Return type s.b. tree.
8431 Sat Aug 7 09:28:17 1993 Bill Cox (bill@rtl.cygnus.com)
8433 * ch-decl.c (print_lang_decl, print_lang_type): Add
8434 correct parameter list. Add print statements for
8435 nesting_level, signal_dest, buffer_size, and the
8437 (decl_temp, decl_temp1): Delete unused code.
8438 (init_decl_processing): Call build_instance_type and
8439 build_tasking_type in both passes.
8440 Generally change current_scope comparisons against
8441 global_scope to global_biidings_p calls.
8442 * ch-except.c (push_handler): Add space before parameter paren.
8443 * ch-grant.c (chill_start_module, chill_finish_module,
8444 chill_finish_compile): Complete re-write for 2-pass and
8445 multiple modules per source file.
8446 * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8447 * ch-tasking.c: Diffused small adaptations to 2-pass.
8448 * ch-tree.h (print_lang_decl, print_lang_type): Correct
8450 (chill_finish_module_code): Add module name parameter.
8451 * ch-typeck.c: Fix comments, add whitespace.
8453 Fri Aug 6 12:17:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
8455 * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8456 way I allocated the shadow_list on an obstack was too fragile,
8457 so just use xmalloc/free instead.
8459 Fri Aug 6 08:31:49 1993 Bill Cox (bill@rtl.cygnus.com)
8461 * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8462 TYPE_MAX_VALUE for vanilla integer type. Only need
8463 to satisfy TREE_TYPE for integer range type.
8465 Fri Aug 6 00:53:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
8467 * ch-lang.c (build_chill_range_type): Split up into two new
8468 functions (make_chill_range_type, layout_chill_range_type);
8469 only former part is done in pass 1.
8470 * ch-lang.c (build_chill_array_type): Split up in the same
8471 way (yielding make_chill_array_type, layout_chill_array_type).
8472 * ch-satisfy.c (satisfy): Handle array and range types.
8473 * ch-tree.h (TYPE_RANGE_PARENT): Removed. Not used.
8474 * ch-parse.y (mode2): Handle optional rangesize.
8476 Thu Aug 5 15:13:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
8478 * ch-grant.c (print_an_int): Re-enable (but don't search for SYN).
8479 * ch-grant.c (raw_decode_mode): Support printing
8480 of an IDENTIFIER_NODE (unresolved type name).
8481 * ch-grant.c (decode_constant): Support printing of an unresolved
8482 IDENTIFIER_NODE, as well as some kinds of binary operations.
8483 * ch-grant.c (grant_one_decl): Don't call globalize_decl.
8485 * ch-grant.c (decode_decl): Add support for ALIAS_DECLs
8486 (from SEIZEs and GRANTs).
8487 * ch-grant.c: Remove support for multiple grantfiles.
8488 * ch-grant.c, ch-parse.y: Removed grant_count, for now at least.
8489 * ch-lex.h (in_seizefile): Moved to ch-tree.h.
8490 * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c: Removed.
8491 * ch-tree.h (CH_DECL_GRANTED): Added.
8492 * ch-actions.c (build_chill_exception_decl): Use
8493 IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8494 * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8495 Change to accept list of remember_decls and granted_decls.
8497 Thu Aug 5 11:58:21 1993 Stan Shebs (shebs@rtl.cygnus.com)
8499 * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8501 Thu Aug 5 10:03:27 1993 Bill Cox (bill@rtl.cygnus.com)
8503 * ch-decl.c (init_decl_processing): Only build types
8504 in pass 2, since dbxout machinery is only ready for
8506 * ch-grant.c (chill_finish_module_code): Do most of the
8509 Thu Aug 5 06:54:10 1993 Bill Cox (bill@rtl.cygnus.com)
8511 * ch-parse.y (receivecaseaction): Pass label-group
8513 * ch-tasking.c (build_chill_receive_case_start):
8514 Generate unique labels for each case, pass back
8515 the label-group's number.
8516 (build_chill_receive_case_end): Accept label-group
8517 number from parser, use it to build labels
8518 * ch-tree.h: Change prototypes.
8520 Wed Aug 4 13:21:13 1993 Per Bothner (bothner@kalessin.cygnus.com)
8522 * ch-decl.c (decl_temp1): Call finish_decl().
8524 * ch-grant.c (chill_start_module_code): Don't call
8525 push_c_function_context - not needed since we're not nested.
8526 * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8527 with nested=0, not 1 (twice).
8528 * ch-grant.c (chill_finish_module_code): Clear function_generated.
8530 Tue Aug 3 20:06:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8532 * ch-decl.c (push_chill_extern_function): Set TREE_PUBLIC.
8534 Tue Aug 3 19:08:51 1993 Bill Cox (bill@rtl.cygnus.com)
8536 * ch-actions.c (build_chill_function_call): Handle parameter
8537 attributes better - LOC still not handled.
8538 * ch-tree.def: Amplify comment.
8540 Tue Aug 3 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8542 * ch-lex.l (handle_use_seizefile_directive): Update
8543 next_file_to_seize correctly.
8544 * ch-actions.c (build_chill_abs): Create an ABS_EXPR, not an rts_call.
8546 Tue Aug 3 14:03:50 1993 Bill Cox (bill@rtl.cygnus.com)
8548 First Aid, not real long-term fixes...
8549 * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8550 current_module pointer for NULL before using it.
8551 (init_decl_processing): Set up wchar_type_node before using it.
8552 * ch-grant.c (chill_finish_module_code): Don't build
8553 initializer_type or initializer_decl until pass 2.
8554 * ch-lex.l: Readability - single statement per line.
8555 * ch-tasking.c (make_process_struct): Hide get_parm_info
8556 call inside #ifdef for now.
8558 Tue Aug 3 09:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8560 * ch-decl.c (pushdecllist): Add forward decl.
8561 * ch-parse.y (handler): Add rules which allo
8562 empty onalternativelist.
8563 * ch-tasking.c (get_tasking_code_name): Add
8564 cast of alloca() result.
8566 Tue Aug 3 00:11:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8568 * ch-lex.l (handle_use_seizefile_directive): Make files_to_seize
8569 a queue. Check for duplicate use_seizefile-s immediately.
8570 * ch-lex.l (yywrap): Use this more portable mechanism,
8571 rather than the flex-specific <<EOF>>. Also, clear saw_eof.
8572 * ch-lex.l: Don't call push_module/pop_module automatically.
8573 * ch-decl.c (push_chill_extern_function: Modify for 2-pass.
8575 Mon Aug 2 14:24:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
8577 * ch-parse.y: Rename actionstatement -> nonempty_actionstatement.
8578 New actionstatement is now nonempty_actionstatement | SC. Use
8579 where appropriate. This is closer to Blue Book terminology.
8581 * ch-tree.def (ALIAS_DECL): New tree type.
8582 * ch-decl.c: Merged all the code we need (I hope) from c-decl.c,
8583 which is no longer used for cc1chill.
8584 * c-decl.c: Remove all Chill-related code.
8585 * Makefile.in (CHILL_OBJS): Don't use c-decl.o.
8586 * ch-decl.c: No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
8587 Introduce a 'nesting_level' level concept instead.
8588 * ch-decl.c: Merged push_scope into pushlevel; pop_scope into
8589 poplevel; struct scope and struct binding_level.
8590 * ch-decl.c: Other major name lookup algorithm changes.
8591 * ch-tree.h (struct lang_identifier): Remove granted_value field.
8592 * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro): Removed.
8593 * ch-tree.h (DECL_NESTING_LEVEL): New macro.
8594 * ch-satisfy.c (satisfy, satisfy_decl): New 'lookup_only' arg.
8595 * ch-tree.h (struct module): New fields nesting_level, granted_decls.
8596 * ch-grant.c (seize_implied_names, do_seize, chill_seize): Move ...
8597 * ch-decl.c: ... here.
8598 * ch-grant.c (start_chill_function2): Remove.
8599 * ch-grant.c (chill_start_module_code): Now called in both passes.
8600 * ch-actions.c (lang_init): Code moved to ...
8601 * ch-decl.c (init_decl_processing): ... here.
8602 * ch-actions.c (chill_expand_result, chill_expand_return):
8603 Handle being called during pass 1.
8604 * ch-lex.l (name_type_signal): Don't try lookup_name during pass 1.
8605 * ch-parse.y (PUSH_ACTION, push_action): Is now invoked during
8606 both passes, for the sake of chill_start_module_code. Change all
8607 actions rules to invoke PUSH_ACTION unconconditionally.
8608 * ch-parse.y, ch-decl.c (push_module): Module label is now optional.
8610 Mon Aug 2 15:02:32 1993 Bill Cox (bill@rtl.cygnus.com)
8612 * expr.c (store_constructor): Convert library function
8613 parameters to proper integer precision before calling
8616 Mon Aug 2 08:46:06 1993 Bill Cox (bill@rtl.cygnus.com)
8618 * ch-grant.c (seize_implied_names): Check POWERSET's
8619 base type for names to seize.
8621 Fri Jul 30 19:59:30 1993 Bill Cox (bill@rtl.cygnus.com)
8623 * ch-tree.h: Delete unused definition of JOINER
8624 macro. Expand comment about INSTANCE_TYPE.
8626 Thu Jul 29 14:57:11 1993 Bill Cox (bill@rtl.cygnus.com)
8628 * ch-convert.c (unreferenced_type_of): New function.
8629 (convert): Call new function.
8631 Thu Jul 29 07:34:57 1993 Bill Cox (bill@rtl.cygnus.com)
8633 * ch-lex.l: Allow C-style comments before the module
8634 header. Use #undef to assure that strchr isn't a
8635 macro (portability), and remove the extra paren-
8636 theses in its extern name.
8637 (check_newline): Call getlc less often, so that user
8638 labels aren't lowercased before their time. Add BEGIN
8639 INITIAL before starting pass 2, so the header is
8642 Wed Jul 28 14:23:24 1993 Bill Cox (bill@rtl.cygnus.com)
8644 * ch-grant.c (chill_start_module_code): Cast alloca()
8647 Wed Jul 28 12:39:51 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8649 * ch-grant.c: remove extra parens around extern function
8650 declarations (they confuse the DECstation compiler)
8652 Wed Jul 28 12:28:56 1993 Bill Cox (bill@rtl.cygnus.com)
8654 * Makefile.in: Stop deleting flex's #line lines.
8656 Wed Jul 28 07:05:25 1993 Bill Cox (bill@cygnus.com)
8658 Adjust after FSF merge:
8659 * calls.c (expand_call): Add comment.
8660 * ch-expr.c: Add newline.
8661 * expmed.c (store_split_bit_field): Add comment.
8663 Tue Jul 27 17:32:13 1993 Bill Cox (bill@rtl.cygnus.com)
8665 * ch-actions.c (build_chill_binary_op): Set code0 and
8666 code1 only in pass 2.
8667 (get_result_tmp_name): Cast alloca return for portability.
8668 * ch-decl.c (pop_module): Test current_module ptr before
8670 * ch-lex.l: Set lineno and input_filename for pass 2
8673 Tue Jul 27 15:14:06 1993 Bill Cox (bill@rtl.cygnus.com)
8675 * ch-lex.l: Fix the syntax error at line 329. Will I
8676 *ever* quit fixing these in the ch-lex.c file? Stay tuned..
8678 Tue Jul 27 15:01:25 1993 Bill Cox (bill@rtl.cygnus.com)
8680 * ch-lex.l: Pervasive rewrite for queueing seize files,
8681 then parsing them at the end of pass 1. Still some
8684 Tue Jul 27 07:40:39 1993 Bill Cox (bill@rtl.cygnus.com)
8686 * chill.in: Check for .i suffices only, and use -xchill
8687 to bracket the argument.
8689 Thu Jul 22 19:17:23 1993 Bill Cox (bill@rtl.cygnus.com)
8691 * c-decl.c (print_lang_identifier): Oops. Syntax error.
8693 Thu Jul 22 18:56:16 1993 Bill Cox (bill@rtl.cygnus.com)
8695 * c-decl.c (pushdecllist): Standardize loop for readability.
8696 * ch-decl.c (decl_temp): Call pushdecllist to store decl
8697 into hash table, move after current_scope declaration.
8698 (decl_temp1): Move also.
8699 * ch-lex.l (getlc): New function. Force char to lower case.
8700 (check_newline): Call it, so comparisons work on uppercase
8703 Wed Jul 21 22:17:22 1993 Bill Cox (bill@rtl.cygnus.com)
8705 * ch-decl.c (do_decls): Add saving of decl tree
8706 address into ID node in pass 2, reindent.
8707 * ch-grant.c (start_chill_function2): New function.
8708 (chill_start_module_code, chill_finish_module_code): Call it.
8709 * ch-loop.c (build_temporary_variable, begin_for_range):
8710 Replace start_decl, finish_decl pairs with decl_temp1 calls.
8711 * ch-parse.y (parnamelist): Eliminate warning by eliminating
8713 * ch-actions.c, ch-tasking.c: Replace do_decls calls with
8715 * ch-tree.h: New prototypes.
8716 * stmt.c (stamp_nesting_label): Check parameters for NULL.
8717 * toplev.c (lang_options): Add '-L' option.
8719 Wed Jul 21 21:06:18 1993 Bill Cox (bill@rtl.cygnus.com)
8722 * ch-decl.c (save_decl): Make definition match forward declaration.
8723 * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
8724 in the macro - Sun's compiler throws warnings. Thanks, Brendan.
8725 * ch-satisfy.c (satisfy): Add forward declaration.
8726 (SATISFY): Add outer parens for greater safety.
8728 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8730 * c-decl.c (pushdecllist): New function. Add a list of decls
8731 to the current scope, checking for duplicates.
8732 * c-decl.c (start_function): Remove some Chill junk.
8733 (This function should no longer be used for Chill.)
8734 * ch-lex.l (ch_lex_init): New function, to re-init for 2nd pass.
8735 * ch-lex.l (<<EOF>>): Cleanup, and re-start for 2nd pass.
8736 * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG): New flags.
8737 * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
8738 Implement. Add comments.
8739 * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
8740 Better Blue Book type checking.
8741 * ch-actions.c (finish_chill_binary_op): Handle folding
8742 and other stuff that couldn't be done in pass 1.
8743 * ch-actions.c (build_chill_binary_op): Bail out early if pass 1.
8744 Use new CH_ROOT_MODE macro to handle integer promotions etc.
8745 * ch-except.c (push_handler): Bail out if pass 1.
8746 * ch-tasking.c (make_process_struct): Defer making this work.
8747 * ch-parse.y (assignaction): Simplify, and move some code ...
8748 * ch-expr.c (chill_expand_assignment): ... here.
8749 * ch-typeck.c (chill_root_mode, chill_resulting_mode,
8750 chill_compatible_classes): New functions, implementing the
8751 correspondingly named Blue Book concepts.
8752 * ch-parse.y generally: Lots of little tweaks to support
8754 * ch-parse.y (push_module, pop_module): Moved to ...
8755 * ch-decl.c (push_module, pop_module): ... here.
8756 * ch-parse.y (push_action): New function.
8757 * ch-parse.y (pdef): Move complicated action to ...
8758 * ch-parse.y (end_function): ... new function here.
8759 * ch-parse.y (procedure): Major re-write.
8760 * ch-parse.y (paramname, paramnamelist): New, to avoid conflict (?).
8761 * ch-decl.c (do_decls, push_syndecls, push_modedef,
8762 start_chill_function, finish_chill_function): Do different things
8763 on each pass. Hence, can use code in c-decl.c to lesser extent.
8764 * ch-decl.c (build_chill_function_type): First arg is now
8765 just the return type, rather than a singleton list.
8766 * ch-decl.c (massage_param_node): Remove not needed (we
8767 now encode parameter attributes directly in the TREE_PURPOSE).
8768 * ch-decl.c (chill_munge_params): New function, called by parser.
8769 * ch-decl.c (push_parms): Removed function.
8770 * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
8771 New functions, to coordinate decls between passes.
8773 Wed Jul 21 14:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
8775 * ch-actions.c (lang_decode_option): Add option -Lpath
8776 to specify seize file path.
8777 (ch_singleton_set): Readability formatting.
8778 Add comment, move functions to easier found places.
8779 * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
8780 (register_seize_path): Use memcpy so pathlen has an effect.
8781 * gcc.c (default_compilers): Add -L option to chill
8784 Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8786 * ch-satisfy: New file. Used for name lookup.
8787 * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
8789 Wed Jul 21 12:16:51 1993 Bill Cox (bill@rtl.cygnus.com)
8791 * toplev.c (main): Delete -L option handling - breaks
8792 non-chill compilers.
8794 Wed Jul 21 09:29:24 1993 Bill Cox (bill@rtl.cygnus.com)
8796 * ch-grant.c: #undef strchr and strrchr names in extern
8797 declarations, to prevent RS6000 compiler from reporting
8798 their misuse as macros.
8799 * ch-lex.l (setup_seizefile_read): Refer to list of paths
8800 for seizefiles specified by -L options on command line.
8801 (register_seize_path): Add a new path to the seize file list.
8802 * toplev.c (strip_off_ending): Recognize chill suffix.
8803 (main): Recognize -L option, specifying a seize file path.
8805 Tue Jul 20 12:41:52 1993 Bill Cox (bill@rtl.cygnus.com)
8807 * ch-lex.l (convert_float): Make it really portable,
8808 using the appropriate macros.
8810 Tue Jul 20 11:26:02 1993 Bill Cox (bill@rtl.cygnus.com)
8812 * ch-lex.l (convert_float): More casts for vxworks
8815 Tue Jul 20 11:01:30 1993 Bill Cox (bill@rtl.cygnus.com)
8817 * ch-lex.l (convert_float): Give variable `d' correct
8818 type so build_real call is correct. Should remove
8819 vxworks portability problem.
8820 (convert_float): Re-indent to standards.
8822 Mon Jul 19 17:32:10 1993 Bill Cox (bill@rtl.cygnus.com)
8824 * ch-actions.c (build_char_array_expr): Add field decls to
8825 constructor. Now, it generates the library call.
8826 * ch-expr.c (chill_expand_array_assignment): Make sure that all
8827 error messages say 'mode' not 'type'.
8829 Mon Jul 19 14:44:46 1993 Bill Cox (bill@rtl.cygnus.com)
8831 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
8832 ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
8833 Make sure that all error messages say 'mode' not 'type'.
8834 * ch-decl.c (push_modedef): Add novelty computation,
8835 storage in each newmode.
8836 * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
8837 Reformat slightly for readability. Fix comments.
8838 * ch-tree.h: Delete print_lang_type prototype.
8840 Mon Jul 19 06:43:51 1993 Bill Cox (bill@rtl.cygnus.com)
8842 * ch-actions.c (chill_expand_return): Disable
8843 error message which requires 2-pass analysis, for
8845 * ch-convert.c (convert): Build length-only constructor
8846 for empty string (PR 2930).
8848 Fri Jul 16 16:08:33 1993 Bill Cox (bill@rtl.cygnus.com)
8850 * ch-expr.c (chill_expand_array_assignment): Check
8851 non-varying string assignments for conformance to
8852 the "string assignment condition" (PR 2920).
8854 Thu Jul 15 13:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
8856 * ch-actions.c (build_chill_array_expr): Check parameters.
8857 Call convert to build unitary array from scalar if
8858 needed. Rewrite CONCAT_EXPR handling.
8859 * ch-convert.c (build_array_type_for_scalar): New functions.
8860 (convert): Call new function, to convert scalar to unitary
8861 array. Only call chill_expand_tuple if expression hass
8863 * ch-expr.c (chill_expand_expr): Allow a larger static
8864 varying array to be assigned to a smaller, with a runtime
8865 test (to be provided).
8866 * ch-parse.y (locdec): Comment out bogus error msg.
8867 (elementlist): Replace several lines with chainon call.
8868 * ch-tree.h (SCALAR_P): New macro. New prototype for
8869 build_array_type_for_scalar.
8870 * ch-typeck.c (build_chill_cast): Re-indent.
8871 (chill_expand_tuple): Comment out strange addition of
8872 varying string's length to front of constructor list.
8874 Thu Jul 15 05:58:46 1993 Bill Cox (bill@rtl.cygnus.com)
8876 * ch-except.c (start_handler_array): Use unique identifier for
8877 exception array, so we can have > 1 array per reach
8878 (PR 2931). The change was originally entered June 23, and
8881 Mon Jul 12 16:07:53 1993 Bill Cox (bill@rtl.cygnus.com)
8883 Get executable test cases running again...
8884 * c-typeck.c (build_function_call): Bypass default
8885 parameter promotions, format param syntax check for
8886 CHILL; they've already been converted in
8887 build_chill_function_call.
8888 * ch-actions.c (chill_expand-return): Correct tests
8889 for function which returns no value.
8890 * ch-convert.c (base_type_size_in_bytes): Check for
8891 NULL type parameter, just return.
8892 (convert): Allow conversion of CHAR to varying array
8894 Change error msg to "conversion" from "assignment".
8895 Remove default from case, which short-circuited before
8896 REFERENCE_TYPEs got converted. Deleted second copy
8897 of REFERENCE_TYPE code.
8898 * ch-lang.c (build_chill_range_type): Simply exit if
8899 NULL input parameter.
8900 * ch-loop.c: Fix comment.
8902 Sun Jul 11 11:27:08 1993 Bill Cox (bill@cygnus.com)
8904 * ch-actions.c (chill_expand_result, chill_expand_return):
8905 Move here from ch-typeck.c. Add a temporary to remember the
8906 result value in. Change return handler to fetch that
8907 temporary value, if there is one.
8908 * ch-parse.y (pdef): Call chill_expand_return to fetch
8910 * ch-tree.h, ch-typeck.c: Move return, result functions to
8911 ch-actions.c. And their prototypes.
8913 Fri Jul 9 15:47:51 1993 Bill Cox (bill@rtl.cygnus.com)
8915 * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
8916 ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
8917 ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
8918 ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
8920 Fri Jul 9 09:41:05 1993 Bill Cox (bill@rtl.cygnus.com)
8922 * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
8923 (print_integer): Delete old non-working INSTANCE code.
8924 * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
8925 * ch-parse.y (rccase_label): Move all actions inside if.
8926 Use BUFFERNAME to recognize receice case buffer clause,
8927 eliminate one shift-reduce conflict.
8928 * ch-tasking.c (build_buffer_descriptor): Check for
8929 CH_DECL_BUFFER flag, remove unused code.
8931 Thu Jul 8 11:17:32 1993 Bill Cox (bill@rtl.cygnus.com)
8933 Declaring and sending buffers.. first draft
8934 * ch-actions.c (lang_init): Define the send_buffer runtime
8936 * ch-decl.c (do_decls): Standardize loop, so stepping
8938 * ch-lex.l: Clean up prototypes for readability.
8939 * ch-parse.y (sendaction): Add send buffer action.
8940 (locdec): Add rule for buffer declaration.
8941 * ch-tasking.c (generate_tasking_code): standardize indentation.
8942 (make_signal_struct): Readability changes.
8943 (build_chill_send_buffer, build_buffer_decl,
8944 build_buffer_descriptor): New functions.
8945 * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
8946 buffer's maximum queue length in buffer decl.
8947 (CH_DECL_BUFFER): Add flag in decl. Clean up for
8948 readability. Add prototypes.
8949 * ch-typeck.c (build_chill_cast): Call convert rather
8950 than storing directly into TREE_TYPE field.
8952 Tue Jul 6 12:34:32 1993 Bill Cox (bill@rtl.cygnus.com)
8954 * ch-actions.c (lang_init): Set warn_switch so case labels
8955 get checked. Move build_chill_case_expr to ch-expr.c.
8956 * ch-expr.c (chill_expand_case_expr): Enable checking
8957 of expression case labels.
8958 * ch-grant.c: Move a comment.
8960 Mon Jul 5 10:02:27 1993 Wilfried Moser (fs_moser at rcsw1j)
8962 * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
8963 * ch-except.c (initialize_exceptions): Change the layout of the
8964 structure __ch_handler. The entry __jbuf is moved to the end
8965 of the structure and its size was changed to _JBLEN+10.
8966 * ch-decl.c (push_chill_extern_process): Add processing of
8967 processes with no arguments.
8968 * ch-grant.c (decode_decl, do_seize): Add processing of
8969 processes with no arguments.
8970 * ch-tasking.c (build_process_header, build_chill_start_process):
8971 Add processing of processes with no arguments.
8972 (make_process_struct): Add processing of IN attribute for
8974 (tasking_setup): Add NUL-character to name of a tasking
8975 element. The name must be NUL terminated.
8976 (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
8977 to 0 with a warning if -Wall specified on command-line.
8979 Fri Jul 2 16:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
8981 * ch-parse.y: Change 'empty' comments to new non-terminal
8982 so that exyacc doesn't discard them.
8983 * ch-lang.c (build_chill_range_type): New error messages.
8985 Fri Jul 2 12:43:25 1993 Bill Cox (bill@rtl.cygnus.com)
8987 * ch-parse.y (action): Catch and report actions which
8988 shouldn't have exception clauses, but do. Unfortunately,
8989 catching more than one of these per compilation will
8990 have to await the general addition of syntax error
8991 recovery to the parser.
8993 Fri Jul 2 10:45:35 1993 Bill Cox (bill@rtl.cygnus.com)
8995 * ch-parse.y (locdec): Issue error for initialization
8996 of bitstring with tuple, not for powerset init with
8999 Thu Jul 1 15:29:26 1993 Bill Cox (bill@rtl.cygnus.com)
9001 * ch-lang.c (build_chill_array_type): Check for indices
9002 that didn't fold into constants, issue error (PR 2924b).
9003 * ch-parse.y: Add novelty counter, alphabeticalize.
9004 * ch-tree.h: Define CH_NOVELTY for novelty checks later.
9006 Thu Jul 1 14:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
9009 * chill.in: Add -ansi switch at compiler call to avoid
9010 translation of i.e. sun to 1 by cpp.
9012 Wed Jun 30 22:21:33 1993 Bill Cox (bill@rtl.cygnus.com)
9014 * ch-grant.c (raw_decode_mode): Add code for
9015 integer and enumeral ranges. Standardize indentation.
9017 Wed Jun 30 14:02:23 1993 Bill Cox (bill@rtl.cygnus.com)
9019 * ch-grant.c (print_an_int): New function to print a
9020 decimal integer string or the CONST_DECL (SYN) which
9022 (print_integer): Call the above function. Replace
9023 calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
9024 comparisons, as suggested by Jim Wilson.
9025 (decode_decl): Set current_grant_modename sooner,
9026 be sure to clear it when done.
9028 Wed Jun 30 10:10:57 1993 Bill Cox (bill@rtl.cygnus.com)
9030 * ch-actions.c (build_max_min): Change interface to accept
9031 just a max/min flag. Get min/max values from an
9032 enumeral constructor.
9033 (build_chill_max, build_chill_min): Change calls to
9035 * ch-lang.c (deep_const_expr): Check for NULL_TREE
9036 arguments, don't seg fault.
9038 Wed Jun 30 09:20:09 1993 Bill Cox (bill@rtl.cygnus.com)
9040 * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
9041 to switch cases, preventing abort.
9043 Tue Jun 29 19:04:37 1993 Bill Cox (bill@rtl.cygnus.com)
9045 * ch-expr.c: Update comment.
9046 * ch-parse.y (range_or_mode): New non-terminal used in
9047 lexpr to implement mode as case label.
9049 Tue Jun 29 13:13:46 1993 Bill Cox (bill@rtl.cygnus.com)
9051 * ch-actions.c (build_chill_case_expr): Pass in the
9052 optional ELSE clause, error for multiple case-selector
9053 expressions, error for missing ELSE clause.
9054 * ch-expr.c (chill_expand_assignment): Error if multiple
9055 location assignment and locations not novelty
9057 * ch-parse.y (caseaction): Add range_list_clause non-
9058 terminal, sorry message for it.
9059 (assignaction): error if operator used on multiple
9061 (case_expr): Pass optional ELSE tree to
9062 build_chill_case_expr for checking.
9063 * ch-tree.h (build_chill_case_expr): Change proto.
9065 Fri Jun 25 17:22:41 1993 Bill Cox (bill@rtl.cygnus.com)
9067 * ch-actions.c (chill_comptypes, build_chill_binary_op):
9068 Allow PROC mode variables.
9069 * ch-convert.c (convert): Turn a NULL literal into a zero
9070 valued pointer-to-function, given such a type. Also
9071 build the ADDR_EXPR of a function variable.
9072 * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9073 (print_enumeral, print_integer, print_struct) Moved these
9074 large functions out of the switch in raw_decode_mode for
9075 readability, and to encourage future code-sharing.
9076 (print_proc_tail, print_proc_exceptions): Moved these out
9077 of decode_decl, to share them. They're used also to
9079 * ch-parse.y (mode2): Enable PROC modes.
9080 (procmode): Represent PROC mode as a ptr-to-function type.
9081 (call): Recognize ptr-to-function as indirect call.
9082 Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9084 Thu Jun 24 15:59:20 1993 Bill Cox (bill@rtl.cygnus.com)
9086 * ch-grant.c: (raw_decode_mode): Add support for unnamed
9087 and user-numbered enumeration members.
9089 Thu Jun 24 13:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
9091 * ch-actions.c (build_chill_array_expr, build_chill_length):
9092 Explicitly convert a varying array's length field to an
9093 integer_type_node, now that it's only a chill_integer_
9095 * ch-expr.c (chill_expand_expr,
9096 expand_assignment_to_varying_array,
9097 chill_expand_array_assignment,
9098 expand_varying_length_assignment): Explicitly
9099 convert a varying array's length field to an integer_type_node,
9100 now that it's only a chill_integer_type_node.
9101 * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9102 to handle varying array location iterations.
9103 * ch-parse.y (mode2): Count number of named SET members,
9104 as opposed to '*' members. Issue error if there were none.
9105 (setelement): Count named set members. Generate a unique
9106 identifier for the '*' element.
9107 * ch-typeck.c (validate_varying_array_ref): Explicitly
9108 convert a varying array's length field to an integer_type_node,
9109 now that it's only a chill_integer_type_node.
9111 Wed Jun 23 19:18:28 1993 Bill Cox (bill@rtl.cygnus.com)
9113 * ch-lang.c (finish_chill_enum): Change test for too-
9115 * ch-parse.y (setelement, optsetvalue): Allow numbered,
9116 unnamed set elements.
9118 Wed Jun 23 16:25:06 1993 Bill Cox (bill@rtl.cygnus.com)
9120 * c-typeck.c (process_init_constructor): Suppress
9121 errors about un-initialized array elements if the
9122 array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9123 * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9124 enumerations *can* be only a byte in size.
9125 (adjust_parm_or_field): Convert untyped parameter before
9126 looking at its type to process it.
9127 * ch-convert.c (convert): Generate [ -1, -1 ] value for
9129 * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9130 type, so that output_constant doesn't seg fault.
9131 * ch-except.c (start_handler_array): Use unique identifier for
9132 exception array, so we can have > 1 array per reach.
9133 * ch-lang.c (finish_chill_enum): Error if number of
9134 enumeration values exceeds 256.
9135 * ch-parse.y (check_end_label): Error, not warning if start
9136 and end labels don't match.
9137 (assignaction): Convert RHS. Allows untyped tuples to be
9138 passed to stabilize_reference.
9139 (exceptlist, onexceptprefix): Error if non-unique exception
9141 * ch-tree.c: Added form feeds, comment reformatted.
9142 * ch-typeck.c (chill_expand_tuple): Compare tree value to
9143 NULL_TREE, not zero. Add a constructor element for a
9144 VARYING array's length to the constructor list.
9145 (build_varying_struct): Mark the type as VARYING for
9146 process_init_constructor.
9147 * toplev.c (lang_options): Add '-lang-chill' and
9148 '-fchill-grant-only' options to table.
9150 Tue Jun 22 13:13:41 1993 Bill Cox (bill@rtl.cygnus.com)
9152 * ch-actions.c (build_chill_function_call): Add check
9153 to prevent calling a PROCESS like a PROCEDURE.
9154 * ch-parse.y (rcalternative): Add check for an
9155 receive case alternative after a RECEIVE CASE
9157 * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9158 * ch-lang.c (lang_finish): Remove resetting errorcount
9159 and sorrycount for granting.
9161 Mon Jun 21 17:56:48 1993 Bill Cox (bill@rtl.cygnus.com)
9163 Receiving signals works.
9164 * ch-actions.c (lang_init): Add else_clause flag to
9165 __wait_signal parameter list.
9166 * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9167 * ch-parse.y (SIGNALNAME): New token. Delete
9168 empty_untyped_exprlist token, no longer used. Add
9169 name_or_signal non-terminal. Standardize a few NULL
9170 tests. Add real RECEIVE CASE semantics. Add checks that
9171 SIGNALS, BUFFERs are only declared at global scope.
9172 (call): Add signal declarations with/without data fields.
9173 * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9174 build_chill_receive_case_start, build_chill_receive_case_end,
9175 build_chill_receive_case_label): New functions.
9176 Replace build (CONSTRUCTOR, ... calls with build_nt
9177 (CONSTRUCTOR, calls.
9178 * ch-tree.h: New prototypes.
9180 Thu Jun 17 18:36:38 1993 Bill Cox (bill@rtl.cygnus.com)
9182 SIGNAL declaration compilation, seizing & granting,
9184 * ch-actions.c (lang_init): Move instance_type_node
9185 build to ch-tasking.c. Call build_tasking_message_type.
9186 Build a type for send_signal. Put builtin_function
9187 calls into alpha order.
9188 (adjust_proc_param): Rename to adjust_parm_or_field,
9189 add is_signal flag, so signal fields can use it. Rename
9190 calls to it, add flag to calls.
9191 * ch-decl.c (push_chill_extern_signal): Add function.
9192 * ch-grant.c (decode_decl): Correct signal decl output.
9193 (do_seize): Correct check for process seizure. Add
9194 code for seized signal decl.
9195 * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9196 * ch-loop.c (get_unique_identifier): Standardize loop
9197 temporary's name to assure that it's not granted.
9198 * ch-parse.y (SIG_NAME): Delete unused token.
9199 (spec_declist): Delete silly printf.
9200 (quasi_signaldef): Add non-terminal.
9201 (sendaction, optsendwith, optsendto, optpriority):
9202 Implement actual working semantics.
9203 (call, empty_untyped_exprlist): Allow empty signal
9204 fields between parens.
9205 * ch-tasking.c: Rename adjust_proc_param calls, add
9206 is_signal flag to calls. Make instance_type_node a
9207 type, not a TYPE_DECL, change references. Fix all
9208 CONSTRUCTOR builds. Add make_signal_struct function.
9209 Move build_instance_type here from lang_init.
9210 (build_tasking_message-type, build_signal_descriptor,
9211 build_chill_send_signal): New functions.
9212 * ch-tree.h: Add, update protos.
9213 * ch-typeck.c (build_chill_cast): Check for NULL expression
9214 type as well as error_mark.
9216 Thu Jun 17 12:28:03 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9218 * Makefile.in (STAGESTUFF): Add chill to list.
9220 Wed Jun 16 07:12:53 1993 Bill Cox (bill@rtl.cygnus.com)
9222 * Makefile.in: Complete the renaming of ch-process.c
9224 * ch-decl.c (push_chill_extern_function): Drop is_process
9225 parameter, and marking process decl trees.
9226 (push_chill_extern_process): New function for
9227 SEIZEd processes. Lotsa form feeds added for print
9229 * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9230 (do_seize): New parameter seize_all. Handle sseizing
9232 (chill_seize): Pass seize_all parameter.
9233 (chill_grant): Check for __tmp_ prefix, to disable
9234 *either* seizing or granting.
9235 * ch-parse.y (quasi_pdef): Delete is_process parameter for
9236 push_chill_extern_functon, call push_chill_extern_process
9238 (specialinit): Comment these rules as needed only until
9239 2-pass compiler is operational.
9240 (extprocedure): Delete is_process parameter.
9241 (simpledec): Delete `sorry' about SIGNAL decls.
9242 (optsigdest): Correct check for process name.
9243 * ch-tasking.c (build_signal_decl): Finish coding.
9244 * ch-tree.h: Add macro to save a SIGNAL's destination
9245 process name in an id node. Add/change prototype.
9247 Mon Jun 14 18:17:13 1993 Bill Cox (bill@rtl.cygnus.com)
9249 * ch-actions.c (lang_init): Build instance_type_node.
9250 Change `this' to a runtime function call.
9251 * ch-grant.c (do_seize): Generate tasking-code
9252 variable for seized process.
9253 * ch-lex.l (equal_number): Also accept synonym
9254 name for numeric value.
9255 * ch-parse.y (primval): Add process-related
9257 (signaldef, etc.): Rough draft of SIGNAL definition
9259 (stopaction): Call runtime function.
9260 (pdef): Pop symbol level if ending a process
9261 and there were parameters.
9262 (primval): Call `whoami' runtime function for THIS.
9263 * ch-tasking.c (build_process_header): Be sure
9264 to define the tasking enum, if it hasn't already
9265 been done. Only call shadow_record_fields if there
9267 (build_tasking_enum): Only call start_enum *after*
9268 checking the already_built flag.
9269 (build_copy_number, get_tasking_code,
9270 build_gen_code, build_gen_inst, build_get_ptype,
9271 build_proc_type): New functions for process-related
9273 (build_signal_decl): New function for SIGNAL
9274 declaration - rough draft.
9275 * ch-tree.def (INSTANCE_TYPE): new tree code.
9276 * ch-tree.h: New prototypes. Defines for instance
9279 Sat Jun 12 21:15:02 1993 Bill Cox (bill@rtl.cygnus.com)
9281 Get start-process action working:
9282 * ch-actions.c (adjust_proc_param): new function,
9283 extracted from build_chill_function_call and called
9285 * ch-tree.h, ch-grant.c (do_seize): Add process_type
9286 parameter to add_taskstuff_to_list call, prototype.
9287 * ch-parse.y (start_parlist): New non-terminal for
9289 (startaction): Reference start_parlist, check for
9290 integer-valued process copy-number.
9291 (optstartset): Check instance parameter - must be
9292 an INSTANCE_TYPE location.
9293 * ch-tasking.c (generate_tasking_code_variable): New
9294 function, extracted from tasking_setup and called
9295 from there. Also called from build_process_header.
9296 (build_process_header): Add process_type parameter
9297 to add_taskstuff_to_list call. Remove incrementing
9298 of process_type (moved into generate_tasking_code
9300 (build_chill_start_process): Complete rewrite.
9301 (add_tasking_stuff_to_list): Add stuffnumber parameter
9304 Sat Jun 12 06:08:09 1993 Bill Cox (bill@rtl.cygnus.com)
9306 Getting processes compiled, initialized and granted:
9307 * .cvsignore: Add chill file.
9308 * c-decl.c (shadow_record_fields): Allow PARM_DECL
9309 as well as VAR_DECL.
9310 * ch-actions.c (lang_init): Move build of
9311 initializer_type into ch-tasking.c. Change
9312 definition of THIS to function call.
9313 * ch-decl.c (massage_param_node): Add comments.
9314 (start_chill_function): Set nested flag in
9315 start_function call based upon current_function_decl,
9316 not as constant zero.
9317 * ch-grant.c (decode_decl): lotsa code by Wilfried to
9318 GRANT process decls.
9319 (finish_chill_module): Completely rewrote interface
9321 * ch-lex.l (THIS): Just return the token code.
9322 * ch-parse: Add THIS token.
9323 (processpar, processparlist): New rules, to collect
9325 (pdef): Add code to pop the process' WITH scope.
9326 (procedure): Set process WITH scope flag to zero.
9327 (process): Move most code into build_process_header.
9328 (primval): Output function call for THIS.
9329 * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9330 make_process_struct, build_process_header): New code
9331 to handle process translation and interface to runtime.
9332 * ch-tree.h: New prototypes.
9334 Thu Jun 10 13:32:51 1993 Bill Cox (bill@rtl.cygnus.com)
9336 * Makefile.in: Change ch-process.c to ch-tasking.c.
9337 A delayed part of the last change..
9339 Thu Jun 10 11:14:59 1993 Bill Cox (bill@rtl.cygnus.com)
9341 * .cvsignore: Add 'chill' file.
9342 * ch-actions.c (lang_init): Add new runtime function
9344 * ch-decl.c (push_chill_extern_function): Add is_process
9346 * ch-grant.c (decode_decl): Recognize a process for
9348 (do_seize): Put seized processes onto the tasking_list.
9349 (chill_finish_module_code): Declare init_list entry,
9350 link it onto the init_list. Call tasking_setup and
9352 * ch-lex.l: Make tasking-related variables global,
9353 delete their initialized flags.
9354 * ch-parse.y: Add is_process flag to push_chill_extern_function
9355 calls. Put processes onto the tasking_list.
9356 * ch-process.c: Renamed to ch-tasking.c.
9357 * ch-tasking.h: New file.
9358 * ch-tree.h: New, adjusted prototypes.
9360 Wed Jun 9 10:59:27 1993 Wilfried Moser (moser@deneb.cygnus.com)
9362 * chill: This file is replaced by chill.in and will be
9363 generated during 'make' and 'make install'. This script
9364 now finds the correct chillrt0.o and libchill.a during
9366 * chill.in: New file that replaced chill.
9367 * Makefile.in: Add rules to make chill out of chill.in.
9369 Wed Jun 9 09:03:55 1993 Bill Cox (bill@rtl.cygnus.com)
9371 * .cvsignore: Add gfloat.h and xlimits.h.
9372 * ch-actions.c (lang_init): Create new type for module-
9373 level initializer list entry.
9374 * ch-grant.c (chill_start_module_code): Rename actual
9375 module-level code to just the modulename, which is
9377 (chill_finish_module_code): Allocate space for initializer
9378 list entry, build real initializer function, which puts
9379 the list entry on the runtime list. Name the init function
9380 as the module's constructor function.
9381 * ch-tree.h (build_init_struct): Add prototype.
9382 * ch-typeck.c (build_init_struct): Add function, called
9384 Note: these changes require a new devo/chillrt/chillrt0.c.
9386 Thu Jun 3 17:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9388 * c-decl.c: Fix comment.
9389 * ch-actions.c, ch-grant.c: Standardize front end:
9390 #define first, etc. Add comments.
9391 (lang_init): Delete unused flag, code for inapplicable
9392 gen-decls option. (lang_decode_option): Delete
9393 gen-decls option, add grant-only option, flag.
9394 * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9395 ch-typeck.c: Add form feed after front end.
9396 * ch-expr.c: Standardize testing for error_mark node.
9397 * ch-lang.c: Remove unused deep_fold function.
9399 Fri May 21 11:04:22 1993 Bill Cox (bill@rtl.cygnus.com)
9401 * c-typeck.c (build_binary_op, build_unary_op):
9402 Recognize BOOLEAN_TYPE.
9403 * ch-actions.c (build_chill_unary_op): Remove
9404 some crufty work-arounds.
9406 Thu May 20 19:03:48 1993 Per Bothner (bothner@deneb.cygnus.com)
9408 * ch-grant.c (decode_constant): If the granted value is a
9409 cast, make sure to emit an appropriate expression conversion.
9411 Thu May 20 16:35:35 1993 Bill Cox (bill@rtl.cygnus.com)
9413 * ch-lang.c (build_chill_range_type): Initialize the
9414 precision variable. Double-negative ranges work now.
9416 Thu May 20 11:24:42 1993 Bill Cox (bill@rtl.cygnus.com)
9418 * ch-actions.c (build_unary_op): Compound a wretched
9419 hack which hides a BOOLEAN_TYPE from the underlying
9422 Wed May 19 16:45:54 1993 Bill Cox (bill@rtl.cygnus.com)
9424 * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9425 from chill_comptypes. (build_chill_unary_op): Give
9426 better name to unsigned flag.
9427 * ch-expr.c (chill_expand_assignment): Correct calling
9428 sequence for setpowersetbits runtime routine.
9429 * ch-grant.c (raw_decode_mode): Give better name to
9430 unsigned flag. (decode_constant): Check for null
9431 'val' ptr, avoid seg fault.
9432 * ch-lex.l (convert_number): Give better name to
9433 unsigned flag. (convert_bitstring): Move increment
9434 of bl counter to emphasize that it increments once
9436 * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9437 * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9438 constructor if given a singleton set constructor.
9440 Thu May 13 17:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
9442 * c-decl.c (pushdecl): Complete May 9 change.
9443 * ch-actions.c (build_chill_unary_op): Set the
9444 TREE_UNSIGNED flag FALSE for raw_decode_mode.
9445 * ch-grant.c (grant_array_type): Correct the May 12
9446 check for circularity.
9447 (raw_decode_mode): Use TREE_UNSIGNED flag to
9448 control range's printing.
9449 (chill_grant): Remove useless, bogus code.
9450 * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9451 flag TRUE for raw_decode_mode.
9453 Wed May 12 18:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9455 * ch-decl.c (push_syndecls, push_modedef): Comment
9456 reminders to check for circular definitions. Later!
9457 * ch-grant.c (grant_array_type, decode_decl): Prevent
9458 circular definitions in the use of the array's
9461 Wed May 12 16:06:13 1993 Bill Cox (bill@rtl.cygnus.com)
9463 * ch-grant.c (grant_array_type): If array_type has
9464 a name, just use it.
9465 * ch-lang.c (build_chill_range_type): Don't force
9466 unsigned ranges on output.
9467 * expr.c (store_constructor): Preclude seg fault.
9469 Wed May 12 07:49:00 1993 Bill Cox (bill@rtl.cygnus.com)
9471 * ch-actions.c (fold_set_*): Correct tests for
9472 range set-constructor list entries.
9473 (lang_init): Define setpowersetbits function.
9474 * expr.c (store_constructor): Handle non-constant
9477 Tue May 11 18:25:40 1993 Per Bothner (bothner@cygnus.com)
9479 * ch-lang.c (build_chill_range_type): If the parent type
9480 is unknown, and the endpoints of the range are integer
9481 constants, use the smallest suitable integer type.
9482 * ch-lang.c (build_chill_range_type): Remove kludge
9483 for dealing with char ranges.
9485 Tue May 11 15:24:31 1993 Bill Cox (bill@rtl.cygnus.com)
9487 * ch-actions.c (build_chill_repetition_op): Build a
9488 range-type set constructor if there's only one value
9489 in the repeated constructor.
9490 (fold_set_*): Abort if range value seen, for now.
9491 * expr.c (store_constructor): Handle range-type by
9492 storing bytes rather than bits as much as possible.
9494 Mon May 10 18:45:18 1993 Bill Cox (bill@rtl.cygnus.com)
9496 * ch-actions.c (invalid{left right}_operand): Add
9497 handlers for REPLICATE_EXPR.
9498 (build_chill_repetition_op): Build constructor list
9499 for repetition of bitstring.
9500 * ch-parse.y (call): Recognize more trees as arrays,
9502 (operand5): Add count, string temporaries, use them.
9504 Mon May 10 16:49:08 1993 Per Bothner (bothner@cygnus.com)
9506 * ch-grant.c (seize_implied_names): Fix code that assumed
9507 a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9508 * ch-grant.c (generate_set, grant_parent_of_enum,
9509 grant_parent_enum): Removed unused functions.
9510 * ch-grant.c (raw_decode_mode): Remove commented-out code.
9512 Mon May 10 10:54:57 1993 Bill Cox (bill@rtl.cygnus.com)
9514 * ch-grant.c (do_seize, seize_implied_types): Move
9515 result and parameter processing to proper place.
9516 (chill_seize): Mark unseized identifier with
9517 error_mark_node, to avoid excessive errors.
9518 * ch-parse.y (call): Check for ERROR_MARK before
9521 Sun May 9 17:21:24 1993 Bill Cox (bill@rtl.cygnus.com)
9523 * c-decl.c (pushdecl): If a strongly-visible name is
9524 seen, in conflict with a weakly-visible name, take
9525 the strongly-visible one and don't complain.
9526 * ch-actions.c (chill_comptypes): Allow chain of ref-
9527 erence types > 1 in length.
9528 * ch-grant.c: Turn disguised for-loops into actual
9529 ones, so continue works. Delete redundant code in
9530 seize_implied_names. Reindent.
9531 * expmed.c (store_split_bit_field): Disable abort for
9534 Sun May 9 17:11:33 1993 Per Bothner (bothner@cygnus.com)
9536 * ch-convert.c (convert): Move handling of SET_TYPE until
9537 after we've handled de-referencing and such like.
9538 * ch-grant.c (grant_array_type): Simplify; remove (now-)
9539 bogus call to generate_set.
9540 * ch-grant.c (get_type): Remove obsolete stuff.
9542 Fri May 7 10:30:34 1993 Bill Cox (bill@rtl.cygnus.com)
9544 * ch-actions.c (lang_init): Add definition of psslice
9545 runtime routine. (build_chill_binary_op_1,
9546 build_chill_binary_op): Have result type of
9547 TRUTH_ANDIF_EXPR be boolean, not integer. Some
9549 * ch-convert.c (convert): Use consistent notation
9551 * ch-parse.y: Add front-end pass count. (locdec):
9552 Add syntax for other BASED declaration.
9553 * ch-tree.c: Fix comment.
9554 * ch-typeck.c (build_chill_slice): Implement a runtime
9555 call for bitstring slices. (build_chill_cast):
9556 Add code for BITS_BIG_ENDIAN bit loop.
9557 (chill_expand_tuple): Don't pass ref type to
9558 digest_init, only underlying type.
9560 Thu May 6 12:52:14 1993 Per Bothner (bothner@cygnus.com)
9562 * ch-typeck.c (build_chill_cast): type_for_size takes
9563 a size in bits, not bytes.
9565 Wed May 5 19:02:55 1993 Bill Cox (bill@rtl.cygnus.com)
9567 * ch-actions.c: Break out separate routines for set
9568 folding, handle ranges in set_fold_eq and set_fold_ne.
9569 Fix folding as req'd by TTC test.
9570 * ch-grant.c (raw_decode_more): Check for content match
9571 to decide output mode, not pointer identity.
9572 * ch-typeck.c: Add cross-reference comment.
9573 * varasm.c (emit_set_data): Clarify parameter name.
9574 Handle INTEGER_CST as set constructor.
9575 (output_constant): Handle CONSTRUCTOR node for sets.
9576 Apparently forgot to actually 'checkin' this one last
9579 Wed May 5 12:23:58 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9581 * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
9583 Tue May 4 15:47:44 1993 Bill Cox (bill@rtl.cygnus.com)
9585 * ch-actions.c (fold_set_expr): new function to fold
9586 set expressions. Calls inserted into
9587 build_chill_binary_op and build_chill_unary_op.
9588 (build_chill_repetition_op): New function, called
9589 from build_chill_function_call.
9590 * ch-expr.c (chill_expand_assignment): Call
9591 build_chill_repetition_op.
9592 * ch-grant.c (decode_constant): Comment out deep_fold
9593 call. The earlier fold_set_expr calls should make
9594 this one unnecessary. Prevent seg fault when name
9595 of structure field is NULL. Standardize for loop.
9596 * ch-parse.y: Fix comments.
9597 (operand5): build a REPLICATE_EXPR. Don't call
9598 build_repetition_op until we have a type.
9599 * ch-tree.def (REPLICATE_EXPR): Define tree-code.
9600 * ch-tree.h (build_chill_repetiton_op): Fix proto.
9601 * ch-typeck.c (chill_expand_result): Call
9602 build_chill_repetition_op if needed.
9603 * varasm.c (emit_set_data): Clarify parameter name.
9604 Handle INTEGER_CST as set constructor.
9605 (output_constant): Handle CONSTRUCTOR node for sets.
9607 Mon May 3 13:06:47 1993 Per Bothner (bothner@cygnus.com)
9609 * ch-typeck.c (build_chill_cast): Allow more liberality to
9610 casting: Any discrete type to any non-discrete type that is the
9611 same size as some other discrete type (and vice versa).
9612 * stor-layout.c (layout_type, case SET_TYPE): If the number
9613 of bits will fit in a char or short, only use that many bits.
9615 Mon May 3 08:22:45 1993 Bill Cox (bill@rtl.cygnus.com)
9617 * ch-grant.c (decode_constant): Revert interpretation
9618 of SET_TYPE as integer.
9620 Mon May 3 07:55:46 1993 Bill Cox (bill@rtl.cygnus.com)
9622 * chparse.y (casealternative): Allow empty action list.
9624 Sat May 1 15:07:01 1993 Bill Cox (bill@rtl.cygnus.com)
9626 * expr.c (expand_expr): Add parameter to __inpowerset
9627 runtime call, to match new runtime.
9629 Sat May 1 14:55:58 1993 Bill Cox (bill@rtl.cygnus.com)
9631 * ch-actions.c: Cleanup from -Wall. Reindent.
9632 Redefine __inpowerset to take a 'minval' parameter
9633 that matches the new runtime. Added comments.
9634 * ch-expr.c (chill_handle_case_label): Handle
9635 NULL or ERROR trees.
9636 * ch-grant.c (get_type): Survive bogus type params,
9637 return empty string.
9638 * ch-tree.c (build_powerset_type): Diagnose powerset
9639 of non-discrete type.
9640 * ch-typeck.c (discrete_type_p): Reindent.
9642 Fri Apr 30 16:08:54 1993 Bill Cox (bill@rtl.cygnus.com)
9644 * ch-grant.c (decode_constant): Interpret SET_TYPE
9645 with integer value, so we output the same stuff as
9647 * ch-parse.y: Fix indentation.
9649 Fri Apr 30 09:34:03 1993 Bill Cox (bill@rtl.cygnus.com)
9651 * ch-actions.c (chill_comptypes): Simplify, correct
9652 integer subrange analysis.
9653 * ch-grant.c (seize_implied_names): Add handling for
9654 PROCESS_DECL, PROCESS_TYPE.
9655 (do_seize): Call seize_implied_names for process,
9656 procedure parameters and return value.
9657 * ch-lang.c (finish_chill_enum): Canonicalize enum
9659 * ch-tree.def (PROCESS_TYPE): Add.
9660 * ch-typeck.c (valid_array_index): Call chill_comptypes
9661 rather than broken macro CH_COMPATIBLE. The logic
9662 in chill_comptypes will get moved to the macro later.
9664 Thu Apr 29 13:07:55 1993 Bill Cox (bill@rtl.cygnus.com)
9666 * ch-actions.c (build_chill_lower, build_chill_upper):
9667 Handle enumeration types.
9668 (build_chill_binary_op): Call chill_comptypes
9669 to error check IN arguments. Change error
9670 messages to say 'mode' rather than 'type'. Cast
9671 tree codes when build is called.
9672 * ch-expr.c (chill_expand_array_assignment): Call
9673 chill_comptypes to validate assignment args.
9674 * ch-lex.l: Add newline for readability.
9676 Wed Apr 28 15:22:18 1993 Bill Cox (bill@rtl.cygnus.com)
9678 * Makefile.in (ch-hash.h): Add rule to build this
9679 from chill.gperf. Not yet used.
9680 * ch-actions.c (build_chill_binary_op): Allow enum
9681 subranges on RHS of IN operator.
9682 * ch-grant.c (decode_constant): Recognize
9683 error_mark_node as empty powerset initializer,
9685 * ch-lang.c (deep_fold): Return error_mark_node for
9686 NULL input pointer or incoming error_mark_node.
9687 * ch-lex.l: Ignore PACK and UNPACK keywords. Return
9688 POS, ROW, and STEP as user-defined names.
9689 (name_or_type): New function for above.
9690 * ch-parse.y: Move token defs for following, comment
9691 them separately: NOPACK, PACK, POS, ROW, STEP
9692 * varasm.c (output_constant): Check for VAR_DECLs in
9693 records & unions, like arrays. Don't abort.
9695 Tue Apr 27 17:42:29 1993 Bill Cox (bill@rtl.cygnus.com)
9697 * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
9698 rewrite for generality.
9699 * ch-decl.c (grok_chill_variantdefs): Use chill
9700 comptypes, so that subrange compatibility is ok.
9701 (start_chill_function): Use lookup_name(), not
9702 IDENTIFIER_GLOBAL_VALUE, for full generality.
9703 * ch-expr.c (chill_expand_assignment): Need to
9704 handle non-NOP modify codes here, since C code
9705 in build_modify_expr won't understand powersets,
9708 Tue Apr 27 09:05:31 1993 Bill Cox (bill@rtl.cygnus.com)
9710 * ch-actions.c (build_max_min): Assign the set's
9711 base type to the function's return type.
9712 (build_chill_function_call): Before complaining
9713 about parameter mismatches, convert certain actual
9715 * ch-expr.c (chill_expand_assignment): Before
9716 complaining about LHS/RHS mismatches, convert
9717 certain RHS expressions.
9718 * ch-grant.c (decode_constant): Deep-fold incoming
9719 expression, so we can output it.
9720 * ch-lang.c (deep_const_expr): New function, called
9721 from const_expr, actually traverses the tree
9722 looking at its leaves for 'const'ness.
9723 (deep_fold): New function to fold already-built
9725 * ch-parse.y (case_expr): Add whitespace.
9726 * ch-tree.h: Add prototype for deep_fold.
9728 Tue Apr 27 07:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
9730 * ch-actions.c (chill_comptypes): Allow enumeration
9731 subranges as compatible with the parent enum.
9732 (build_chill_function_call): Before checking type
9733 compatibility, use convert on typeless expressions,
9735 * ch-expr.c (chill_expand_assignment): Before
9736 checking type compatibility, use convert on
9737 typeless expressions, like constructors.
9738 * ch-lex.l: Add comment.
9740 Thu Apr 22 17:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
9742 * .cvsignore: Add genopinit, insn-opinit.c
9743 * c-common.c (binary_op_error): Prevent seg fault on
9745 * ch-typeck.c (build_chill_array_ref): Remove old
9746 lower-bound-of-array-index-nonzero code.
9747 * expr.c (expand-expr, get_inner_reference): Remove
9748 old lower-bound-of-array-index-nonzero code.
9750 Thu Apr 22 16:01:09 1993 Bill Cox (bill@rtl.cygnus.com)
9752 * c-decl.c (shadow_record_fields): Add pushlevel for
9753 each PROCESS parameter, too.
9754 * ch-process.c (make_process_struct): First working
9756 * ch-tree.def: Add PROCESS_DECL definition.
9757 * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
9758 for make_process_struct.
9759 * expr.c (expand_expr): Add references to
9760 PROCESS_DECL. Add #include of ch-tree.h.
9761 * tree.c (decl_function_context): Add check for a
9762 PROCESS_DECL, and #include for ch-tree.h.
9764 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9766 * expr.c (expand_expr): Add missing prototypes, and
9767 parameters to expand_expr call.
9769 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9771 * c-decl.c (shadow_record_fields): Add ability to
9772 handle pointers to records/unions. For PROCESS
9775 Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9777 * ch-expr.c (chill_expand_expr): Add missing
9778 parameters to expand_expr calls. Some trivial
9779 reformatting for readability.
9781 Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9783 * ch-lex.l: Make send_*_prio externally visible,
9784 default them to zero, eliminate the init flags.
9785 Same for process_type.
9787 Sat Apr 17 10:59:50 1993 Bill Cox (bill@rtl.cygnus.com)
9789 * ch-actions.c (build_chill_binary_op): Build a
9790 BIT_FIELD_REF tree for IN_EXPR operations.
9791 * ch-typeck.c (build_chill_array_ref): Build a
9792 BIT_FIELD_REF tree for access to packed array of
9795 Fri Apr 16 12:33:34 1993 Bill Cox (bill@rtl.cygnus.com)
9797 * ch-parse.y (EXIT action): Improve error checking,
9799 * ch-typeck.c (chill_expand_tuple): Remove code to
9800 pack sets (moved to varasm.c long ago).
9801 * varasm.c (unpack_set_constructor): Rename size to
9802 bit_size, since 'size' always means bytes.
9803 (pack_set_constructor): Rename size to wd_size,
9804 since 'size' always means bytes.
9805 (output_constant): Set size to zero, so that extra
9806 bytes of padding aren't output after set constants.
9808 Fri Apr 16 11:57:50 1993 Bill Cox (bill@rtl.cygnus.com)
9810 * .cvsignore: Add .gdbinit.
9811 * ch-decl.c (start_chill_bindings): Add function name
9812 to binding contour's exit_label for EXIT stmt.
9813 * ch-parse.y (EXIT action): Call lookup_name to avoid
9814 inserting label for function name. Also check
9815 IDENTIFIER_LABEL_VALUE for label's decl.
9816 (caseaction, beginendblock, ifaction): Call
9817 stamp_nesting_label to put action's label into
9818 contour for EXIT to find.
9820 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9822 * expr.c (expand_expr): Unify, clean up handling of
9823 IN_EXPR, and handling of bit-string element ref.
9824 Now, all goes through IN_EXPR handler.
9825 * stmt.c (stamp_nesting_label, expand_exit_labelled):
9826 New functions, which allow either label or
9829 Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9831 * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
9832 ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
9833 ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
9834 ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
9835 * ch-actions.c (build_chill_binary_op): Move runtime function call
9836 to expr.c. Just build a tree here. Clean up error checking.
9837 * ch-convert.c (convert): Simply store a type into an expression if
9838 TREE_TYPE (expr) == NULL. Prevent error if an enum is to be
9839 converted to a set of such enums.
9840 * ch-loop.c (init_loop_counter): Restore error msg for undeclared
9841 variable if no local scope is to be created for the loop.
9842 * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
9843 remove redundant code which wasn't ever called.
9845 Wed Apr 14 07:54:00 1993 Bill Cox (bill@rtl.cygnus.com)
9847 * .cvsignore (y.tab.c) : Add to list.
9848 * ch-convert.c (convert): Check pointers better - avoid NULL reference.
9849 Remove redundant check for ERROR_MARK - already checked earlier.
9850 * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
9853 Tue Apr 13 16:00:37 1993 Per Bothner (bothner@cygnus.com)
9855 * c-decl.c (start_function): If there is a previous
9856 function declaration of the same name, steal its RTL.
9857 This is a kludge needed for forward declarations of
9859 * ch-decl.c (push_chill_extern_function), ch-tree.h: New
9860 function, for external and seized function declarations.
9861 Make sure to use permanent obstack.
9862 * ch-parse.y (quasi_pdef, extprocedure): Use new function.
9864 * ch-grant.c (chill_finish_module_code): Since module
9865 function is no longer visible,, can't get it using
9866 lookup_name(). Use current_function_decl instead.
9868 * ch-decl.c (build_chill_function_type): Add void_type_node
9869 to end of parameter types list.
9871 * ch-grant.c (chill_start_module_code): Make sure module
9872 function isn't visible (and hence isn't granted).
9874 Tue Apr 13 15:48:25 1993 Bill Cox (bill@rtl.cygnus.com)
9876 * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
9877 current contour for DO FOR EVER loops.
9879 Tue Apr 13 14:37:39 1993 Bill Cox (bill@rtl.cygnus.com)
9881 * ch-parse.y (actionstatement): Add error rule. Delete
9882 POP_UNUSED_ON_CONTEXT. Add comments about label name usage.
9883 (nohandleraction): Better error check in EXIT processing.
9884 (optexprlist): Comment out make_function_rtl call.
9885 (seizestatement): Change error to warning.
9887 Tue Apr 13 08:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
9889 * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
9891 * ch-loop.c (begin_chill_loop): Take loop label as parameter. Stamp
9892 its name into the current contour's exit_label, for EXIT to use.
9893 * ch-parse.y: (actionlabel): Save label tree in global variable.
9894 (actionstatement): Clear label to NULL when action is finished.
9895 (handlerstatement, nohandlerstatement): Split actions into
9896 categories which do/don't permit exception handlers.
9897 (exitaction): Move code into nohandleraction, make it work.
9898 (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
9899 * ch-tree.h: Add parameter to begin_chill_tree prototype.
9900 * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
9901 Note: This implementation of EXIT only exits from loops, not yet
9902 from other bracketted statements.
9904 Mon Apr 12 13:41:55 1993 Per Bothner (bothner@rtl.cygnus.com)
9906 * ch-grant.c (chill_grant): Remove obsolete code.
9908 * ch-decl.c (push_synmode, push_newmode): Merged to yield ...
9909 * ch-decl.c (push_modedef): ... w/ slightly different interface.
9910 * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
9911 (modedefinition): Use new push_modedef function.
9912 * ch-parse.y (modedefinition): Don't depend on inherited
9913 attributes (- implemented incorrectly!): Use a global variable
9914 parsing_newmode to distinguish synmode and newmode.
9916 Mon Apr 12 08:10:34 1993 Bill Cox (bill@rtl.cygnus.com)
9918 * ch-loop.c: Diffuse cleanup after big functional changes.
9919 * ch-parse.y: Eliminate temporary variables, now unnecessary. Use
9920 parse-time stack instead.
9921 * ch-tree.h: Change build_chill_iterator prototype.
9923 Sun Apr 11 15:50:33 1993 Bill Cox (bill@rtl.cygnus.com)
9925 * ch-convert.c (convert): Replace an ERROR_MARK type - from a
9926 untyped_expr with the given type. Move chill_expand_case_expr
9927 call inside chill_expand_expr.
9928 * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
9929 chill_handle_case_label, chill_expand_case_expr): Move to ch-expr.c
9931 * ch-loop.c: Major reorganization to support multiple iterators in
9932 DO FOR loop, very little new code, just a re-org.
9933 * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
9935 Sat Apr 10 14:40:12 1993 Bill Cox (bill@rtl.cygnus.com)
9937 * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
9938 * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
9940 * ch-lex.l (equal_number): Add function to look in the input for '='
9941 followed by a decimal literal. Call it from directive scanning.
9942 (start state 'ccitt'): Deleted, unused. Moved unused, but reserved,
9943 tokens to NORMAL state.
9944 (compiler_directive): Replaced by equal_number. Now the only
9945 recursive call to yylex happens in check_newline at the beginning
9948 Sat Apr 10 09:55:50 1993 Bill Cox (bill@rtl.cygnus.com)
9950 * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
9951 * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
9953 * ch-parse.y (case_expr): Move code into ch-actions.c. There will
9954 need to be much more written.
9955 * ch-tree.def (VARY_ARRAY_REF): Add comment.
9956 * ch-tree.h (build_chill_case_expr): Add prototype.
9957 * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
9958 type to the expr. Check for CASE_EXPR, call expand_case_expr.
9960 Sat Apr 10 01:10:51 1993 Per Bothner (bothner@rtl.cygnus.com)
9962 * ch-parse,y (in_pseudo_module): New variable. Try if we're
9963 in a seizefile, but not in a module nested in the seizefile.
9964 Use for backwards compatibility with old grantfiles.
9965 * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
9966 If in_pseudo_module, grant new declaration.
9967 * ch-decl.c (pushd_newmode): If there is a granted previous
9968 incomplete type, fix it up.
9969 * ch-grant.c (seize_implied_names): Do remaining types.
9970 Guard against recursion.
9971 * ch-tree.h (IDENTIFIER_ENUM_VALUE): Removed, not used.
9972 * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
9973 (finish_chill_enum): Enum constants are marked with
9974 CH_DECL_ENUM so they don't get written to the grantfile.
9975 * ch-tree.h (IDENTIFIER_GRANTED_VALUE): Allow fast seizing.
9976 * ch-lex.l: Re-write to use start states, to avoid calling
9977 yylex() recursively.
9978 * ch-lex.l (compiler_directive); This is now obsolste. FIXME.
9979 * ch-lex.l: Call push_module and pop_module when reading a
9980 seizefile. This creates a pseudo-module.
9981 * ch-parse.y: Clean up handling of empty declarations and
9982 action statements; semicolons are now optional a number of
9984 * ch-parse.y: Remove some bogus tests for "statement
9985 out of sequence" (they're both legal and work).
9986 * varasm.c (mak_function_rtl): Remove kludge that may
9987 not be necessary (and loses anyway).
9989 Fri Apr 9 09:37:38 1993 Bill Cox (bill@rtl.cygnus.com)
9991 * ch-expr.c (chill_expand_array_assignment): Remove false error about
9992 arrays that are too small.
9993 * ch-parse.y (callaction): Don't pass an error_mark_node to
9996 Fri Apr 9 00:26:54 1993 Per Bothner (bothner@rtl.cygnus.com)
9998 * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
10000 * ch-actions.c (build_chill_function_call): Use latter.
10001 * ch-typeck.c (chill_similar): Fix typo.
10002 * ch-grant.c (raw_decode_mode): Handle ENCAPSULATED_ARRAY_P
10004 * ch-grant.c (seize_implied_names): Handle ranges of enums.
10005 * ch-grant.c (do_seize): Set DECL_SOURCE_FILE and _LINE of
10006 seized declaration to be the point of the seize itself.
10007 * ch-grant.c (chill_grant), ch-tree.h: Add a parameter
10008 which is the list (in order) of decls in the module.
10009 Don't reverse the getdecls() list; that is handled by caller.
10010 * ch-grant.c (chill_grant): Test that a declaration is
10011 visible before writing it.
10012 * ch-parse.y (push_module): Make sure to hide declarations
10013 from surrounding module.
10014 * ch-parse.y (pop_module): Restore those declarations.
10015 * ch-parse.y (pop_module): This function is now responsible
10016 for writing out for calling chill_grant() to the grant file.
10017 * ch-actions.c (lang_finish): Remove calls to chill_grant().
10019 Thu Apr 8 16:56:52 1993 Bill Cox (bill@rtl.cygnus.com)
10021 * ch-actions.c (build_char_array_expr): Add handling of varying
10022 arrays in relational expressions.
10023 * ch-decl.c: Add prototype for lookup_name_current_level.
10024 * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
10025 so its length is used as the temp's size.
10026 (chill_expand_array_assignment): Correct for varying := varying
10027 assignment, clean up.
10028 * ch-typeck.c: Add prototype for require_complete_type.
10030 Wed Apr 7 16:41:29 1993 Bill Cox (bill@rtl.cygnus.com)
10032 * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
10033 diffuse changes to fix location loops.
10034 * ch-parse.y (location): Remove ref through NULL ptr.
10036 Wed Apr 7 13:42:06 1993 Per Bothner (bothner@rtl.cygnus.com)
10038 * ch-decl.c (massage_param_node): New function.
10039 It handles the LOC/IN/OUT/INOUT parameter distinction,
10040 as well as calling build_chill_array_parm_type if needed.
10041 * ch-tree.h (massage_param_node): New prototype.
10042 * ch-decl.c (push_parms): Use new massage_param_node().
10043 * ch-parse.y (pmodearg): Use new massage_param_node().
10044 * ch-parse.y (formpar): Don't call build_chill_array_parm_type;
10045 now handled by massage_param_node.
10046 * ch-typeck.c (my_build_array_ref): Handle non-zero array
10048 * ch-actions.c (build_chill_function_call): If the formal
10049 parameter is a pseudo record wrapped around an array, make
10050 sure we wrap the actual parameter in a record CONSTRUCTOR.
10051 * ch-typeck.c (build_chill_array_parm_type): Make sure
10052 the pseudo struct type is allocated on the permanent_obstack.
10053 * ch-parse.y (location): Remove thinko.
10054 * ch-actions.c (chill_comptypes): Comment out test for
10055 NEWMODEness - it gets broken by the forward declaration hacks.
10057 Tue Apr 6 18:05:40 1993 Bill Cox (bill@rtl.cygnus.com)
10059 * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10060 * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10061 * ch-parse.y (location): Do build_component_ref for an array wrapped
10063 * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10064 * ch-typeck.c (build_chill_array_parm_type): Add function, move
10065 build_varying_struct here from ch-actions.c.
10067 Mon Apr 5 19:56:56 1993 Bill Cox (bill@rtl.cygnus.com)
10069 * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10070 rather than in-line code - tests LOW and HIGH values.
10071 * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10072 * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10075 Mon Apr 5 15:45:10 1993 Bill Cox (bill@rtl.cygnus.com)
10077 * ch-typeck.c (my_build_array_ref): Add some more code from
10078 build_array_ref. Change checks, error messages to mention
10079 'discrete types'. I.E. types which don't kiss and tell..
10081 Sat Apr 3 09:27:03 1993 Bill Cox (bill@rtl.cygnus.com)
10083 * ch-except.c, ch-expr.c: Turn externs into prototypes.
10084 * ch-grant.c (chill_grant): Remove orphan #else.
10085 * ch-tree.h: Add prototype for build_chill_bin_type.
10086 * ch-typeck.c: Turn externs into prototypes, delete code which
10087 was commented out in chill_expand_return; it will never be used.
10089 Fri Apr 2 21:55:14 1993 Per Bothner (bothner@rtl.cygnus.com)
10091 Major re-write of New module/seize/grant stuff.
10092 Now, a grantfile is a spec module and contains all the
10093 top-level declarations of the granting module, not just
10094 those that are granted. It also contains explicit grant
10095 statments naming those declared names that are granted.
10096 It also has seize statements and use_seize_file directives
10097 to correctly handle transitive dependencies.
10099 * ch-parse.y: Change to allow multiple modules per source file.
10100 Allow spec modules (including quasi definitions) as well as
10102 Allow spec modules inside normal modules; these behave as if
10103 they were outermost. This violates the Blue Book, but is
10104 needed by the new grantfile mechanism. (A grant file is a
10105 spec module that gets included by the use_seize_file directive.)
10106 * ch-parse.y (struct module *current_module, push_module,
10107 pop_module): Support module nesting (for spec modules only).
10109 * ch-tree.h (struct module): New.
10110 * ch-grant.c (granted_decls): New list of declarations
10111 that have been granted into the outermode pseudo-module.
10112 * ch-grant.c (decode_mode): If the decl has a name,
10113 always write the name, not just if the decl has already
10114 been written. Since we write out all decls, we can assume
10115 it will be written later, and depend on the forward
10116 declaration kludges to catch it.
10117 * ch-grant.c (decode_decl): Don't write out _EXTERN.
10118 Instead write out standard (Blue Book) quasi-definitions.
10119 * ch-grant.c (push_granted): New function.
10120 * ch-grant.c (seize_implied_names): New function. Re-write
10121 how set element names are seized when a set type is seized.
10122 * ch-grant.c (chill_seize): Work by seraching the
10123 granted_decls list and copying the declaration.
10124 * ch-grant.c (chill_grant): Write all declarations
10125 declared in this module. Write GRANT statements for
10126 those granted. seize statements for decls seized from
10127 other modules. Write extra syntax to make a complete
10129 * ch-grant.c (grant_use_seizefile): Copy use_seize_file
10130 directives into grant file.
10131 * ch-lex.l (setup_seizefile_read): Call grant_use_seizefile.
10133 * ch-lex.l (struct input_state, current_input_state,
10134 push_input_file, pop_input_file): New (type, variable,
10135 function*2). Used to save and restore state on an input file.
10136 * ch-lex.l: Clean up to handle nested input seizefiles
10137 (needed by new grant/seize mechanism.
10138 * ch-lex.l (skip_to_end_of_directive): New function.
10139 * ch-lex.l (compiler_directive: USE_SEIZE_FILE): Make sure
10140 we skip to the end of the directive *before* we switch
10142 * ch-lex.l (setup_seizefile_read): Prevent reading the
10143 same seizefile twice (otherwise likely with new grant/seize).
10144 * ch-lex.l: Recognize SPEC. Misc cleanups.
10146 * ch-parse.y: Fixed foreward references of types.
10147 Removed the unknown_type_node crock.
10148 * ch-decl.c: Remove all uses of unknown_type_node.
10149 Check for TYPE_SIZE zero instead.
10150 * ch-decl.c (fixup_unknown_type): Make sure new mode
10151 gets copied into old mode. Merge their variant chains.
10152 * c-decl.c (lookup_name_current_level): Make non-static.
10153 * ch-decl.c (lookup_name_current_level): No longer needed.
10155 * ch-parse.y (call): Allow an implicitly defined function
10156 name following the CALL keyword.
10157 * ch-tree.h (struct lang_identifier): Add implicit_decl,
10158 and make sure order of fields matches c-tree.h.
10160 * ch-actions.c (lang_init, build_allocate_memory_call,
10161 build_allocate_globals_memory_call): Fix names (add initial '_')
10162 and prototypes of _allocate_[global_]memory (2nd param is ref).
10163 Use build_chill_function_call, not build_function_call,
10164 so the reference parameter gets handled.
10165 * ch-actions.c. (lang_init): Make sure boolean_{true,false}_node
10166 have boolean_type_node as their types.
10167 * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10168 work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10170 * ch-except.c: Make sure an end_label is generated,
10171 and jump to it if there is no exception.
10173 * ch-convert.c (convert_to_reference): Strip off NOP_EXPR casts.
10174 * expr.c (expand_expr): Handle NOP_EXPR as Chill-style casts.
10175 (Need cleaning up and FSF installation!)
10176 * ch-parse.y: If taking the address of a cast, move the
10177 ADDR_EXPR inside the NOP_EXPR.
10179 * ch-typeck.c (my_build_array_ref): Simplified, more suitable
10180 versions of build_array_ref from c-decl.c. (E.g. don't barf
10181 if index type is char or bool.)
10182 * ch-typeck.c (build_chill_array_ref): Use my_build_array-ref.
10184 * ch-typech.c (build_chill_bin_type): New function.
10185 Support BIN(N) range type specification.
10186 * ch-parse.y (mode2), ch-lex.l: Recognize BIN(N).
10188 * ch-tree.h (CH_SIMILAR): Redefine in terms of chill_similar.
10189 * ch-typeck.c (chill_similar): New function. Recognize that
10190 that range types are similar to their parent types.
10192 * ch-tree.h: Declare flag_local_loop_counter.
10193 * ch-loop.c: Whether the loop variable is local to the loop
10194 in now controlled by flag_local_loop_counter, instead of
10195 #ifdef'd on CREATE_SCOPE.
10196 * ch-actions.c (lang_decode_option): Recognize flags
10197 "-f[no-]local-loop-counter".
10198 * toplev.c (lang_options): Add Chill flags -f[no-]local-loop-counter.
10200 * varasm.c (make_function_rtl): Due to problems with forward
10201 references, don't rename nested functions in Chill. (Kudge!)
10203 Sun Mar 28 10:12:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
10205 * ch-lex.l (push_back, readstring): Fix prototypes.
10207 Fri Mar 26 18:32:15 1993 Bill Cox (bill@rtl.cygnus.com)
10209 * ch-parse.y: Put %type directives back into alpha order.
10210 (variant_alternative): Simplify error_mark test.
10211 (variantfields, varianthack): Add error_mark checks.
10213 Fri Mar 26 13:36:23 1993 Bill Cox (bill@rtl.cygnus.com)
10215 * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10216 * ch-parse.y (get_type_of): Add function to deal with possible fwd
10217 declared type name. Call it from lotsa places. Add lotsa checks
10218 for error_mark_node. Standardize indentations.
10220 Thu Mar 25 15:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
10222 * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10223 for array assignments.
10224 * ch-parse.y (action): Add recognition for allocate_memory and
10225 allocate_global_memory system calls.
10226 (mode2): Remove ill-conceived error check that broke REFs to
10227 as-yet-undeclared types. Check for IDENTIFIER_NODE, lookup its
10228 DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10229 (variantfields, varianthack): Clean up.
10230 (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10231 there, pass TREE_TYPE of decl to grok_fixedfields.
10232 (labellist): Explicitly assign error_mark_node to signal error.
10233 * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10234 rather than seg faulting.
10236 Thu Mar 25 10:35:58 1993 Bill Cox (bill@rtl.cygnus.com)
10238 * ch-actions.c (lang_init): build_function_type for allocate_memory
10239 and allocate_global_memory runtime routines. Move discrete_type_p
10241 * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10242 in build_chill_cast.
10244 Wed Mar 24 16:25:16 1993 Per Bothner (bothner@rtl.cygnus.com)
10246 * ch-grant.c: Don't grant previously seized names.
10248 Tue Mar 23 15:25:39 1993 Bill Cox (bill@rtl.cygnus.com)
10250 * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10251 * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10254 Tue Mar 23 09:03:35 1993 Bill Cox (bill@rtl.cygnus.com)
10256 * ch-actions.c (build_char_array_expr): Just build a type for the
10257 result of a CONCAT_EXPR, and pass the tree back.
10258 chill_expand_array_assignment can do a better job of
10260 * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10263 Mon Mar 22 12:42:58 1993 Per Bothner (bothner@rtl.cygnus.com)
10265 * ch-except.c (start_handler_array): Make sure the handler
10266 array and its type get on the permanent obstack.
10267 * ch-grant.c (write_grant_file): Don't write the _INIT=name
10268 specifier: It isn't needed, and loses (because of funny
10269 characters in the chill_initializer_name).
10270 * ch-decl.c (push_synmode): Set TYPE_NAME(mode) = syndecl.
10271 * ch-lang.c (finish_chill_enum): Don't allocate a dummy
10272 TYPE_DECL for the enum. I don't think it is needed (?),
10273 and removing it is needed for the change above.
10275 * ch-grant.c (grant_array_type, decode_mode): Remove unused
10277 * ch-grant.ch (raw_decode_mode): New function, based on old
10279 * ch-grant.c (decode_mode); This is now just a wrapper around
10280 raw-decode_mode - but does not call raw_decode_mode if the
10281 type is named and has already been emitted.
10283 Fri Mar 19 11:55:35 1993 Bill Cox (bill@rtl.cygnus.com)
10285 * ch-actions.c: Add prototypes, remove unused variables. Attempt to
10286 continue generating grant file in presence of error (Wilfried's
10287 patch to lang_finish).
10288 * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10289 after each statement. Move convert call into
10290 chill_expand_assignment from ch-parse.y.
10291 * ch-grant.c: Generally re-order, clean up. Include Per's decode_mode
10292 simplification. Include commented-out hack in decode_mode to return
10293 type's name if type SEIZEd or already GRANTed in this file.
10294 * ch-lex.l: Add prototypes.
10295 * ch-parse.y (assignaction): Move convert call into
10296 chill_expand_assignment.
10298 Thu Mar 18 16:04:45 1993 Bill Cox (bill@rtl.cygnus.com)
10300 * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10302 * ch-decl.c: Add prototypes, correct error message spelling, remove
10304 * ch-lang.c (build_chill_range_type): Add error message. Add prototypes.
10305 Correct comment spelling.
10306 * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10307 assignment in conditional.
10308 * ch-loop.c: Add prototypes, remove unused variable.
10309 * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10310 parameter is seen, don't count it in structured_variable_list. Pre-
10311 vents seg fault when only WITH operand is invalid.
10312 * ch-parse.y (label_spec): Correct assignment within IF expression which
10313 was intended to be equality test. Remove unused variables.
10314 * ch-tree.h: Add prototype. Remove unused EXCP_CODE enumeration, and
10315 prototyping editorial comments.
10316 * ch-typeck.c: Disable generation of code to validate array index for
10317 now. Should be done as a call-back from more generic array_ref code.
10318 Clean up parameter checking. Remove unused variables.
10320 Fri Mar 12 11:57:32 1993 Bill Cox (bill@rtl.cygnus.com)
10322 * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10323 * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10324 build_char_array_expr.
10325 * ch-convert.c (convert): protect against seg fault, if type == NULL.
10326 * ch-expr.c (chill_expand_expr): Add FIXME comment.
10328 Fri Mar 12 11:04:02 1993 Bill Cox (bill@rtl.cygnus.com)
10330 * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10331 Thanks very much to dje!
10333 Thu Mar 11 21:06:55 1993 Bill Cox (bill@rtl.cygnus.com)
10335 * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10336 Move CONCAT_EXPR handling from binary_op to array_expr. Add
10337 handling for relationals between varying arrays to array_expr.
10339 Thu Mar 11 19:20:37 1993 Bill Cox (bill@rtl.cygnus.com)
10341 * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10342 *BIT* length of powersets and arrays of BOOLs.
10343 (invalid_left_operand, invalid_right_operand): Disallow relationals
10344 with arrays of BOOL as operands.
10345 * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10346 comparing pointers.
10347 * ch-decl.c (push_newmode): Re-indent.
10348 * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10349 and arrays of BOOLs.
10350 * ch-lang.c (build_chill_array_type): Add parameter error checking.
10352 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10354 * expr.c (store_constructor): Handle set construction.
10355 * varasm.c (output_constant): Prevent seg fault - terminate case
10356 alternative with a 'break'.
10358 Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10360 * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10361 * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10362 * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10364 Mon Mar 8 13:16:05 1993 Bill Cox (bill@rtl.cygnus.com)
10366 * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10369 Mon Mar 8 10:13:57 1993 Bill Cox (bill@rtl.cygnus.com)
10371 * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10372 Correct some non-standard indentations.
10374 Fri Mar 5 14:58:35 1993 Bill Cox (bill@rtl.cygnus.com)
10376 * ch-actions.c: Fix up comment.
10378 Thu Mar 4 18:05:43 1993 Bill Cox (bill@rtl.cygnus.com)
10380 * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10381 negating the result of calling __eqpowerset. New function
10383 * ch-grant.c (get_tag_value): Don't seg fault referring to an
10384 anonymous enumeration's name.
10385 * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10386 * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10387 * ch-parse.y (label_spec): redefine variant structure label_spec
10388 to agree with the Z.200 spec.
10389 (locdec): Error if set/bitstring initialized with a tuple.
10390 (case_label, arrayindex): Use new discrete_type_p
10392 * ch-process.c: Fix typo.
10394 Wed Mar 3 14:30:53 1993 Per Bothner (bothner@rtl.cygnus.com)
10396 * ch-lang.c, ch-tree.h: Rename build_range_type to
10397 build_chill_range_type. Call new build_range_type() in tree.c.
10398 * ch-parse.y: Call build_chill_range_type as approriate.
10399 * ch-typeck.c (build_chill_cast); Clean up.
10401 Wed Mar 3 09:36:56 1993 Bill Cox (bill@rtl.cygnus.com)
10403 * ch-parse.y: Define CONTINUE_EVENT token.
10404 * ch-parse.y (mode2): Give error message for SYN modea = modeb
10405 where modeb is undefined.
10407 Tue Mar 2 20:16:37 1993 Bill Cox (bill@rtl.cygnus.com)
10409 * ch-actions.c: Add builtin function descriptions for memset and
10410 bitsetpowerset. Allow build_chill_num expression to exceed 16 bits,
10412 * ch-tree.h: Correct chill_handle_case_default prototype.
10413 * ch-actions.h, ch-lex.h: Add prototypes.
10414 * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10416 Thu Feb 25 17:35:46 1993 Bill Cox (bill@rtl.cygnus.com)
10418 * c-decl.c (init_decl_processing): Disable creation of C-specific
10419 builtin functions. They pollute the CHILL name space.
10420 * stor-layout.c (variable_size): Allow variable-size objects at file
10423 Fri Feb 26 07:14:34 1993 Bill Cox (bill@rtl.cygnus.com)
10425 * c-decl.c (finsh_decl): Don't output non-constant storage size
10427 * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10428 call in build_chill_cause_exception.
10429 * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10430 * ch-loop.c (build_temporary_variable): New function
10431 * ch-process.c: Call build_temporary_variable, spell start_process
10433 * ch-tree.h: Extern for build_temporary_variable
10435 Thu Feb 25 12:09:01 1993 Bill Cox (bill@rtl.cygnus.com)
10437 * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10438 builtins - they pollute the CHILL name space.
10439 * ch-typeck.c (valid_array_index): Correct upper-bound check.
10440 * expr.c (expand_expr): Use actual library name for __inpowerset
10442 * stor-layout.c (variable_size): Disable complaint about variable-
10443 size type or decl at file scope. Perhaps later this s.b. a warning.
10444 * varasm.c (emit_set_data): Add function.
10445 (output_constant): Call new emit_set_data function for VAR_DECLs,
10446 in addition to CONSTRUCTORs.
10448 Thu Feb 25 11:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
10450 * ch-actions.c: Change all builtin functions names to their
10451 actual library names. Change references to boolean_type_node
10452 to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10454 build_set_expr: Remove length parameter, call powersetlen() instead.
10455 remove handling of CHAR arrays - they're handled in build_char_array_expr.
10456 Call __eqpowerset to test for equality - we can't use a byte-length -
10457 need bitcount instead.
10458 build_chill_compound_expr, internal_build_compound_expr: Copy from C
10459 version that does stuff we don't want.
10460 build_binary_op: Check for in_size_in_bytes return < 0, indicating
10461 size is changeable at run time. Build two memcpy calls to implement
10462 string concatenation.
10463 powersetlen: Add function.
10464 build_chill_card: Call powersetlen.
10465 build_chill_max_min: Common code for powerset max/min.
10466 build_chill_length: Move VARYING array handling before regular char
10468 * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10469 the VARYING status of the target to do this correctly. Use powersetlen
10470 for the powerset operations, not a byte length.
10471 * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10472 for each CHILL loop, as Z.200 requires. Add powerset and error flags
10473 to loop structure. Evaluate user's powerset expression into a temp,
10474 scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10475 for powerset loop. Only do loop-end assignments if NOT a powerset
10476 loop, which has much less overhead now.
10477 * ch-tree.h: Add prototype for powersetlen.
10479 Fri Feb 19 08:40:24 1993 Bill Cox (bill@rtl.cygnus.com)
10481 * ch-lex.l (convert_number): Evaluate number and pass it as
10484 Fri Feb 19 08:56:44 1993 Michael Tiemann (fs_tie at rcsw18)
10486 * ch-typeck.c (build_chill_array_ref): Handle newmodes
10489 * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10490 we are going to return 0.
10492 * ch-convert.c (convert_to_reference): Don't use
10493 TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10494 (which must match the type of the expr).
10496 * ch-grant.c (chill_seize): Don't let a type be copied just
10497 because we are seizing it.
10499 * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10500 TYPE_MAX_VALUE to integer type.
10502 * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10503 tree type of the bounds.
10504 (build_loop_top): type of GE_EXPR and LE_EXPR is
10505 boolean_type_node, not lp->iter_type.
10506 (for_location): Ditto.
10508 * ch-action.c (build_chill_lower,build_chill_upper): Handle
10509 ENUMERAL_TYPE. Also, handle different kinds of arguments more
10512 * ch-parse.y (iteration): Convert start_exp and end_exp to
10513 match the type of modename.
10515 * ch-grant.c (chill_seize_aggr): Search also through anonymous
10518 * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10519 already been seized, and if so, do nothing.
10521 * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10522 comes out error_mark_node, set ERRONEOUS.
10524 * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10527 * ch-action.c (chill_comptypes): Test for structural
10528 equivalence of enums.
10530 * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10531 TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10533 * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10534 ARRAY_TYPE, seize the domain type if its a set.
10536 Thu Feb 18 20:02:15 1993 Per Bothner (bothner@rtl.cygnus.com)
10538 * c-typeck.c (process_init_constructor): Emit error if some
10539 array elements are not initialized.
10540 * c-typeck.c (process_init_constructor): Call digest_init()
10541 recursively to expand default_value.
10542 * ch-expr.c (chill_expand_array_assignment): Simplify, and
10543 handle the case that the lhs has dynamic size (e.g. a slice).
10544 * ch-parse.y (elementlist): Handle the case that tupleelement
10545 generates more than one TREE_LIST node.
10547 Thu Feb 18 12:40:56 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10549 * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10550 * c-typeck.c (lookup_field): add function, calls.
10551 * ch-actions.c (build_chill_binary_op): figure return_type differently.
10552 * ch-convert.c (convert_to_reference): return error_mark_node,
10553 STRIP_NOPS. (convert): Braces for readability.
10554 * ch-decl.c (build_chill_function_type): accept typespec as parm.
10556 (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10557 * ch-expr.c (chill_expand_assignment): handle references.
10558 * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10559 * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10560 call convert. Generally handle reference types.
10563 Thu Feb 18 09:30:11 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10565 * ch-actions.c (chill_comptypes): Figure out which newmode or
10566 synmode decls look most canonical.
10567 * ch-convert.c (convert): handle location conversions of records,
10569 * ch-decl.c (fixup_unknown_type): changes for variant records
10570 * ch-parse.y (tupleelement): avoid confusing digest_init.
10571 * ch-typeck.c (build_chill_array_ref): give element ref the
10572 type of the ELEMENT, not the array (Bill Cox).
10574 Wed Feb 17 11:52:20 1993 Bill Cox (bill@rtl.cygnus.com)
10576 * ch-parse.y: change push_newmode and push_synmode interfaces.
10577 * ch-actions.c (build_chill_binary_op): convert operands.
10579 Wed Feb 17 10:54:24 1993 Bill Cox (bill@rtl.cygnus.com)
10581 * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
10582 handle reference types.
10583 * ch-decl.c (push_newmode, push_synmode): rewritten
10584 * ch-process.c (make_process_struct): new push_newmode interface.
10585 * ch-typeck.c (build_chill_cast): change interface, error checks.
10587 Wed Feb 17 09:50:37 1993 Bill Cox (bill@rtl.cygnus.com)
10589 * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
10591 * ch-typeck.c (valid_array_index): new function.
10593 Tue Feb 16 22:36:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10595 * ch-convert.c (convert): Slightly more correct conversion
10596 for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
10597 * ch-expr.c (chill_expand_array_assignment): Invoke
10598 __builtin_memcpy using build_function_call, not directly at
10599 the rtx level (which doesn't work).
10600 * ch-typeck.c (build_chill_slice): First attempt at slices.
10601 * ch-tree.h, ch-typeck.c (build_chill_slice_with_range,
10602 build_chill_slice_with_length): New functions.
10603 * ch-parse.y: Use new slice-building functions.
10604 * expr.c (get_inner_reference): Subtract low bound of
10605 array when doing an ARRAY_REF.
10607 Tue Feb 16 14:17:55 1993 Bill Cox (bill@rtl.cygnus.com)
10609 * ch-actions.c (build_chill_function_call): better comments.
10610 * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
10611 * ch-parse.y: indentation cleanup
10613 Tue Feb 16 12:03:53 1993 Michael Tiemann (tiemann@cygnus.com)
10615 * ch-decl.c (grok_chill_variantdefs): Really implement variant
10617 * ch-grant.c (get_tag_value): New function.
10618 * ch-grant.c (decode_mode): Grant variant records.
10620 * ch-grant.c (chill_seize): If we seize a set, seize the set
10623 * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
10626 * ch-parse.y (EMPTY): New pseudo-token to disambiguate
10627 variant_alternatives.
10628 (current_fieldlist): New variable to help processing tag
10629 declarations in variant records.
10630 (fields): Renamed from structdef.
10631 (field): Renamed from fields.
10632 (varianthack): New non-terminal to handle parsing ambiguity
10633 for variant records.
10634 (optlabellist): Changed to preserve CONST_DECLs when they are
10637 * ch-tree.h (TYPE_TAGFIELD): New macro.
10638 (TYPE_TAG_VALUES): Ditto.
10640 Mon Feb 15 00:49:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10642 * ch-grant.c (decode_mode): Fix output for powerset modes.
10643 * ch-grant.c (decode_constant): Support grant output of
10645 * ch-actions.c (build_chill_binary_op): IN_EXPR fix.
10646 * expr.c (expand_expr): Add Chill-specific kludge for
10647 BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
10648 * ch-expr.c (chill_expand_assignment): Remove no-longer-needed
10649 special-case support for a BIT_FIELD_REF in right-hand-side.
10650 * ch-lang.c (finish_chill_enum): Patch up enum elements to
10651 have the correct type (instead of integers, as in C).
10653 * ch-lex.l, ch-parse.y: Add disgusting hack (involving
10654 context-dependent look-ahead) so we can parse exception
10655 handlers correctly.
10656 * c-typeck.c (digest_init): Set output type for SET_TYPEs.
10657 * varasm.c (unpack_set_constructor): Add support for
10658 (power-)set ranges (i.e. low_element:high_element).
10660 Sun Feb 14 13:37:52 1993 Bill Cox (bill@rtl.cygnus.com)
10662 * ch-inout.c: delete unused #include
10663 * ch-typeck.c (build_chill_slice): turn abort call into error msg.
10665 Sat Feb 13 13:13:31 1993 Bill Cox (bill@rtl.cygnus.com)
10667 * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
10669 Sat Feb 13 12:17:41 1993 Bill Cox (bill@rtl.cygnus.com)
10671 * Makefile.in: add lots of header files to the CHILL dependencies
10673 Fri Feb 12 15:48:27 1993 Per Bothner (bothner@rtl.cygnus.com)
10675 * ch-actions.c (build_chill_function_call): Don't return
10676 error_mark_node on empty parameter-list.
10678 Fri Feb 12 12:54:52 1993 Bill Cox (bill@rtl.cygnus.com)
10680 * ch-actions.c (build_chill_function_call): fix start_decl parms.
10681 * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
10683 Fri Feb 12 10:32:37 1993 Bill Cox (bill@rtl.cygnus.com)
10685 * ch-actions.c (build_chill_function_call): create temps, do
10686 assignments to handle INOUT and OUT parameters.
10687 * ch-decl.c (build_chill_function_type): better parameter name.
10688 * ch-parse.y (action): keep rules in alpha order.
10689 (pmodearg): turn INOUT, OUT parameter types into reference types.
10690 * ch-typeck.c (build_tree_slice): indentation change.
10692 Thu Feb 11 23:16:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10694 * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
10695 take a list of elements which are in the set. This corresponds
10696 better to the tuple input form in Chill (and Pascal).
10697 * varasm.c (unpack_set_constructor, pack_set_constructor):
10698 New functions, to expand SET_TYPE CONSTRUCTORs.
10699 * varasm.c (output_constructor): Use pack_set_constructor
10700 to assemble a SET_TYPE constant from a CONSTRUCTOR.
10702 * ch-grant.c (decode_constant): Better grant for strings,
10703 enumeral, and bitstring constants.
10704 * ch-grant.c: Fixes in seize to avoid duplicates, and emit
10705 things in the correct order.
10706 * c-typeck.c (chill_initializer_constant_valid_p): Kludge
10707 needed to export a static function.
10708 * ch-typeck.c (convert): Avoid needlessly (and lossingly) calling
10709 chill_expand_tuple to convert fix string to varying.
10710 * ch-actions.c (build_chill_binary_op): Promote short
10711 integer operands if needed (otherwise emit routines barf).
10712 * ch-tree.h (SET_WORD_SIZE): New macro.
10713 * ch-parse.y: Fix syntax for RECEIVE CASE.
10714 * ch-parse.y (location): If IDENTIFIER is a CONST_DECL
10715 return its value instead.
10717 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10719 * ch-actions.c (build_chill_max, build_chill_min): clean up
10720 * ch-typeck.c (chill_expand_tuple): correct set initialization from
10721 an enumeration tuple. Add sort_constructor function.
10723 Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10725 * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
10726 BOOLEAN_TYPE w/out an abort.
10728 Wed Feb 10 14:59:53 1993 Bill Cox (bill@rtl.cygnus.com)
10730 * ch-actions.c: change most integer_type_node references to
10731 chill_integer_type_node. Rewrite _max and _min routines,
10732 redefine the signatures for those runtime routines. Move
10733 empty-set check into runtime.
10734 * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
10735 most integer_type_node references to chill_integer_type_node.
10737 Tue Feb 9 16:00:05 1993 Per Bothner (bothner@rtl.cygnus.com)
10739 * ch-except.c: New file. Stuff for exception handling.
10740 * ch-parse.y: Add working exception handling support.
10741 * ch-lex.l, ch-parse.y: Prefer standard type terminology
10742 (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
10743 * ch-grant.c: Fix various problems related to granting
10744 types such as bitsets.
10745 * ch-tree.c (build_bitstring_type): Set TYPE_MIN_VALUE
10746 to distinguish bitstrings from powersets (in the same way
10747 we distinguish char strings from char arrays).
10748 * ch-tree.h: New macro CH_BOOL_TYPE_P.
10749 * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
10750 Undo kludge where integer_type_node was hardwired to 16 bits.
10751 Make integer_type_node etc have the same size as in cc1.
10752 New types chill_integer_type_node and chill_unsigned_type_node
10753 that correspond to the Chill source types INT and UINT.
10754 For now, these match the C 'short' types, but that should
10755 become a configuration option later,
10757 Tue Feb 9 11:41:25 1993 Bill Cox (bill@rtl.cygnus.com)
10759 * ch-actions.c (build_chill_unary_op): allow NOT of a set.
10761 Tue Feb 9 08:27:18 1993 Bill Cox (bill@rtl.cygnus.com)
10763 * ch-actions.c (build_chill_function_call): add test for
10764 too many/few actual parameters (and avoid seg fault).
10765 * ch-decl.c (do_decls): code cleanup for readability.
10766 * ch-loop.c (begin_chill_loop, end_chill_loop): remove
10767 emit_nop() calls - they now (since exceptions) cause seg faults.
10768 Make derogation on poor CHILL compiler non-specific.
10769 * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
10770 * ch-tree.h: remove prototypes added to c-tree.h.
10771 * ch-typeck.c (build_chill_array_ref): correct getting domain
10772 subtree for a PARM_DECL. Subscripting a SET_TYPE is turned into
10775 Sun Feb 7 18:20:49 1993 Bill Cox (bill@rtl.cygnus.com)
10777 * ch-tree.def: add a new tree type - just for varying array
10778 references. We were using ARRAY_REF, but the underlying C
10779 code also generates that one.
10780 * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
10782 Sun Feb 7 17:33:17 1993 Bill Cox (bill@rtl.cygnus.com)
10784 * ch-convert.c: test given type against type of expr before
10785 calling chill_expand_tuple. We were getting lots of spurious
10788 Fri Feb 5 15:24:01 1993 Per Bothner (bothner@rtl.cygnus.com)
10790 * cccp.c: Merge in various Chill-specific changes.
10791 * gcc.c (default_compilers array): Pass -lang-chill
10792 to cpp, not -lang-ch.
10794 Fri Jan 29 17:18:22 1993 Per Bothner (bothner@rtl.cygnus.com)
10796 * Makefile.in (install-libchill, install-librmt): Removed.
10797 * ch-actions.c (build_chill_exception_decl): Change decl
10798 to initialized char array, rather than unitialized common.
10799 (Simplifies extracting string name of exception.)
10800 * ch-actions.c: Adjust interface to cause_exception accordingly.
10801 * ch-typeck.c (build_chill_array_ref): Cause rangefail if
10802 index > limit, not >= limit.
10804 * ch-actions.c (build_chill_function_call): Rename misleading
10806 * ch-decl.c (do_decls): Allow (again) general initializer exprs.
10807 * ch-parse.y (call): Test for function call needs to test for
10808 FUNCTION_TYPE, not FUNCTION_DECL.
10809 nreverse arg list to build_chill_array_ref.
10810 * ch-typeck.c (build_chill_array_ref): Do recursive call at end
10811 and only if multiple indexes.
10812 * ch-typeck.c: Cleanups.
10814 Fri Jan 29 11:05:58 1993 Bill Cox (bill@rtl.cygnus.com)
10816 * ch-decl.c (do_decls): handle set initializations better, more to do.
10817 * ch-loop.c (begin_for_range): correct interface to expand_start_cond
10818 and build_binary_op.
10819 * ch-tree.h: lots more prototypes
10820 * ch-typeck.c (build_array_from_set): added function.
10821 * ch-typeck.c (chill_expand_tuple): handle set initializations better.
10823 Thu Jan 28 17:41:58 1993 Per Bothner (bothner@rtl.cygnus.com)
10825 * ch-grant.c (set_default_grant_file): Change default.
10826 Normally, grant file should end up in cwd.
10827 * ch-lang.c (build_chill_struct_type): Call pushtag,
10828 for the sake of debugging.
10829 * ch-lex.l: Improve comment parsing.
10830 * ch-lex.l (readstring): Some improvements.
10831 Initial support for control sequences in string literals.a
10833 Thu Jan 28 16:16:00 1993 Bill Cox (bill@rtl.cygnus.com)
10835 * ch-convert.c (convert): correct fixed->varying conversion.
10836 * ch-parse.y (mode2): delete unesthetic newline.
10838 Thu Jan 28 10:32:55 1993 Bill Cox (bill@rtl.cygnus.com)
10840 * ch-actions.c: delete maybe_array_ref()
10841 * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
10843 * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
10844 supervision actions & builtins
10845 * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
10846 smaller actions directly (maybe_array_ref() used to call them).
10847 * ch-tree.h: add build_chill_function_call, build_chill_slice
10848 * ch-typeck.c: add build_chill_slice()
10850 Thu Jan 28 08:44:28 1993 Bill Cox (bill@rtl.cygnus.com)
10852 * ch-tree.h: bring up to date with ch-actions.c changes.
10854 Wed Jan 27 23:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10856 * ch-expr.c (chill_expand_assignment): handle an RHS varying array
10859 Wed Jan 27 22:28:36 1993 Per Bothner (bothner@rtl.cygnus.com)
10861 * ch-grant.c (decode_constant): Add REAL_TYPE support.
10862 * ch-actions.c (build_chill_exception_decl): New function.
10863 * ch-actions (build_chill_cause_exception, cond_exceptions):
10864 Convert to take a (char*) parameter (the exception name).
10865 * ch-actions.c, ch-expr.c, ch-typeck.c: Convert calls to
10867 * ch-parse.y (check_end_label): New function, to check if
10868 and end label matches start label.
10869 * ch-parse.y: Fix syntax to properly recognize and
10870 test optional end labels (using check_end_label).
10871 * ch-decl.c (finish_chill_function): Simplify, since
10872 we assume check_end_label has already been called.
10873 * ch-parse.y: Put in infrastructure for exception handling.
10875 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10877 * ch-actions.c: delete convert_chill_parameter, replace call with
10879 * ch-convert.c (convert): combine chill_give_type_to_expr in here.
10880 * ch-decl.c: call convert rather than chill_give_type_to_expr.
10881 * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
10882 * ch-expr.c (chill_expand_assignment): just call convert.
10883 * ch-loop.c (end_chill_loop): expand the end of the loop for a
10885 * ch-parse.y: call convert rather than chill_give_type_to_expr.
10886 * ch-process.c: checkpoint.
10887 * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
10889 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10891 * ch-grant.c (grant_array_type): new function to allow handling of
10892 VARYING array types.
10894 Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10896 * ch-typeck.c (chill_give_type_to_expr): fix typo. Reorder to
10897 avoid checking types on CONSTRUCTORs. Correct typo.
10898 * ch-expr.c (expand_assignment_to_varying_array): use proper
10899 expansion function expand_expr_stmt.
10900 * ch-expr.c (expand_chill_assignment): only convert VARYING
10903 Wed Jan 27 15:32:21 1993 Bill Cox (bill@rtl.cygnus.com)
10905 * ch-actions.c (build_chill_length, build_chill_lower,
10906 build_chill_upper): accept parameters, too.
10907 * ch-expr.c (chill_expand_assignment): decipher ARRAY_REF on RHS.
10908 * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
10909 assign proper type to ARRAY_REF expression.
10911 Wed Jan 27 09:51:46 1993 Bill Cox (bill@rtl.cygnus.com)
10913 * ch-actions.c (build_chill_binary_op): delete unused variable,
10914 get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
10915 * ch-actions.c (build_chill_repetition_op): handle differently-built
10917 * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
10918 * ch-typeck.c (chill_give_type_to_expr): give type to constructor
10920 Tue Jan 26 11:32:38 1993 Bill Cox (bill@rtl.cygnus.com)
10922 * ch-parse.y (ifaction): re-add lost call to expand_end_code().
10923 * ch-parse.y (siezelist, grantlist): use 'name' rather than
10924 'checked_name'. It makes no sense to check sieze/grant names
10925 for WITH expansion.
10926 * ch-expr.c (chill_expand_expr): delete unnecessary (and
10927 seg-fault-causing) code.
10928 * ch-expr.c (chill_expand_assignment): make test for varying array
10929 on the LHS more specific.
10930 * ch-actions.c (invalid_left_operand, invalid_right_operand): error
10931 for use of MOD, REM operators.
10932 * ch-actions.c (build_chill_repetition_op): error for bit-field
10933 initializers (which will get handled in the lexer).
10935 Mon Jan 25 17:26:47 1993 Bill Cox (bill@rtl.cygnus.com)
10937 * ch-typeck.c (build_chill_array_ref),
10938 * ch-expr.c (chill_expand_expr, chill_expand_assignment):
10939 translate varying array ref into ARRAY_REF, defer processing
10940 until chill_expand_expr. Update array's length field in
10941 new function expand_assignment_to_varying_array.
10943 Mon Jan 25 14:57:24 1993 Bill Cox (bill@rtl.cygnus.com)
10945 * ch-parse.y (mode2): eliminate old method to mark varying arrays.
10946 * ch-expr.c (expand_varying_length_assignment): repair scaling of
10949 Mon Jan 25 11:44:21 1993 Per Bothner (bothner@cygnus.com)
10951 * ch-parse.y: Allow character and bitstring literals
10952 in string repetition operator.
10954 Sat Jan 23 14:18:11 1993 Per Bothner (bothner@cygnus.com)
10956 * ch-parse.y (primval): Re-recognize '(' expr ')'.
10957 * ch-parse.y (name): Remove call to check_identifier -
10958 this is not appropriate in certain contexts.
10959 * ch-parse.y (checked_name): Same as <name>, but *with* the
10960 call to check_identifier. Use where appropriate.
10961 * ch-parse.y (operand5): Only allow string repetition of
10962 string literals, because otherwise you get a conflict.
10964 Thu Jan 21 16:32:39 1993 Bill Cox (bill@rtl.cygnus.com)
10966 * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
10967 continue start_process development.
10969 Thu Jan 21 13:51:06 1993 Bill Cox (bill@rtl.cygnus.com)
10971 * ch-decl.c (do_decl): fix handling of multi-char initializer.
10973 Thu Jan 21 13:14:00 1993 Bill Cox (bill@rtl.cygnus.com)
10975 * .cvsignore: add CHILL files to be ignored
10977 Thu Jan 21 07:38:57 1993 Bill Cox (bill@cygnus.com)
10979 * ch-parse.y: rough draft of start_process handling.
10981 Wed Jan 20 17:11:05 1993 Bill Cox (bill@rtl.cygnus.com)
10983 * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
10985 Wed Jan 20 16:48:13 1993 Bill Cox (bill@rtl.cygnus.com)
10987 * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
10988 create new modules for I/O and process-related stuff.
10989 * ch-actions.c: move routines to new modules.
10990 call xmalloc, not malloc.
10991 * ch-lang.c (build_chill_struct_type): add parameter checking.
10992 * ch-lex.l (init_lex): remove redundant cast.
10994 Tue Jan 19 16:33:56 1993 Bill Cox (bill@rtl.cygnus.com)
10996 * ch-parse.y (operand5): delete unnecessary argument to
10997 build_chill_unary_op. Add rule for string repetition.
10998 * ch-parse.y (primval): delete string repetition attempt.
10999 * ch-parse.y (start_process): rough draft of action.
11000 * ch-actions.c (build_repetition_op): add it
11001 * ch-actions.c (build_chill_binary_op): handle constant arguments
11002 of CONCAT_EXPR, combine into a single string if possible.
11003 * ch-actions.c (invalid_left_operand, invalid_right_operand):
11004 allow single character arguments to CONCAT_EXPR.
11005 * ch-tree.h: add prototype for build_repetition_op
11007 Tue Jan 19 15:03:29 1993 Fred Fish (fnf@cygnus.com)
11009 * dwarfout.c (output_type): Add hack that matches the one in the
11010 chill front end to distinquish between true string types and
11011 arrays of char, since it uses ARRAY_TYPE for both, rather than
11012 trying to use the existing support for STRING_TYPE.
11014 Tue Jan 19 13:54:27 1993 Bill Cox (bill@rtl.cygnus.com)
11016 * ch-tree.h: added prototypes for all non-static CHILL functions.
11017 * ch-actions.c (lang_init): declare builtin type for start_process
11018 * ch-actions.c (build_chill_binary_op): combine string literals when
11020 * ch-actions.c (formpars2struct): added for later start_process
11022 * ch-actions.h: remove un-needed function declarations.
11023 * ch-decl.c: extern cleanup.
11024 * ch-expr.c (chill_expand_array_assignment): add missing first
11025 parameter to cond_exception call.
11026 * ch-lex.l: make build_chill_string non-static.
11028 Mon Jan 18 19:15:08 1993 Bill Cox (bill@rtl.cygnus.com)
11030 * ch-decl.c (do_decls): get varying array length initialized.
11032 Mon Jan 18 09:51:43 1993 Bill Cox (bill@rtl.cygnus.com)
11034 * ch-expr.c (chill_expand_array_assignment): fix the copy length
11035 in the memcpy call (it was just 4 bytes always). Simplify some
11038 Mon Jan 18 08:24:21 1993 Bill Cox (bill@rtl.cygnus.com)
11040 * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
11042 Mon Jan 18 08:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
11044 * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
11045 CHARS synonymous with CHAR, in the lexer. Delete unnecessary
11046 'bools' non-terminal.
11047 * ch-parse.y (assignaction): add lhs version of length() function
11048 * ch-actions.c: add builtin_concat function, lots of support for
11050 * ch-actions.c, ch-tree.h: make a function out of former
11051 macro CH_VARYING_TYPE_P
11052 * ch-expr.c: add expand_varying_length_assignment ().
11053 * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11054 * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11055 rather than build_rts_call, to eliminate a recursion problem.
11056 * ch-lang.c: eliminate 'sorry' about varying arrays.
11057 * ch-typeck.c (validate_varying_array_ref): re-enable constant
11060 Sun Jan 17 18:20:04 1993 Per Bothner (bothner@cygnus.com)
11062 * ch-grant.c, ch-lex.l: Major simplification of how
11063 seizes are done and how seizefiles are read.
11064 * ch-actions.h: Remove declaration of check_seize().
11065 * ch-decl.c (do_decls): Handle READONLY types.
11066 * ch-parse.y (mode2): Allow REF to be followed by any mode.
11067 * ch-parse.y (mode2): Allow literal expressions in string length.
11068 * ch-parse.y (tupleelement): Allow elemenst to be untyped_expr.
11069 * ch-parse.y (seizestatement, etc): Call chill_seize each
11070 time something is seized, rather than building a list first.
11072 Sat Jan 16 12:24:44 1993 Bill Cox (bill@rtl.cygnus.com)
11074 * chill.gperf, ch-hash.h: add Wilfried's tokens
11075 * ch-lex.l: fold in Wilfried's changes. Some tokens
11076 weren't getting recognized, and INSTANCE wasn't correctly
11077 reported to ch-parse.y as a PREDEF_MODEDCL.
11079 Thu Jan 14 15:02:39 1993 Per Bothner (bothner@cygnus.com)
11081 * ch-tree.h (CH_CHARS_TYPE_P): New macro. Add comment
11082 explaining difference between char strings and char arrays.
11083 * ch-tree.h (CH_STRING_TYPE_P): Add FIXME re bitstrings.
11084 * ch-tree.c (build_string_type): Add comment.
11086 Wed Jan 13 15:19:15 1993 Per Bothner (bothner@cygnus.com)
11088 * calls.c, expr.c, function.c, stmt.c, varasm.c: Set
11089 MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11090 * expmed.c (store_bit_field, extract_field_field): Undo
11091 yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11093 * ch-decl.c (do_decls): Put back support for initializing.
11094 (Was accidentally removed in Jan 8 change.)
11096 Wed Jan 13 14:13:11 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
11098 * ch-lex.l (convert_bitstring): Correct typo in cast.
11100 Tue Jan 12 20:29:08 1993 Per Bothner (bothner@cygnus.com)
11102 * ch-lex.l (convert_bitstring): Change to pack bits
11103 within words, not bytes, and to use machine bit-order
11104 (not always little-endian).
11105 * ch-parse.y: Allow BOOLS(n) as well as BITS(n).
11106 Use build_bitstring_type, not build_string_type.
11107 * expmed.c (store_bit_field, extract_field_field): Remove
11108 "sanity test" that prevents use with SET_TYPE.
11109 * tree.c (build_bitstring_type, build_powerset_type,
11110 build_string_type): Move (so far) Chill-specific functions to ...
11111 * ch-tree.c: ... new file.
11112 * ch-tree.c (build_powerset_type, build_bitstring_type): Re-write.
11113 * ch-typeck.c (build_chill_array_ref): Handle bit strings better.
11114 * ch-typeck.c (chill_expand_tuple): Kludge to handle SET_TYPE.
11115 * Makefile.in (CHILL_OBJS): Add ch-tree.o.
11116 * ch-decl.c (do_decls): Call expand_decl.
11117 * stor-layout.c (layout_type): Handle SET_TYPE.
11118 * expr.c (expand_expr): Add FIXMEs about IN_EXPR.
11119 * ch-actions.c (lang_init): Add type and decl for new
11120 function __builtin_setbitinstring.
11121 * ch-expr.c (chill_expand_assignmment): Special-case handling
11122 for BIT_FIELD_REF with non-constant bit position (which is
11123 not yet handled by expand_expr).
11124 * ch-convert.c (convert): Handle SET_TYPE.
11126 Tue Jan 12 12:49:13 1993 Fred Fish (fnf@cygnus.com)
11128 * chill: If -B arg is given, use to find gcc.
11130 Fri Jan 8 20:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
11132 * ch-decl.c: revert to avoid seg fault
11134 Fri Jan 8 14:20:42 1993 Bill Cox (bill@rtl.cygnus.com)
11136 * ch-decl.c: fix storage into correct offset in varying array.
11137 * ch-actions.c: define sizetype for everyone, use it to build
11139 * ch-parse.y: tiny cleanup.
11141 Wed Jan 6 13:25:33 1993 Bill Cox (bill@cygnus.com)
11143 * modules: use gdb rather than naked-gdb, to get opcodes
11144 in chill definition.
11146 Wed Jan 6 09:48:35 1993 Bill Cox (bill@cygnus.com)
11148 * ch-typeck.c: add code to handle references to elements of VARYING
11149 arrays. Simplify chill_give_type_to_expr. Add rough draft of run-
11150 time index checking for VARYING arrays (under #if 0).
11151 * ch-actions.c: new function cond_type_range_exception & calls.
11152 New function cond_range_exception, for more general range-checking.
11153 New function build_varying_struct, to do just that. Use the macros
11154 for the special varying field names.
11155 * ch-tree.h: define macros for varying field names.
11156 * ch-expr.c: use macros for varying struct names. Simplify
11157 chill_expand_array_assignment.
11158 * ch-parse.y: assure that build_varying_struct is called everywhere
11159 that it applies. Add a line-number note before the body of a DO
11161 * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11163 Tue Jan 5 17:26:14 1993 Bill Cox (bill@cygnus.com)
11165 * c-decl.c: correct order of declaration of start_decl params,
11168 Tue Jan 5 15:59:36 1993 Per Bothner (bothner@cygnus.com)
11170 * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11171 Move shared code into ...
11172 * ch-decl.c (start_chill_function): ... here.
11173 * ch-decl.c (start_chill_function): Add missing call to
11174 expand_start_bindings.
11175 * ch-decl.c (finish_chill_function): Add missing call to
11176 expand_end_bindings.
11178 Tue Jan 5 01:00:47 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11180 * Makefile.in: took out the rest of the runtime support
11182 Mon Jan 4 18:02:06 1993 Bill Cox (bill@cygnus.com)
11184 * ch-expr.c: make chill_expand_array_assignment not static.
11186 Mon Jan 4 17:57:48 1993 Per Bothner (bothner@cygnus.com)
11188 * ch-grant.c, ch-parse.y: Remove all code for explicitly
11189 calling initializer functions. This is not needed, since we
11190 use the same mechanism used for C++ static constructors.
11191 * ch-grant.c (chill_start_module_code): Make sure the
11192 init_name starts with the magic string also used for C++
11193 initializers. Also, don't embed the file name in the name,
11194 just use the module name.
11195 * ch-grant.c (chill_finish_module_code): Now that the
11196 initializer name follows the standard 'collect' convention,
11197 don't need to call assembler_constructor_alias, but can
11198 use the standard assemble_constructor instead.
11199 * varasm.c (assemble_constructor_alias): Remove no-longer-
11201 * ch-parse.y: Move code that is common to the beginning of
11202 all functions to a new macro INIT_ACTION.
11203 Make sure INIT_ACTION is also done for callaction, fixing a bug.
11204 * ch-parse.y (INIT_ACTION): Do chill_start_module_code()
11205 before emit_line_note(), not after.
11207 Mon Jan 4 11:43:12 1993 Bill Cox (bill@cygnus.com)
11209 * ch-parse.y: restore requirement for :upper-bound in array decl.
11210 * ch-actions.c: enhance upper, lower, length functions for VARYING.
11212 Mon Jan 4 09:28:44 1993 Bill Cox (bill@cygnus.com)
11214 * ch-actions.c: fix NOT of boolean expr.
11216 Mon Jan 4 08:42:57 1993 Bill Cox (bill@cygnus.com)
11218 * ch-actions.c: provide range-checking function
11219 * ch-lex.l: better compiler-directive error messages,
11220 allow underscores in exponents
11221 * ch-loop.c: prevent passing NULL ptr to printf
11223 Sun Jan 3 11:57:13 1993 Bill Cox (bill@cygnus.com)
11225 * ch-typeck.c: correct & enable array index range-checking
11227 Sun Jan 3 11:36:39 1993 Bill Cox (bill@cygnus.com)
11229 * ch-parse.y: define IGNORED_DIRECTIVE
11230 * ch-typeck.c: subtract array's lower domain value, even if
11231 index expression is constant.
11233 Sat Jan 2 23:05:14 1993 Fred Fish (fnf@cygnus.com)
11235 * ch-lex.l (convert_float): Fix misspelling in error message.
11237 Sat Jan 2 16:02:16 1993 Per Bothner (bothner@rtl.cygnus.com)
11239 * Makefile.in: Took out chill-runtime support.
11240 Chill run times are now in ../chillrt, not ./chillrt.p
11242 Sat Jan 2 15:04:13 1993 Bill Cox (bill@cygnus.com)
11244 * ch-hash.h, chill.gperf: cleanup. fewer keywords seen by ch-parse.y.
11246 Sat Jan 2 13:27:49 1993 Per Bothner (bothner@rtl.cygnus.com)
11248 * ch-lex.l (check_newline): Use the orginal versions (derived
11249 from the C code, not the simplified, special-case version).
11250 Also, fix that version of check_newline to not call yylex()
11252 * ch-lex.l (yy_input): Call check_newline to handle
11253 newlines and check for # directives.
11254 * ch-lex.l (syntax): Don't recognize #-directives; these
11255 are now handled by check_newline.
11256 * ch-actions.c (lang_init): Call the modified version of
11257 check_newline(). Do this at the *after* we've initialized
11258 standard types, so this can be done while lineno is still 0.
11260 Sat Jan 2 10:57:20 1993 Bill Cox (bill@cygnus.com)
11262 * ch-hash.h, chill.gperf: add remaining reserved words.
11264 Sat Jan 2 09:59:55 1993 Bill Cox (bill@cygnus.com)
11266 * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11267 names for exceptions
11269 Fri Jan 1 12:30:31 1993 Fred Fish (fnf@cygnus.com)
11271 * ch-tree.h (JOINER): Define joiner character the same way
11273 * ch-grant.c (chill_start_module_code): Use JOINER character
11274 to implement name mangling for the initializer function name.
11275 Algorithm is designed to be simple, distinct from C++ mangled
11276 symbols, and easy to convert to demangled form.
11278 Thu Dec 31 10:30:51 1992 Bill Cox (bill@rtl.cygnus.com)
11280 * ch-expr.c: make array assignments work with indirect refs.
11281 * ch-actions.c: prepare for array parameter handling.
11282 * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11284 Thu Dec 31 15:29:20 1992 Per Bothner (bothner@rtl.cygnus.com)
11286 * ch-lex.l (yy_input): Re-write to return more than one
11287 character at a time (execpt when reading seize-files).
11288 Don't increment lineno until we start reading the next line.
11289 This fixes some off-by-one errors in lineno.
11291 Wed Dec 30 16:15:23 1992 Per Bothner (bothner@rtl.cygnus.com)
11293 * ch-convert.c: Assume use of new common.c.
11294 * ch-convert.c (convert_to_reference, convert_from_reference):
11295 New routines, to handle loc-identity declared variables and
11296 LOC parameters (both of which are implemented as references).
11297 * ch-lang.c (convert_to_boolean, convert_to_char): Move to
11298 ch-convert.c, where they would seem to belong.
11299 * ch-convert.c (convert): New function, since we no longer
11300 link in c-convert.c.
11301 * ch-expr.c (chill_expand_assignment): Handle by calling
11302 convert() instead of chill_comptypes().
11303 Also handle the LHS being a reference.
11304 * ch-parse.y: Add a procedure call as an action.
11305 * ch-parse.y (locdec, optlocinit): Move handling of
11306 loc-identity declarations from optlocinit to locdec
11307 - and add working semantics for it.
11308 * ch-parse.y (seizestatement, visibilty_stmt): Simplify.
11309 * ch-parse.y (grantstatement etc): Don't bother making list.
11310 * ch-lex.l: #include <sys/types.h> before <sys/stat.h>.
11312 Wed Dec 30 16:06:55 1992 Bill Cox (bill@rtl.cygnus.com)
11314 * ch-parse.y, ch-expr.c: add support for declaring & assigning
11316 * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11318 Tue Dec 29 15:28:48 1992 Bill Cox (bill@cygnus.com)
11320 * ch-actions.c: implement expressions of arrays of char,
11321 ( concatenation, relationals ), correct type of code parameters
11322 * ch-expr.c: correct type of code parameters
11324 Tue Dec 29 11:16:19 1992 Bill Cox (bill@cygnus.com)
11326 * ch-decl.c: cleanup.
11327 * ch-parse.y: put emit_line_note() calls in lotsa places,
11328 per Fred's request; be sure that statements get counted also.
11329 * ch-lex.l: standardize function headers.
11331 Tue Dec 29 10:41:56 1992 Fred Fish (fnf@cygnus.com)
11333 * ch-decl.c (start_chill_function): Always return 1, rather
11334 than a random value.
11335 * ch-lex.l (check_newline): Add a version for chill that
11336 just snarfs the right value for main_input_filename out of
11337 the first line of the input file, without disturbing the
11338 lexer state or requiring it's assistance.
11339 * ch-actions.c (lang_init): Call check_newline, like the
11340 other language frontends, to get main_input_filename set
11341 from first line of input file.
11343 Mon Dec 28 18:49:01 1992 Bill Cox (bill@cygnus.com)
11345 * ch-parse.y: clean up conflicts. The remaining one is
11348 Mon Dec 28 17:28:40 1992 Bill Cox (bill@cygnus.com)
11350 * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11351 clean up some parser conflicts.
11353 Mon Dec 28 15:00:20 1992 Bill Cox (bill@cygnus.com)
11355 * ch-parse.y, ch-lex.l: add keywords and parsing for most of
11358 Sat Dec 26 20:48:23 1992 Fred Fish (fnf@cygnus.com)
11360 * chillrt/chillrt0.c: Oops, SVR4 doesn't need leading '_'
11361 on build_exceptions.
11363 Sat Dec 26 11:00:36 1992 Fred Fish (fnf@cygnus.com)
11365 * ch-grant.c (chill_finish_module_code): Call
11366 assemble_constructor_alias rather than assemble_constructor.
11367 * varasm.c (assemble_constructor_alias): New function,
11368 like assemble_constructor, but also handles the case where
11369 ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11370 being used. Emits a symbol table alias name with the correct
11371 prefix for collect to find and add to the __CTOR_LIST__.
11372 * chillrt/chillrt0.c: Build on previous hack that gets
11373 _build_exceptions into the __CTOR_LIST__, to make it work
11374 for both the non GNU-ld case and for the SVR4 case.
11376 Tue Dec 22 18:24:55 1992 Bill Cox (bill@cygnus.com)
11378 * ch-loop.c: clean up location enumeration - one more
11381 Tue Dec 22 16:31:48 1992 Bill Cox (bill@cygnus.com)
11383 * ch-loop.c: Working version of location enumeration loop
11385 Tue Dec 22 14:42:14 1992 Bill Cox (bill@cygnus.com)
11387 * ch-lex.l: readability cleanup
11389 Mon Dec 21 14:58:39 1992 Bill Cox (bill@cygnus.com)
11391 * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11392 ch-loop.c: rough draft of location enumeration
11393 ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11394 ch-actions.c: finish making pred() and succ() work.
11396 Mon Dec 21 10:04:35 1992 Bill Cox (bill@cygnus.com)
11398 * ch-actions.c: allow pred(char) and succ(char).
11400 Sun Dec 20 16:04:28 1992 Bill Cox (bill@cygnus.com)
11402 * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11403 c-expr.c: make DO WITH work.
11405 Sun Dec 20 12:22:53 1992 Bill Cox (bill@cygnus.com)
11407 * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11410 Sat Dec 19 14:20:23 1992 Per Bothner (bothner@cygnus.com)
11412 * c-typeck.c (process_init_constructor): Add warning if
11413 there is a duplicate default initializer element.
11414 * ch-typeck.c (chill_give_type_to_expr): New function,
11415 to handle coercion of an expression to context-given type,
11416 Takes care of untyped tuples, and case expressions.
11417 * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11418 chill_expand_result), ch-parse.y <assignaction>:
11419 Use chill_give_type_to_expr().
11420 * ch-typeck.c (chill_handle_case_label): New parameter list,
11421 to handle the (new) conventions for <case_label>, including
11422 default elements and ranges.
11423 * ch-parse.y <expanded_case_label>, ch-typeck.c
11424 (expand_case_expr): Use new version of chill_handle_case_label.
11425 * ch-decl.c (push_syndecls): Change parameters: Instead of
11426 TREE_LIST representing a compete <synonym definition statement>,
11427 just pass the parts of a single <synonym definition> as 3
11428 different parameters. Also, use chill_give_type_to_expr(),
11429 to handle untyped tuples in the RHS.
11430 * ch-parse.y <syndeclist, syndef>: Don't bother trying to construct
11431 a tree - just call push_syndecls() on each <synonum_definition>
11433 * ch-parse.y (exprlist_get_single): Remove; no longer needed.
11434 * ch-parse.y: Handle <tuple> without mode name diferently from
11435 <tuple> with mode name. The latter is a <primval> that can be
11436 in most contexts, but if the <mode name> is missing, the <tuple>
11437 is only allowed in certain contexts. Use the new non-terminal
11438 <untyped_expr> to indicate those contexts where untyped tuples
11439 (and case expressions) are valid because the expression gets a
11440 type from its context (such as the RHS of an assignment).
11441 Use chill_give_type_to_expr in those contexts.
11443 Sat Dec 19 14:01:26 1992 Bill Cox (bill@cygnus.com)
11445 * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11447 Sat Dec 19 10:16:20 1992 Bill Cox (bill@cygnus.com)
11449 * ch-parse.y: clean up warning messages from byacc. bison
11450 still complains thrice.
11452 Fri Dec 18 12:33:29 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11454 * ch-actions.c (maybe_chill_comptypes): Delete unused
11456 (chill_comptypes): Add new parameter ERRSTR. All callers
11458 (build_chill_binary_op): Fix indentation to match GNU coding
11461 Fri Dec 18 08:18:13 1992 Bill Cox (bill@rtl.cygnus.com)
11463 * ch-parse.y, ch-expr.c, ch-actions.c, expr.c: major
11464 cleanup of expression and assignment handling.
11466 Thu Dec 17 10:16:32 1992 Bill Cox (bill@cygnus.com)
11468 * ch-parse.y: standardize indentation after c-parse.y
11470 Wed Dec 16 15:22:12 1992 Per Bothner (bothner@cygnus.com)
11472 * c-typeck.c (process_init_constructor): Add support for
11473 a default initializer element.
11474 * ch-parse.y: Implement default elements for tuples
11475 (as in '(else):' and '(*):' ).
11477 * ch-parse.y: Previous change to dis-ambiguate case-labels
11478 seems to have allowed getting rid of all of the expr_or_list hair.
11479 * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11480 initialization of multiple variables by a tuple" - the
11483 Wed Dec 16 11:17:53 1992 Bill Cox (bill@cygnus.com)
11485 * ch-parse.y: complete re-write of DO statement handling.
11486 now operational, except WITH is stubbed out. Improved
11487 syntax error message.
11488 * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11489 * ch-expr.c: fixes to IN_EXPR handling.
11491 Tue Dec 15 17:15:13 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
11493 * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11494 * ch-lex.c: Likewise.
11496 * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11497 by flex to avoid compiler error.
11499 Tue Dec 15 08:41:08 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11501 * ch-decl.c (do_decls): Handle initialization of multiple
11502 variables by a tuple.
11504 * ch-decl.c (do_decls,start_chill_function): Make DECL public
11505 if we're doing a GRANT ALL at top level.
11507 * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11510 * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11511 BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11513 Mon Dec 14 14:58:32 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11515 * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11516 (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11518 Mon Dec 14 13:36:44 1992 Bill Cox (bill@cygnus.com)
11520 * expr.c: install and test newer Pascal IN_EXPR code,
11521 but don't activate it - it's very verbose.
11523 Mon Dec 14 00:22:49 1992 Fred Fish (fnf@cygnus.com)
11525 * Makefile.in (LANGUAGES): Add chill.
11526 * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11527 New macros for chill native and cross installation names.
11528 * Makefile.in (COMPILERS): Add cc1chill.
11529 * Makefile.in (CHILL_OBJS): New macro, chill objects.
11530 * Makefile.in (CHILL_TREE_H): New macro, chill headers.
11531 * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11532 sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11533 install-librmt): New targets.
11534 * Makefile.in (install-native): Add install-libchill,
11537 Sun Dec 13 15:21:06 1992 Bill Cox (bill@cygnus.com)
11539 * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11541 Sun Dec 13 14:07:32 1992 Bill Cox (bill@cygnus.com)
11543 * ch-actions.c: fix unary operations, modulus ops,
11544 (discovered after extending regression tests).
11546 Sun Dec 13 12:16:32 1992 Bill Cox (bill@cygnus.com)
11548 * resync with Michael and Wilfried
11550 Sun Dec 13 09:11:25 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11552 * ch-parse.y (output_constant): Fixed some whitespace
11554 * ch-tree.h: Add declarations for new chill functions that
11555 have been implemented but not (yet) declared.
11557 Sat Dec 12 00:17:23 1992 Per Bothner (bothner@cygnus.com)
11559 * c-typeck.c (process_init_constructor): Warn about duplicate
11560 labels for labelled initializer elements.
11561 * ch-lex.l (various operator tokens, such as "+"): Don't
11562 set yylval.code to a TREE_CODE; this is better done in parser.
11563 * ch-parse.y: Some work with case labels and tuples.
11564 Get literal range as tuple (and case) labels working.
11565 Fix some problems introduced by recent grammar overhaul.
11567 Fri Dec 11 13:28:48 1992 Bill Cox (bill@cygnus.com)
11569 * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
11570 got long, real expressions working. We can also call a func-
11571 tion and use its return value.
11573 Thu Dec 10 14:45:17 1992 Per Bothner (bothner@cygnus.com)
11575 * ch-parse.y: Major change to remove or at least identify
11576 parser ambiguities. One result: We now allow actions that
11577 start with '(', as required by teh Blue Book. This does break
11578 some things; look for FIXME for things that need work.
11579 * ch-typeck.c (chill_expand_case_expr): We need an extra
11580 level of looping to (in the future) support <case label
11581 specification>s with more than one <case label list>.
11583 Thu Dec 10 09:21:41 1992 Bill Cox (bill@cygnus.com)
11585 * ch-actions.c, ch-expr.c: Implement string assignments
11588 Thu Dec 10 07:17:35 1992 Bill Cox (bill@cygnus.com)
11590 * ch-decl.c, ch-typeck.c: rest of previous commit.
11592 Wed Dec 9 18:26:29 1992 Bill Cox (bill@cygnus.com)
11594 * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
11595 regression test and fix bit arrays and set ops.
11597 Mon Dec 7 14:57:46 1992 Bill Cox (bill@cygnus.com)
11599 * ch-actions.c: implement crude relationals between
11600 non-exotic operands, such as integers.
11602 Mon Dec 7 10:42:35 1992 Bill Cox (bill@cygnus.com)
11604 * ch-actions.c: implement relational, logic operations
11605 on arrays of BOOLs.
11607 Mon Dec 7 08:55:20 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11609 * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
11610 indicate we are done with initialization.
11612 * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
11614 (start_chill_function): Ditto.
11616 * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
11617 (compiler_directive): Don't confuse compiler directives with
11618 equality comparison operators.
11620 * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
11622 Sun Dec 6 13:12:32 1992 Bill Cox (bill@cygnus.com)
11624 * ch-actions.c: repair set inequality code.
11626 Sun Dec 6 11:15:59 1992 Bill Cox (bill@cygnus.com)
11628 * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
11629 relational expressions, including (<, <=, =, /=, >, >=, IN).
11631 Fri Dec 4 13:54:58 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
11633 * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
11634 Pascal-required ones, since C++ no longer needs them. When
11635 Chill's public, a comment can be added to the effect that
11636 SET_LE_EXPR is also used by Chill.
11638 Fri Dec 4 12:05:01 1992 Bill Cox (bill@cygnus.com)
11640 * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
11642 Fri Dec 4 10:23:10 1992 Bill Cox (bill@cygnus.com)
11643 * Get *.def and *.c in sync.
11645 Fri Dec 4 06:48:41 1992 Fred Fish (fnf@cygnus.com)
11647 * ch-actions.c (lang_init): Change types "long" and
11648 "ulong" from 16 bits to 32.
11649 * dwarfout.c (fundamental_type_code): Use FT_signed_char
11650 for type "byte" and FT_unsigned_char for type "ubyte".
11652 Thu Dec 3 15:13:24 1992 Bill Cox (bill@cygnus.com)
11653 * ch-actions.c, ch-tree.def, ch-parse.y: preparation
11654 for powerset expressions.
11656 Tue Dec 2 17:02:30 1992 Bill Cox (bill@cygnus.com)
11657 * ch-actions.c: sketch code for exceptions generated
11658 by builtin routines.
11660 Tue Dec 2 12:49:50 1992 Bill Cox (bill@cygnus.com)
11661 * ch-actions.c, ch-parse.y: add support for lower()
11662 upper() builtin functions.
11664 Wed Dec 2 12:03:30 1992 Fred Fish (fnf@cygnus.com)
11666 * Makefile.in (chillrt0.o, install-chillrt0): Remove.
11667 * chill (library): Remove chillrt0.o.
11668 * chillrt/Makefile: Remove maintenance of chillrt0.o as a
11669 separate file. Now gets put in libchill.a.
11671 Tue Dec 2 10:100:20 1992 Bill Cox (bill@cygnus.com)
11673 * ch-parse.y, ch-actions.c: add support for num()
11676 Wed Dec 2 09:52:06 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11678 * ch-decl.c (fixup_unknown_type): New function.
11679 (push_newmode,push_synmode): Call `fixup_unknown_type' when we
11680 see a declaration that uses `unknown_type_node'. FIXME.
11682 * ch-grant.c (decode_constant): New function.
11683 (decode_decl): Call `decode_constant' for CONST_DECLs.
11685 * ch-lex.l (char action): Use ridpointers instead of
11686 lookup_name to get "char"'s declaration.
11688 * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
11689 when we need to build a TYPE_DECL.
11691 Tue Dec 2 09:44:05 1992 Bill Cox (bill@cygnus.com)
11693 * ch-typeck.c: clean up a gcc warning with a forward
11694 declaration of build_string_type.
11696 Tue Dec 1 16:51:05 1992 Bill Cox (bill@cygnus.com)
11698 * ch-actions.c: completely remove those builtin calls
11699 that are duplicated in c-decl.c
11701 Tue Dec 1 16:38:51 1992 Fred Fish (fnf@cygnus.com)
11703 * ch-actions.c (lang_init): Ifdef out initializations for
11704 __builtin_abs and __builtin_fabs, since they are duplicates of
11705 initializations in c-decl.c, and trigger spurious warnings.
11707 Tue Dec 1 16:35:18 1992 Bill Cox (bill@cygnus.com)
11709 * ch-parse.y: make size() work with a typename argument.
11711 Tue Dec 1 16:15:56 1992 Bill Cox (bill@cygnus.com)
11713 * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
11714 functions min, max, card.
11716 Tue Dec 1 12:35:56 1992 Bill Cox (bill@cygnus.com)
11718 * ch-lex.l: fix char-type
11720 Tue Dec 1 11:10:56 1992 Bill Cox (bill@cygnus.com)
11722 * ch-parse.y, ch-actions: added parsing and processing
11723 for upper, lower, and length built-ins.
11725 Tue Dec 1 09:40:49 1992 Fred Fish (fnf@cygnus.com)
11727 * dwarf.h (LANG_CHILL): Add as GNU extension.
11728 * dwarfout.c (output_compile_unit_die): Test language_string and
11729 set LANG_CHILL if appropriate.
11730 * ch-parse.y (language_string): New for chill.
11731 * chillrt: Renamed directory chill to chillrt.
11732 * chill: Renamed chillsh to chill.
11733 * Makefile.in: Adjust for renamings.
11734 * chillrt/Makefile: Adjust for directory renaming.
11736 Mon Nov 30 17:35:33 1992 Fred Fish (fnf@cygnus.com)
11738 * chillsh: New script frontend (ala g++), installed as "chill".
11739 Can't be called "chill.sh" because make tries to cat it into the
11740 "chill" directory. Can't be called just "chill" cause that's
11741 already there as a directory.
11742 * Makefile.in: Add rules to install chillsh as "chill".
11743 * chill/libchill.c: Temporarily ifdef out stuff that wants
11744 to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
11745 which itself causes linkage to fail.
11747 Mon Nov 30 16:28:19 1992 Bill Cox (bill@cygnus.com)
11749 * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
11750 conversion routines.
11751 * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
11752 Added production for SIZE(expr).
11753 * ch-actions.c: Add semantic routine chill_sizeof ().
11755 Mon Nov 30 16:20:40 1992 Per Bothner (bothner@cygnus.com)
11757 * ch-lex.l, ch-parse.y: Translate token PFEIL into English ARROW.
11758 * ch-parse.y (op6): Remove handling of string repetition operator,
11759 until we can figure out a way to parse it correctly.
11760 * ch-parse.y (optmodename): New non-terminal.
11761 * ch-parse.y (tuple): Merge the two variants using optmodename.
11762 * ch-parse.y (location): Add semantic actions for
11763 dereferencing operator ->.
11765 Mon Nov 30 08:01:29 1992 Bill Cox (bill@cygnus.com)
11767 * ch-actions.c: removed compile warning, better code for abs.
11769 * ch-parse.y: add productions for builtin functions succ, pred,
11770 abs, and size. Add %tokens also. Sort %tokens alphabetically.
11772 * ch-lex.l: add parsing for builtin function names, such as abs,
11773 pred, succ, etc. Put flex -a option into Makefile.in, so we can
11774 clean up the lexer soon.
11776 Tue Nov 24 14:18:48 1992 Per Bothner (bothner@rtl.cygnus.com)
11778 * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
11779 New functions, for code common to CASE actions and expressions.
11780 * chill.y: Replace some code by calls to chill_handle_case_label
11781 and chill_handle_case_default.
11782 * ch-typeck.c (chill_expand_case_expr): Add semantics.
11784 * tree.c: Change doing_chill_thang from extern to common.
11786 Mon Nov 23 18:34:22 1992 Per Bothner (bothner@rtl.cygnus.com)
11788 * ch-tree.def: New CASE_EXPR type, for case expressions.
11789 * ch-expr.c (chill_expand_expr): Hook for CASE_EXPR.
11790 * ch-typeck.c (chill_expand_case_expr): New function.
11791 Placeholder to implement case expressions.
11792 * ch-typeck.c (chill_expand_result, chill_expand_return):
11793 Handle mode-unspecified tuples and case expressions in
11794 the context of RETURN and RESULT actions.
11795 * chill.y (assignaction): Handle case expressions in the
11796 context of the RHS of an assignment action.
11797 * chill.y (caseaction): Remove spurious duplicate OF in grammar.
11798 * chill.y: Handle labeled structure tuples.
11799 * chill.y: New rules to parse CASE expressions.
11800 * tree.c (build_function_types): Allow Chill functions
11801 to return arrays and functions.
11803 Wed Nov 18 13:50:28 1992 Per Bothner (bothner@rtl.cygnus.com)
11805 * ch-typeck.c (chill_expand_tuple): New function. Expand a
11806 tuple (constructor) given an expected (context) type.
11807 * chill.y: Implement 'LHS := TUPLE' using expand_chill_tuple,
11808 using the mode of the LHS and the expected type of the TUPLE.
11809 * chill.y: Implement initialization.
11810 * chill.y: Fix some syntax bugs (forbidlist must be surrounded
11811 by parentheses), and remove or note ambiguities.
11812 * chill.y: Started converting layout style to be like c-parse.in.
11813 * chill.y: Implement IF expressions.
11814 * chill.y: Added syntax rules for tuples. Labelled and unlabelled
11815 array tuples should now work (in some contexts).
11816 * ch-actions.c: Initialize doing_chill_thang to 1.
11817 * ch-decl.c (do_decls): Set DECL_INITIAL if there is an
11818 initializer, to make pushdecl and finish_decl work.
11819 * c-decl.c (convert_for_assignment): If Chill, don't convert
11820 function and arrays into pointers. (Maybe functions should
11821 still be converted?)
11822 * c-typeck.c (grokdeclarator): Allow functions in Chill
11823 to return arrays and functions.
11825 Mon Nov 16 15:40:47 1992 Per Bothner (bothner@rtl.cygnus.com)
11827 * chill.y (exprlist_get_single): New function, used when
11829 * chill.y: Re-did parsing of tuples to remove ambiguities.
11832 Tue Nov 10 16:30:55 1992 Per Bothner (bothner@rtl.cygnus.com)
11834 * ch-typeck.c (chill_expand_result); Set TREE_SIDE_EFEFCTS
11835 flags on assignment to result.
11836 * ch-typeck.c (build_chill_array_ref): Subtract lower
11837 bound of domain if non-zero. Preliminary hook for range checking.
11838 * ch-tree.h, chill.l: Combine variables range_check and
11839 range_check_disabled into global variable range_checking.
11840 * ch-tree.h: Better definitions of CH_CLASS_IS_VALUE
11841 CH_CLASS_IS_DERIVED.