]> gcc.gnu.org Git - gcc.git/blame - gcc/ch/ChangeLog
c-parse.in (language_string): Constify.
[gcc.git] / gcc / ch / ChangeLog
CommitLineData
f425a887
KG
11999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * parse.c (language_string): Constify.
4
7d12830c
KG
51999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6
7 * Makefile.in (LIBS, LIBDEPS): Link with & depend on libiberty.a.
8 Remove hacks for stuff which now comes from libiberty.
9
fa74c0f6
KG
101999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11
12 * lang.c (chill_print_error_function): Constify a char*.
13
31029ad7
KG
141999-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15
16 * Makefile.in (ch-version.c): Constify a char*.
17
18 * actions.c (id_cmp, warn_unhandled, adjust_return_value,
19 update_else_range_for_int_const, update_else_range_for_range,
20 update_else_range_for_range_expr, update_else_range_for_type,
21 compute_else_range, check_case_value,
22 chill_handle_case_label_range,
23 chill_handle_multi_case_label_range,
24 chill_handle_multi_case_else_label, chill_handle_multi_case_label,
25 chill_handle_multi_case_label_list print_missing_cases): Add
26 static prototypes.
27 (build_exception_variant): Cast the function argument of qsort.
28 (build_rts_call, warn_unhandled, chill_convert_for_assignment,
29 adjust_return_value, chill_expand_result,
30 build_multi_case_selector_expression, print_missing_cases):
31 Constify a char*.
32 (print_missing_cases): Introduce an intermediary non-const ptr.
33 Add brackets and indent.
34
35 * ch-tree.h (maybe_building_objc_message_expr,
36 maybe_objc_comptypes, comptypes_record_hook): Remove declarations.
37 (push_handler, pop_handler): Add prototypes.
38 (builtin_function, valid_array_index_p,
39 build_chill_exception_decl, build_rts_call,
40 chill_convert_for_assignment, display_int_cst,
41 build_chill_addr_expr, check_have_mode, get_identifier3,
42 build_chill_string, register_seize_path, get_unique_identifier,
43 add_taskstuff_to_list, gnuchill_version): Constify a char*.
44 (finish_chill_function): Add void prototype argument.
45
46 * convert.c (convert_to_reference, convert_to_boolean,
47 convert_to_char, base_type_size_in_bytes, remove_tree_element,
48 check_ps_range, digest_powerset_tuple, digest_structure_tuple,
49 digest_array_tuple, convert1): Add static prototypes.
50 (base_type_size_in_bytes): Hide unused function.
51 (display_int_cst, digest_array_tuple): Constify a char*.
52
53 * decl.c (set_nesting_level, make_chill_variants, fix_identifier,
54 proclaim_decl, maybe_acons, push_scope_decls, pop_scope_decls,
55 build_implied_names, bind_sub_modules, layout_array_type,
56 do_based_decl, handle_one_level, label_value_cmp,
57 find_implied_types): Add static prototypes.
58 (boolean_code_name, chill_tree_code_type, chill_tree_code_name):
59 Constify a char*.
60 (layout_chill_variants): Cast the function argument of qsort.
61 (start_chill_function, fix_identifier, init_decl_processing):
62 Constify a char*.
63 (init_decl_processing): Prefer memcpy over bcopy to avoid casts.
64 Use xcalloc instead of xmalloc/bzero.
65 (builtin_function, build_chill_exception_decl,
66 finish_outer_function): Constify a char*.
67
68 * except.c (start_handler_array, finish_handler_array): Add static
69 prototypes.
70
71 * expr.c (chill_expand_expr, chill_expand_case_expr,
72 check_arglist_length, internal_build_compound_expr,
73 is_really_instance, invalid_operand, invalid_right_operand,
74 build_chill_abstime, build_allocate_memory_call,
75 build_allocate_global_memory_call, build_return_memory,
76 build_chill_duration, build_chill_floatcall,
77 build_allocate_getstack, build_chill_allocate,
78 build_chill_getstack, build_chill_terminate, build_chill_inttime,
79 build_chill_lower_or_upper, build_max_min,
80 build_chill_pred_or_succ, expand_packed_set, fold_set_expr,
81 build_compare_set_expr, scalar_to_string, build_concat_expr,
82 build_compare_string_expr, compare_records, string_char_rep,
83 build_boring_bitstring): Add static prototypes.
84 (check_have_mode, chill_expand_expr, build_chill_floatcall,
85 build_allocate_getstack, build_max_min, build_chill_function_call,
86 expand_packed_set, build_compare_set_expr, build_chill_addr_expr,
87 string_char_rep): Constify a char*.
88
89 * gperf (hash, in_word_set): Add prototypes.
90
91 * grant.c (newstring, strfree, append, prepend,
92 grant_use_seizefile, decode_layout, grant_array_type,
93 grant_array_type_selective, get_tag_value,
94 get_tag_value_selective, print_enumeral, print_enumeral_selective,
95 print_integer_type, find_enum_parent, print_integer_selective,
96 print_struct, print_struct_selective, print_proc_exceptions,
97 print_proc_tail, print_proc_tail_selective, find_in_decls,
98 in_ridpointers, grant_seized_identifier, globalize_decl,
99 grant_one_decl_selective, compare_memory_file, search_in_list,
100 really_grant_this): Add static prototypes.
101 (newstring, append, prepend, grant_use_seizefile,
102 print_integer_type, decode_constant, grant_one_decl_selective,
103 header_template): Constify a char *.
104
105 * inout.c (add_enum_to_list, build_chill_io_list_type,
106 build_io_types, declare_predefined_file, build_access_part,
107 textlocation_mode, check_assoc, assoc_call, check_transfer,
108 connect_process_optionals, connect_text, connect_access,
109 check_access, check_text, get_final_type_and_range,
110 process_io_list, check_format_string, get_max_size,
111 check_exprlist): Add static prototypes.
112 (declare_predefined_file, check_assoc, assoc_call, check_transfer,
113 check_access, check_text, process_io_list): Constify a char*.
114
115 * lang.c (deep_const_expr, chill_print_error_function): Add static
116 prototypes.
117
118 * lex.c (close_input_file, maybe_number, string_or_char): Constify
119 a char*.
120 (ch_lex_init, skip_directive, same_file, getlc, yywrap,
121 yy_refill): Add static prototypes.
122 (build_chill_string, same_file, register_seize_path): Constify a
123 char*.
124
125 * lex.h (finish_chill_seizes): Remove unused prototypes.
126
127 * loop.c (build_temporary_variable, maybe_make_for_temp,
128 get_unique_identifier): Constify a char*.
129
130 * parse.c (ch_parse_init, check_end_label, end_function,
131 build_prefix_clause, PEEK_TOKEN, peek_token_, pushback_token,
132 forward_token_, require, check_token, expect, define__PROCNAME__):
133 Add static prototypes.
134 (build_prefix_clause, expect): Constify a char*.
135 (parse_expression, parse_primval, parse_untyped_expr,
136 parse_opt_untyped_expr, parse_opt_actions): Add void prototype
137 argument.
138 (parse_opt_name_string, parse_simple_name_string,
139 parse_name_string, parse_defining_occurrence, parse_name,
140 parse_optlabel, parse_opt_end_label_semi_colon, parse_modulion,
141 parse_spec_module, parse_semi_colon,
142 parse_defining_occurrence_list, parse_mode_definition,
143 parse_mode_definition_statement, parse_synonym_definition,
144 parse_synonym_definition_statement, parse_on_exception_list,
145 parse_on_alternatives, parse_loc_declaration,
146 parse_declaration_statement, parse_optforbid, parse_postfix,
147 parse_postfix_list, parse_rename_clauses, parse_opt_prefix_clause,
148 parse_grant_statement, parse_seize_statement,
149 parse_param_name_list, parse_param_attr, parse_formpar,
150 parse_formparlist, parse_opt_result_spec, parse_opt_except,
151 parse_opt_recursive, parse_procedureattr, parse_proc_body,
152 parse_procedure_definition, parse_processpar,
153 parse_processparlist, parse_process_definition,
154 parse_signal_definition, parse_signal_definition_statement,
155 parse_then_clause, parse_opt_else_clause, parse_expr_list,
156 parse_range_list_clause, pushback_paren_expr, parse_case_label,
157 parse_case_label_list, parse_case_label_specification,
158 parse_single_dimension_case_action,
159 parse_multi_dimension_case_action, parse_case_action,
160 parse_asm_operands, parse_asm_clobbers, ch_expand_asm_operands,
161 parse_asm_action, parse_begin_end_block, parse_if_action,
162 parse_iteration, parse_delay_case_event_list,
163 parse_delay_case_action, parse_do_action, parse_receive_spec,
164 parse_receive_case_action, parse_send_action, parse_start_action,
165 parse_call, parse_tuple_fieldname_list, parse_tuple_element,
166 parse_opt_element_list, parse_tuple, parse_operand6,
167 parse_operand5, parse_operand4, parse_operand3, parse_operand2,
168 parse_operand1, parse_operand0, parse_case_expression,
169 parse_then_alternative, parse_else_alternative,
170 parse_if_expression, parse_index_mode, parse_set_mode, parse_pos,
171 parse_step, parse_opt_layout, parse_field_name_list,
172 parse_fixed_field, parse_variant_field_list,
173 parse_variant_alternative, parse_field, parse_structure_mode,
174 parse_opt_queue_size, parse_procedure_mode, parse_program,
175 parse_pass_1_2): Add static prototypes.
176 (parse_process_definition): Remove extra argument in function call.
177 (parse_range_list_clause): Likewise.
178
179 * satisfy.c (satisfy, cycle_error_print, safe_satisfy_decl,
180 satisfy_list, satisfy_list_values): Add static prototype.
181 (safe_satisfy_decl): Cast DECL_TASKING_CODE_DECL() to (tree).
182
183 * tasking.c (make_process_struct): Remove unused prototype.
184 (validate_process_parameters, get_struct_variable_name,
185 decl_tasking_code_variable, get_struct_debug_type_name,
186 get_process_wrapper_name, build_tasking_enum,
187 build_tasking_message_type, build_receive_signal_case_label,
188 build_receive_buffer_case_label, build_receive_buffer_case_end,
189 build_receive_signal_case_end): Add static prototypes.
190 (struct_name, struct_debug_name, data_name, wrapper_name,
191 get_struct_type_name, get_struct_debug_type_name,
192 get_tasking_code_name, get_struct_variable_name,
193 get_process_wrapper_name): Constify a char*.
194 (validate_process_parameters, get_struct_variable_name,
195 decl_tasking_code_variable): Hide unused functions.
196 (build_start_process, add_taskstuff_to_list, build_queue_length):
197 Constify a char*.
198
199 * tree.c (make_powerset_type): Add static prototype.
200 (get_identifier3, build_alias_decl, decl_check_rename): Constify a
201 char*.
202
203 * typeck.c (extract_constant_from_buffer,
204 expand_constant_to_buffer, build_empty_string,
205 make_chill_pointer_type, make_chill_range_type,
206 apply_chill_array_layout, field_decl_cmp, make_chill_struct_type,
207 apply_chill_field_layout): Add static prototype.
208 (valid_array_index_p, extract_constant_from_buffer,
209 chill_expand_tuple): Constify a char*.
210 (layout_chill_struct_type): Cast the function argument of qsort.
211
fe0aaaa5
KG
2121999-08-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
213
214 * actions.c (lang_identify): Constify a char*.
215
216 * lang.c (chill_print_error_function): Likewise.
217 (lang_init): Remove redundant prototype for `print_error_function'.
218
8824cf7e
RH
2191999-07-25 Richard Henderson <rth@cygnus.com>
220
221 * decl.c (va_list_type_node): New.
222
58ec4285
KG
2231999-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
224
225 * Make-lang.in (CHILL.stage1): Depend on stage1-start.
226 (CHILL.stage2): Likewise for stage2-start.
227 (CHILL.stage3): Likewise for stage3-start.
228 (CHILL.stage4): Likewise for stage4-start.
229
3e18b97b
ZW
230Tue May 18 00:21:34 1999 Zack Weinberg <zack@rabi.phys.columbia.edu>
231
232 * lang-specs.h: Define __GNUC__ and __GNUC_MINOR__ only if -no-gcc
233 was not given.
234
5f460982
ZW
2351999-05-10 18:21 -0400 Zack Weinberg <zack@rabi.phys.columbia.edu>
236
237 * lang-specs.h: Pass -$ to the preprocessor.
238
d234235c
DB
239Tue May 4 14:52:53 1999 Dave Brolley <brolley@cygnus.com>
240
241 * actions.c (chill_expand_assignment): Use powersetlen to calculate the
242 length of an array of packed bits.
243
33ac5264
NS
244Tue Apr 20 23:37:01 1999 Nathan Sidwell <nathan@acm.org>
245
246 * Make-lang.in (ch/chill.info): Put MAKEINFO parameters in correct
247 order.
248
d20a4159
MK
249Wed Apr 14 21:07:30 1999 Mumit Khan <khan@xraylith.wisc.edu>
250
251 * config-lang.in (compilers): Add exeext.
252 (stagestuff): Likewise.
253
f6087261
JL
254Fri Apr 2 15:49:44 1999 Jeffrey A Law (law@cygnus.com)
255
256 * Make-lang.in (CHILL_FLAGS_TO_PASS): Do not pass $(CC).
257
63e5baa6
KG
258Wed Mar 31 10:44:47 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
259
260 * Makefile.in (hash.h): Generate using gperf language 'C', not
261 'KR-C', so gperf uses the `const' keyword on strings.
262
263 * gperf (resword): Const-ify a char*.
264
919a1ded
JL
265Sun Mar 28 00:30:36 1999 Jeffrey A Law (law@cygnus.com)
266
267 * Make-lang.in (CHILL.dvi): New target.
268 (CHILL.mostlyclean): Remove remnants of old runtime library structure.
269
43297964
CB
2701999-02-20 Craig Burley <craig@jcb-sc.com>
271
272 * Make-lang.in (CHILL.info): Depend on intermediate ch/chill.info
273 target instead of the chill.texi file.
274 (ch/chill.info): New target, depends on the chill.texi source file.
275 Its command writes ch/chill.info instead of chill.info.
276 (CHILL.install-info): Install from ch/chill.info instead of
277 chill.info.
278 If any ch/chill.info* files exist, delete *all* chill.info* files
279 in $infodir first, not just the ones corresponding to the
280 files to be installed (just in case the docs get smaller).
281
ad4144a7 282Sun Jan 31 20:34:29 1999 Zack Weinberg <zack@rabi.columbia.edu>
be163a70
ZW
283
284 * decl2.c: Don't define flag_no_ident here. Don't process
285 -f(no-)ident here.
286 * ch-tree.h: Don't declare flag_no_ident here.
287 * lang-specs.h: Map -Qn to -fno-ident.
288
ed730bcf
JL
289Tue Jan 19 23:24:36 1999 Jeffrey A Law (law@cygnus.com)
290
291 * Makefile.in (typeck.o): Depend on insn-codes.h.
292 * actions.c (chill_handle_multi_case_label): Initialize "expr".
293 * decl.c (poplevel): Initialize "block_previously_created".
294 * expr.c (chill_expand_expr): Initialize "size0" and "size1".
295 (fold_set_expr): Initialize "buffer1".
296 * inout.c (process_io_list): Initialize "to_assign".
297 (check_exprlist): Initialize "result".
298 * parse.c (expand_expr): Declare.
299 (parse_multi_dimension_case_action): Initialize "end_case_label".
300 * tasking.c (build_start_process): Initialize "struct_type_node".
301 * typeck.c (apply_chill_field_layout): Initialize "word".
302 (type_for_mode); Unconditionally cast RHS & LHS to ints to shut up
303 signed/unsigned comparison warning.
304
08c259de
KG
305Mon Jan 18 11:55:06 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
306
307 * ch-tree.h: Remove conflicting prototypes for pedwarn,
308 warning_with_decl, and make_dcl_rtl.
309
82770562
JL
310Sun Jan 17 21:53:23 1999 Jeffrey A Law (law@cygnus.com)
311
312 * Makefile.in: Do not put ^Ls at the start of a line.
313
3d0a71b3
JL
314Wed Jan 6 02:53:38 1999 Jeffrey A Law (law@cygnus.com)
315
316 * Makefile.in: Add some missing $(exeext). Remove some obsolete
317 runtime stuff.
318 * Make-lang.in: Similarly.
319
0d797e77
JL
320Tue Nov 24 09:57:34 1998 Jeffrey A Law (law@cygnus.com)
321
322 * Makefile.in (lex.c): Do not depend on hash.h.
323 (lex.o): Depend on hash.h.
324
6fbe9901
KG
325Mon Oct 19 12:13:47 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
326
327 * Makefile.in (lex.o): Depend on dwarfout.h.
328
329 * lang-specs.h: Add missing braces in initializer.
330
331 * lex.c: Include dwarfout.h, if DWARF_DEBUGGING_INFO is defined.
332
12fe4621
KG
333Thu Oct 15 09:25:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
334
335 * expr.c (build_chill_card): Use &&, not &, when comparing truth
336 values.
337
338 * parse.c (parse_spec_module): Remove unused variable
339 `module_name', but preserve function call from initialization.
340 (parse_operand6): Mark variable `location' with ATTRIBUTE_UNUSED.
341
342 * inout.c (init_text_location): Remove unused variable `textlength'.
343
bd748f74
KG
344Wed Oct 14 22:19:48 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
345
346 * typeck.c (build_chill_cast): Fix typo in assignment statement.
347
348 * tasking.c (build_signal_descriptor): Use IDENTIFIER_POINTER()
349 when printing a `tree'.
350
297a6bfc
KG
351Fri Oct 9 13:01:23 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
352
353 * ch-tree.h (build_delay_case_end): Remove unused parameter.
354 (build_receive_case_end): Likewise.
355 (check_queue_size): Likewise.
356
357 * parse.c: Callers changed.
358
359 * satisfy.c: Likewise.
360
361 * tasking.c (build_receive_buffer_case_end): Remove unused
362 parameter `label_cnt'.
363 (build_receive_signal_case_end): Likewise.
364 (build_receive_case_end): Likewise.
365 (build_delay_case_end): Likewise.
366 (check_queue_size): Likewise for parameter `type'.
367 All callers changed.
368
e39b138b
JL
369Thu Oct 8 05:57:41 1998 Jeffrey A Law (law@cygnus.com)
370
371 * typeck (type_for_mode): Only return TItype nodes when
372 HOST_BITS_PER_WIDE_INT is >= 64 bits.
373 (type_for_size): Similarly.
374 * decl.c (intTI_type_node, unsigned_intTI_type_node): Only declare
375 when HOST_BITS_PER_WIDE_INT is >= 64 bits.
376 (init_decl_processing): Only create TItype nodes when
377 HOST_BITS_PER_WIDE_INT is >= 64 bits.
378
39828aec
KG
379Wed Oct 7 12:19:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
380
381 * Makefile.in (hash.h): Add -L KR-C -F ', 0, 0, 0' flags to gperf.
382 (hash.h): Regenerate using gperf 2.7.1 (19981006 egcs).
383
43cab252
NC
384Thu Oct 1 10:43:45 1998 Nick Clifton <nickc@cygnus.com>
385
386 * lex.c: Replace occurances of HANDLE_SYSV_PRAGMA with
387 HANDLE_GENERIC_PRAGMAS.
388 (handle_generic_pragma): New function: Parse generic pragmas.
389
c1daea12
KG
390Wed Sep 30 20:22:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
391
392 * parse.c (emit_label): Fix return-type of prototype.
393
36ef59e7
KG
394Wed Sep 30 19:41:36 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
395
396 * actions.c (chill_handle_multi_case_label): Always return a value
397 in function returning non-void.
398
399 * except.c: Include OS headers before any local ones.
400
401 * typeck.c (layout_chill_range_type): Change type of variable
402 `negprecision' to int.
403 (apply_chill_array_layout): Initialize variables `stepsize' and
404 `start_bit'.
405 (layout_chill_struct_type): Change type of variable `min_align' to
406 unsigned int.
407 (smash_dummy_type): Change name of variable `main' to `main_tree'.
408
5efaf7b0
KG
409Wed Sep 30 19:24:41 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
410
411 * actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to
412 ensure enough bits for calculation.
413
414 * ch-tree.h (check_text_length): Remove unused parameter.
415
416 * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to
417 function sprintf into the appropriate type for printing.
418
419 * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the
420 format specifier.
421 (print_mode): Likewise.
422 (init_decl_processing): Cast the arguments of bcopy/bzero to char *.
423
424 * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as
425 the format specifier.
426
427 * inout.c (check_text_length): Remove unused parameter `type'.
428 (build_chill_associate): Initialize variables `arg1', `arg2',
429 `arg3', `arg4' and `arg5'.
430 (build_chill_modify): Likewise.
431 (scanformcont): Change type of variable `curr' to `unsigned char'.
432
433 * lex.c (maybe_downcase): Cast the argument of `tolower' to
434 `unsigned char'.
435
436 * satisfy.c (satisfy): Remove unused parameter in call to
437 `check_text_length'.
438
439 * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT
440 as a `long' in call to function `error'.
441 (decl_tasking_code_variable): Likewise.
442
5abb0464 443Wed Sep 30 19:03:02 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
875ac75a
KG
444
445 * grant.c (decode_decl_selective): Cast switch's enum argument to
446 an int.
447 (really_grant_this): Add default case in switch.
448
449 * typeck.c (chill_resulting_class): Add default cases in switch.
450 Also add `break' statements after each case.
451
1f6b0ce0
KG
452Tue Sep 29 21:37:33 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
453
454 * ch-tree.h (build_compare_expr): Change first argument's type
455 from `enum chill_tree_code' to `enum tree_code'.
456 (build_compare_discrete_expr): Likewise.
457
458 * expr.c (build_compare_set_expr): Likewise.
459 (build_compare_string_expr): Likewise.
460 (build_compare_expr): Likewise.
461 (build_compare_discrete_expr): Likewise. Also add default case in
462 switch statement.
463 (compare_int_csts): Add default case in switch statement.
464
39170597
RL
465Sun Sep 20 11:02:55 1998 Robert Lipe <robertl@dgii.com>
466
467 * except.c: Include system.h.
468
469 * Makefile.in (except.o): Depend on system.h.
470
75111422
KG
471Sun Sep 20 09:25:13 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
472
473 * Makefile.in (actions.o, convert.o, decl.o, expr.o, lang.o,
474 lex.o, loop.o, parse.o, satisfy.o, timing.o, tasking.o, tree.o,
475 typeck.o): Depend on system.h and toplev.h.
476 (except.o): Depend on toplev.h.
477 (grant.o): Depend on system.h, toplev.h and output.h.
478
479 * actions.c: Include system.h and toplev.h. Remove redundant
480 prototypes.
481 (build_cause_exception): Add default case in switch.
482 (update_else_range_for_range): Add parentheses around && within ||.
483 (chill_handle_multi_case_label_list): Remove unused variable
484 `selector_value'.
485 (print_missing_cases): Reconcile format specifiers vs arguments in
486 calls to sprintf.
487
488 * ch-tree.h: Don't include stdio.h. Wrap prototypes using FILE*
489 with macro BUFSIZ. Add missing prototypes.
490
491 * convert.c: Include system.h and toplev.h. Remove redundant
492 prototypes.
493 (convert): Remove unused variable `errstr'.
494
495 * decl.c: Include system.h and toplev.h. Remove redundant
496 prototypes.
497 (builtin_scope): Add missing initializers.
498 (clear_scope): Likewise.
499 (allocate_lang_decl): Mark parameter `t' with ATTRIBUTE_UNUSED.
500 (copy_lang_decl): Likewise for parameter `node'.
501 (c_decode_option): Likewise for parameter `argc'.
502 (push_extern_function): Likewise for parameter `granting'.
503 (switch_to_pass_2): Hide declaration of errorcount/sorrycount.
504 (pushdecl): Remove unused variable `t'.
505 (lookup_name_current_level): Make static and hide.
506 (lookup_name_for_seizing): Make static.
507 (finish_decl): Remove unused variable `type'.
508 (maybe_build_cleanup): Mark parameter `decl' with ATTRIBUTE_UNUSED.
509 (complete_array_type): Mark parameters `type', `initial_value' and
510 `do_default' with ATTRIBUTE_UNUSED.
511 (start_struct): Mark parameter `name' with ATTRIBUTE_UNUSED.
512 (start_enum): Likewise.
513 (shadow_record_fields): Remove unused variables `type' and `parent'.
514
515 * except.c: Include toplev.h. Remove redundant prototypes.
516
517 * expr.c: Include system.h and toplev.h. Don't define NULL.
518 Remove redundant prototypes.
519 (internal_build_compound_expr): Mark parameter `first_p' with
520 ATTRIBUTE_UNUSED.
521 (build_allocate_getstack): Remove unused variable `init'.
522 (build_chill_pred_or_succ): Likewise for variable `limit'.
523 (varying_to_slice): Likewise for variable `doamin' [sic].
524 (finish_chill_binary_op): Likewise for variables `code0' and
525 `code1'. Remove unused label `finish'. Add explicit braces to
526 avoid ambiguous `else'.
527 (build_chill_addr_expr): Remove extra parameter in call to `error'.
528 (build_chill_unary_op): Remove unused variables `class' and `type0'.
529 (powersetlen): Remove unused variables `domain' and `temp'.
530
531 * grant.c: Include system.h, toplev.h and output.h. Don't handle
532 strchr/strrchr. Remove redundant prototypes.
533 (decode_constant_selective): Remove unused variables `op' and `wrk'.
534 (push_granted): Mark parameters `name' and `decl' with
535 ATTRIBUTE_UNUSED.
536
537 * inout.c: Include system.h and toplev.h. Remove redundant
538 prototypes.
539 (textlocation_mode): Use &&, not &, when comparing two truth
540 values.
541 (scanformcont): Remove unused label `do_the_action'.
542
543 * lang.c: Include system.h and toplev.h. Remove redundant
544 prototypes.
545 (lookup_interface): Mark parameter `arg' with ATTRIBUTE_UNUSED.
546 (maybe_objc_comptypes): Likewise for parameters `lhs' and `rhs'.
547 (lang_print_xnode): Likewise for parameters `file', `node' and
548 `indent'.
549 (lang_decode_option): Explicitly declare `explicit_ignore_case'.
550 (incomplete_type_error): Mark parameters `value' and `type' with
551 ATTRIBUTE_UNUSED.
552
553 * lex.c: Include system.h and toplev.h. Remove redundant
554 prototypes. Don't handle strchr/strrchr. Use CAPITALIZED
555 versions of ctype macros from system.h. Cast ctype arguments to
556 unsigned char when necessary.
557 (last_token, RETURN_TOKEN): Hide definition.
558 (push_back): Remove unused function.
559 (readstring): Change variable `i' to unsigned.
560 (yywrap): Remove unused variable `node'.
561
562 * loop.c: Include system.h and toplev.h. Remove redundant
563 prototypes.
564 (chill_unsigned_type): Hide prototype and definition.
565 (begin_loop_scope): Remove unused variable `firstp'.
566 (nonvalue_begin_loop_scope): Likewise.
567
568 * parse.c: Include system.h and toplev.h. Remove redundant
569 prototypes.
570 (quasi_signal): Hide.
571 (PEEK_TOKEN): Change return type to `enum terminal'.
572 (parse_mode_definition_statement): Remove unused variable `names'.
573 (parse_formpar): Remove unused parameter `in_spec_module'. All
574 callers changed.
575 (parse_formparlist): Likewise.
576 (parse_processpar): Remove unused variable `parms'.
577 (parse_definition): Add explicit braces to avoid ambiguous `else'.
578 (parse_multi_dimension_case_action): Initialize variable
579 `begin_test_label'. Remove unused variable `new_test'.
580 (parse_case_action): Remove unused variable `caseaction_flag'.
581 (parse_asm_clobbers): Remove unused variable `expr'.
582 (parse_delay_case_action): Initialize variable `label_cnt'.
583 (parse_action): Make function static.
584 (parse_tuple_element): Remove unused variable `list'.
585 (parse_primval): Add default case in switch.
586 (parse_variant_alternative): Remove unused variables `x' and
587 `variant_fields'.
588
589 * satisfy.c: Include system.h and toplev.h. Remove redundant
590 prototypes.
591
592 * tasking.c Include system.h and toplev.h. Remove redundant
593 prototypes.
594 (data_name): Hide.
595 (get_struct_variable_name): Likewise.
596 (validate_process_parameters): Mark parameter `parms' with
597 ATTRIBUTE_UNUSED.
598 (build_start_process): Initialize variable `tuple'.
599 (build_receive_buffer_case_end): Remove unused variable `buffer_ptr'.
600
601 * timing.c: Include system.h and toplev.h.
602 (build_after_timeout_start): Remove unused variable `goto_where'.
603
604 * tree.c: Include system.h and toplev.h. Remove redundant
605 prototypes.
606
607 * typeck.c: Include system.h and toplev.h. Remove redundant
608 prototypes.
609 (extract_constant_from_buffer): Make function static. Add
610 explicit braces to avoid ambiguous `else'.
611 (expand_constant_to_buffer): Likewise.
612 (build_chill_slice): remove unused variable `is_static'.
613 (chill_compatible): Add explicit braces to avoid ambiguous `else'.
614 (apply_chill_array_layout): Remove unused variable `offset'.
615 (smash_dummy_type): Remove unused variable `save_lang_specific'.
616 (initializer_constant_valid_p): Add default case in switch.
617
13aa1501
DB
618Mon Sep 14 16:46:36 1998 Dave Brolley <brolley@cygnus.com>
619
20aa9a35
DB
620 * typeck.c (build_chill_slice): Always use TYPE_DOMAIN to get the
621 domain type of the array.
622
13aa1501
DB
623 * expr.c (build_chill_function_call): Remove redundant call to
624 chill_convert_to_assignment
625
6cf624a0
DB
626Thu Sep 10 17:52:36 1998 Dave Brolley <brolley@cygnus.com>
627
628 * actions.c (chill_convert_for_assignment): Make a copy of the result
629 node before modifying it.
630
f429f2c5
JC
631Sat Sep 5 16:55:37 1998 John Carr <jfc@mit.edu>
632
633 * Make-lang.in: Comment ^L characters. Sun make doesn't like them.
634
d261f3f9
JL
635Sat Sep 5 23:49:50 1998 Jeffrey A Law (law@cygnus.com)
636
637 * Makefile.in (INCLUDES): Update after recent reorganization at the
638 toplevel gcc directory.
639
f7e2dc36
RH
640Sat Sep 5 22:25:51 1998 Richard Henderson <rth@cygnus.com>
641
642 * Makefile.in: Update dependancies for top-level gcc files that moved.
643
d4751916
JL
644Sat Sep 5 02:21:08 1998 Jeffrey A Law (law@cygnus.com)
645
646 * Makefile.in: Tweak to avoid building runtime. It's built
647 elsewhere now.
648
24775172
DB
649Thu Sep 3 15:32:03 1998 Dave Brolley <brolley@cygnus.com>
650
651 * typeck.c (layout_chill_range_type): set TYPE_SIZE_UNIT.
652
c5168e64
NC
653Wed Sep 02 09:25:29 1998 Nick Clifton <nickc@cygnus.com>
654
655 * lex.c (check_newline): Change how HANDLE_PRAGMA is called.
656 Generate warning messages if unknown pragmas are encountered.
657 (pragma_getc): New function: retrieves characters from the
658 input stream. Defined when HANDLE_PRAGMA is defined.
659 (pragma_ungetc): New function: replaces characters back into the
660 input stream. Defined when HANDLE_PRAGMA is defined.
661
058ebd7e
DB
662Mon Aug 31 15:35:16 1998 Dave Brolley <brolley@cygnus.com>
663
664 * decl.c (layout_chill_variants): Calculate nlables properly.
665
a2ca17fa
PB
666Mon Jul 27 17:21:01 1998 Dave Brolley <brolley@cygnus.com>
667
668 * typeck.c (apply_chill_array_layout): Don't set TYPE_SIZE of the
669 element type.
670
671Mon Jul 13 14:20:12 1998 Nick Clifton <nickc@cygnus.com>
672
673 * lang-options.h: Format changed to match changes in gcc/toplev.c
674 to implement a --help option.
675
676Wed Jul 8 02:58:35 1998 Jeffrey A Law (law@cygnus.com)
677
678 * lang.c (lang_init_options): New function.
679
680Wed Jun 10 12:08:09 1998 Dave Brolley <brolley@cygnus.com>
681
682 * lang-options.h: Remove -I.
683 * ch-tree.h (c_decode_option): New argc/argv interface.
684 * decl.c (c_decode_option): New argc/argv interface.
685 * lang.c (lang_decode_option): New argc/argv interface.
686
687Wed May 27 10:33:41 1998 Dave Brolley <brolley@cygnus.com>
688
689 * actions.c (chill_handle_multi_case_label): Arguments 1 and 2 to
690 chill_handle_multi_case_label_range were reversed.
691
692 * Make-lang.in (chill): Use the correct gcc in the driver script.
693
694Thu May 21 14:40:44 1998 Dave Brolley <brolley@cygnus.com>
695
696 * convert.c (digest_array_tuple): Move conversion to
697 chill_convert_for_assignment.
698
699 * actions.c (chill_convert_for_assignment): Allow conversion of array
700 constructor to bitstring constructor for assignment to array of packed bits.
701
702Thu May 14 13:57:51 1998 Dave Brolley <brolley@cygnus.com>
703
704 * Make-lang.in (chill-runtime): Depend on stmp-headers to build float.h.
705
706Wed May 13 14:07:51 1998 Dave Brolley <brolley@cygnus.com>
707
708 * typeck.c (build_chill_slice): Adjust slice index to account for the
709 lower bound of the array.
710
711 * actions.c (chill_expand_assignment): Convert function arguments to the
712 correct types.
713 (chill_expand_assignment): Ditto.
714
715Mon May 11 16:20:57 1998 Dave Brolley <brolley@cygnus.com>
716
717 * typeck.c (build_chill_slice): Propogate the TYPE_PACKED setting
718 of the array_type to the slice_type.
719 (build_chill_slice): Use SLICE_EXPR to represent a slice of an array
720 of bits.
721
722 * loop.c (build_loop_iterator): Disallow location enumeration for
723 bit-packed arrays.
724
725 * convert.c (digest_array_tuple): Allow conversion of an array tuple
726 to a bitstring for assignment to a packed array of bits.
727
728Mon May 4 16:28:58 1998 Dave Brolley <brolley@cygnus.com>
729
730 * ch-tree.def (PACKED_ARRAY_REF): New tree code.
731 * typeck.c (build_chill_array_ref_1): Build PACKED_ARRAY_REF if array is packed.
732 (chill_location): Handle PACKED_ARRAY_REF.
733 (apply_chill_array_layout): Allow PACK for arrays of single bits.
734 * expr.c (chill_expand_expr): Expand PACKED_ARRAY_REF.
735 (invalid_operand): Check PACKED_ARRAY_REF operands.
736 * actions.c (chill_expand_assignment): Expand PACKED_ARRAY_REF.
737
738Thu Apr 23 15:33:20 1998 Dave Brolley <brolley@cygnus.com>
739
740 * typeck.c (apply_chill_field_layout): Only integral fields can be packed
741 to the bit level.
742
743Tue Apr 21 14:30:10 1998 Jeffrey A Law (law@cygnus.com)
744
745 * decl.c (intTI_type_node, unsigned_intTI_type_node): Define.
746 (init_decl_processing): Handle TI types.
747 * typeck.c (intTI_type_node, unsigned_intTI_type_node): Declare.
748 (type_for_size): Handle TI types.
749 (type_for_mode): Handle TI types.
750
751Mon Apr 20 13:12:26 1998 Dave Brolley <brolley@cygnus.com>
752
753 * typeck.c (layout_chill_struct_type): Don't promote bitfield types to
754 int.
755
756 * actions.c (chill_convert_for_assignment): Check that the rhs is not
757 a type declaration.
758
759Tue Apr 14 13:17:44 1998 Dave Brolley <brolley@cygnus.com>
760
761 * lex.c (init_parse): Now returns char* containing the filename.
762
763 * typeck.c (get_type_precision): Declare.
764 (apply_chill_field_layout): Use the minimum number of bits necessary to
765 represent discrete types as the natural length of the field.
766
767Thu Apr 9 12:46:55 1998 Dave Brolley <brolley@cygnus.com>
768
769 * lex.c (finput): Move definition here from toplev.c
770 (init_parse): New function replaces init_lex.
771 (init_parse): Add code to open source file.
772 (finish_parse): New function.
773 (close_input_file): File was being closed more than once.
774
775 * lang.c (finput): Declare.
776 * ch-tree.h (init_lex): Remove.
777
778
779Wed Apr 8 14:47:33 1998 Dave Brolley <brolley@cygnus.com>
780
781 * actions.c (compute_else_range): Fix loop index error.
782 (chill_handle_multi_case_label_range): Move error checking to
783 chill_handle_multi_case_label.
784 (chill_handle_multi_case_else_label): Convert ELSE range values to
785 the type of the corrersponding CASE selector.
786
787Wed Apr 8 13:02:50 1998 Jeffrey A Law (law@cygnus.com)
788
789 * actions.c (sizetype_tab): Do not declare.
790 * lang.c (lang_print_xnode): New function.
791
792Mon Mar 23 14:43:06 1998 Dave Brolley <brolley@cygnus.com>
793
794 * grant.c (decode_layout): New function.
795 (grant_array_type): Call decode_layout to export layout information to
796 the grant file.
797 (decode_decl): Ditto
798
799Fri Mar 20 16:06:41 1998 Dave Brolley <brolley@cygnus.com>
800
801 * parse.c (parse_tuple_element): Call had arguments in wrong order.
802
803Thu Mar 19 13:42:33 1998 Dave Brolley <brolley@cygnus.com>
804
805 * typeck.c (apply_chill_array_layout): Use
806 TYPE_PRECISION (chill_integer_type_node) in stead of BITS_PER_WORD for
807 the word size.
808
809Wed Mar 18 16:25:48 1998 Dave Brolley <brolley@cygnus.com>
810
811 * typeck.c (apply_chill_field_layout): Only set DECL_BIT_FIELD for discrete
812 fields.
813
814 * parse.c (parse_multi_dimension_case_action): Call emit_line_note at the
815 proper places.
816
817Tue Mar 17 14:16:08 1998 Dave Brolley <brolley@cygnus.com>
818
819 * parse.c (gen_label_rtx): Declare before use.
820 (emit_jump): Declare before use.
821 (emit_label): Declare before use.
822 (parse_case_label_list): Pass in CASE selector so we can mark it as having
823 an (ELSE) label if necessary.
824 (parse_case_label_specification): Pass in the CASE selector list so that
825 the CASE selectors can be passed to parse_case_label_list.
826 (parse_multi_dimension_case_action): Modify to generate branching code in
827 one pass.
828 (parse_case_expression): Compute (ELSE) range before generating CASE expression.
829 (parse_variant_alternative): Remove error for (ELSE) specified.
830
831 * expr.c (check_case_selector_list): Preserve TREE_PURPOSE of selector list.
832
833 * decl.c (layout_chill_variants): Add code to check compatibility of ranges
834 and discrete mode names.
835
836 * ch-tree.h (ELSE_LABEL_SPECIFIED): New Chill specific flag.
837
838 * actions.h (build_multi_case_selector_expression): Make it extern.
839 (chill_handle_multi_dimension_case_label): Remove.
840 (compute_else_ranges): New function.
841
842 * actions.c (update_else_range_for_int_const): New function.
843 (update_else_range_for_range): New function.
844 (update_else_range_for_range_expr): New function.
845 (update_else_range_for_type): New function.
846 (compute_else_range): New function.
847 (compute_else_ranges): New function.
848 (chill_handle_multi_case_else_label): New function
849 (chill_handle_multi_case_label_range): Don't generate tests for conditions
850 which are always true or false.
851 (chill_handle_multi_case_label): Ditto.
852 (chill_handle_multi_case_label): Implement (ELSE) label support.
853 (chill_handle_multi_case_label): First argument is now the selector tree not
854 its VALUE.
855 (chill_handle_multi_dimension_case_label): Removed.
856 (build_chill_multi_dimension_case_expr): List of CASE alternatives is no longer
857 reversed on entry, so reverse it here.
858
859Tue Mar 10 15:02:26 1998 Dave Brolley <brolley@cygnus.com>
860
861 * actions.c (chill_handle_multi_case_label_range): Add more error checking.
862 (chill_handle_multi_case_label): Implement (*) for multi dimensional CASE.
863 (chill_handle_multi_case_label): Improve Error handling.
864
865Mon Mar 9 12:39:00 1998 Dave Brolley <brolley@cygnus.com>
866
867 * actions.c (chill_handle_multi_case_label_range): Added.
868 (chill_handle_multi_case_label): Add support for discrete ranges and
869 discrete modes.
870
871 * typeck.c (apply_chill_array_layout): Added more error checking.
872 (apply_chill_field_layout): Added more error checking.
873
874Wed Mar 4 16:08:26 1998 Dave Brolley <brolley@cygnus.com>
875
876 * convert.c (convert): Call build_simple_array_type with new argument.
877
878 * ch-tree.h(build_simple_array_type): Add argument for array layout.
879
880 * typeck.c (build_chill_slice): Call build_simple_array_type with new argument.
881 (build_simple_array_type): Attach array layout to TYPE_ATTRIBUTES.
882 (apply_chill_array_layout): New function to implement array layout.
883 (layout_chill_array_type): Call apply_chill_array_layout and reset
884 TYPE_ATTRIBUTES to NULL_TREE.
885 (build_chill_array_type): Extend to handle one array layout per index mode.
886 (smash_dummy_type): Call build_simple_array_type with new argument.
887
888 * satisfy.c (satisfy): Call SATISFY on array layout tree.
889
890Wed Feb 25 14:36:41 1998 Dave Brolley <brolley@cygnus.com>
891
892 * typeck.c (next_struct_offset): Added.
893 (apply_chill_field_layout): New function to check and apply PACK, NOPACK,
894 or POS layout to a structure field.
895 (layout_chill_struct_type): Add call to apply_chill_field_layout.
896
897 * satisfy.c (satisfy): Call satisfy recursively to handle the expressions
898 in the field layout tree.
899
900 * parse.c (pack_warn_printed): Remove.
901 (nopack_warn_printed): Remove.
902 (step_warn_printed): Remove.
903 (pos_warn_printed): Remove.
904 (parse_opt_layout): Remove warnings about POS, STEP, PACK and NOPACK usage.
905
906 * decl.c (grok_chill_fixedfields): Check for POS specified for a list of
907 field declarations.
908
909Thu Feb 19 17:33:06 1998 Dave Brolley <brolley@cygnus.com>
910
911 * parse.c (parse_opt_layout): Generate syntax errors in pass 1 only.
912 (parse_opt_mode): Removed incorrect comment about association of array
913 layouts with nested array elements.
914 (parse_opt_mode): Allow for one layout per index mode specified.
915
916Wed Feb 18 23:48:57 1998 Richard Henderson <rth@cygnus.com>
917
918 * Make-lang.in (cc1chill): Kill lingering bc-opcode.h dependancy.
919
920Wed Feb 18 17:35:05 1998 Dave Brolley <brolley@cygnus.com>
921
922 * parse.c (parse_field): Get rid of warning for multiple case selectors.
923
924 * decl.c (layout_chill_variants): Fix loop indexing error.
925
926Mon Feb 16 15:54:47 1998 Dave Brolley <brolley@cygnus.com>
927
928 * parse.c (parse_case_expression): Remove code which checked for
929 unimplemented (ELSE) label.
930 (parse_case_expression): Add code to handle multi dimensional case
931 expression.
932
933 * expr.c (check_case_selector_list): Fixed to return a list of the
934 selectors which were checked.
935 (chill_expand_case_expr): Remove "sorry" message for multi dimension
936 case.
937 (chill_expand_case_expr): Reverse order of case alternatives.
938 (chill_expand_case_expr): Add "error" message for multiple case
939 selectors.
940
941 * actions.h (build_chill_multi_dimension_case_expr): Added.
942
943 * actions.c (build_multi_case_selector_expression): Renamed from
944 build_multi_case_expression.
945 (chill_handle_multi_dimension_case_label): Call above function by its
946 new name.
947 (build_chill_case_expr): Don't reverse the list elements here. It may
948 not be necessary.
949 (build_chill_multi_dimension_case_expr): New function implements multi
950 dimensional case expression.
951
952Thu Feb 12 15:44:50 1998 Dave Brolley <brolley@cygnus.com>
953
954 * parse.c (parse_case_action): Implement multi-dimension CASE action.
955 (parse_multi_dimension_case_action): Added.
956 (parse_single_dimension_case_action): Added based on code moved from
957 parse_case_action.
958
959 * expr.c (check_case_selector_list): Added.
960
961 * ch-tree.h (check_case_selector_list): Added.
962
963 * actions.h (chill_handle_single_dimension_case_label): Added.
964 (chill_handle_multi_dimension_case_label): Added.
965
966 * actions.c (chill_handle_single_dimension_case_label): Added.
967 (chill_handle_multi_case_label): Added.
968 (chill_handle_multi_case_label_list): Added.
969 (build_multi_case_expression): Added.
970 (chill_handle_multi_dimension_case_label): Added
971
972Fri Feb 6 16:43:41 1998 Dave Brolley <brolley@cygnus.com>
973
974 * actions.c (sizetype_tab): Fix declaration to match gcc changes.
975
976Thu Feb 5 14:03:00 1998 Dave Brolley <brolley@cygnus.com>
977
978 * decl.c (chill_tree_code_type): Change this to be an array of char like
979 the tree_code_type in the rest of gcc.
980
981 * ch-tree.def (chill_tree_code_type): See decl.c.
982
983Thu Jan 29 15:34:18 1998 Dave Brolley <brolley@cygnus.com>
984
985 * tasking.c (error_with_decl): Correct prototype.
986 (build_gen_ptype): Reverse arguments.
987
988 * lang.c (chill_real_input_filename): Add definition.
989 (chill_print_error_function): Correct second argument.
990 (lang_init): Set chill_real_input_filename.
991
992 * expr.c (NULL): Protect definition with #ifndef.
993
994 * decl.c (init_decl_processing): Don't allocate chill_tree_code_...
995 (init_decl_processing): Change last argument to 'sizeof(char)'.
996
997
998Tue Nov 25 10:44:19 1997 Nick Clifton <nickc@cygnus.com>
999
e16ba10c 1000 * Make-lang.in (mostlyclean): Use && to separate commands, so that
a2ca17fa
PB
1001 if the directory change fails, the rule will not loop.
1002
1003Mon Mar 3 12:08:19 1997 Fred Fish <fnf@cygnus.com>
1004
1005 * Make-lang.in (CHILL_FLAGS_TO_PASS): Remove extraneous leading
1006 spaces and use single tab character on some lines.
1007 (cc1chill): Ditto.
1008
1009Tue Nov 26 05:12:40 1996 Wilfried Moser <moser@rtl.cygnus.com>
1010
1011 * tasking.c (build_receive_buffer_case_label): Rework in a manner,
1012 that the buffer location gets evaluated only once, in
1013 build_receive_buffer_case_end.
1014
1015 * typeck.c (build_chill_bin_type): Rework.
1016 (layout_chill_range_type): Process BIN mode.
1017 (build_chill_array_type): Remove checking of layout. This is done
1018 at the parse.
1019
1020 * parse.c (parse_on_exception_list): Don't allow ON name:.
1021 (parse_opt_layout): Parse POS and STEP and return a tree instead
1022 of int.
1023
1024 * lex.c (init_lex), lex.h: Define and initialise RID_BIN.
1025
1026 * grant.c (print_integer_type): Take care of BIN.
1027
1028 * expr.c (build_chill_descr): Make descr static if requested
1029 location is static.
1030 (build_chill_length): Process text mode name and text location as
1031 described in Z.200/1992.
1032 (build_compare_expr): Don't allow < <= > >= for composite modes.
1033
1034 * decl.c (grok_chill_fixedfields): Remove checking of
1035 layout. This is done at the parser.
1036
1037 * convert.c (digest_structure_tuple): Take care of wrong (probably
1038 array) tuple. Printing error may cause sigsegv.
1039
1040 * ch-tree.h: Change prototypes of grok_chill_fixedfields and
1041 build_chill_array_type (layout is passed now as a tree instead of
1042 int).
1043
1044Fri Nov 15 15:17:44 1996 Per Bothner <bothner@deneb.cygnus.com>
1045
1046 * convert.c (display_int_cst): Check that val is INTEGER_CST.
1047 (digest_array_tuple): Some extra error checks (i.e. that indexes
1048 are constant). If dynamic mode, result is not constant.
1049
1050Mon Oct 28 12:48:06 1996 Jeffrey A Law (law@cygnus.com)
1051
1052 * typeck.c (signed_or_unsigned_type): If the given type already
1053 as the correct signedness, then just return it.
1054
1055 * typeck.c ({un,}signed_type): If can't do anything, call
1056 signed_or_unsigned_type.
1057
1058Fri Sep 6 02:50:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1059
1060 * typeck.c (build_chill_cast): In case of rangecheck, take care of
1061 constant expression (when defining a SYN).
1062
1063Thu Sep 5 04:30:32 1996 Wilfried Moser <moser@rtl.cygnus.com>
1064
1065 * parse.c (define__PROCNAME__): New function to define a SYNONYM
1066 __PROCNAME__ (__procname__) which is a character string containing
1067 the name of the current procedure. This is quit the same as
1068 __FUNCTION__ in C.
1069 (parse_proc_body): Add call to define__PROCNAME__.
1070
1071 * typeck.c (chill_equivalent): Take care of NEWMODE'd procedure
1072 modes on one side and procedures on the other side..
1073
1074Wed Jul 24 01:13:51 1996 Wilfried Moser <moser@rtl.cygnus.com>
1075
1076 * typeck.c: Replace all local variables and arguments named `index'
1077 with `idx', `index' gets replaced by `strchr' which makes debugging
1078 somehow difficult.
1079 (valid_array_index_p): New argument to indicate that we are processing
1080 LENGTH (varying string) on the lefthand side of an assignment. The
1081 index check is different in this case.
1082 (build_chill_cast): In case of expression conversion do an OVERFLOW
1083 check with the limits of the target mode.
1084
1085 * ch-tree.h: New prototype for valid_array_index_p.
1086
1087 * actions.c (expand_varying_length_assignment): Add new argument to
1088 call to valid_array_index_p to indicate we are processing
1089 LENGTH on the lefthand side of an assignment.
1090
1091 * loop.c: Rename loop_stack to loopstack to avoid clashes with
1092 global variable ../stmt.c:loop_stack.
1093
1094Tue Jun 18 23:04:06 1996 Per Bothner <bothner@deneb.cygnus.com>
1095
1096 * expr.c (resolve_component_ref): Set TREE_SIDE_EFFECTS properly.
1097
1098Mon Jun 10 15:01:51 1996 Per Bothner <bothner@deneb.cygnus.com>
1099
1100 * typeck.c (build_chill_reference_type): Copy novelty for reference.
1101 * satisfy.c (satisfy): If REFERENCE_TYPE, copy novelty.
1102
1103Thu May 30 04:55:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1104
1105 * typeck.c (valid_array_index_p): For varying character strings
1106 we must check if the index is less then the actual length instead
1107 of less equal.
1108
1109Wed May 15 06:07:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
1110
1111 * ch-tree.h: Add prototype for test_range.
1112
1113 * inout.c (process_io_list): Fix duplicate function call if
1114 writetext argument is a function returning a varying string.
1115
1116Tue May 14 21:08:47 1996 Per Bothner <bothner@deneb.cygnus.com>
1117
1118 Re-do string comparisons. Old way could re-use temporary
1119 (SAVE_EXPR created for an argumnet is variable) prematurely.
1120 * ch-tree.def (STRING_EQ_EXPR, STRING_LT_EXPR): New codes.
1121 * decl.c (init_decl_processing): Remove __eqstring, __gestring,
1122 __gtstring, __lestring, __ltstring, __nestring declarations.
1123 * expr.c (build_char_array_expr): Rename to build_compare_string_expr.
1124 Create STRING_EQ_EXPR, STRING_LT_EXPR nodes, instead of CALL_EXPRs.
1125 (chill_expand_expr): Implement STRING_EQ_EXPR, STRING_LT_EXPR.
1126 (build_compare_expr): Use new build_char_array_expr name.
1127
1128Mon Apr 8 14:08:30 1996 Per Bothner <bothner@kalessin.cygnus.com>
1129
1130 Cleanup of April 5 fix:
1131 * actions.c (test_range): New function.
1132 (check_range): Simplify to use test_range.
1133 * convert.c (digest_powerset_tuple): Move error message from here ...
1134 (check_ps_range): ... to here. Also, simplify to use test_range.
1135
1136Fri Apr 5 03:41:05 1996 Wilfried Moser <moser@rtl.cygnus.com>
1137
1138 * convert.c (check_ps_range): New function to perform range check
1139 of powerset tuple elements. This is quite the same as check_range,
1140 however, the actions on rangefail are different.
1141 (digest_powerset_tuple): Call check_ps_range.
1142
1143 * loop.c (build_loop_iterator): Chaeck if location enumeration
1144 is requested for BOOLS(n) and print an error message.
1145
1146Wed Mar 6 17:46:48 1996 Per Bothner <bothner@kalessin.cygnus.com>
1147
1148 * parse.c (parse_primval): Emit error if !ignore (before: pass==2).
1149
1150 Implement parameterised array and string modes (using LANG_TYPE).
1151 * parse.c (parse_opt_mode): Handle parameterized arrays and strings.
1152 * grant.c (decode_mode): Support extended use of LANG_TYPE.
1153 * satisfy.c (cycle_error_print): Ignore non-decls in chain.
1154 (safe_satisfy_decl): No error if non-decl (pointer type) in cycle.
1155 (satisfy): Return immediately if laid out non-pointer type.
1156 (satisfy case LANG_TYPE): Handle paramertised mode.
1157 (satisfy case POINTER_TYPE/REFERENCE_TYPE): Push type on chain;
1158 return immediately if already in chain.
1159 * typeck.c (smash_dummy_type): Handle parameterized modes and CHAR(N).
1160 Change return type (can now return error_mark_node).
1161 (build_readonly_type): Return return value from smash_dummy_type.
1162 * ch-tree.h: Change smash_dummy_type return type.
1163
1164Tue Mar 5 22:31:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1165
1166 * typeck.c (build_chill_slice): Re-do index_type calculation.
1167 * typeck.c (layout_chill_range_type): Use compare_int_csts rather
1168 than tree_int_cst_lt to avoid signed/unsigned problems.
1169
1170 * typeck.c (copy_novelty): Use copy_node rather than build_type_node.
1171 * typeck.c (smash_dummy_type): Use copy_novelty for NEWMODE of range.
1172
1173 * decl.c (init_decl_processing): More portable sizetype initialization.
1174
1175 * tree.c (build_string_type): Generalize to also create bitstrings.
1176 Return error_mark_node if an argument is an ERROR_MARK.
1177 (build_bitstring_type): Simplify - just call build_string_type.
1178
1179Tue Mar 5 03:48:32 1996 Wilfried Moser <moser@blues.cygnus.com>
1180
1181 * actions.c (warn_unhandled): Add missing assignment.
1182
1183 * loop.c (build_loop_iterator): In case of IN, check if
1184 expression has a mode, otherwise make an error.
1185
1186Mon Mar 4 23:12:03 1996 Per Bothner <bothner@kalessin.cygnus.com>
1187
1188 * convert.c (digest_powerset_tuple): Check tuple elements
1189 for compatibility; if compatible, call convert.
1190
1191Thu Feb 29 23:39:54 1996 Per Bothner <bothner@kalessin.cygnus.com>
1192
1193 Simplify NOVELTY representation.
1194 * ch-tree.h (CH_NOVELTY): Re-implement as plain TYPE_CONTEXT.
1195 (CH_NOVELTY_FLAG): Removed. (Just use CH_NOVELTY.)
1196 * decl.c (push_modedef): Make copy even for SYNMODE.
1197 but not for internal typedefs (indicated by make_newmode==-1).
1198 * tasking.c: Call push_modedef with make_newmode==-1.
1199 * typeck.c (chill_novelty): Remove.
1200 (smash_dummy_type): Removed unused event/buffer stuff. Update.
1201 * grant.c (decode_decl), inout.c (build_io_types),
1202 expr.c (build_concat_expr), typeck.c (build_chill_slice, copy_novelty),
1203 tasking.c (build_instance_type): Simplify using new CH_NOVELTY.
1204
1205 Solidify READ mode handling.
1206 * decl.c (do_decl, push_syndecl, start_chill_function):
1207 Possibly set TREE_READONLY for a VAR_DECL, CONST_DECL, or PARM_DECL.
1208 * typeck.c (build_chill_slice): Set TREE_READONLY appropriately.
1209 (build_chill_array_ref_1, build_chill_bitref): Likewise.
1210 (build_chill_cast): Set TREE_READONLY depending on result type (only).
1211 * convert (convert_from_reference, convert): Likewise.
1212 * expr.c (resolve_component_ref): Set TREE_READONLY appropriately.
1213 (build_chill_function_call): Error if OUT/INOUT arg is TREE_READONLY.
1214 * actions.c (chill_expand_assignment): Also error if TREE_READONLY.
1215 Use convert_from_reference.
1216
1217Thu Feb 29 11:14:09 1996 Per Bothner <bothner@kalessin.cygnus.com>
1218
1219 * parse.c (parse_do_action): DO WITH expressions are evaluated in
1220 outer scope. Also call save_if_needed.
1221 * decl.c (shadow_record_fields); Fix and simplify.
1222
1223Tue Feb 27 22:19:40 1996 Per Bothner <bothner@cygnus.com>
1224
1225 * convert.c (display_int_cst): Gereralize to wider range of ints.
1226
1227Thu Feb 22 06:12:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1228
1229 * convert.c (digest_array_tuple): Take care of type == error_mark_node.
1230
1231 * decl.c (do_decl): In case of chill_varying_type_p, check if
1232 type of fixed part is error mark and do nothing in this case.
1233
1234 * lex.c (convert_bitstring): Don't complain when length of
1235 bitstring is 0 (BOOLS(0) is a valid mode).
1236
1237 * tree.c (layout_powerset_type): Add check for TYPE_MAX/MIN_VALUE
1238 (domain) is error mark.
1239
1240 * typeck.c (layout_chill_range_type): If lowvalue or highvalue ==
1241 error_mark_node, just return.
1242
1243Tue Feb 20 00:01:10 1996 Wilfried Moser <moser@rtl.cygnus.com>
1244
1245 * parse.c (parse_variant_alternative): When checking for ELSE take
1246 care of tagless variants.
1247
1248Mon Feb 19 05:54:45 1996 Wilfried Moser <moser@rtl.cygnus.com>
1249
1250 * parse.c (parse_case_action): Check if ELSE was specified
1251 in a case label list (this is only valid for array tuples).
1252 (parse_case_expression): Deto.
1253 (parse_variant_alternative): Deto.
1254
1255Tue Feb 13 17:08:16 1996 Per Bothner <bothner@kalessin.cygnus.com>
1256
1257 * typeck.c (chill_location): Cleanup. Neither SLICE_EXPR nor
1258 BIT_FIELD_REF are referable, even if their base strings are.
1259
1260Fri Feb 9 02:25:33 1996 Wilfried Moser <moser@rtl.cygnus.com>
1261
1262 * actions.c (chill_expand_result): Do CH_FUNCTION_SETS_RESULT after
1263 checking the expression.
1264
1265 * convert.c (convert): Set TREE_CONSTANT when taking the
1266 address of a function.
1267
1268 * decl.c (start_chill_function): Check if the mode is really
1269 a mode to avoid subsequent segfaults.
1270
1271 * typeck.c (string_assignment_condition): Add checking of
1272 bitstring length.
1273
1274Thu Feb 8 01:37:59 1996 Wilfried Moser <moser@rtl.cygnus.com>
1275
1276 * actions.c (build_cause_exception): Print warning of unhandled
1277 exception only once for each exception.
1278
1279Mon Feb 5 22:17:13 1996 Per Bothner <bothner@kalessin.cygnus.com>
1280
1281 * tree.c (discrete_count), ch-tree.h: New function.
1282 * expr.c (build_concate_expr, build_chill_repetition_op,
1283 chill_expand_expr): Use discrete_count; make sure arguments
1284 to size_binop are sizetype.
1285 (powersetlen): Trvialize using discrete_count.
1286
1287 * inout.c (process_io_list): Use new assign_temp function.
1288 * inout.c (build_enum_tables): Avoid taking address of array_ref,
1289 which sometimes gets optimized to a constant.
1290
1291 * expr.c (finish_chill_unary_op): Call convert_to_class on argument.
1292 Remove some obsolete TREE_UNSIGNED stuff.
1293 * lex.c (convert_integer): Removed more TREE_UNSIGNED stuff.
1294
1295Thu Feb 1 15:11:20 1996 Doug Evans <dje@charmed.cygnus.com>
1296
1297 * lex.c (check_newline): Return result of HANDLE_PRAGMA.
1298
1299Wed Jan 31 17:13:25 1996 Per Bothner <bothner@kalessin.cygnus.com>
1300
1301 * decl.c (char_array_type_node, wchar_array_type_node): Removed.
1302 (init_decl_processing): Remove array_domain_type; don't set
1303 char_array_type_node or wchar_array_type_node.
1304 * decl.c (init_decl_processing): Use fixup_unsigned_type to
1305 simplify code to create boolean_type_node and char_type_node.
1306
1307Mon Jan 29 14:20:10 1996 Doug Evans <dje@charmed.cygnus.com>
1308
1309 * lex.c (check_newline): Pass character after `#pragma' to
1310 HANDLE_PRAGMA. Don't call get_directive_line if at end of line.
1311
1312Fri Jan 26 05:56:27 1996 Wilfried Moser <moser@rtl.cygnus.com>
1313
1314 * expr.c (build_chill_function_call): Add check and error for
1315 actual argument is a TYPE_DECL.
1316
1317 * parse.c (parse_set_mode): Print a warning if the set mode contains
1318 numbered and unnumbered set elements.
1319
1320Wed Jan 24 05:10:08 1996 Wilfried Moser <moser@rtl.cygnus.com>
1321
1322 * Make-lang.in: Change GNUCHILL_VERSION to 1.5.2.
1323
1324 * decl.c (layout_enum): Add check for negative values if
1325 enum is numbered and duplicate values in an enum.
1326
1327Mon Jan 15 06:21:52 1996 Wilfried Moser <moser@rtl.cygnus.com>
1328
1329 * actions.c (chill_expand_assignment): Add check for lefthand side
1330 of an assignment is a location.
1331
1332 * ch-tree.def: Name of SET_IN_EXPR is really "set_in_expr" and
1333 not "concat_expr".
1334
1335 * expr.c (is_really_instance): New function to check if a datum
1336 is really an instance. CH_IS_INSTANCE_MODE seems to be to weak
1337 for this case.
1338 (build_chill_component_ref): call is_really_instance.
1339
1340Wed Jan 10 13:47:14 1996 Per Bothner <bothner@kalessin.cygnus.com>
1341
1342 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): Removed; now in ../tree.h.
1343
1344Mon Jan 8 15:29:20 1996 Per Bothner <bothner@kalessin.cygnus.com>
1345
1346 * expr.c (build_char_array_expr): Add save_if_needed's if varying.
1347 Also, remove unused len0 and len1.
1348
1349Mon Dec 11 17:36:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1350
1351 * inout.c (build_chill_associate, assoc_call, build_chill_readrecord,
1352 build_chill_getassociation, build_chill_getusage,
1353 build_chill_gettextrecord, build_chill_gettextaccess: Simplify
1354 - modify TREE_TYPE of CALL_EXPR, instead of building a CONVERT_EXPR.
1355
1356 * parse.c (parse_action): Minor simplification.
1357
1358Thu Dec 7 00:02:47 1995 Wilfried Moser <moser@rtl.cygnus.com>
1359
1360 * parse.c (parse_action): In case of CALL, do a check if there
1361 is really a function call.
1362
1363Tue Dec 5 05:06:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1364
1365 * convert.c (display_int_cst): Fix printing of control sequence.
1366
1367Thu Nov 30 21:07:57 1995 Per Bothner <bothner@kalessin.cygnus.com>
1368
1369 * grant.c (decode_constant, decode_constant_selective): Make work
1370 for REAL_IS_NOT_DOUBLE case.
1371
1372 * decl.c (CHILL_INT_IS_SHORT): New macro.
1373 (init_decl_processing): Use CHILL_INT_IS_SHORT.
1374 Change name of integer_type_node from _cint to long.
1375
1376Mon Nov 27 17:07:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
1377
1378 * loop.c (top_loop_end_check): Check while condition *after*
1379 getting next powerset element.
1380
1381Mon Nov 27 05:29:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
1382
1383 * parse.c (parse_receive_case_action): Fix typo in error message.
1384
1385 * convert.c (display_int_cst): Format characters like strings in
1386 grant.c(decode_constant).
1387
1388 * grant.c: Remove the old forbid stuff.
1389
1390 * lex.c (readstring): Fix reading of '^^'.
1391
1392 * parse.c (parse_procedure_mode): nreverse param_types.
1393
1394Thu Nov 23 05:39:57 1995 Wilfried Moser <moser@rtl.cygnus.com>
1395
1396 * actions.c (chill_expand_assignment): Check for assigning to
1397 location with non-value mode.
1398
1399 * ch-tree.h: New macro CH_TYPE_NONVALUE_P.
1400 Add new and change some prototypes.
1401
1402 * decl.c (init_nonvalue_struct): New function to generate
1403 initialisation code for non-value structs.
1404 (init_nonvalue_array): New function to generate initialisation
1405 code for non-value array's.
1406 (do_decl): Call one of the above mentioned functions in case
1407 we have a mode with the non-value property.
1408 (start_chill_function): Print error message if a non-value mode
1409 gets returned without LOC and check for arguments of non-value
1410 modes only gets passed by LOC.
1411
1412 * grant.c (print_proc_tail): Fix for procedure returning LOC.
1413
1414 * inout.c (build_io_types): Set CH_TYPE__NONVALUE_P on
1415 association_type_node.
1416 (invalidate_access_recordmode): New function to set the
1417 record mode of an ACCESS to error_mark_node in case of
1418 record mode has the non-value property.
1419 (build_text_mode): Set CH_TYPE_NONNVALUE_P.
1420 (build_access_mode, build_chill_gettextaccess): Deto.
1421 (check_exprlist): Correct processing of repetition factor.
1422
1423 * lex.c (readstring): Correct processing of control
1424 sequences of the form '^([H | D | O | B]'xx)'.
1425
1426 * loop.c: Cleanup iterator handling (done by Per).
1427 (nonvalue_begin_loop_scope, nonvalue_end_loop_scope): New
1428 functions for starting and ending a loop scope in case
1429 of initialising an array with non-value property.
1430
1431 * parse.c (check_end_label): Remove '\n' from error message.
1432 (parse_loc_declaration): Print error in case of loc-identity
1433 declaration without initialisation or with keyword INIT.
1434 (parse_do_action): Clean up iterator handling (done by Per).
1435
1436 * satisfy.c (safe_satisfy_decl (case TYPE_DECL)): Print an error
1437 message in case of TYPE_DECL is a signal and the mode has the
1438 non-value property.
1439 (satisfy (case ARRAY_TYPE)): Set CH_TYPE_NONVALUE_P of the
1440 the array type if the array element mode has the non-value
1441 property.
1442 (satisfy case RECORD_TYPE)): Set CH_NONVALUE_P on the record
1443 type if one of the fields have the non-value property. If the
1444 record is a buffer mode and the element mode of the buffer has
1445 the non-value-p., invalidate it (see
1446 tasking.c (invalidate_buffer_element_mode). Same for access modes.
1447
1448 * tasking.c (build_signal_descriptor): If the signal type have
1449 the non-value property, do nothing.
1450 (build_receive_signal_case_label): Don't do an assignment if the
1451 signal type have the non-value property.
1452 (build_receive_buffer_case_label): Add check for buffer element
1453 mode is ERROR_MARK.
1454 (expand_send_buffer): Deto.
1455 (build_buffer_type): Set CH_TYPE_NONVALUE_P on buffer mode.
1456 (invalidate_buffer_element_mode): New function to set type of
1457 buffer element mode to error_mark_node.
1458 (build_event_type): Set CH_TYPE_NONVALUE_P on event mode.
1459
1460Wed Nov 15 13:26:20 1995 Jeffrey A Law (law@cygnus.com)
1461
1462 * inout.c (intsize_of_charsexpr): Move declaration to top
1463 of file to avoid error from solaris2.5 cc.
1464
1465Thu Nov 9 02:50:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
1466
1467 * satisfy.c (satisfy): For a RECORD_TYPE, which is an ACCESS or TEXT
1468 mode, temporarily reset maximum_field_alignment to 0 before
1469 layouting it to be compatible with the runtime library.
1470
1471 * inout.c (build_chill_gettextaccess): Deto.
1472
1473Mon Nov 6 04:12:06 1995 Wilfried Moser <moser@rtl.cygnus.com>
1474
1475 * decl.c (do_decl): If type is READonly, add check if an
1476 ASSOCIATION, ACCESS, TEXT, BUFFER, or EVENT will be declared
1477 and print an error if this is true. Variables of this modes
1478 may not be declared READonly.
1479 Add check for mode is one of the above and an init value was
1480 given. This is also not allowed.
1481 Add initialisation of variables of the above modes during
1482 runtime. This influence the mechanism for detecting to
1483 build a constructor.
1484 (push_modedef): NEW- or SYNMODES of ASSOCIATION, ACCESS, TEXT,
1485 BUFFER, and EVENT mode must not be READonly.
1486 (start_chill_function): Arguments of modes ASSOCIATION, ACCESS,
1487 TEXT, BUFFER, or EVENT may be passed only by LOC. Add this check.
1488 (declare_predefined_file): Move to inout.c.
1489 (init_decl_processing): Add definitions for new built-in's.
1490 (finish_outer_function): Build a constructor only if
1491 build_constructor is set.
1492
1493 * except.c: On Linux native, setjmp is __setjmp.
1494
1495 * expr.c (build_chill_component_ref): New function. It gets called
1496 from parse.c instead of build_component_ref. Functions checks if the
1497 user tries to access a field of an ACCESS, ASSOCIATION, BUFFER,
1498 EVENT, INSTANCE, or TEXT mode, which actually is not allowed.
1499 (build_chill_floatcall): New function to resolve CHILL's floating
1500 point builtin calls (SIN, COS, TAN, etc.).
1501 (build_allocate_getstack, build_chill_allocate, build_chill_getstack,
1502 build_chill_terminate): New functions to resolve CHILL's ALLOCATE,
1503 GETSTACK, and TERMINATE built-in's.
1504 (build_generalized_call): Process new built-in's.
1505
1506 * grant.c (decode_mode): Add processing of ACCESS and TEXT modes.
1507 (decode_mode_selective): deto.
1508
1509 * inout.c: Completely rewritten for implementing Chapter 7 of
1510 Z.200 (input and output).
1511
1512 * lex.c (yylex): An '_' after a '.' doesn't mean, that we are
1513 parsing numbers.
1514
1515 * lex.h (enum rid): Add RID_ASSOCIATION.
1516
1517 * parse.c: New flag build_constructor to indicate if a constructor
1518 should be generated at the end of compilation or not. See
1519 decl.c(do_decl).
1520 (parse_begin_end_block): Don't emit a line note.
1521 (parse_primval): Call build_chill_component_ref instead of
1522 build_component_ref.
1523 (parse_opt_mode): Process ACCESS modes, ASSOCIATION modes, TEXT
1524 modes, USAGE modes, WHERE modes.
1525
1526 * satisfy.c (safe_satisfy_decl): Check if a SYN is of mode ASSOCIATION,
1527 ACCESS, TEXT, BUFFER, or EVENT and print an error in this case.
1528 (satisfy (case RECORD_TYPE)): If exp is TEXT mode, check the text length.
1529
1530 * typeck.c (extract_constant_from_buffer): Fix thinko in case
1531 of ! BYTES_BIG_ENDIAN.
1532 (build_chill_cast): Implement representation conversion between
1533 INT's and REAL's.
1534 (chill_similar): Add check of ACCESSes.
1535 (layout_chill_range_type): Check for real ranges and print
1536 sorry message.
1537
1538 * Make-lang.in: Change compiler version.
1539 chill also depends on Makefile.
1540
1541 * chill.in: Process command line option -Xlinker like -Tdata.
1542
1543 * ch-tree.h: New macros CH_IS_ASSOCIATION_MODE, CH_IS_ACCESS_MODE,
1544 CH_IS_USAGE_MODE, CH_IS_WHERE_MODE, and CH_IS_TEXT_MODE.
1545 Add some prototypes.
1546 (enum chill_built_in_function): Add BUILT_IN_ARCCOS, BUILT_IN_ARCSIN,
1547 BUILT_IN_CH_DELETE, BUILT_IN_LOG, BUILT_IN_SQRT.
1548 Remove BUILT_IN_READLEN, BUILT_IN_ROUND, BUILT_IN_SKIPRECORD.
1549
1550 * gperf, hash.h: Remove definition of WHERE.
1551
1552Thu Oct 5 06:22:19 1995 Wilfried Moser <moser@rtl.cygnus.com>
1553
1554 * grant.c (decode_constant_selective): Add some newlines
1555 to generated SPEC MODULE.
1556
1557Wed Oct 4 18:16:44 1995 Per Bothner <bothner@kalessin.cygnus.com>
1558
1559 * decl.c (pop_chill_function_context): Remove some bogosity.
1560
1561Wed Oct 4 05:14:00 1995 Wilfried Moser <moser@rtl.cygnus.com>
1562
1563 * grant.c (print_integer_selective): In case of a RANGE of
1564 a SET mode, try to find and grant the parent mode.
1565 (grant_seized_identifier): Dont write it out, if the identifier
1566 doesn't have a seize file (it may come from a SPEC MODULE
1567 defined in the compilation unit).
1568
1569Fri Sep 22 14:04:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1570
1571 * actions.c (check_non_null): Wrap expr in SAVE_EXPR if needed.
1572
1573Wed Sep 20 13:51:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1574
1575 * expr.c (force_addr_of): Optimize an INDIRECT_REF using
1576 convert_to_pointer rather than convert (which in case of
1577 a REFERENCE_TYPE would losingly call convert_from_reference).
1578
1579Wed Sep 20 04:03:58 1995 Wilfried Moser <moser@rtl.cygnus.com>
1580
1581 * inout.c (build_chill_writetext): In case of character string:
1582 Add processing of a concatenation including varying character
1583 strings.
1584 (intsize_of_charsexpr, get_max_size): New functions to determine
1585 the maximum size of varying character strings.
1586
1587 * grant.c (decode_constant, decode_constant_selective): Add
1588 processing of COMPONENT_REF.
1589
1590 * satisfy.c (satisfy (case COMPONENT_REF)): Correct handling
1591 for SYNONYM's with STRUCT mode.
1592
1593Mon Sep 18 17:25:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1594
1595 * expr.c (force_addr_of): Optimize of value is INDIRECT_REF.
1596 * typeck.c (build_chill_slice): Call mark_addressable.
1597
1598Mon Sep 18 14:38:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1599
1600 * expr.c (chill_expand_expr): Make a copy before calling __psslice
1601 if the array is neither referable nor BLKmode.
1602 (build_set_expr): Renamed to ...
1603 (build_compare_set_expr): Allow one opperand to be boolean.
1604 (build_compare_expr): Check both operands for SET_EXPR,
1605 before checking for discrete types (for -fold-strings).
1606
1607Fri Sep 15 11:35:43 1995 Per Bothner <bothner@kalessin.cygnus.com>
1608
1609 * satisfy.c (safe_satisfy_decl): For a CONST_DECL, set TREE_TYPE
1610 to error_mark_node or error.
1611
1612Fri Sep 15 00:26:02 1995 Wilfried Moser <moser@rtl.cygnus.com>
1613
1614 * grant.c (decode_constant_selective): Add processing of
1615 TREE_OPERAND (val, 0).
1616
1617Wed Sep 13 14:24:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1618
1619 * ch-tree.h (CH_IS_INSTANCE_MODE): Redefine to use CH_SIMILAR.
1620 * convert.c (convert): Use CH_IS_INSTANCE_MODE.
1621 * inout.c (build_chill_writetext): Likewise.
1622 * tasking.c (build_receive_case_start, build_delay_case_start): Ditto.
1623 * parse.c (parse_start_action): Remove redundant tests.
1624 * tasking.c (build_start_process): Also test that optset is instance.
1625 (build_copy_number, build_proc_type, expand_send_signal): Use
1626 CH_IS_INSTANCE_MODE, not CH_COMPATIBLE.
1627 * actions.c, convert.c (instance_type_node): Remove redundant
1628 extern declaration.
1629
1630Wed Sep 13 14:19:37 1995 Per Bothner <bothner@kalessin.cygnus.com>
1631
1632 * regression.awk2: Use \ line-continuation-markers
1633 to remove gratuitous gawk dependency.
1634
1635Mon Sep 11 17:26:53 1995 Per Bothner <bothner@kalessin.cygnus.com>
1636
1637 * typeck.c (build_chill_modify_expr): Use force_addr_of.
1638 (mark_addressable): Handle INDIRECT_REF of ADDR_EXPR.
1639
1640 * typeck.c (check_case_value), ch-tree.h: Moved to ...
1641 * actions.c (check_case_value): ... here. Also check for
1642 compatibility with selector (which is passed as extra argument).
1643 (chill_handle_case_label_range): Take selector argument,
1644 and use it to call check_case_value.
1645 (chill_handle_case_label): Take extra selector argument.
1646 * ch-tree.h (chill_handle_case_labe): Add prototype.
1647 * except.c expr.c, parse.c: Remove chill_handle_case_label prototypes.
1648 * actions.c, except.c, expr.c, parse.c: Pass extra selector
1649 argument to function calls as needed.
1650
1651Mon Aug 28 02:47:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1652
1653 * grant.c (decode_constant_selective): Fix a bug in writing items
1654 to grant file.
1655
1656Thu Aug 24 04:52:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1657
1658 * parse.c (parse_case_expression): Print warning only in
1659 pass 1.
1660
1661 * actions.c (print_missing_cases): Correct printing of
1662 character ranges.
1663
1664Wed Aug 23 15:26:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
1665
1666 * parse.c (parse_case_label_list): Take extra parameter to
1667 indicate if we're parsing a tuple or a case-label-spec.
1668 If former, don't allow '(' EXPR ')' ',' but backup instead.
1669 (parse_case_label_specification, parse_tuple_element):
1670 Pass appropriate new argument to parse_case_label_list.
1671
1672Wed Aug 23 06:08:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
1673
1674 * inout.c (build_chill_readtext): Add processing of BOOL's and
1675 CHARS(n).
1676
1677 * grant.c (decode_constant): Process nonprintable characters
1678 in a STRING_CST.
1679
1680Fri Aug 11 15:26:13 1995 Per Bothner <bothner@kalessin.cygnus.com>
1681
1682 * except.c (initialize_exceptions): Name setjmp "setjmp" and not
1683 "__builtin_setjmp" (which is not recognized by expand_call).
1684
1685Wed Aug 9 23:35:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
1686
1687 * loop.c (end_loop_scope): Need to call kept_level_p,
1688 in argument to poplevel.
1689
1690Wed Aug 9 05:48:30 1995 Wilfried Moser <moser@rtl.cygnus.com>
1691
1692 * Make-lang.in (CHILL.install-common): Don't install chill-cross (this
1693 file might be empty). Install chill.install instead.
1694
1695Tue Aug 8 21:46:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
1696
1697 * loop.c (end_loop_scope): Do poplevel *after* expand_end_bindings.
1698
1699Tue Aug 8 00:51:09 1995 Wilfried Moser <moser@rtl.cygnus.com>
1700
1701 * tasking.c (build_process_header): Also set DECL_ASSEMBLER_NAME
1702 of PARAM_DECL, since otherwise dbxout_symbol_name may barf.
1703
1704 * decl.c (start_chill_function): Likewise ...
1705
1706Mon Aug 7 18:35:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1707
1708 * tasking.c (build_process_wrapper): Also set DECL_ASSEMBLER_NAME
1709 of PARM_DECL, since otherwise dbxout_symbol_name may barf.
1710
1711Mon Jul 31 14:32:33 1995 Per Bothner <bothner@kalessin.cygnus.com>
1712
1713 * loop.c: Re-written implementation of powerset iteration.
1714 (declare_temps): iter_var is now integer index into bitstring,
1715 and powerset_temp just uses save_expr (normally needs no temp).
1716 (top_loop_end_check): Pass index to start searching (from iter_var)
1717 to library function, instead of dependning on latter to clear old bits.
1718 (increment_temps): UNless DOWN, increment iter_var.
1719 * decl.c (init_decl_processing): Declare new types for
1720 __ffsetclrpowerset and __flsetclrpowerset (now misnamed...).
1721
1722Mon Jul 31 12:47:28 1995 Per Bothner <bothner@cygnus.com>
1723
1724 * convert.c (digest_array_tuple): Set TREE_STATIC if possible.
1725
1726Fri Jul 28 05:11:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
1727
1728 * lex.c (readstring): Process integer literals starting with
1729 H', D', or B' within a control sequence.
1730
1731Thu Jul 27 23:08:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
1732
1733 * parse.c (parse_do_action): Don't call push_action, but defer
1734 push_handler until begin_loop_scope.
1735 Call parse_opt_handler here, to move handler scope inside loop block.
1736 (parse_action): After do_action, nothing to do now.
1737 * loop.c (begin_loop_scope): Also call push_handler here.
1738 (declare_temps): Copy derived flag to user_var.
1739 (declare_temps): For POWERSET, always copy to temporary (even if
1740 constant), since the runtime clears bits from it.
1741
1742 * expr.c (build_chill_sizeof): Use convert_to_class.
1743 * satisfy.c (safe_satisfy_decl): Cleanup handling of CONST_DECL -
1744 set proper value of CH_DECL_FLAG on both the decl and its value.
1745
1746 * convert.c (digest_array_tuple); Slightly better errors.
1747
1748Wed Jul 26 22:13:39 1995 Per Bothner <bothner@cygnus.com>
1749
1750 * expr.c (expand_packed_set): Also allocate the CONSTRUCTOR itself.
1751 (fold_set_expr): Simplify accordingly.
1752 (build_concat_expr): Constant fold bitstring CONCAT_EXPRs.
1753
1754Thu Jul 13 12:21:22 1995 Per Bothner <bothner@kalessin.cygnus.com>
1755
1756 * typeck.c (build_chill_slice): Use build1 instead of build.
1757 * typeck.c (xtract_constant_from_buffer): Pass correct precision
1758 to lshift_double.
1759
1760 * typeck.c (expand_constant_to_buffer): Handle RANGE_EXPR index.
1761 * convert.c (digest_array_tuple): Generate RANGE_EXPR as index
1762 for tuples with ranges.
1763
1764Thu Jun 29 23:41:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
1765
1766 * typeck.c (build_chill_slice): Re-implement to use casts
1767 instead of build_chill_array_ref_1 (which doesn't always work).
1768 * convert.c (convert): Remove old bugs code.
1769
1770Tue Jun 27 05:00:04 1995 Wilfried Moser <moser@rtl.cygnus.com>
1771
1772 * parse.c (parse_if_action): Do PUSH_ACTION before parsing the
1773 expression so that a possible handler at the if action will
1774 be found.
1775 (parse_proc_body): New argument to indicate if the function
1776 raises exceptions or not. In case the function will raise
1777 exception: start a handler, parse the function and generate
1778 code for reraising the exceptions (call chill_reraise_exceptions).
1779
1780 * except.c (chill_reraise_exceptions): New function to generate
1781 code for reraising exceptions are specified at the function
1782 definition.
1783
1784 * ch-tree.h: Add prototype for chill_reraise_exceptions.
1785
1786 * decl.c (build_chill_function_type): When the function (type)
1787 raise an exception, generate two new arguments (additional to the
1788 formal parameters), the filename and linenumber of the caller.
1789 (start_chill_function): likewise...
1790
1791 * expr.c (build_chill_function_call): If the called function raises
1792 exceptions, give current filename and linnumber as aditional
1793 arguments.
1794
1795 * actions.c (build_cause_exception): Handle case when function
1796 propagates the exception.
1797
1798 * grant.c (print_proc_tail, print_proc_tail_selective): If the
1799 function(type) raises exceptions, don't process the last to
1800 parmeters of the formal argument list, they are compiler
1801 generated.
1802
1803 * typeck.c (chill_similar): In case of FUNCTION_TYPE: check if
1804 the exception lists are equal.
1805
1806Thu Jun 22 19:27:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
1807
1808 * loop.c (flag_local_loop_counter): Change default to 1.
1809 (end_loop_scope): Set 'keep' parameter in poplevel call.
1810 (declare)_temps): Don't set IDENTIFIER_LOCAL_VALUE, since that
1811 is handled (correctly!) by pushdecl.
1812 (begin_loop_scope): Call pushlevel here,
1813 * parse.c (parse_do_action): Move pushlevel so only called for WITH.
1814 * decl.c (struct scope): Remove n_incomplete field and its uses.
1815 (pushdecl): Re-write to use proclaim_decl. Remove old C-isms.
1816 (init_decl_processing): Re-name integer_type_node as "_cint" to
1817 remove complaint from pushdecl about chill_integer_type_node as "int".
1818
1819Tue Jun 20 18:15:58 1995 Doug Evans <dje@canuck.cygnus.com>
1820
1821 * Make-lang.in (chill-runtime): Restore patch to disable building of
1822 runtime libraries for cross compilers. This patch should remain
1823 until a build of a freshly checked out devo "just works".
1824
1825Mon Jun 19 06:01:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
1826
1827 * Make-lang.in: Update GNUCHILL_VERSION to 1.4.4.
1828
1829 * decl.c (init_decl_processing): Remove builtin function
1830 __cause_exception. New builtin functions __cause_ex1 and
1831 __unhandled_ex.
1832
1833 * except.c (is_handled): Return 0 when no handler found,
1834 1, if the handler is in local scope and 2, if function
1835 may propagate the exception.
1836
1837 * actions.c (build_cause_exception): New argument to
1838 indicate if a warning should be printed when
1839 causing an unhandled exception. Call is_handled here.
1840
1841 * ch-tree.h: Change prototype for build_cause_exception.
1842 New marco CH_ALREADY_GRANTED. Used in grant.c to determine if an
1843 identifier already has been written to grant file.
1844
1845 * grant.c (write_spec_module): If not GRANT ALL specified,
1846 write only this identifiers to grant file which are
1847 neccessary to form a prober grant file. This will shorten
1848 grant files and speed up compilation.
1849 (decode_constant_selective, decode_mode_selective,
1850 get_type_selective, decode_decl_selective,
1851 grant_array_type_selective, get_tag_value_selective,
1852 print_enumeral_selective, print_integer_selective,
1853 print_struct_selective, print_proc_tail_selective,
1854 grant_one_decl_selective): New functions.
1855
1856 * lex.c (yywrap): Remove writing of not yet written USE_SEIZE_FILE
1857 directives to grant file.
1858
1859 * parse.c (parse_on_exception_list): Fis constructing of
1860 exceptions list.
1861
1862Wed Jun 14 15:21:54 1995 Per Bothner <bothner@kalessin.cygnus.com>
1863
1864 * typeck.c (valid_array_index_p): Check for syntax error, where
1865 index is a mode, rather than a value.
1866
1867 * expr.c (build_chill_binary_op_1): Remove unused function.
1868
1869Sat Jun 10 11:36:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
1870
1871 * except.c (is_handled): New function.
1872 Various fixes here and there to make it work.
1873
1874 * parse.c (parse_param_name_list): Set DECL_ASSEMBLER_NAME.
1875 (Otherwise dbxout may crash.)
1876
1877 * satisfy.c (satisfy case FUNCTION_TYPE): Check for non-type result.
1878 * decl.c (start_chill_function): If result type was error_mark,
1879 kludge type chill_os result_decl to avoid extra errors.
1880 * actions.c (chill_expand_result, chill_expand_return): If type of
1881 chill_result_decl is error_mark, do nothing.
1882
1883 * typeck.c (chill_similar): Fix thinko in recent change.
1884
1885 * config-lang.in (diff_exclude): Remove ch/lex.c - now it's a
1886 true source file, and is never longer generated with [f]lex.
1887
1888 * regression.sh: Pass -s to make clean (to make it silent).
1889 Explicitly call gawk, instead of depending of '#!' to work.
1890 Add --objdir flags. Never send mail to bill.
1891
1892Thu Jun 8 15:08:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
1893
1894 * typeck.c (chill_similar): Add extra parameter. Use to to prevent
1895 infinite recursion.
1896 (chill_equivalent, chill_l_equivalent): Also add new parameter.
1897 * ch-tree.h (CH_SIMILAR, CH_EQUIVALENT): Modify to match.
1898
1899Tue Jun 6 17:14:49 1995 Per Bothner <bothner@kalessin.cygnus.com>
1900
1901 * loop.c (declare_temps): If -flocal-loop-counter, make sure to
1902 pushdecl the new variable (created with decl_temp1).
1903 And fix the type of the local variable for powerset iteration.
1904
1905Tue Jun 6 15:07:19 1995 Per Bothner <bothner@cygnus.com>
1906
1907 * typeck.c (mark_addressable): Handle ADDR_EXPR inside
1908 NOP_EXPR inside INDIRECT_EXPR. For TRUTH_ANDIF_EXPR,
1909 TRUTH_ORIF_EXPR, and COMPOUND_EXPR mark operand 1, not operand 0
1910 (which is used for range-checks and suchlike).
1911
1912Thu Jun 1 02:45:54 1995 Wilfried Moser <moser@rtl.cygnus.com>
1913
1914 * expr.c (build_set_expr): Do some optimizations for LE_EXPR and
1915 GE_EXPR (don't do invert_truthvalue, just switch operands).
1916
1917Wed May 31 14:00:38 1995 Doug Evans <dje@canuck.cygnus.com>
1918
1919 * lang-options.h: New file.
1920 * lang-specs.h: New file.
1921
1922Wed May 24 01:45:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
1923
1924 * actions.c (assign_stack_temp): Remove unneeded declaration.
1925
1926Tue May 23 00:17:38 1995 Per Bothner <bothner@kalessin.cygnus.com>
1927
1928 * parse.c (parse_on_exception_list): Return list of exception
1929 names in pass 1, not in pass 2. (Return non-NULL dummy if pass 2.)
1930 (parse_on_alternatives): Call chill_handle_on_labels even if ignoring.
1931 (parse_opt_handler): Likewise for chill_start_default_handler.
1932 * except.c (push_handler): Clear on_alt_list only if pass 1.
1933 (chill_handle_on_labels): Build on_alt_list in pass 1,
1934 retrieve it in pass 2.
1935
1936 Fix so that decl_temp1 does not expand_decl_init, which calls
1937 free_temp_slots, which loses in the middle on an expression.
1938 * decl.c (finish_decl): Don't call expand_decl_init.
1939 (do-decl): Do initialization assignment even if stack variable.
1940 * parse.c (parse_loc_declaration): Call free_temp_slots.
1941
1942 * decl.c (finish_decl), ch-tree.h: Remove last two always-NULL
1943 parameters. Cleanup never-used code.
1944 * decl.c, except.c: Update calls to finish_decl.
1945
1946 * decl.c (case_else_node): Define new variable.
1947 (init_decl_processing): Initialize it.
1948 (make_chill_variants): If variant label is case_else_node (i.e. it
1949 is (ELSE):), treat that as an ELSE variant.
1950 * ch-tree.h (case_else_node): Declare case_else_node.
1951 * parse.c (parse_case_label): Use case_else_node.
1952
1953Mon May 22 10:18:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
1954
1955 * grant.c (print_proc_tail): Also call print_proc_exceptions.
1956 (decode_decl): Don't explicitly call print_proc_exceptions for
1957 FUNCTION_DECL.
1958 (Net effect is that now exceptions are printed for FUNCTION_TYPE too.)
1959
1960 * actions.c (chill_convert_for_assignment): Use save_if_needed,
1961 instead of save_expr, in case value is a reference.
1962
1963 * typeck.c (build_chill_slice): Fix old thinko (missing call to
1964 build_pointer_type).
1965
1966 * actions.c (size_int): Remove unused and conflicting prototype.
1967
1968Wed May 17 16:23:20 1995 Per Bothner <bothner@kalessin.cygnus.com>
1969
1970 * actions.c (chill_convert_for_assignment): Call save_expr if
1971 range_checking (twice).
1972
1973Tue May 16 11:33:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
1974
1975 * typeck.c (layout_chill_range_type): Re-organize error checking.
1976 Add extra parameter to indicate if non-constant bounds are allowed.
1977 If bounds are bad, set them to the min_value of the parent.
1978 * ch-tree.h (layout_chill_range_type): Update declaration.
1979 * satisfy.c (satisfy): Update call of layout_chill_range_type.
1980 * typeck.c (build_chill_range_type): Likewise.
1981 * tree.c (build_string_type): Likewise.
1982
1983Tue May 16 00:37:51 1995 Wilfried Moser <moser@rtl.cygnus.com>
1984
1985 * expr.c (build_chill_sizeof): Fix bug in case of SIGNAL.
1986
1987Mon May 15 12:54:32 1995 Per Bothner <bothner@kalessin.cygnus.com>
1988
1989 * satisfy.c (satisfy): Supress error message for REF <error_mark>.
1990 * decl.c (push_modedef): Check for TREE_CODE != ERROR_MARK, instead
1991 of against error_mark_node. (smash_dummy_type can copy error marks.)
1992 (finish_decl): Simplify C-derived check for incomplete type,
1993 and suppress if it is an ERROR_MARK.
1994 Don't call rest_of_decl_compilation if type is an ERROR_MARK.
1995
1996Sun May 14 22:52:40 1995 Per Bothner <bothner@kalessin.cygnus.com>
1997
1998 * convert.c (convert): Handle array types with different modes.
1999
2000Thu May 11 15:52:12 1995 Per Bothner <bothner@kalessin.cygnus.com>
2001
2002 * loop.c (build_loop_iterator): Handle the case of a non-local
2003 loop counter having reference type.
2004
2005Thu May 11 07:04:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
2006
2007 * tasking.c (build_copy_number, build_gen_code, build_gen_inst,
2008 build_gen_ptype, build_proc_type): Set CH_DERIVED_FLAG on result
2009 to avoid erros when assigning to (comparing with) NEWMODEd INT's.
2010
2011Mon May 8 15:27:16 1995 Per Bothner <bothner@kalessin.cygnus.com>
2012
2013 * expr.c (build_chill_card): Do constant folding, if possible.
2014 (build_max_min): Do constant folding for MIN/MAX of powersets.
2015
2016Mon May 8 06:57:21 1995 Wilfried Moser <moser@rtl.cygnus.com>
2017
2018 * expr.c (build_chill_sizeof): Add corect processing of a
2019 SIGNAL definition without data.
2020
2021Sat May 6 16:27:10 1995 Doug Evans <dje@canuck.cygnus.com>
2022
2023 * Make-lang.in (maintainer-clean): Renamed from realclean.
2024
2025Tue May 2 06:16:23 1995 Wilfried Moser <moser@rtl.cygnus.com>
2026
2027 * parse.c (parse_asm_action): Do PUSH_ACTION unconditionally,
2028 otherwise "handler stack" will get out of sync.
2029
2030Mon Apr 24 09:51:07 1995 Per Bothner <bothner@rtl.cygnus.com>
2031
2032 Fixes to support module-level non-static temporary variables.
2033 * parse.c (parse_loc_declaration): If all_static_flag and not
2034 resursive, tell do_decls to make new decl static.
2035 * decl.c (do_decl): Don't use maybe_static function to force static.
2036 (do_decl): Don't let initialization count as "using" the variable.
2037 (maybe_static): Removed.
2038 (finish_decl): Call expand_decl and expand_decl_init if needed
2039 (as it will be for non-static temporaries).
2040
2041Fri Apr 21 21:02:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2042
2043 * convert.c, expr,c typeck.c (expand_decl): Remove usused declaration.
2044
2045Fri Apr 21 02:27:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2046
2047 * expr.c (build_set_expr): Fix thinko: GE(x,y) is not eqivalent to
2048 LT(y,x) its rather equivalent to NOT (LT(x,y)). Same is true for
2049 GT(x,y), its not equiv. to LE(y,x), its equiv. to NOT (LE(x,y)).
2050
2051Thu Apr 20 15:29:05 1995 Per Bothner <bothner@kalessin.cygnus.com>
2052
2053 * parse.c (yytext, finput): Remove unused declarations.
2054
2055 * parse.c (proc_action_level): New variable.
2056 (parse_proc_body): New function. Common code from
2057 parse_procedure_definition and parse_process_definition moved here.
2058 Save, set, and restore proc_action_level from action_nesting_level.
2059 (parse_action case RETURN): Pass proc_action_level to
2060 expand_goto_except_cleanup.
2061
2062Thu Apr 20 06:02:20 1995 Wilfried Moser <moser@rtl.cygnus.com>
2063
2064 * grant.c (really_grant_this): Add processing of LABEL_DECL's
2065 (don't grant them).
2066
2067Tue Apr 18 18:16:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
2068
2069 * lex.c ( convert_bitstring): Use BYTES_BIG_ENDIAN rather
2070 than BITS_BIG_ENDIAN to layout bits within bitstring.
2071 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
2072 Likewise.
2073
2074Sun Apr 16 19:55:51 1995 Per Bothner <bothner@kalessin.cygnus.com>
2075
2076 * decl.c (finish_chill_function): If currently global_function_decl,
2077 don't set outer_function to global_function_decl.
2078
2079Wed Apr 12 22:45:06 1995 Per Bothner <bothner@kalessin.cygnus.com>
2080
2081 * decl.c (start_chill_function): Normal functions are nested.
2082 (finish_chill_function): No longer takes a 'nested' parameter.
2083 Normal functions are nested.
2084 Never call permanent_allocation, since it does little good (all normal
2085 functions are nested), and trashes some things we need.
2086 (finish_outer_function): Update call to finish_chill_function.
2087 * grant.c (chill_finish_compile): Likewise.
2088 * tasking.c (build_process_wrapper): Likewise.
2089 * parse.c (end_function): Likewise.
2090 * ch-tree.h (finish_chill_function): Update declaration.
2091
2092 * parse.c (parse_asm_clobbers): Re-enable.
2093 (expand_asm_operands): function.
2094 (parse_asm_action): Re-enable. Don't do anything in pass 1.
2095
2096 * typeck.c (build_chill_slice): Do constant folding.
2097 Also, work around problem where expand_expr constant folds ARRAY_REF.
2098 (sort_constructor): Remove unused function.
2099
2100 * expr.c (chill_expand_expr case CONCAT_EXPR): Make sure we
2101 emit_block_move if needed with correct size.
2102
2103 * inout.c (build_chill_io_list_type): Simplify.
2104
2105 * lex.c (check_newline): Uncomment some dwarf stuff,
2106 which needs get_directive_line, which we no longer have.
2107
2108Wed Apr 5 16:05:15 1995 Per Bothner <bothner@kalessin.cygnus.com>
2109
2110 * Makefile.in (C_OBJS, xcc1chill): Removed. We no longer
2111 link cc1chill with ../c-typeck.o ../c-aux-info.o ../c-common.o.
2112
2113 * expr.c (build_chill_component_ref): Renamed to build_component_ref.
2114 (chill_truthvalue_conversion): Renamed to truthvalue_conversion.
2115 * decl.c, expr.c, inout.c, loop.c, parse.c, tasking.c, timing.c,
2116 typeck.c: Update accordingly.
2117 * typeck.c (valid_array_index_p): We only need to save_expr (index)
2118 if we're range-checking.
2119 * typeck.c (unsigned_type, signed_type, signed_or_unsigned_type,
2120 mark_addressable, initializer_constant_valid_p, check_case_value,
2121 type_for_size, type_for_mode): New functions, copied from
2122 ../c-common.c and ../c-typeck.c.
2123
2124 * lang.c (incomplete_type_error): New. (Was in c-common.o.)
2125 * decl.c (constant_expression_warning): New. (Was in c-common.o.)
2126
2127 * lang.c (string_index_type_dummy): Remove definition from here.
2128 * tree.c (string_index_type_dummy): Define here instead.
2129 * lang.c (lang_init): Move init of string_index_type_dummy
2130 (which is too late) from here ...
2131 * decl.c (init_decl_processing): ... to here.
2132
2133 * decl.c (signed_boolean_type_node): New variable.
2134 (init_decl_processing): Initialize it.
2135
2136 * parse.c: Comment out ASM action support, for now.
2137
2138 * loop.c (maybe_skip_loop): Make return void, not int.
2139 Use build_compare_discrete_expr.
2140 (increment_temps): Use chill_expand_assignment.
2141
2142Thu Mar 30 23:28:28 1995 Per Bothner <bothner@kalessin.cygnus.com>
2143
2144 * decl.c (do_decl): If default-initializing variable-length
2145 string to "" (or []), make it lifetime_bound.
2146
2147Thu Mar 30 02:51:59 1995 Wilfried Moser <moser@rtl.cygnus.com>
2148
2149 * parse.h, hash.h, gperf: New compiler directives
2150 EMPTY_ON and EMPTY_OFF.
2151
2152 * lex.c: New variables empty_checking and runtime_checking_flag.
2153 (ch_lex_init): Initialize empty_checking and range_checking
2154 when switching from pass 1 to 2.
2155 (read_directive): Add processing of EMPTY_OFF/ON.
2156
2157 * expr.c (build_chill_indirect_ref): New argument do_empty_check
2158 to indicate if null pointer checking should be done or not.
2159 It's not always necessary to do a null pointer check.
2160
2161 * decl.c (lookup_name): Add argument to call to
2162 build_chill_indirect_ref.
2163 (shadow_record_fields): ...
2164 * parse.c (parse_primval): ...
2165 * tasking.c (build_process_wrapper): ...
2166 (build_receive_buffer_case_label): ...
2167
2168 * ch-tree.h: Change prototype of build_chill_indirect_ref.
2169 Add declaration of runtime_checking_flag and empty_checking.
2170
2171 * actions.c (check_non_null): Do null pointer checking only
2172 when enabled (empty_checking != 0).
2173
2174Wed Mar 29 15:18:23 1995 Per Bothner <bothner@kalessin.cygnus.com>
2175
2176 * actions.c (chill_expand_assignment): Add 'else' so we don't do
2177 regular assignment in addition to spacial assignment (e.g. for slices).
2178
2179 * ch-tree.h (convert_to_discrete): Add declaration.
2180 * typeck.c (convert_to_discrete): New function.
2181 (valid_array_index_p): Use convert_to_discrete. Also simplify.
2182 (build_chill_slice): Say sorry if variable-length bitstring.
2183 (build_chill_slice_with_length): Re-do bounds check.
2184 * expr.c (check_case_selector): Re-write to use convert_to_discrete.
2185 (build_chill_num, build_chill_pred_or_succ): Use convert_to_discrete.
2186
2187 * decl.c (do_decl): Don't do redundant chill_convert_for_assignment.
2188
2189Wed Mar 29 00:00:29 1995 Wilfried Moser <moser@rtl.cygnus.com>
2190
2191 * expr.c (build_chill_num): need_unsigned have to be set for
2192 characyer strings of length 1 too. Happens when compiling
2193 with -fold-strings and do NUM(a(i)).
2194
2195 * parse.c (parse_loc_declaration): Print error message only
2196 in pass 1.
2197 (parse_mode): Likewise ...
2198
2199 * tasking.c (build_tasking_message_type): Temporarily reset
2200 maximum_field_alignment to get proper aligned temp. variables
2201 gets passed to runtime system.
2202
2203Tue Mar 28 00:08:06 1995 Per Bothner <bothner@cygnus.com>
2204
2205 * typeck.c (my_build_array-ref): Merged into build_chill_array_ref_1.
2206 But don't convert index to integer_type_node. And we don't need to
2207 check the we're given an array.
2208 * typeck.c (valid_array_index_p): If flag_old_strings, convert
2209 chars(1) to char and bools(1) to bool before index checking.
2210
2211Sun Mar 26 22:42:39 1995 Per Bothner <bothner@cygnus.com>
2212
2213 * ch-tree.h (struct module): Added next module field.
2214 * decl.c (first_mdoule, next_module): New global variables.
2215 (switch_to_pass_2): Re-initialize next_module.
2216 (push_module): In pass 2, reuse the same module objects from pass 1.
2217
2218 * decl.c (declare_predefined_file): Set DECL_IN_SYSTEM_HEADER.
2219
2220 * typeck.c (valid_array_index_p): Do range check on original index,
2221 before we convert to domain type.
2222
2223Fri Mar 24 11:43:39 1995 Per Bothner <bothner@kalessin.cygnus.com>
2224
2225 * parse.c (parse_fixed_field): New function.
2226 (parse_variant_field_list): New function replaces parse_simple_fields.
2227 (parse_variant_alternative, parse_field): Update to use new functions.
2228 (parse_field): Error message if neither CASE nor NAME.
2229
2230 * actions.c (check_non_null): New function - checks for NULL pointers.
2231 * ch-tree.h (check_non_null): New declaration.
2232 * tasking.c (expand_send_signal): Call check_non_null.
2233 * expr.c (build_chill_indirect_ref, build_chill_function_call): Same.
2234 * lex.h (enum rid): Add RID_EMPTY.
2235 * lex.c (init_lex): Initialize ridpointers[RID_EMPTY].
2236
2237 * lex.c (read_directive): Remove 2 calls of to_global_binding_level
2238
2239Wed Mar 22 16:36:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
2240
2241 * tasking.c (tasking_list): Change to chain of TREE_VEcs, rather than
2242 chain of (nested) TREE_LIST nodes.
2243 (TASK_INFO_PDECL, TASK_INFO_ENTRY, TASK_INFO_CODE_DECL,
2244 TASK_INFO_STUFF_NUM, TASK_INFO_STUFF_TYPE): New macros.
2245 (tasking_setup, tasking_registry, add_taskstuff_to_list): Use them.
2246
2247 * ch-tree.h (C_TYPE_FIELDS_READONLY): Rename to TYPE_FIELDS_READONLY.
2248 (TYPE_READONLY_PROPERTY): New macro, to match Z.200 concept.
2249 * typeck.c (build_chill_modify_expr): Don't check for read-only-ness,
2250 since it is redundant for chill_expand_assignment and breaks
2251 reach-bound initialization in do_decl.
2252 (my_build_array_ref): Simplify by using TYPE_READONLY_PROPERTY.
2253 (layout_chill_array_type): Set TYPE_FIELDS_READONLY if appropriate.
2254 * actions.c (chill_expand_assignment): Check TYPE_READONLY_PROPERTY
2255 instead of TREE_READONLY of the target's type.
2256 * expr.c (build_chill_function_call): Likewise.
2257 * inout.c (build_chill_readtext): Likewise.
2258 * decl.c (do_decl): Likewise, to check if init is required.
2259
2260 * typeck.c (build_chill_bitref): Removed unused RANGE_EXPR hack.
2261
2262Wed Mar 22 07:52:52 1995 Wilfried Moser <moser@rtl.cygnus.com>
2263
2264 * tasking.c (build_start_process): Get a unique identifier for
2265 the start arguments.
2266
2267Tue Mar 21 07:36:40 1995 Wilfried Moser <moser@rtl.cygnus.com>
2268
2269 * expr.c (fold_set_expr): At label build_result: Add setting unused
2270 bits to 0. This is the same as the runtime library does.
2271
2272 * parse.c (expect): Function returns now int, 0, if the expected
2273 token was not got, 1 when it was found.
2274 (parse_synonym_definition): In case of syntax error (missing =),
2275 set expr to NULL_TREE and mode to error_mark to avoid subsequent
2276 segfaults.
2277
2278 * chill.texi: Add chapter about differences to Z.200/1988.
2279
2280Mon Mar 20 18:01:11 1995 Per Bothner <bothner@kalessin.cygnus.com>
2281
2282 * lang.c (chill_print_error_function): New function, to report
2283 module name if not inside a function.
2284 (lang_init): Set print_error_function to chill_print_error_function.
2285
2286 * tasking.c (max_queue_size, buffer_element_mode): Cleanup
2287 to remove unreachable code.
2288
2289 * grant.c (chill_finish_compile): Avoid doing a lookup_name
2290 to find init function (which got broken by recent nesting re-org).
2291
2292 * decl.c (poplevel): Push and pop function context around
2293 call to output_inline_function (as done for C and C++).
2294
2295Thu Mar 16 17:56:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2296
2297 * parse.c (parse_pass_1_2): If unknown top-level token, skip pass 2.
2298
2299Wed Mar 8 13:54:33 1995 Doug Evans <dje@canuck.cygnus.com>
2300
2301 * Make-lang.in (chill-runtime): Temporarily disable building of
2302 runtime libraries for cross compilers.
2303
2304Mon Mar 6 23:36:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2305
2306 * parse.c, decl.c: Remove use of FUNCTION_NEEDS_STATIC_CHAIN.
2307
2308 * configure: Merge in tolerance for new flags (e.g. --x-libraries).
2309
2310Sat Mar 4 15:47:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2311
2312 * expr.c (build_chill_arrow_expr): Error if pass == 1.
2313
2314Thu Mar 2 19:28:07 1995 Per Bothner <bothner@kalessin.cygnus.com>
2315
2316 * decl.c (do_decl): Setting seen_action must be done in pass 1.
2317 (save_decl): Don't set DECL_CONTEXT to global_function_decl.
2318 (start_chill_function): Simplify due to above change.
2319
2320 * parse.c (parse_case_label): Hack to distinguish (ELSE) from (*).
2321 * grant.c (decode_constant): Emit ELSE in case label.
2322
2323 * parse.c (serious_errors): New global variable.
2324 * parse.c (to_global_binding_level): Set serious_errors.
2325 (parse_pass_1_2): Exit after pass 1 if serious_errors > 0.
2326 * lex.c (readstring): Recover from unterminstaed control sequence.
2327
2328Tue Feb 28 17:08:08 1995 Per Bothner <bothner@kalessin.cygnus.com>
2329
2330 Re-write of module-level actions. No longer generate a module
2331 function for module-level actions. Instead, put them inside
2332 a new global dummy function. Nest everything logically inside it.
2333
2334 * lex.h, grant.c (chill_module_name): Removed declaration.
2335 * grant.c (write_spec_module): Instead use current_module->name.
2336 * grant.c (chill_start_module_code, chill_finish_module_code):
2337 Removed.
2338 * grant.c (chill_finish_compile): Make rtl for global function.
2339
2340 * actions,c (push_action): Don't call chill_start_module_code.
2341 * expr.c (build_chill_function_call, build_generalized_call):
2342 Likewise.
2343 * parse.c (INIT_ACTION): Likewise.
2344
2345 * parse.c (seen_action): New variable.
2346 * parse.c (end_function): Always call pop_chill_function_context.
2347 (parse_procedure_definition): Always call push_chill_function_context.
2348 (parse_modulion): Parse optional handler.
2349 (parse_modulion, parse_spec_module): Do find_granted_decls.
2350 (parse_action): Set seen_action if global and a real action.
2351 ([arse_program): Call start_outer_function and finish_outer_function.
2352
2353 * ch-tree.h: Appropriate updates.
2354
2355 * tasking.c (generate_tasking_code_variable): Make it lifetime-bound.
2356 (build_process_header): Always push_chill_function_context;
2357 we are now always nested.
2358 (build_process_wrapper): Always pop_chill_function_context.
2359
2360 * tasking.c (build_start_process): Only expand_start_bindings and
2361 expand_end_bindings if pass 2.
2362
2363 * decl.c (global_function_decl): New variable.
2364 (do_decl): Implement reach-bound initialization of static variables.
2365 (start_chill_function): Set DECL_CONTEXT to NULL if
2366 it would be global_function_decl (so as to not confuse gcc backend).
2367 (start_chill_function, finish_chill_function): If compiling
2368 global_function_decl in pass 2 and !seen_action, suppress it.
2369 (set_module_name): New function.
2370 (global_bindings_p): Re-defined to check against global_function_decl.
2371 (start_outer_function, finish_outer_function): New functions.
2372
2373Tue Feb 28 16:00:03 1995 Per Bothner <bothner@kalessin.cygnus.com>
2374
2375 * typeck.c (build_chill_modify_expr): Inline logic from
2376 chill_expand_array_assignment,
2377 * actions.c (chill_expand_array_assignment): Removed.
2378 (chill_expand_assignment): Remove call to removed function.
2379
2380 * lex.c (reinit_parse_for_function): Removed empty unused function.
2381 * decl.c (start_chill_function): Don't call removed function.
2382
2383Tue Feb 28 00:29:51 1995 Per Bothner <bothner@cygnus.com>
2384
2385 * configure: Merge in code for calculating host, build, and
2386 target and canon_{host,build,target} from ../configure.
2387 Fix calculation of mainsrcdir. Host canon_* variables
2388 to merge in build-make (as in ../configure).
2389
2390Sun Feb 26 18:59:02 1995 Per Bothner <bothner@kalessin.cygnus.com>
2391
2392 * typeck.c (expand_constant_to_buffer): Use new function
2393 get_set_constructor_bytes.
2394
2395Tue Feb 21 01:41:56 1995 Wilfried Moser <moser@rtl.cygnus.com>
2396
2397 * inout.c (build_chill_writetext): Add processing of
2398 conditional expressions in argument list.
2399
2400 * parse.c (parse_opt_name_string): Print error message only
2401 in pass 1.
2402
2403 * chill.texi: Add chapter about compiler directives.
2404
2405Tue Feb 14 16:45:19 1995 Per Bothner <bothner@kalessin.cygnus.com>
2406
2407 * decl.c (start_chill_function): Set FUNCTION_NEEDS_STATIC_CHAIN
2408 unless nested.
2409
2410 * decl.c (decl_temp1): Make lifetime_bound iff static.
2411
2412Fri Feb 3 04:30:28 1995 Wilfried Moser <moser@rtl.cygnus.com>
2413
2414 * grant.c (really_grant_this, search_in_list): New static
2415 functions to determine if a decl should be written to
2416 grant file.
2417 (write_spec_module): Add call to really_grant_this.
2418
2419Fri Jan 27 00:06:12 1995 Wilfried Moser <moser@rtl.cygnus.com>
2420
2421 * actions.c (check_expression): Apply Per's patch.
2422 (chill_expand_result): New argument to indicate if we come
2423 from a RETURN or RESULT action. Change various error messages.
2424
2425 * ch-tree.h: New macro CH_USE_SEIZEFILE_RESTRICTED.
2426 New argument for chill_expand_result.
2427
2428 * chill.in: In case of -fgrant-only, clear library, libpath and
2429 startfile to avoid warnings from gcc.
2430
2431 * gperf, hash.h: New compiler directive USE_SEIZE_FILE_RESTRICTED.
2432
2433 * parse.h (enum terminal): Add USE_SEIZE_FILE_RESTRICTED.
2434
2435 * grant.c (decode_decl): Don't write USE_SEIZE_FILE directive
2436 and subsequent SEIZEs to grant file, if the seize file is
2437 used restricted.
2438
2439 * lex.c (read_directive): Process new compiler directive
2440 USE_SEIZE_FILE_RESTRICTED.
2441 (handle_use_seizefile_directive): Same as above.
2442 (yywrap): Don't write USE_SEIZE_FILE directive to grant file
2443 if this seize file is used restricted.
2444
2445 * parse.c (parse_action, case RETURN): Change RETURN expr action
2446 to RESULT expr; RETURN. This enables range checking and
2447 exception delivery in case of rangefail.
2448
2449Tue Jan 17 07:38:27 1995 Wilfried Moser <moser@rtl.cygnus.com>
2450
2451 * decl.c (init_decl_processing): Add definition of
2452 library function __inbitstring (see expr.c).
2453
2454 * expr.c (chill_expand_expr case SET_IN_EXPR): Call function
2455 __inpowerset fir POWERSET's and function __inbitstring for
2456 BITSTRING's. In case of POWERSET's we must not do a rangecheck,
2457 in case of BITSTRING's we have to do one.
2458 (build_compare_expr): Fix typo CH_DERIVED_FLAG (tmp); (warning
2459 statement with no effect).
2460
2461Fri Jan 13 13:35:30 1995 Per Bothner <bothner@kalessin.cygnus.com>
2462
2463 * actions.c (check_expression): Simplify result.
2464
2465 * ch-tree.h (SET_CH_NOVELTY_NONNIL): New macro.
2466 * expr.c, timing.c, typeck.c: Use SET_CH_NOVELTY_NONNIL.
2467
2468 * typeck.c (valid_array_index_p), ch-tree.h: Change interface
2469 to return modified index expression. Call error if out-of-range.
2470 * actions.c, typeck.c: Modify
2471 for new valid_array_index_p interface.
2472
2473 * actions.c (build_chill_slice): Copy novelty of index type.
2474
2475Fri Jan 13 13:04:41 1995 Per Bothner <bothner@kalessin.cygnus.com>
2476
2477 * convert.c (digest_array_tuple): Allow mode name in array
2478 tuple label. Print error message instead of aborting.
2479
2480 * parse.c (parse_body): Error message only if pass 1.
2481
2482 * decl.c (check_identifier), ch-tree.h: Remove. Unused.
2483
2484Wed Jan 11 14:03:47 1995 Per Bothner <bothner@kalessin.cygnus.com>
2485
2486 * parse.c (parse_modulion): Undo yesterday's change (to allow
2487 an ON-handler to follow) until we re-implement module.
2488
2489Tue Jan 10 17:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
2490
2491 * loop.c (declare_temps): Remove bogus prohibition against
2492 iterating over BOOL arrays.
2493
2494 * parse.c (parse_semi_colon): Make it a pedwarn (instead of an
2495 error) if a semi-colon is missing before an END.
2496 (parse_action): Likewise.
2497 * parse.c (parse_modulion): Allow an ON-handler to follow.
2498
2499 * parse.c (parse_set_mode): Use parse_expression to get
2500 values for number set elements.
2501
2502 * expr.c (build_compare_expr): Make sure result has
2503 CH_DERIVED_FLAG set, since it is supposed to be BOOL-derived.
2504 (finish_chill_binary_op): Likewise for IN_EXPR.
2505
2506Tue Jan 10 04:46:42 1995 Wilfried Moser <moser@rtl.cygnus.com>
2507
2508 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit): Add
2509 checking the argument.
2510 (chill_expand_assignment): Take care of a newmoded dst_offset
2511 when calling __pscpy and a newmoded from_pos when calling
2512 __setpowersetbits.
2513
2514 * expr.c (chill_expand_expr): When calling __psslice take care
2515 of a newmoded min_value.
2516
2517 * parse.c (parse_name_string): Print error message only in
2518 pass 1.
2519
2520Tue Jan 3 19:56:36 1995 Per Bothner <bothner@kalessin.cygnus.com>
2521
2522 * typeck.c (build_chill_array_ref_1): Use varying_to_slice
2523 instead of building a VRAY_ARRAY_REF node.
2524 * ch-tree.def (VARY_ARRAY_REF): Removed.
2525 * actions.c (chill_expand_assignment): Will never call
2526 expand_assignment_to_varying_array for a VARY_ARRAY_REF, so don't.
2527 (expand_assignment_to_varying_array): Removed.
2528 * convert.c (convert): Remove unneeded VARY_ARRAY_REF support.
2529 * expr.c (chill_expand_expr): Likewise.
2530
2531Tue Jan 3 19:50:18 1995 Per Bothner <bothner@kalessin.cygnus.com>
2532
2533 * parse.c (parse_iteration): Set step_value to NULL if missing.
2534 * loop.c (ITER_TYPE): Remove DO_RANGE.
2535 (build_loop_iterator): Implement old DO_RANGE in terms of DO_STEP.
2536 (begin_loop_scope): Don't return on error.
2537 (build_loop_iterator): Calculate loop variable type using
2538 resulting classes (as in Z200), rather than precision.
2539
2540 * loop.c (initialzie_iter_var, bottom_loop_end_check): For DO_STEP,
2541 make iter_var one less to avoid overflow.
2542 * loop.c (build_loop_iterator): If !flag_local_loop_counter,
2543 declare a new variable if needed, as allowed by Z200 (1984).
2544
2545 * ch-tree.h (ch_class): Add typedef.
2546
2547 * typeck.c (chill_resulting_class): New function.
2548 (chill_root_resulting_class): Remove.
2549 * ch-tree.h (CH_RESULTING_CLASS): New macro.
2550 (CH_ROOT_RESULTING_CLASS): Re-implement using CH_RESULTING_CLASS.
2551
2552Tue Jan 3 19:36:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
2553
2554 * actions.c (build_cause_exception, expand_cause_exception), ch-tree.h:
2555 Change interface to take IDENTIFIER tree node, rather char char*.
2556 (check_expression): Change (simplify) callers appropriately.
2557 * parse.c (parse_action), typeck.c (valid_array_index_p): Likewise.
2558 * lex.h (enum rid): Add RID_ASSERTFAIL.
2559 * lex.c (init_lex): Enter RID_ASSERTFAIL.
2560 * parse.c (parse_action case ASSERT): Fix thinko TRUTH_ANDIF_EXPR
2561 to TRUTH_ORIF_EXPR. Use RID_ASSERTFAIL.
2562
2563 * typeck.c (discrete_type_p): Re-implement using INTEGRAL_TYPE_P.
2564
2565Tue Jan 3 19:20:35 1995 Per Bothner <bothner@kalessin.cygnus.com>
2566
2567 Move checking for modeless tuples in invalid contexts from parser
2568 to semantic function check_have_mode (for better error recovery):
2569 * expr.c (check_have_mode), ch-tree.h: New function.
2570 * satisfy.c (safe_satisfy_decl): Use check_have_mode.
2571 * expr.c (build_compare_expr, finish_chill_binary_op,
2572 finish_chill_unary_op): Likewise.
2573 * parse.c (parse_primval): Don't complain about mode-less tuple here.
2574
2575Tue Jan 3 17:36:48 1995 Per Bothner <bothner@kalessin.cygnus.com>
2576
2577 * expr.c (varying_to_slice): Support varying arrays whose
2578 lower bound is non-zero.
2579
2580 * parse.c (parse_body): Allow (with warning) definition to
2581 follow action.
2582
2583 * expr.c (check_case_selector), ch-tree.h: New function.
2584 (chill_expand_case_expr): Use it.
2585 * parse.c (parse_case_action): Likewise.
2586
2587Fri Dec 23 00:47:54 1994 Wilfried Moser <moser@rtl.cygnus.com>
2588
2589 * actions.c (chill_expand_return): Change error message.
2590
2591 * ch-tree.h: Change prototypes of do_decl and do_decls.
2592
2593 * convert.c (convert): Add missing initialisation of
2594 variable orig_e_constant.
2595
2596 * decl.c: Change all calls to do_decl.
2597 (maybe_static): New function to process the ALL_STATIC_ON/OFF
2598 compiler directives.
2599 (do_decls): New argument.
2600 (do_decl): New argument and process reachbound and lifetime
2601 bound initialisation.
2602
2603 * gperf, hash.h: Add compiler directives ALL_STATIC_ON and
2604 ALL_STATIC_OFF.
2605
2606 * grant.c: Change all calls to do_decl.
2607
2608 * lex.c (read_directive): Process ALL_STATIC_ON/OFF compiler
2609 directive.
2610
2611 * parse.c (parse_loc_declaration): Pass lifetime_bound flag to
2612 do_decls.
2613
2614 * parse.h (enum terminal): Add ALL_STATIC_ON and ALL_STATIC_OFF.
2615
2616 * tasking.c: Change all calls to do_decl.
2617
2618Mon Dec 19 23:13:58 1994 Wilfried Moser <moser@rtl.cygnus.com>
2619
2620 * parse.c (parse_procedure_definition): Save chill_at_module_level
2621 flag, set ot to 0 and restore it at the end of function.
2622 A sequence BEGIN x: PROC () RETURN; END x; END; at module level
2623 have produced an error.
2624
2625 * expr.c (build_chill_repetition_op): Fix typo in error message.
2626
2627Tue Dec 13 12:26:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2628
2629 * actions.c (expand_assignment_to_varying_array): Fix thinko:
2630 build_chill_array_ref -> build_chill_array_ref_1.
2631
2632Sun Dec 11 23:04:27 1994 Per Bothner <bothner@rtl.cygnus.com>
2633
2634 * actions.c (chill_expand_assignment): Simplify the lhs if it is
2635 a COMPOUND_EXPR, so we can better handle SLICE_EXPR in lhs.
2636
2637Thu Dec 8 13:45:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2638
2639 * loop.c, ch-tree.h (build_loop_iterator): Fix to return void.
2640 If start_exp is ERROR_MARK, return.
2641 * expr.c (build_generalized_call): More robust on syntax errors.
2642
2643Tue Dec 6 02:33:23 1994 Wilfried Moser <moser@rtl.cygnus.com>
2644
2645 * inout.c (build_chill_readtext): In case of reading a SET mode
2646 pass ignore_case flag to runtime library.
2647
2648Tue Nov 29 14:41:38 1994 Per Bothner <bothner@kalessin.cygnus.com>
2649
2650 * parse.c (parse_receive_case_action): Print error only if pass==1.
2651 * decl.c (push_scope_decls): Use error_with_file_and_line
2652 to get correct line number of SEIZE.
2653
2654Mon Nov 28 16:59:18 1994 Per Bothner <bothner@kalessin.cygnus.com>
2655
2656 * expr.c (resolve_component_ref): Call fold on result.
2657
2658 * expr.c (resolve_component_ref): Use check_expression.
2659 * actions.c (chill_convert_for_assignment): Likewise.
2660 * actions.c (cond_exception), ch-tree.h: Removed.
2661 * actions.c (check_expression): First part of COMPOUND_EXPR
2662 should be boolean_type_node; void_type_node loses in SAVE_EXPRs.
2663
2664 * actions.c (chill_convert_for_assignment):
2665 Check string_assignment_condition for varying strings too.
2666
2667 * typeck.c (build_chill_cast): If the types have different sizes,
2668 don't allow nondiscrete->discrete conversion, and only allow
2669 discrete->nondiscrete if input expression is constant.
2670
2671 * typeck.c (chill_similar): Don't use losing array_type_nelts.
2672
2673 * ch-tree.h (ELSE_VARIANT_NAME): New.
2674 * convert.c, decl.c, grant.c: Use ELSE_VARIANT_NAME.
2675 * decl.c (handle_one_level): Recurse on ELSE_VARIANT_NAME too.
2676
2677 Reduce dependencies on ../c-typeck.c:
2678 * expr.c: Fix c_expand_start_case -> expand_start_case.
2679 Fix c_expand_expr_stmt -> expand_expr_stmt.
2680 (build_chill_indirect_ref): Call convert instead of build_c_cast.
2681 * loop.c (bottom_loop_end_check): Don't use build_modify_statement.
2682 * expr.c, except.c, typeck.c: Don't call default_conversion.
2683 * typeck.c (string_assignment_condition): Fix build_component_ref ->
2684 build_chill_component_ref.
2685 * decl.c: Fix build_indirect_ref -> build_chill_indirect_ref (twice).
2686 * decl.c: Don't set unused constructor_no_implicit (from c-typeck.c).
2687 * decl.c: Don't call declare_function_name.
2688
2689 * parse.c: Don't always keep a valid token in terminal_buffer[0].
2690 The extra look-ahead may have made the parser faster, but caused
2691 some problems synchronizing with the lexer. Specifically:
2692 (PEEK_TOKEN): Now calls an optimized variant of peek_token_(0).
2693 (next_token_): Don't call peek_token_. Renamed to forward_token_.
2694 (NEXT_TOKEN): Renamed to FORWARD_TOKEN.
2695 (parse_program): Don't call yylex yet.
2696
2697 * parse.c (parse_action): Re-do case ASSERT.
2698 Fix c_expand_expr_stmt -> expand_expr_stmt.
2699
2700 * lex.l: Re-written to not use [f]lex, and renamed to ...
2701 * lex.c: ... new lexer.
2702 * Makefile.in, Make-lang.in: Remove [f]lex crud.
2703
2704 * lex.h (enum rid), lex.c (init_lex): Added RID_ELSE.
2705
2706Tue Nov 22 15:19:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2707
2708 * Make-lang.in: Let chill-runtime depend on $(GCC_PASSES).
2709
2710Fri Nov 18 14:27:32 1994 Per Bothner <bothner@kalessin.cygnus.com>
2711
2712 * parse.c (parse_structure_node): Simpler, and more robust.
2713
2714Wed Nov 16 14:40:52 1994 Ian Lance Taylor (ian@cygnus.com)
2715
2716 * lex.l (convert_bitstring): Check BITS_BIG_ENDIAN at run time,
2717 not at compile time.
2718 * typeck.c (expand_constant_to_buffer): Likewise.
2719 extract_constant_from_buffer): Likewise.
2720
2721Tue Nov 15 14:41:53 1994 Per Bothner <bothner@kalessin.cygnus.com>
2722
2723 * convert.c (convert): Call build_chill_range_type rather than
2724 build_index_2_type (which has obstack and canonicalization problems).
2725 * expr.c (build_chill_pred_or_succ): Convert expr to root class
2726 before arithmetic.
2727 * loop.c (declare_temps): If location iterated over is not
2728 a location, make a temporary variable for it.
2729
2730Mon Nov 14 16:33:47 1994 Per Bothner <bothner@kalessin.cygnus.com>
2731
2732 * typeck.c, ch-tree.h (chill_equivalent): Change to return
2733 a tree (a Boolean expression). Also, add some missing tests.
2734 * ch-tree.h (CH_EQUIVALENT): Modify accordingly.
2735
2736 * expr.c (chill_expand_expr case CONCAT_EXPR): When the 2nd operand
2737 is an UNDEFINED_EXPR, handle mode-mismatch with whole expr.
2738 Also, replace MEM (which is not a mode) by Pmode.
2739
2740 * ch-tree.h, typeck.c (chill_comptypes): Removed.
2741 * convert.c (convert): Remove calls to chill_comptypes.
2742
2743Fri Nov 11 13:06:29 1994 Wilfried Moser (moser@rtl.cygnus.com)
2744
2745 * grant.c (write_grant_file): Call pfatal_with_name instead
2746 of abort when something goes wrong when opening or writing
2747 the grant file.
2748 unlink grant file if something goes wrong during writing
2749 (i.e. device full).
2750
2751 * Make-lang.in (CHILL_SRCS): Add timing.c
2752
2753 * ch-tree.h: Add prototype for chill_tasking_type_node.
2754 * lex.l (equal_number): Use chill_tasking_type_node instead of
2755 integer_type_node for converting the result.
2756 Print error messages in pass 2, in pass 1 no error will be
2757 detected.
2758 * tasking.c: New variable chill_tasking_type_node for all
2759 generated tasking related variables.
2760 Use chill_tasking_type_node instead of chill_unsigned_type_node.
2761
2762 * expr.c (chill_expand_expr): Apply Per's change.
2763
2764 * expr.c (build_chill_sizeof): In case of error just
2765 return error_makr_node.
2766 Set CH_DERIVED_FLAG at the result.
2767
2768 * timing.c (build_after_timeout_start): Clear the the timeout
2769 level to know if we are in the action part of AFTER statement
2770 or in the TIMEOUT part.
2771
2772 * typeck.c (build_chill_slice_with_length): Convert the class
2773 of the result to class of first value in expression.
2774
2775 * inout.c (build_chill_writetext, build_chill_readtext): Use stack
2776 temporary variables for the iolist so that they can get reused in
2777 subsequent calls. Emit code immediately instead of building a
2778 compound expr.
2779
2780Fri Nov 4 12:00:54 1994 Per Bothner <bothner@kalessin.cygnus.com>
2781
2782 * expr.c (build_chill_function_call): Don't set TREE_TYPE
2783 of assignment to void_type_node - it confuses save_expr.
2784 * decl.c (init_decl_processing): Removed unused code.
2785 * parse.c: Changes to avoid warnings.
2786
2787 * grant.c (chill_finish_module_code): Minor simplification.
2788 * lex.l (readstring): Set *len to 1 on error.
2789
2790Thu Nov 3 01:05:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2791
2792 * grant.c (decode_decl): Add granting of BASED declarations.
2793
2794Wed Nov 2 12:14:31 1994 Per Bothner <bothner@kalessin.cygnus.com>
2795
2796 * expr.c (build_chill_lower_or_upper): Take more care to
2797 ensure result has the right class.
2798 (build_chill_pred_or_succ): Be more careful to get the right
2799 resulting class, and check bounds using *root* mode.
2800
2801 * typeck.c (build_chill_slice_with_range): Check that array
2802 really is an array or string.
2803 (build_chill_slice_with_length): Likewise.
2804
2805 * typeck.c (extract_constant_from_buffer): Fix calculation of
2806 SET_TYPE size. (Cannot depend on 1-byte TYPE_PRECISION field.)
2807
2808Wed Nov 2 05:33:03 1994 Wilfried Moser (moser@rtl.cygnus.com)
2809
2810 * Make-lang.in: Change version of compiler.
2811
2812 * ch-tree.h: Add new prototypes.
2813
2814 * decl.c (init_decl_processing): Remove timing related
2815 initialisations. Add call to timing_init.
2816
2817 * parse.c (parse_action): Process AFTER action.
2818
2819 * tasking.c (build_receive_case_start,
2820 build_receive_signal_case_label, build_receive_buffer_case_label,
2821 build_delay_case_start, build_delay_action, expand_send_buffer):
2822 Add processing of timesupervision.
2823 (tasking_init): Change definitions of runtime functions.
2824
2825 * timing.c (timing_init): New function for initialisation of
2826 timing related stuff.
2827 (build_cycle_start, build_cycle_end): Changed due to
2828 implementation of timesupervision.
2829 (build_after_start, build_after_timeout_start, build_after_end):
2830 Implement the AFTER action.
2831 (build_timeout_preface, build_timesupervised_call): New functions
2832 to handle timesupervision in case of blocking system calls (i.e.
2833 SEND buffer action, RECEIVE CASE action etc.).
2834
2835Thu Oct 27 12:50:24 1994 Per Bothner <bothner@kalessin.cygnus.com>
2836
2837 * expr.c (build_chill_repetition_op): Fix repeating all-zero
2838 bitstring with orig_len!=1. Also, call build_boring_bitstring
2839 if original string was all ones, using one range. Also:
2840 Cannot use one-bit TYPE_PRECISION to get bitstring length.
2841
2842Tue Oct 25 14:11:07 1994 Per Bothner <bothner@kalessin.cygnus.com>
2843
2844 * convert.c (convert): When converting BOOL constant to
2845 bit-string, bit_one_node and bit_zero_node were switched.
2846 * actions.c (chill_expand_assignment): Use force_addr_of,
2847 not build_chill_addr_expr - latter yields bogus error.
2848
2849Fri Oct 21 14:26:52 1994 Per Bothner <bothner@kalessin.cygnus.com>
2850
2851 * expr.c (build_chill_indirect_ref): Check for POINTER_TYPE (only)
2852 after converting from REFERENCE_TYPE.
2853 * expr.c (build_compare_expr): Convert to common mode *after*
2854 we've checked compatibility.
2855
2856Fri Oct 21 02:29:15 1994 Wilfried Moser (moser@rtl.cygnus.com)
2857
2858 * lex.l (check_newline): Use getc instead of getlc to read
2859 the filename in a # line name directive to avoid possibly
2860 downcaseing of a filename.
2861
2862Thu Oct 20 05:37:17 1994 Wilfried Moser (moser@rtl.cygnus.com)
2863
2864 * expr.c (build_chill_indirect_ref): Add check for really
2865 dereferencing a pointer.
2866
2867 * convert.c (convert): Take care of TREE_CONSTANT of a
2868 SYNONYM having mode ARRAY () VARYING something.
2869
2870Mon Oct 17 02:30:38 1994 Wilfried Moser (moser@rtl.cygnus.com)
2871
2872 * decl.c (init_decl_processing): Set CH_DERIVED_FLAG for
2873 boolean_true_node and boolean_false_node. TRUE and FALSE have
2874 the BOOL derived class.
2875
2876 * expr.c (build_chill_num): Set CH_DERIVED_FLAG at the result
2877 of NUM. NUM delivers the INT derived class.
2878
2879 * grant.c (write_spec_module): Add writing of
2880 <> USE_SEIZE_FILE "x.grt" <>
2881 SEIZE ALL;
2882 to generated grant file.
2883
2884Thu Oct 13 14:45:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
2885
2886 * convert.c (convert_from_reference): Make non-static.
2887 * ch-tree.h (convert_from_reference): Add prototype.
2888 * parse.c (parse_name): If the decl is a REFERENCE_TYPE, just
2889 call convert_from_reference - and not a full-scale convert.
2890
2891 * convert.c (convert): Only call digest_array_tuple if ARRAY_TYPE.
2892 * typeck.c (chill_expand_tuple): Print error if type is
2893 neither array, struct, or powerset.
2894
2895 * expr.c (chill_expand_expr cases CONCAT_EXPR, SET_*_EXPR,
2896 UNDEFINED_EXPR): Call preserve_temp_slots for temp targets.
2897 If target is not MEM, make temp (even if not REG) to simplify
2898 - and don't copy original target to temp target first. (Not needed.)
2899
2900 * lang.c (maybe_objc_comptypes): Just return -1.
2901
2902Wed Oct 12 12:24:20 1994 Per Bothner (bothner@kalessin.cygnus.com)
2903
2904 * tasking.c (tasking_setup): Fix breakage from previous check-in.
2905
2906Tue Oct 11 16:00:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2907
2908 * actions.c, convert.c, except.c, expr.c, inout.c, loop.c, tasking.c,
2909 timing.c, typeck.c: Change build1 (ADDR_EXPR, ptr_type_node, XX)
2910 to force_addr_of (XX). Add call to mark_addressable where needed
2911 for other calls to build 1 (ADDR_EXPR, TYPE, XX).
2912
2913Thu Oct 6 06:36:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
2914
2915 * inout.c (build_chill_writetext): Remove processing
2916 of POWERSET's.
2917
2918Tue Oct 4 14:08:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
2919
2920 * convert.c (convert): If flag_old_strings, support converting
2921 CHARS(1) and BOOLS(1) to INT.
2922
2923Fri Sep 30 01:44:51 1994 Wilfried Moser (moser@rtl.cygnus.com)
2924
2925 * inout.c (build_chill_readtext): Add check for item is
2926 referable and not READonly. Add processing of BITSTRINGs.
2927
2928Mon Sep 26 16:19:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
2929
2930 * expr.c (build_chill_descr): Add missing call to mark_addressable.
2931 * loop.c (toop_loop_end_check): Replace build1 (ADDR_EXPR ...)
2932 with call to force_addr_of (which calls mark_addressable).
2933 * expr.c (build_chill_descr, build_chill_inttime): Likewise.
2934 * inout.c (build_chill_writetext): Likewise.
2935
2936Mon Sep 26 05:19:21 1994 Wilfried Moser (moser@rtl.cygnus.com)
2937
2938 * grant.c (print_struct): Move printing of VARYING from
2939 here ...
2940 * grant.c (grant_array_type): ... to here.
2941
2942Mon Sep 26 00:09:08 1994 Per Bothner (bothner@kalessin.cygnus.com)
2943
2944 * ch-tree.h (force_addr_of): New prototype.
2945 * expr.c (force_addr_of): Call mark_addressable. Make non-static.
2946 * inout.c (build_chill_writetext): Use force_addr_of.
2947
2948Sun Sep 25 23:41:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
2949
2950 * except.c (push_handler), actions.h: Removed unused parameter.
2951 * actions.c (push_action): Remove unused paramater.
2952 * parse.c, actions.c: Remove no-longer-used parameter to
2953 calls to push_handler and push_action.
2954
2955 * decl.c (push_extern_process): Only build types in pass 1.
2956 * tasking.c (build_process_header): Only build types in pass 1.
2957 * tasking.c (build_start_process): Do pushdecl/popdecl etc
2958 even after an error (to maintain consistency between passes).
2959
2960 * convert.c (convert_to_boolean): Allow any integral input type.
2961
2962Sat Sep 24 22:47:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
2963
2964 * typeck.c (extract_constant_from_buffer): Add (somewhat kludgey)
2965 support for UNION_TYPE. (Patch from Wilfried.)
2966 Also, reverse RECORD_TYPE constructor list.
2967
2968Fri Sep 23 19:06:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
2969
2970 * expr.c (build_concat_expr): Fix calculation of result_size.
2971
2972Wed Sep 21 00:54:21 1994 Per Bothner (bothner@kalessin.cygnus.com)
2973
2974 Give up on trying to use the cleanup mechanism in stmt.c to
2975 make sure the exception handler get unlinked on goto/exit/return.
2976 Instead, do it ourselves. (Much simpler.)
2977 * except.c, ch-tree.h (action_nesting_level): New global.
2978 * ch-tree.h (DECL_ACTION_NESTING_LEVEL): New macro.
2979 * decl.c (define_label): Set DECL_ACTION_NESTING_LEVEL.
2980 * except.c (expand_goto_except_cleanup): New function.
2981 (cleanup_chain): New variable.
2982 (push_handler, pop_handler): Adjust action_nesting_level.
2983 (emit_setup_handler): Push cleanup.
2984 (chill_finish_on): Pop cleanup.
2985 * actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
2986 Call expand_goto_except_cleanup.
2987 * parse.c (parse_action): Before RETURN, call
2988 expand_goto_except_cleanup.
2989
2990Mon Sep 19 00:59:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
2991
2992 * lex.l (equal_number): Make sure converted synonym
2993 is on permanent obstack.
2994 * typeck.c (extract_constant_from_buffer): Fix INTEGER_TYPE
2995 loop to traverse in big-endian order.
2996
2997Sat Sep 17 20:48:37 1994 Per Bothner (bothner@kalessin.cygnus.com)
2998
2999 * typeck.c (build_chill_cast): Call mark_addressable.
3000 * expr.c (build_chill_function_call): Call mark_addressable.
3001
3002Thu Sep 15 23:47:01 1994 Per Bothner (bothner@kalessin.cygnus.com)
3003
3004 * typeck.c (expand_constant_to_buffer): Fix an endian-ness
3005 problem for INTEGER_CST.
3006 (extract_constant_from_buffer): Likewise.
3007
3008Thu Sep 15 22:59:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3009
3010 * decl.c (pushlevel): Do different things depending on
3011 actual parameter.
3012 * decl.c, parse.c, tasking.c: Change argument to to pushlevel to 1.
3013 * actions.c (push_action): Take new parameter.
3014 * except.c (push_handler): Likewise.
3015 * parse.c: Change calls to push_action and push_handler.
3016 * loop.c (begin_loop_scope): Always call expand_start_bindings.
3017 * loop.c (end_loop_scope): Always call expand_end_bindings.
3018 * except.c (emit_setup_handler): Add a cleanup to
3019 unlink from exception stack if we return/exit/goto from here.
3020 * loop.c (begin_loop_scope): Move pushlevel from here ...
3021 * parse.c (parse_do_action): ... to here.
3022
3023 Clean up do-decl interface (for decl_temp1).
3024 * parse.c (parse_loc_declaration): If global_bindings_p (),
3025 treat as static.
3026 * decl.c (do_decl): Don't test global_bindings_p ().
3027
3028 * decl.c (keep_next_level_flag, keep_next_if_subblocks):
3029 Not used. Removed.
3030 (struct scope::keep, scope::keep_if_subblocks): Likewise.
3031 (keep_next_level): Likewise.
3032 (kept_level_p, pushlevel, poplevel): Simplify.
3033
3034 * decl.c (init_decl_processing): Don't call init_iterators.
3035 * Makefile.in (C_OBJS): Don't get ../c-iterator.o - not needed.
3036
3037Thu Sep 15 05:54:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3038
3039 * lex.l (readstring): Add processing of control sequence
3040 in character string literals. The granting mechanism writes
3041 this to grant files.
3042
3043Tue Sep 13 06:19:42 1994 Wilfried Moser (moser@rtl.cygnus.com)
3044
3045 * expr.c (compare_records): In case of -fpack do always
3046 a memcmp instead of comparing each field of the
3047 structure. If the structure is a variant structure,
3048 issue a warning.
3049
3050Mon Sep 12 13:15:09 1994 Per Bothner (bothner@cygnus.com)
3051
3052 * grant.c (write_spec_module): Add cast, to avoid PCC warning.
3053 * grant.c (header_template): Don't use ANSI-specific string
3054 literal concatenation.
3055
3056Fri Sep 9 01:53:30 1994 Wilfried Moser (moser@rtl.cygnus.com)
3057
3058 * tasking.c (get_process_wrapper_name): New function.
3059 (add_taskstuff_to_list): Add a new argument, which is
3060 the entrypoint of a process.
3061 (build_process_header): Change PROCESS arguments to be
3062 like arguments of a function. There will be a wrapper
3063 which is the real entry point for a PROCESS. This wrapper
3064 is automatically build after a PROCESS definition and gets
3065 as argument a pointer to a structure looking like the
3066 arguments of the PROCESS. This wrapper will call the
3067 PROCESS (see build_process_wrapper).
3068 (build_process_wrapper): New function (see above).
3069 (build_start_process): Change processing of arguments.
3070 (tasking_setup): Add processing of a different entry point
3071 in case of PROCESSes.
3072
3073 * parse.c (parse_process_definition): Add call to
3074 build_process_wrapper.
3075 * parse.c (end_function): Remove the poplevel() call.
3076 build_process_header no longer makes the corresponding
3077 pushlevel().
3078
3079 * grant.c (print_proc_tail): Remove special processing
3080 of PROCESSes, they look now like normal functions.
3081
3082 * decl.c (init_decl_processing): Add declaration of memcmp
3083 function.
3084
3085 * ch-tree.h: Add new prototype for build_process_wrapper,
3086 change prototypes for add_taskstuff_to_list and
3087 build_process_header.
3088
3089 * grant.c (write_spec_module): Write GNUCHILL and gcc
3090 version into grant file.
3091
3092 * Make-lang.in (CHILL_FLAGS_TO_PASS): Add passing of CC and
3093 GNUCHILL_VERSION to ch/Makefile.
3094 * Make-lang.in (CHILL.mostlyclean): Add ch/ch-version.c.
3095
3096 * Makefile.in (CHILL_OBJS): Add ch-version.o. ch-version.c
3097 will get generated every time a new Makefile will get
3098 generated.
3099 * Makefile.in (GNUCHILL_VERSION): Remove it, its defined in
3100 Make-lang.in.
3101
3102 * chill.in: In case of -fgrant-only pass "-S -o /dev/null"
3103 to the compiler to avoid generation of an object file.
3104
3105Thu Sep 8 12:07:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
3106
3107 * convert.c (display_int_cst), ch-tree.h: New function.
3108 * convert.c (digest_array_tuple): Use digest_int_cst to
3109 provide better error messages. Return error_mark_node on error.
3110 * grant.c (decode_const): Simplify by using digest_int_cst.
3111 * grant.c (format_character, find_assoc): Removed.
3112
3113 * decl.c (do_decl): Add missing TREE_CHAIN.
3114
3115 * decl.c (finish_incomplete_decl): Removed.
3116 (init_decl_processing): Don't set incomplete_decl_finalize_hook.
3117 (finish_decl): Remove old C-specific code to deduce size of
3118 array from initialization.
3119 (complete_array_type): Just make it abort.
3120
3121 * except.c (finish_handler_array): Avoid calling C-specific kludge
3122 complete_array_type.
3123
3124 * convert.c (digest_constructor): Rename, and re-write to:
3125 (digest_array_tuple, convert): No longer use the code in
3126 ../c-typeck.c; use a Chill-only implementation (sigh).
3127
3128 * typeck.c (chill_expand_tuple): Remove unneeded call to
3129 complete_array_type.
3130
3131 * expr.c (fold_set_expr), grant.c (decode_constant),
3132 typeck.c (expand_constant_to_buffer): Update name of called
3133 function unpack_set_constructor to get_set_constructor_bits.
3134 * expr.c (powersetlen ): Remove redundant call to convert.
3135
3136 * ch-tree.h (unpack_set_constructor): Removed obsolete declaration.
3137
3138 * inout.c (build_chill_writetext): Handle 64-bit integer literals
3139 by trying to convert them to a smaller type.
3140
3141 * lex.l (convert_number): Always use long long type (possibly
3142 unsigned) to avoid problems with constant folding truncation.
3143
3144Mon Sep 5 08:08:22 1994 Wilfried Moser (moser@rtl.cygnus.com)
3145
3146 * ch-tree.h (enum chill_built_in_function): Add BUILT_IN_QUEUE_LENGTH.
3147 Add new prototype (see tasking.c).
3148
3149 * expr.c (build_generalized_call): Add processing of
3150 BUILT_IN_QUEUE_LENGTH.
3151
3152 * tasking.c (build_queue_length): New function.
3153
3154 * tasking.c (tasking_init): Add new external function definition.
3155
3156Thu Sep 1 15:38:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3157
3158 * lex.l (default_lex): New function. Progress towards
3159 getting rid of [f]lex.
3160
3161 * lex.l (convert_number): Use mul_double and add_double.
3162 Set result type to a reasonable type in which the literal
3163 will fit. Give error message if literal is too big.
3164
3165 * lex.l (equal_number): Switch (temporarily) to permanent obstack.
3166
3167 * typeck.c (build_chill_slice_with_range): Check for empty
3168 slice *after* we have checked for upper/lower limit in range.
3169
3170 * grant.c (decode_mode): Remove unused code. (BOOL and
3171 CHAR ranges are represented as INTEGER_TYPEs.)
3172
3173 * tasking.c (build_process_header): Add missing call to
3174 expand_start_bindings.
3175 * parse.c (end_function): Add missing expand_end_bindings.
3176
3177Wed Aug 31 17:25:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3178
3179 * decl.c (init_decl_processing): Set set_alignment.
3180
3181Tue Aug 30 16:40:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
3182
3183 * actions.c (print_missing_cases, check_missing_cases,
3184 BITARRAY_TEST, BITARRAY_SET): New functions and macros,
3185 to check for completeness of case actions and expressions.
3186 * decl.c (c_decode_option, init_decl_processing):
3187 Don't set warn_switch.
3188 * expr.c (chill_expand_case_expr): Call check_missing_cases
3189 instead of check_for_full_enumeration_handling.
3190 * parse.c (parse_case_actions): Call check_missing_cases.
3191
3192 * expr.c (build_chill_binary_op): Remove some dead code.
3193 * expr.c (chill_truthvalue_conversion): Call build_chill_binary_op
3194 instead of build_binary_op.
3195 * ch-tree.h (binary_op_error, build_binary_op): Unused. Removed.
3196
3197 * parse.c (end_function): Use kept_level_p in parameter to
3198 poplevel. This reverts a June 13 change.
3199
3200Fri Aug 26 11:50:19 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3201
3202 * configure: Ignore --without, as ../configure does.
3203
3204Wed Aug 24 01:17:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3205
3206 * lex.l: Change rule for decimal numbers to allow identifiers
3207 to start with an underscore (_).
3208
3209Fri Aug 19 16:38:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3210
3211 * tasking.c (build_receive_signal_case_label): Remove backwards
3212 chill_convert_for_assignment (which converted whatever garbage
3213 was in the *target* to the type of the signal argument!).
3214
3215Fri Aug 19 07:10:43 1994 Wilfried Moser (moser@rtl.cygnus.com)
3216
3217 * inout.c (build_chill_io_list_type, build_enum_tables),
3218 tasking.c (build_tasking_struct): Temporarily reset
3219 maximum_field_alignment to 0, so that the compiler-built
3220 data structures needed by the RTS can be independent of -fpack.
3221
3222Thu Aug 18 13:39:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
3223
3224 * typeck.c (build_init_struct): Temporarily reset
3225 maximum_field_alignment to 0, so that the compiler-built
3226 data structures needed by the RTS can be independent of -fpack.
3227
3228Wed Aug 17 23:48:33 1994 Wilfried Moser (moser@rtl.cygnus.com)
3229
3230 * parse.c (parse_primval, expect, parse_on_exception_list):
3231 Print error message only in pass 2.
3232
3233Wed Aug 17 13:47:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3234
3235 * decl.c (switch_to_pass_2): Revert June 13 change,
3236 (Don't exit after pass 1 if an error was found.)
3237
3238 * ch-tree.def (SLICE_EXPR): New tree-code.
3239 * typeck.c (build_chill_slice): For building a slice of a
3240 bit-string, just generate a SLICE_EXPR.
3241 * decl.c (init_decl_processing): Declare __pscpy.
3242 * actions.c (chill_expand_assignment): Handle a SLICE_EXPR
3243 on the LHS of assignment, by calling __pscpy.
3244 * expr.c (chill_expand_expr): Handle SLICE_EXPR (as a RHS
3245 value) by using __psslice to copy slice to a temp.
3246
3247Wed Aug 17 05:52:44 1994 Wilfried Moser (moser@rtl.cygnus.com)
3248
3249 * Make-lang.in: Change version of GNUCHILL compiler to 1.4.1.
3250 * expr.c (build_chill_length): Enable LENGTH built-in to process
3251 Buffers and Events too (Z.200/1992).
3252 * lex.l (yywrap): Always set yyin to finput and/or grt_in. On
3253 a linux system the previous version was not able to run.
3254 * tasking.c: Correct processing of infinite buffer- and event-length
3255 to avoid RANGEFAIL warning.
3256
3257Thu Aug 11 11:46:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3258
3259 * parse.c (parse_if_expression_body): Don't call the C-specific
3260 build_conditional_expr. Just do build_nt (COND_EXPR, ...).
3261 * convert.c (convert): Convert a COND_EXPR by converting
3262 each branch.
3263
3264 * convert.c (convert): Don't call convert before
3265 convert_to_reference. It's apt to do weird and unneedful things.
3266 * convert.c (convert): If the expression is varying, just call
3267 varying_to_slice, which simplifies quite a bit.
3268
3269 * ch-tree.h (varying_to_slice): Add prototype.
3270 * typeck.c (varying_to_slice): Remove prototype.
3271
3272 * satisfy.c (satisfy): Move case PAREN_EXPR from type 'e'
3273 to type '1'.
3274
3275 * except.c (emit_setup_handler): Temporarily reset the
3276 maximum_field_alignment to zero so the compiler's exception
3277 data structures can be compatible with the run-time system,
3278 even when we're compiling with -fpack.
3279
3280 * expr.c (compare_records): Call saved_if_needed on operands.
3281
3282 * expr.c (build_set_expr case NE_EXPR): Don't use __nepowerset
3283 which has been reimplemented to just call __eqpowerset and
3284 invert the result. Inline this new implementation by
3285 handling as EQ_EXPR, and inverting the result.
3286 * decl.c (init_decl_processing): Don't define unused __eqpowerset.
3287
3288 * typeck.c (valid_array_index_p): The TRUTH_ANDIF_EXPR has
3289 type boolean_type_node, not void_type_node. (Fixing this
3290 avoids a crash in the back-end.)
3291
3292 * grant.c (decode_constant): In a CALL_EXPR, if the argument
3293 list is not a TREE_LIST (as in string repetiation), don't
3294 emit parentheses.
3295
3296Wed Aug 10 13:13:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
3297
3298 * decl.c (proclaim_decl): Use CH_DECL_ENUM to check that a
3299 CONST_DECL is from a SET definition. (This is safer than
3300 checking that the type is ENUMERAL_TYPE, because synonym
3301 definitions may have a NULL TREE_TYPE.)
3302 Also, if we have duplicate enums whose types are identical,
3303 this is an error.
3304 * decl.c (proclaim_decl, pushdecllist, push_scope_decls): Add
3305 an extra 'quiet' parameter, which is true if we're called from
3306 bind_sub_modules. (In that case an error message about duplicated
3307 decls would be repeated later, so suppress it.)
3308
3309 * parse.c (stmt_count): Removed, not used.
3310 (INIT_ACTION): Call emit_line_note only if !ignoring.
3311 (parse_begin_end_block): Do INIT_ACTION even if ignoring.
3312
3313Fri Aug 5 12:39:11 1994 Per Bothner (bothner@kalessin.cygnus.com)
3314
3315 * parse.c (parse_untyped_expr): Add missing semi-colon.
3316
3317Thu Aug 4 17:40:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
3318
3319 * parse.c (parse_untyped_expr): Fix various problem for the
3320 case that we see a '(': Add missing 'case' keyword.
3321 Only recurse if '(' is followed by 'if', 'case' or '[',
3322 and in that case emit a pedwarn (and do a missing NEXT_TOKEN).
3323
3324 * parse.c (parse_send_action): Remove extra nreverse.
3325
3326Thu Jul 28 04:00:11 1994 Wilfried Moser (moser@rtl.cygnus.com)
3327
3328 * expr.c (build_allocate_global_memory_call, build_allocate_memory_call):
3329 Add new checks.
3330
3331Tue Jul 26 22:48:15 1994 Michael Tiemann (tiemann@blues.cygnus.com)
3332
3333 * parse.c (parse_untyped_expr): Added missing "case" before LPRN.
3334 Added a missing call to `require' as well.
3335
3336Tue Jul 19 10:30:12 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
3337
3338 * lex.l (yywrap): Define as yywrap_chill to avoid conflicts with
3339 the extern declaration in the flex skeleton.
3340
3341Mon Jul 18 23:06:04 1994 Per Bothner (bothner@kalessin.cygnus.com)
3342
3343 * tasking.c (build_copy_number, build_proc_type, expand_send_signal):
3344 Check the type of the instance expr using CH_COMPATIBLE,
3345 and not just == instance_type_node. (This allows
3346 the expression to have mode READ INSTANCE).
3347 * tasking.c (build_instance_type): Give instance_type_node
3348 a non-null novelty (i.e. different from a struct).
3349 * tasking.c (build_receive_case_start, build_delay_case_start):
3350 Check that for a location using CH_LOCATION_P.
3351
3352Mon Jul 18 13:22:23 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
3353
3354 * expr.c (finish_chill_unary_op): Use TREE_SET_CODE not TREE_CODE
3355 to modify a tree code.
3356
3357Mon Jul 18 11:24:57 1994 Bill Cox (bill@rtl.cygnus.com)
3358
3359 * convert.c (digest_structure_tuple): Fix thinko in TREE_CODE
3360 comparison.
3361
3362Mon Jul 18 05:40:15 1994 Doug Evans (dje@canuck.cygnus.com)
3363
3364 * decl.c (warn_bad_function_cast): Define so cc1chill will link.
3365
3366Thu Jul 14 18:37:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3367
3368 * parse.c (parse_send_action): Do tree_cons *before* checking
3369 for end of loop.
3370
3371Mon Jul 11 15:33:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3372
3373 * convert.c (digest_structure_tuple): Don't use convert to
3374 coerce initial value, use chill_convert_for_assignment instead.
3375 (Thus we also get range_checking.)
3376
3377 * expr.c (build_chill_card): Use force_addr_of instead of
3378 build_chill_addr_expr.
3379
3380 * loop.c (build_temporary_variable): Stylistic tweak.
3381 * loop.c (maybe_make_for_temp): Initialize temp using
3382 explicitly, not using assignment. Avoids a problem if
3383 the expression is read-only.
3384 * typeck.c (smash_dummy_type): Always used the saved TYPE_NAME
3385 and CH_NOVELTY_FLAG.
3386
3387Wed Jul 6 20:12:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3388
3389 * expr.c, ch-tree.h (finish_chill_unary_op): New function,
3390 based on code ripped out of build_chill_unary_op.
3391 (build_chill_unary_op): Call finish_chill_unary_op unless pass==1.
3392 * satisfy.c (satisfy): Call finish_chill_unary_op when needed.
3393
3394Mon Jun 27 11:29:18 1994 Per Bothner (bothner@kalessin.cygnus.com)
3395
3396 * tree.c (save_if_needed), ch-tree.h: New function.
3397 * typeck.c (build_chill_slice_with_range,
3398 build_chill_slice_with_length): Call save_if_neeed on array arg.
3399 * expr.c (varying_to_slice): Re-write to use save_if_needed.
3400
3401 * typeck.c (extract_constant_from_buffer): Handle BOOLEAN_TYPE.
3402
3403Mon Jun 27 01:11:10 1994 Wilfried Moser (moser@rtl.cygnus.com)
3404
3405 * inout.c (build_chill_io_list_type): Change layout of __tmp_WIO_list
3406 that it is always the same, regardless if compiled with -fpack
3407 or not.
3408
3409Tue Jun 14 16:44:14 1994 Per Bothner (bothner@kalessin.cygnus.com)
3410
3411 * lex.l (yywrap): Kludge to work around mis-synchronization
3412 between lexer (which read ahead) and parser: Don't emit
3413 (left-over) uze_seizefile directives at the end of file.
3414
3415 * typeck.c (build_chill_array_ref): Allow the derived
3416 array indexing syntax for arrays of bit strings.
3417 Add a comment explaining why.
3418
3419 * typeck.c, ch-tree.h (string_assignment_condition): Change
3420 the interface. Return a boolean expression (which can be
3421 used in a conditional at run-time); never expand anything.
3422
3423 * actions.c (chill_convert_for_assignment): Check
3424 string_assignment_condition here, rather than in callers.
3425 * actions.c (chill_expand_assignment): Don't need to check
3426 string_assignment_condition here.
3427 * expr.c (build_chill_function_call): Likewise.
3428 * satisfy.c (safe_satisfy_decl): Update accordingly.
3429 * decl.c (do_decl): Simplify testing and conversion by
3430 deferring everything to chill_convert_for_assignment.
3431
3432 * parse.c: Combine the two variables 'ignore_exprs' and
3433 'ignore_actions' into one variable called 'ignoring'.
3434 * ch-tree.h: Add 'extern int ignoring'.
3435 * actions.c, except.c, parse.c, tasking.c, timing.c, typeck.c:
3436 Rename ignore_actions and ignore_exprs to ignoring.
3437 Remove unneeded extern declarations.
3438 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3439 build_chill_arrow_expr, build_generalized_call, build_delay_action,
3440 build_buffer_type, build_event_type): I changed my mind. It is
3441 cleaner to check for 'ignoring' in the parser, rather than here.
3442 * parse.c (parse_action, parse_primval, parse_opt_mode):
3443 Therefore we must check for ignoring here.
3444 * parse.c (parse_loc_declaration): Set ignoring in pass 2
3445 when parsing the mode.
3446
3447 * tasking.c (generate_tasking_code_variable): Do arithmetic
3448 on signal_code etc using unsigned rather than signed shorts.
3449
3450 * grant.c (static char* current_grant_modename): Removed.
3451 * grant.c (decode_decl case CONST_DECL): Remove error message.
3452
3453 * Make-lang.in (CHILL_SRCS): Add $(srcdir)/ch/parse.c.
3454 * Makefile.in: Fix dependencies for parse.o.
3455 Remove some duplicate dependencies for $(TREE_H).
3456
3457Mon Jun 13 14:25:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
3458
3459 * typeck.c (build_chill_cast): Allow a value cast between
3460 non-discrete object of the same size, but with a pedwarn.
3461 * typeck.c (bit_string_assignment_condition,
3462 char_string_assignment_condition): Merge near-duplicate functions
3463 and place the code in string_assignment_condition.
3464
3465 * decl.c (parm_flag, declare_parm_level, in_param_level_p):
3466 Removed. Not used.
3467 * decl.c (start_chill_function, finish_chill_function): Make
3468 parameter level have same nesting level as body, as required by Z200.
3469 * decl.c (switch_to_pass_2): Always exit if an error has been found.
3470 * decl.c (pop_module): Copy DECL_SEIZEFILE to a new ALIAS_DECL
3471 generated from GRANT ALL.
3472 * decl.c (lookup_name_for_seizing): Don't seize from
3473 the nesting level of builtins (predefined objects).
3474 * decl.c (lookup_name_for_seizing): Make more robust on error.
3475
3476 * decl.c (start_chill_function): MAKE DECL_NAME (chill_result_decl)
3477 be 'RESULT' (or 'result'). This makes it more accessible from gdb.
3478 Also, use do_decl to declare it, so that debugging symbols are
3479 generated. And, re-arrange so that actions that need to
3480 be done both passes (such as push_levels) use the same code.
3481
3482 * parse.c (get_type_of): If ignore_exprs, don't lookup name.
3483 * parse.c (end_function): Fix poplevel params.
3484 * parse.c (expect): Don't read forwards on an error.
3485 * parse.c (parse_field): Don't define two tag_list locals!
3486 * parse.c (parse_pass_1_2): Better error message.
3487
3488 * parse.c (parse_mode, parse_opt_mode): Have parse_mode call
3489 parse_opt_mode, rather than vice versa. If parse_opt_mode
3490 returns NULL_EXPR, then parse_mode gives an error.
3491 Change parse_opt_mode (and any functions it calls) to only
3492 return NULL_TREE if there is no mode (even on ignore_exprs).
3493 (parse_set_mode, parse_structure_mode, parse_procedure_mode):
3494 Never return NULL_EXPR.
3495 * tasking.c (build_buffer_type, build_event_type): Return
3496 void_type_node instead of NULL_EXPR if ignore_exprs is true.
3497
3498 * parse.c (parse_synonym_definition): Call parse_untyped_expr
3499 only if we have a mode.
3500 * parse.c (parse_send_action): Parse list of untyped_expr's,
3501 rather than a list of (typed) expressions.
3502 * parse.c (parse_primval): Emit error if '[' seen without
3503 preceding mode name. (If this is to be allowed, call
3504 parse_untyped_expr instead.)
3505
3506 * parse.c (parse_array_index): Renamed to ...
3507 (parse_index_mode): ... to match Z200 terminology.
3508 Re-write to resolve some of the nastier ambiguities,
3509 and allow things like ' CHAR(10) : CHAR(20) '.
3510
3511 * parse.c (parse_tuple_element): Change interface to return
3512 reversed list, so don't call nreverse.
3513 * parse.c (parse_tuple): No longer nreverse element list here.
3514 * parse.c (parse_opt_element_list): Do nreverse here instead.
3515 * parse.c (parse_case_label_list): Call nreverse at end.
3516
3517Fri Jun 10 15:36:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3518
3519 * typeck.c (chill_similar): Remove bogus "else".
3520
3521Wed Jun 8 00:01:40 1994 Per Bothner (bothner@kalessin.cygnus.com)
3522
3523 * ch-tree.h (TYPE_ARRAY_MAX_SIZE): New macro (and comment)
3524 to make it clearer that we are using TYPE_MAX_VALUE in a special way.
3525 * typeck.c (build_chill_slice): Use TYPE_ARRAY_MAX_SIZE.
3526 * expr.c (chill_expand_expr case CONCAT_EXPR): Likewise.
3527 * convert.c (convert): When converting a fixed string/array
3528 to varying, and we need padding, set the TYPE_ARRAY_MAX_SIZE
3529 of (the type of) the padding.
3530 * convert.c (convert): If the concatenation is non-constant, use
3531 the low-level 'build' to set the type of the result (which is usually
3532 a fixed-size array) rather than depend on build_chill_binary_op
3533 to figure it out (it's unable to simplify the size to a constant).
3534
3535Mon Jun 6 18:16:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
3536
3537 * lang.c (lang_decode_option): Let -fspecial_UC imply
3538 -fno-ignore-case without requiring it explicitly.
3539 * lang.c (lang_decode_option): Support (experimentally)
3540 the -fpack and -fno-pack flags.
3541
3542Thu Jun 2 20:49:51 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
3543
3544 * configure: Add support for --program-prefix and --program-suffix.
3545
3546Tue May 31 18:12:00 1994 Per Bothner (bothner@kalessin.cygnus.com)
3547
3548 * convert.c (digest_constructor): Check that initial value
3549 is compatible with element mode before calling convert.
3550 * typeck.c (chill_compatible): A string mode is not compatible
3551 with an untyped constructor.
3552 * decl.c (do_decl): Clean up error messages. Use error_with_decl.
3553
3554 * ch-tree.h: Fix inconsistencies: bool_true_node ->
3555 boolean_true_node, and bool_false_node -> boolean_false_node.
3556 * typeck.c (valid_array_index_): Minor simplification.
3557
3558Tue May 31 04:33:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3559
3560 * inout.c (build_chill_writetext): Add correct processing
3561 of POWERSET RANGE (setmode).
3562
3563 * lex.l (same_file): Add searching for file(s) in
3564 seize_path_list.
3565
3566Fri May 27 14:22:42 1994 Per Bothner (bothner@kalessin.cygnus.com)
3567
3568 * Make-lang.c (CHILL.mostlyclean, CHILL.distdir): Don't list
3569 yacc/bison output files, since the grammer is no longer in yacc.
3570 * config-lang.in (diff_excludes): Likewise.
3571
3572Thu May 26 16:38:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
3573
3574 * gperf, hash.h, lex.l, parse.h: Rename PROCESS_TYPE token
3575 (in some files spelled PROCESS_TYPE_ to avoid clashes
3576 with the PROCESS_TYPE tree_code) to PROCESS_TYPE_TOKEN.
3577
3578Thu May 26 02:18:28 1994 Wilfried Moser (moser@rtl.cygnus.com)
3579
3580 * timing.c (build_cycle_start): Change call to __define_timeout.
3581 * decl.c (init_decl_processing): Change definitions of
3582 __define_timeout and __wait_timeout.
3583
3584Wed May 25 11:53:09 1994 Per Bothner (bothner@kalessin.cygnus.com)
3585
3586 Replace yacc-based parser with a recursive-decent parser.
3587 (This may seem backwards, but Chill [like C++] is not a
3588 language that is remotely LALR(1). Using a R-D parser
3589 allows us to use look-ahead and to back-up to resolve the
3590 difficult ambiguities.)
3591 * parse.y: Removed.
3592 * parse.c, parse.h: New files, containing new r-d parser.
3593 * Makefile.in: Update accordingly.
3594 * actions.c (chill_convert_for_assignment): Don't return
3595 NULL_EXPR if ignore_exprs is true. It simplifies the parser
3596 if we consistently reserve NULL_EXPR for a missing expression.
3597 * expr.c (build_chill_function_call): Likewise.
3598
3599 * lex.l: Tweaks for new parser.
3600 * lex.l (prepare_paren_colon, paren_paren_colon_level,
3601 paren_level): Ugly hack no longer needed.
3602
3603 * expr.c (build_chill_function_call): Cleanup.
3604 Call chill_convert_for_assignment to convert IN/INOUT
3605 paramaters on both input and output. For LOC parameters,
3606 give error if actual is a non-referable location.
3607 * actions.c (convert_for_assignment): Add new parameter (a
3608 "place" string used in error messages).
3609 * actions.c (adjust_parm_or_field): Removed.
3610 * actions.c (chill_expand_assignment): Take just a single LHS,
3611 and move support for multiple assignments to ...
3612 (expand_assignment_action): ... here. Some cleaning up.
3613 * timing.c (build_cycle_start): Adjust accordingly.
3614 * actions.c (expand_assignment_to_varying_array): Likewise.
3615 * tasking.c (many places): Ditto.
3616 * ch-tree.h: Fix declarations appropriately.
3617
3618 * parse.c (parse_defining_occurrence_list): Return a single
3619 IDENTIFIER_NODE (instead of a singleton list) in the common
3620 case. Minor complication to save a minor amount of space.
3621 * decl.c (do_based_decls): Move guts of code into ...
3622 (do_based_decl): ... this new function.
3623 * decl.c (do_decls): Handle either IDENTIFIER_NODE or a TREE_LIST.
3624 * decl.c (push_syndecl): Replace by ...
3625 (push_syndecl): ... (which only supports a single name).
3626 (push_modedef): Only handle a single name.
3627 * tasking.c (build_process_header, build_signal_struct_type):
3628 Adjust accordingly.
3629
3630 * expr.c (build_generalized_call): Handle string repetition.
3631 * expr.c (build_chill_repetition_op): Change interface.
3632 * grant.c (decode_constant): Allow parameter list to be
3633 a non-TREE_LIST. (Used for string repetition.)
3634
3635Wed May 25 11:28:48 1994 Per Bothner (bothner@kalessin.cygnus.com)
3636
3637 * lex.l (make_identifier): Replaced by ...
3638 (read_identifier, handle_name): ... new functions.
3639 * lex.l: Parse an identifiers using read_identifier using
3640 read_identifier and handle_name, rather than having [f]lex
3641 do it. (One reason is that lex uses a fixed-size buffer.)
3642
3643 * lex.l (read_directive, skip_directive): New functions.
3644 Use them to parse compiler-directives, instead of rather
3645 ugly and useless use of lexer start conditions.
3646
3647Tue May 24 22:36:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
3648
3649 * decl.c (unnamed_module_number): Renamed to ...
3650 (module_number): .. and make non-static.
3651 (push_module): Always increment module_number.
3652 * lex.l (yywrap): Print warning if no modules seen.
3653
3654 * decl.c (pop_module): Don't set DECL_SEIZEFILE of granted
3655 decl to current_seizefile_name (which is unreliable).
3656 * grant.c (chill_grant): Set it here instead.
3657
3658 * expr.c (fold_set_expr): Use int_size_in_bytes instead of
3659 TYPE_PRECISION (which is not defined for a SET_TYPE).
3660
3661Fri May 20 15:21:26 1994 Per Bothner (bothner@kalessin.cygnus.com)
3662
3663 Cleanup to remove need for variables in common storage.
3664 * decl.c: Remove unused use of current_obstack.
3665 * actions.c (maybe_chill_check_decl): Remove unused function.
3666 * actions.h, lang.c: Remove uses of doing_chill_thang.
3667 * ch-tree.h (void_list_node): Make extern (rather than common).
3668 * decl.c (void_list_node): Add definition.
3669
3670Thu May 19 06:54:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3671
3672 * configure (build): Build canon_host and canon_target
3673 to pass it to all subsequently generated Makefiles (needed
3674 for testsuite/execute in case of cross build).
3675
3676Wed May 18 13:27:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
3677
3678 * grant.c (decode_mode): Remove. It checks the TYPE_NAME of
3679 the input type, which loses with the no-longer-new 2-pass
3680 implementation, since the input "type" could be an IDENTIFIER_NODE.
3681 * grant.c (raw_decode_mode): Rename to decode_mode.
3682
3683Tue May 17 13:19:52 1994 Per Bothner (bothner@kalessin.cygnus.com)
3684
3685 * typeck.c (chill_location): Neither a STRING_CST nor a
3686 CONSTRUCTOR is a location.
3687 * typeck.c (chill_root_mode): Convert a function to a
3688 pointer-to-function.
3689 * expr.c (build_chill_indirect_ref, build_chill_component_ref,
3690 build_chill_arrow_expr): If ignore_exprs, return operand
3691 rather than NULL_EXPR. This makes it easier for the parser to
3692 distinguish missing expressions.
3693 * expr.c (build_max_min): Convert the lower bound of a
3694 set to a long before calling run-time routine.
3695 * expr.c (build_chill_pred_or_succ): Use discrete_type_p
3696 to check the argument type.
3697 * expr.c (build_chill_arrow_expr): If argument is not a location,
3698 do a predwarn if it is a STRING_CST or has function type.
3699
3700Tue May 17 06:05:13 1994 Wilfried Moser (moser@rtl.cygnus.com)
3701
3702 * configure (build): Remove building of canon_host and canon_target.
3703 It doesn't work in any case.
3704
3705Mon May 16 02:10:35 1994 Wilfried Moser (moser@rtl.cygnus.com)
3706
3707 * configure (build): Build canon_host and canon_target
3708 to pass it to all subsequently generated Makefiles (needed
3709 for testsuite/execute in case of cross build).
3710 * Make-lang.in (chill-runtime): Change chill to CHILL in the case
3711 statement to build chill-runtime automatically.
3712
3713Mon May 9 15:30:08 1994 Doug Evans (dje@canuck.cygnus.com)
3714
3715 * Makefile.in (FLAGS_TO_PASS): Define.
3716 (OBJDEPS): Define.
3717 (../cc1chill): Depend on $(OBJDEPS) $(C_OBJS).
3718 * Make-lang.in (cc1chill): Delete dependency on $(OBJS) $(BC_OBJS).
3719 (CHILL.mostlyclean): Use `mostlyclean' as recursive target.
3720
3721Sun May 8 13:05:00 1994 Per Bothner (bothner@cygnus.com)
3722
3723 * Make-lang.in (cc1chill): Should not depend on libgcc.a.
3724
3725Thu May 5 18:58:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
3726
3727 * decl.c (copy_lang_decl): New (dummy) function.
3728
3729Mon May 2 14:33:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
3730
3731 * parse.y (sendaction): Fix thinko (in sense of condition).
3732 * tasking.c (build_receive_case_label): Another thinko.
3733
3734 * parse.y (optsigdest): Force ignore_exprs to 0 while parsing
3735 the (signal-)name.
3736
3737 * decl.c (build_chill_function_type): Don't call layout_type
3738 (since that may prevent parameter or result types being
3739 properly satisfied).
3740 * satisfy.c (satisfy): Layout FUNCTION_TYPEs.
3741 * parse.y (procmode): Call build_chill_pointer_type, rather
3742 than build_pointer_type (which incorrectly sets TYPE_SIZE).
3743
3744 * parse.y (get_type_of): Handle TYPE_DECL (again).
3745 * parse.y (optresultspec): Call build_chill_reference_type, rather
3746 than build_reference_type (which incorrectly sets TYPE_SIZE).
3747 * parse.y (range_or_mode): Rename to plain range, since it
3748 no longer matches modename.
3749 * actions.c (chill_handle_case_label_range): New function, with
3750 functionality moved out of chill_handle_case_label.
3751 * actions.c (chill_handle_case_label): Handle here the case that
3752 the label_value is a TYPE_DECL (modename). Also clean up some.
3753 * typeck.c (build_chill_slice_with_length): Convert max_index
3754 to the type of min_value. (Old code broke on varying strings.)
3755
3756Sun May 1 13:53:36 1994 Doug Evans (dje@canuck.cygnus.com)
3757
3758 * Makefile.in (BC_OBJS): Delete all references
3759 (OBJS): Cat ../stamp-objlist to get language independent files.
3760 (../cc1chill): Delete dependency on $(OBJS).
3761 * Make-lang.in (cc1chill): Depend on stamp-objlist.
3762
3763Sat Apr 30 14:50:15 1994 Per Bothner (bothner@kalessin.cygnus.com)
3764
3765 * lex.h, lex.c: Remove lastiddecl.
3766 * lex.l (name_type_signal): Simplify. We no longer check for
3767 TYPENAME or SIGNALNAME (which was unreliable with two passes).
3768 Also rename to make_identifier.
3769 * parse.y: Cleaned up grammar to not need SIGNALNAME or TYPENAME.
3770 * Makefile.in (stamp-parse); One conflict fewer!
3771 * parse.y (rccase_label_flag): Moved to tasking.c.
3772 * parse.y (rccase_label): Move most of the logic to
3773 build_receive_case_label in tasking.c.
3774 * parse.y (sendaction): Re-write to not depend on SIGNALNAME.
3775
3776 * parse.y (name): Do name lookup here (and not in location).
3777 * parse.y: Replace most uses of NAME by higher-level non-terminals:
3778 simple_name_string, name_string, defining_occurrence, or name.
3779
3780 * tasking.c (build_receive_signal_case_label,
3781 build_receive_buffer_case_label): New functions, split out from
3782 build_receive_case_label.
3783 * tasking.c (build_receive_case_label): Change parameters
3784 and return type. Moved stuff here (from the parser).
3785 * tasking.c (struct rc_state_type): Removed had_errors.
3786 Return error_mark_node instead.
3787 * tasking.c (build_rccase_set_error), ch-tree.h: Removed.
3788
3789 * expr.c (build_generalized_call): If func is a signal type,
3790 call build_signal_descriptor.
3791
3792 * parse.y (arrayindex): Renamed to index_mode, to match Z.200.
3793 * parse.y (ioindexmode): Removed; use index_mode instead.
3794 * expr.c (build_generalized_call): If args is a RANGE_EXPR,
3795 we have either a slice or a range mode, depending on func.
3796 * parse.y (index_mode): If we got an 'expr', only allow a name,
3797 or a range mode.
3798 * parse.y (call): A slice with both end points can be a range
3799 mode, so defer handling to build_generalized_call (or index_mode).
3800
3801 * typeck.c (build_chill_slice_with_length): Fix type-checking.
3802 * typeck.c (chill_novelty): Undo (part of) change of April 28:
3803 The novelty of a range mode is the novlety of the parent.
3804 * typeck.c (chill_root_mode): Don't return integer_type_node
3805 if argument has non-nil novelty.
3806
3807 * decl.c (global_bindings_p): Return -1 as true, for the sake
3808 of variable_size (in ../stor-layout.c).
3809
3810Fri Apr 29 13:42:43 1994 Per Bothner (bothner@kalessin.cygnus.com)
3811
3812 * parse.y: Remove TYPENAME and modename. These are now plain
3813 NAMEs. Modify parsing actions appropriately.
3814 * expr.c (build_generalized_call): Handle the case that
3815 TREE_CODE (func) == TYPE_DECL (as in a cast).
3816 * lex.l (name_type_signal): Never return TYPENAME.
3817 * parse.y (get_type_of): If pass 1, just return the argument.
3818
3819 * decl.c (do_decl): If an initializer has the wrong type,
3820 replace it by NULL_TREE, to avoid subsequent errors.
3821
3822Thu Apr 28 15:21:56 1994 Wilfried Moser (moser@rtl.cygnus.com)
3823
3824 * Makefile.in: Add new file timing.c to rules.
3825 * timing.c: New file. Implements the timing actions AT,
3826 CYCLE and AFTER.
3827 * decl.c (init_decl_processing): Add new builtin function
3828 descriptions.
3829 * expr.c (build_chill_indirect_ref): Change error message and
3830 add check agains an IDENTIFIER_NODE.
3831 * gperf, hash.h: Change EVENT_CODE, BUFFER_CODE to IGNORED_DIRECTIVE.
3832 They are no longer needed.
3833 * grant.c (print_integer_type): Add processing of builtin types
3834 DURATION and TIME.
3835 * lex.l: Remove processing of directive EVENT_CODE & BUFFER_CODE.
3836 * parse.y (timingactions): split up to afteraction, ataction
3837 and cycleaction.
3838 * parse.y (afteraction): New rule.
3839 * parse.y (ataction): New rule and put actions in.
3840 * parse.y (cycleaction): New rule and put actions in.
3841 * parse.y (sendaction): Add code for SEND buffer.
3842 * parse.y (rccase_label): Change error processing.
3843 * tasking.c (build_gen_inst): More checks.
3844 * tasking.c (build_gen_code): Add checking for argument is a
3845 PROCESS or a SIGNAL.
3846 * tasking.c (struct rc_state_type): Add new fields for easier
3847 error processing.
3848 * tasking.c (build_receive_case_if_generated), ch-tree.h: New function.
3849 * tasking.c (build_rccase_set_error), ch-tree.h: New function.
3850 * tasking.c (build_receive_case_label): Add processing of BUFFER's.
3851 * tasking.c (build_receive_buffer_case_end, build_receive_signal_case_end):
3852 New functions to process the end of a RECEIVE CASE action in case
3853 of BUFFER's and SIGNAL's.
3854 * tasking.c (build_receive_case_end): Do only general processing and
3855 call one of the above mentioned functions.
3856 * tasking.c (build_delay_case_start, build_delay_case_label,
3857 build_delay_case_end): Rewritten due to new implementation of events.
3858 * tasking.c (build_delay_action): Rewritten due to new implementation
3859 of EVENT's.
3860 * tasking.c (expand_send_buffer), ch-tree.h: New function.
3861 * timing.c (build_at_action, build_cycle_start, build_cycle_end),
3862 ch-tree: New functions.
3863
3864Thu Apr 28 14:11:29 1994 Per Bothner (bothner@kalessin.cygnus.com)
3865
3866 * typeck.c (smash_dummy_type): Handle the special case of a
3867 NEWMODE of a range mode, as required by Z200, by creating a
3868 new parent mode with the new novelty (and casting the min
3869 and max of the range to teh new parent mode).
3870 * typeck.c (chill_novelty, chill_root_mode): Remove special
3871 kludges for of NEWMODE ranges.
3872 * expr.c (build_chill_lower_or_upper): New function, combining
3873 the "guts" of build_chill_lower and build_chill_upper.
3874 * expr.c (build_chill_lower_or_upper): Simplify; no longer
3875 need to kludge the novelties.
3876
3877 * typeck.c (valid_array_index_p): A string index expression
3878 need not be Compatible with the index type; only similar.
3879
3880 * decl.c (layout_chill_variants): If error seen, skip stuff
3881 (rather than aborting or crashing).
3882 * decl (push_modedef): If newdecl's type is an error mark,
3883 continue rather than aborting.
3884
3885Thu Apr 28 02:07:42 1994 Doug Evans (dje@cygnus.com)
3886
3887 * Make-lang.in: Update of directory reorg from fsf.
3888 * config-lang.in: Ditto.
3889
3890Mon Apr 25 13:09:46 1994 Per Bothner (bothner@kalessin.cygnus.com)
3891
3892 * typeck.c (chill_similar): Check RECORD_TYPEs properly,
3893 * convert.c (convert): If all else fails, just call convert1.
3894 Thus we can now convert RECORD_TYPEs (assuming they are similar).
3895
3896 * parse.y, lex.l: Remove BUFFERNAME (use location/expr instead).
3897 * parse.y: Re-do BUFFER handling (similar to previous EVENT change).
3898 * grant.c (raw_decode_mode): Re-do BUFFER mode handling.
3899 * ch-tree (lang_type_record): Removed max_queue_size field.
3900 * tasking.c (build_buffer_type): Re-write.
3901 * tasking.c (max_queue_size): Fix to support buffer modes.
3902 * tasking.c (buffer_element_mode), ch-tree.h: New function.
3903 * tasking.c ch-tree.h (expand_send_buffer): Now has 3 parameters.
3904 * parse.y (modename): No longer match SIGNALNAME. Instead, add it
3905 to name and simple_name_string. This removes a reduce/reduce conflict.
3906 * Makefile.in (stamp-parse): Expect fewer conlicts.
3907
3908 * lex.l (yywrap): Move check for circularly seizeing current
3909 grant-file from here ...
3910 * lex.l (handle_use_seizefile_directive): ... to here.
3911 This is to avoid calling stat on a not-yet written grantfile,
3912 now that we're using same_file (which calls stat).
3913 * grant.c (set_use_this_gf): Removed.
3914 * grant.c (set_default_grant_file): Set grant_file_name here,
3915 because we need it earlier (due to above lexer change).
3916
3917 * typeck.c (layout_chill_struct_type): Remove useless code to
3918 remove zero-width bitfield (which messes up CONST_DECLs).
3919
3920Sat Apr 23 13:16:39 1994 Bill Cox (bill@rtl.cygnus.com)
3921
3922 * Makefile.in (check): Assure that 'ld' is available before checking.
3923
3924Thu Apr 21 13:23:54 1994 Per Bothner (bothner@kalessin.cygnus.com)
3925
3926 * grant.c (print_an_int): Removed.
3927 (raw_decode_mode): Generalized to use decode_constant
3928 instead of print_an_int.
3929 (decode_constant): Print directly, instead of calling print_an_int.
3930 * parse.y (event_list): Fix syntax.
3931 * parse.y (optqueuesize): Default is NULL_TREE, not zero.
3932 * tasking.c (check_queue_size): New function, for error checking.
3933 * ch-tree.h: Add declaration for check_queue_size.
3934 * satisfy.c (satisfy case RECORD_TYPE): Satisfy constant fields
3935 (used for queue size of EVENT and BUFFER), and call check_queue_size.
3936
3937Tue Apr 19 13:42:41 1994 Per Bothner (bothner@kalessin.cygnus.com)
3938
3939 Re-implement EVENT modes to support general EVENT objects
3940 (and not just EVENT names), according to Z200. (Not finished!)
3941 * tasking.c, ch-tree.h (max_queue_size): New function.
3942 * parse.y (dcalternative, event_list, event_list_head): New
3943 implementation of DELAY CASE, avoiding parsing ambiguities.
3944 (call, locdec, delayaction): Remove old EVENTNAME kludges.
3945 * lex.l (name_type_signal): Remove EVENTNAME recognition.
3946 * tasking.c (build_event_type): Re-written.
3947 * typeck.c (chill_similar), decl.c (print_lang_type):
3948 Use new max_queue_size function.
3949 * typeck.c (layout_chill_struct_size): Ignore CONST_DECL.
3950 * tasking.c (build_delay_action): Preliminary changes - just to
3951 make it compile. FIXME!
3952 * grant.c (raw_decode_mode): Use new max_queue_size function.
3953 Move EVENT support from LANG_TYPE to RECORD_TYPE.
3954 * ch-tree.h (process_event_decls): Removed.
3955
3956Tue Apr 19 11:44:01 1994 Bill Cox (bill@rtl.cygnus.com)
3957
3958 * regression.sh: Complete previous change - eliminate all
3959 references to objdir as a user parameter.
3960
3961Mon Apr 18 10:17:55 1994 Bill Cox (bill@cygnus.com)
3962
3963 * Makefile.in (check): Simplified regression.sh call.
3964 * regression.sh: Change command-line parsing. Default
3965 srcdir to the script's path. Calculate objdir
3966 internally - don't pass it in.
3967
3968Thu Apr 14 13:30:19 1994 Wilfried Moser (moser@phishhead.cygnus.com)
3969
3970 * expr.c (build_chill_duration): Add range checking.
3971
3972 * lex.l (init_lex): Add predefined names DURATION and TIME.
3973 * lex.h (enum rid): Add RID_DURATION and RID_TIME.
3974 * ch-tree.h: Add prototypes and externals.
3975 * decl.c (init_decl_processing): Add builtin function
3976 descriptions.
3977 * expr.c (build_generalized_call): Add processing of some
3978 builtin's.
3979 * expr.c (build_chill_abstime): New function to process builtin
3980 ABSTIME.
3981 * expr.c (build_chill_inttime_type): New function to built type
3982 for the INTTIME builtin.
3983 * expr.c (build_chill_inttime): New function to process builtin
3984 INTTIME.
3985 * expr.c (build_chill_duration): New function to process builtin's
3986 MILLISECS, SECS, MINUTES, HOURS and DAYS.
3987
3988Tue Apr 12 11:55:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
3989
3990 * lex.l (chill_same_grant_file): Rename to same_file. Change to
3991 take two files names rather than two DECLs. Also check that the
3992 filesystems (st_dev) are equal. Finally, make static.
3993 * lex.l (handle_use_seizefile_directive): Check for duplicate
3994 USE_SEIZE_FILE directives using same_file.
3995 * decl.c (pop_module): Remove dubious call to chill_same_grant_file.
3996
3997Sun Apr 10 17:19:56 1994 Per Bothner (bothner@kalessin.cygnus.com)
3998
3999 * decl.c, ch-tree.h (chill_result_decl): New variable. Used to
4000 store RESULT value. (Cannot use DECL_RESULT; see comment in decl.c.)
4001 * actions.c (chill_expand_result, chill_expand_return):
4002 Use chill_result_decl appropriately.
4003 * ch-tree.h, decl.c, actions.c (saved_result_rtx): Removed.
4004 Subsumed by chill_result_decl.
4005
4006 * expr.c (chill_expand-expr case CONCAT_EXPR): Generate temporary
4007 using the mode of the result type, and don't assume it is BLKmode.
4008
4009Fri Apr 8 17:46:13 1994 Per Bothner (bothner@kalessin.cygnus.com)
4010
4011 * actions.c (chill_expand_assignment): Check for compatibility
4012 _after_ "expanding out" a binary operation. This fixes
4013 the case "STRING //:= CHAR".
4014
4015 * lex.l (equal_number): Convert symbol to integer_type_node, to
4016 force the value to be INT-derived (and avoid novelty conflicts).
4017
4018Mon Apr 4 22:06:31 1994 Per Bothner (bothner@cygnus.com)
4019
4020 * ch-tree.h (CH_FUNCTION_SETS_RESULT): New flag.
4021 * ch-actions.c (chill_expand_return), ch-tree.h: Extra
4022 parameter, indicates if implicit return at end of function.
4023 * ch-parse.y: Modify accordingly.
4024 * ch-actions.c (chill_expand_return): Various improvements.
4025
4026 * decl.c, ch-tree.h (result_never_set): New variable.
4027 * actions.c (chill_expand_result, chill_expand_return): Clear it.
4028 * ch-parse.y (end_function): Warn if no RETURN or RESULT action.
4029
4030 * decl.c, ch-tree.h (saved_result_rtx): New variable.
4031 * decl.c (start_chill_function): Use saved_result_rtx as return
4032 value if there is a RESULT in a REG that might get clobbered.
4033 * actions.c (chill_expand_result): Save result in saved_result_rtx
4034 or assign to DECL_RESULT as appropriate.
4035 * decl.c, ch-tree.h (current_function_returns_value,
4036 current_function_returns_null, current_extern_inline):
4037 Don't use. Only define first two to allow linking with ch-typeck.c.
4038
4039 * typeck.c (chill_l_equivalent): Add forward declaration.
4040
4041Fri Apr 1 11:02:27 1994 Wilfried Moser (fs_moser at rcsw47)
4042
4043 * lex.l (readstring): Handle control sequence in all cases (Z.200
4044 5.2.4.4 page 54).
4045
4046Fri Apr 1 13:11:27 1994 Per Bothner (bothner@kalessin.cygnus.com)
4047
4048 * configure: Simplify and fix the logic for looping through
4049 sub-directories.
4050
4051Thu Mar 31 18:59:57 1994 Per Bothner (bothner@kalessin.cygnus.com)
4052
4053 * ch-tree.h (CH_L_EQUIVALENT): Moved from typeck.c.
4054 * typeck.c (chill_similar): Add support for checking
4055 FUNCTION_TYPEs for similarity. Also, treat
4056 pointer-to-function-type the same as function-type.
4057
4058Thu Mar 31 11:22:56 1994 Wilfried Moser (fs_moser at rcsw47)
4059
4060 * ch-tree.h: Change prototype of function expand_send_signal.
4061 * parse.y: Change calls to expand_send_signal.
4062 * tasking.c (expand_send_signal): Change handling of optsetto
4063 argument. New argument signame to get a possible destination
4064 process for the signal.
4065
4066Wed Mar 30 14:54:48 1994 Wilfried Moser (fs_moser at rcsw1j)
4067
4068 * tasking.c (make_process_struct): Change error message in case of
4069 a process argument has other attribute then IN or LOC.
4070 * tasking.c (build_start_process): Add check that the optset is
4071 referable in case it is specified (this makes
4072 noncompile/start_.ch working).
4073
4074Tue Mar 29 13:24:27 1994 Wilfried Moser (fs_moser at rcsw1h)
4075
4076 * Makefile.in: Change version string to 1.2.1
4077 * ch-tree.h (enum chill_built_in_function): Delete no longer valid
4078 entries.
4079 * ch-tree.h: Change prototype for build_chill_readtext.
4080 * decl.c (init_decl_processing): Add builtin_function _readstring,
4081 _readunixstd and READTEXT.
4082 * expr.c (build_generalized_call): Add processing of READTEXT.
4083 Delete handling of no longer valid builtin_functions.
4084 * gperf: Remove keyword READTEXT.
4085 * parse.y: Remove token READTEXT.
4086 * inout.c (build_chill_io_list_type): Add building type for
4087 READTEXT.
4088 * inout.c (build_chill_readtext): Implement the function
4089 (partial).
4090 * inout.c (build_chill_writetext): Do some cleanups.
4091
4092Tue Mar 29 12:30:59 1994 Per Bothner (bothner@kalessin.cygnus.com)
4093
4094 * typeck.c (build_chill_cast): Re-arrange, to support casts
4095 of const integer to type of different size, if there is
4096 an integral type of the desired size: Go through the
4097 const conversion code.
4098
4099 * actions.c (adjust_parm_or_field): Move support for LOC to ...
4100 * expr.c (build_chill_function_call): ... here.
4101 Fix a number of bugs in OUT/INOUT handling.
4102
4103 * ch-tree.h, actions.c (adjust_parm_or_field), grant.c (print_struct),
4104 parse.y (location), typeck.c (chill_comptypes): Remove unused
4105 support for ENCAPSULATED_ARRAY_P.
4106 * typeck.c (build_chill_array_parm_type), ch-tree.h: Remove; unused.
4107
4108 * ch-tree.h, decl.c (shadow_record_fields), decl.c
4109 (shadow_record_fields), expr.c (chill_expand_case_expr,
4110 build_chill_function_call), grant.c (chill_finish_compile),
4111 typeck.c (build_empty_string, build_init_struct): Rename magic
4112 identifiers of the form "<...>" to "__..." for better portability.
4113
4114 * actions.c (adjust_parm_or_field): Remove extraneous
4115 call to build_chill_repetition_op.
4116 * expr.c (build_chill_function_call): Some simplifictions
4117 (since neither valtail nor typetail can be NULL).
4118 Clean up error message for OUT//INOUT not location to use only 1 line.
4119 Add error message for OUT/INOUT if type is READonly.
4120 * typeck.c (build_chill_modify_expr): Simplify.
4121
4122Sun Mar 27 19:30:25 1994 Bill Cox (bill@rtl.cygnus.com)
4123
4124 * Makefile.in: Clean up generally. Assure that
4125 runtime is built before running regressions.
4126 Build correct parameters to regression.sh.
4127 Remove a lot of 'clean' cruft.
4128 * Make-lang.in, config-lang.in: New files for
4129 subdirectory architecture.
4130
4131Sat Mar 26 10:39:12 1994 Bill Cox (bill@rtl.cygnus.com)
4132
4133 * Makefile.in (check): Build correct parameters for regression.sh.
4134
4135Fri Mar 25 10:13:06 1994 Bill Cox (bill@rtl.cygnus.com)
4136
4137 * configure: Also mark regression.awk3 as executable.
4138 * regression.sh: Add comments about command-line options.
4139 Calculate srcdir correctly, defaulting to the script's path.
4140 Add OPT flag to pass to the Makefiles, to specify the
4141 compiler's optimization level, and -O and -O2 options.
4142 Delete GLOBAL flag and tests. Use a different make.log
4143 file for optimized and unoptimized test results. Add the
4144 compiler's host and target triples to the report header.
4145
4146Wed Mar 23 21:41:26 1994 Bill Cox (bill@rtl.cygnus.com)
4147
4148 * expr.c (build_chill_function_call): Handle INOUT and OUT
4149 parameters better (for the rangefail test, at least).
4150
4151Wed Mar 23 14:13:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4152
4153 * regression.sh (srcdir, objdir): Fixed hard-wired paths.
4154 (grep args): Changed [XYZ-] to [-XYZ] for SCO.
4155
4156Wed Mar 23 13:34:18 1994 Bill Cox (bill@rtl.cygnus.com)
4157
4158 * expr.c (build_generalized_call): Revert previous change.
4159 To do this correctly, we need a new parsing mechanism, and
4160 C++ initializer technology.
4161
4162Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
4163
4164 * expr.c (build_generalized_call): Be sure we're inside the
4165 module-level function before calling build_gen_inst, for
4166 example.
4167
4168Wed Mar 23 09:34:50 1994 Bill Cox (bill@rtl.cygnus.com)
4169
4170 * regression.sh (dodirectory): Count the gcov and abort tests
4171 among the .dat files.
4172
4173Tue Mar 22 15:39:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4174
4175 * satisfy.c (safe_satisfy_decl): When checking that a SYN
4176 value fits in a specified discrete type, don't convert first,
4177 and use compare_int_csts instead of tree_int_cst_lt.
4178
4179Tue Mar 22 15:25:38 1994 Bill Cox (bill@rtl.cygnus.com)
4180
4181 * configure: Generate better .gdbinit files.
4182
4183Tue Mar 22 11:59:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
4184
4185 * actions.c (check_range): Don't emit dynamic checks
4186 if not current_function_decl.
4187
4188 * parse.y (arrayindex): Allow expr (error is emitted
4189 at semantic level if not the NAME of a type).
4190 * typeck.c (build_chill_cast): Re-enable some casts.
4191 * satisfy.c (safe_satisfy_decl): Remove redundant CONST check.
4192
4193Tue Mar 22 11:46:28 1994 Bill Cox (bill@rtl.cygnus.com)
4194
4195 * configure: Access the utils directory correctly.
4196 * expr.c (build_compare_expr): Reenable compatibility test.
4197
4198Tue Mar 22 11:24:45 1994 Per Bothner (bothner@kalessin.cygnus.com)
4199
4200 * typeck.c (valid_array_index_p): Call
4201 build_compare_discrete_expr instead of build_compare_expr.
4202 * typeck.c (build_chill_cast): Improve logic.
4203 * satisfy.c (safe_satisfy_decl): Simplify test.
4204
4205Tue Mar 22 10:17:58 1994 Bill Cox (bill@rtl.cygnus.com)
4206
4207 * actions.c (chill_expand_assignment): Correct detection of
4208 string assignment case.
4209 * expr.c (chill_expand_expr): Now that we're using build_chill_function_call,
4210 the actual parameters need to be converted to the unsigned long
4211 type explicitly. Do that.
4212 * satisfy.c (safe_satisfy_decl): Correct range-checking code.
4213
4214Mon Mar 21 16:25:07 1994 Bill Cox (bill@rtl.cygnus.com)
4215
4216 * Makefile.in: Correct prediction of grammar conflicts.
4217 * actions.c(check_range): Fix reference to NULL_TREE pointer.
4218 And allow compile-time errors even if range_checking is off.
4219 * parse.y: Clean up some comments.
4220 * satisfy.c (safe_satisfy_decl): Add range-check for a SYN's value.
4221
4222Mon Mar 21 13:29:23 1994 Per Bothner (bothner@kalessin.cygnus.com)
4223
4224 * typeck.c (layout_chill_range_type): Instead of tree_int_cst_lt
4225 use compare_int_csts (which is more robust when signedness differs).
4226 Also, convert the bounds *after* doing range checking.
4227
4228 * ch-tree.def (SET_IN_EXPR): New.
4229 * expr.c (chill_expand_expr): Code to expand SET_IN_EXPR,
4230 moved from expand_expr in ../expr.c. Also add some extra
4231 conversions (because we're now using build_chill_function-call).
4232 * actions.c, decl.c, expr.c, grant.c, parse.y, typeck.c:
4233 Use SET_IN_EXPR in place of IN_EXPR.
4234
4235 * expr.c (build_compare_discrete_expr), ch-tree.h: New function,
4236 with code moved from build_compare_expr.
4237 * expr.c (build_compare_expr): Re-enable compatibility test.
4238
4239Mon Mar 21 11:02:33 1994 Bill Cox (bill@rtl.cygnus.com)
4240
4241 * Makefile.in: Rewrite byacc related rules.
4242 * actions.c (chill_convert_for_assignment): Use the
4243 referenced type only for generating range checks.
4244 * configure: Add 'utils' directory to SUBDIRS variable.
4245
4246Sun Mar 20 21:49:59 1994 Bill Cox (bill@rtl.cygnus.com)
4247
4248 * actions.c (check_range): Call build_compare_expr rather than
4249 build_binary_op.
4250 (adjust_parm_or_field): Call convert_for_assignment rathern than
4251 convert, to get the range-checking.
4252 * expr.c (build_chill_pred_or_succ): Fix up rangefail code.
4253 Generate a compile-time message if possible.
4254 (build_compare_expr): Comment out compatibility test - should
4255 not be needed in here. Fix a couple of typos. Add some types
4256 to some build calls.
4257
4258Sun Mar 20 11:48:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
4259
4260 * decl.c (init_decl_processing): Clean up parameter type
4261 list for __setbitpowerset,
4262
4263 * typeck.c (chill_compatible_classes): Allow the M-reference
4264 to be compatible with the N-value class, with suitable M and N.
4265 * typeck.c (build_chill_slice): Don't smash a void TREE_TYPE.
4266 (We don't need to, and it causes confusion.)
4267
4268 * expr.c (build_compare_expr): Fix thinko. Add save_exprs.
4269
4270 * expr.c (build_compare_expr): Fix a transcription bug
4271 (for converting NULL INSTANCEs). Also #include convert.h.
4272
4273 * expr.c (compare_int_csts): New. Compare INTEGER_CSTs.
4274 Works even if their types have different TREE_UNSIGNED.
4275 * expr.c (finish_chill_binary_op): Moved code dealing with
4276 the comparison operators from here ...
4277 * expr.c (build_compare_expr): ... to new function here.
4278 Also, for discrete types, tries to Do The Right Thing, even for
4279 differing values of TYPE_PRECISION and TREE_UNSIGNED.
4280 the code from lay
4281 * ch-tree.h: Declare new functions.
4282 * typeck.c (valid_array_index_p): Various cleanups,
4283 including using new build_parse_expr.
4284 * parse.y: Use new build_compare_expr.
4285
4286 * inout.c (build_chill_writetext): Handle REFERENCE_TYPE args.
4287
4288Sun Mar 20 08:54:27 1994 Bill Cox (bill@rtl.cygnus.com)
4289
4290 * actions.c (expand_assignment_to_varying_array):
4291 Call build_chill_array_ref to get index checking.
4292 (chill_convert_for_assignment): Delete unused errstr
4293 variable.
4294 (chill_expand_assignment): Call build_chill_array_ref
4295 to get runtime index checking.
4296 (expand_varying_length_assignment): Use new interface
4297 to varying_array_index_p.
4298 * ch-tree.h (varying_array_index_p): New proto.
4299 * convert.c (convert): Call build_chill_array_ref
4300 to get runtime index checking.
4301 * expr.c (build_chill_pred_or_succ): Fix cond tree
4302 to have consistent operand types.
4303 * typeck.c (valid_array_index_p): Change interface to pass
4304 validity conditions back on caller's TREE_LIST. We
4305 cannot link the conditions to anything which a
4306 layout_type routine will expand, since that will occur
4307 before the exception handler is set up.
4308 Change calls to valid_array_index_p also.
4309
4310Fri Mar 18 14:40:50 1994 Per Bothner (bothner@kalessin.cygnus.com)
4311
4312 * actions.c, except.c, loop.c, tasking.c: Call
4313 build_chill_function_call instead of the C-specific
4314 build_function_call.
4315 * except.c (initialize_exceptions): Fix parmtype of __builtin_setjmp.
4316 * loop.c (top_loop_end_check): Coerce library function arg.
4317 * convert.c, expr.c: Re-write to avoid calls to C-specific
4318 function build_unary_op (e.g. by calling build1 directly).
4319
4320 * typeck.c (chill_equivalent): Change to force failure
4321 for non-matching integral types (even if not ranges).
4322
4323 * typeck.c, ch-tree.h (build_chill_slice): Make non-static.
4324 * expr.c (varying_to_slice): Call build_chill_slice (and not
4325 build_chill_slice_with_length, which does bunches of range
4326 checking and does not allow the length to be zero).
4327 * convert.c (convert): Fix off-by-one error.
4328 * actions.c (chill_expand_array_assignment): Minor cleaning up.
4329
4330Fri Mar 18 00:12:48 1994 Per Bothner (bothner@deneb.cygnus.com)
4331
4332 * decl.c (init_decl_processing): __lepowerset and __ltpowerset
4333 take *two* pointer parameters, not one.
4334 * satisfy.c (satisfy): Only call the appropriate layout routine
4335 if TYPE_SIZE is 0 (i.e. type hasn't already been laid out).
4336 * typeck.c (build_chill_slice_with_length): Fix Bill's previous fix.
4337
4338Thu Mar 17 17:29:43 1994 Bill Cox (bill@rtl.cygnus.com)
4339
4340 * expr.c (build_chill_function_call): Give function call the correct
4341 type tree.
4342 * typeck.c (build_chill_slice_with_length): Restore dynamic range
4343 checking, so it doesn't obscure the CONSTANTness of the length.
4344
4345Wed Mar 16 17:23:31 1994 Per Bothner (bothner@kalessin.cygnus.com)
4346
4347 * typeck.c (build_chill_slice), expr.c (chill_expand_expr
4348 [case CONCAT_EXPR]): Remove kludge setting slice size upper bound
4349 in TYPE_LANG_SPECIFIC, and restore kludge setting it in MAX_VALUE.
4350 * typeck.c (build_chill_slice): Use TYPE_MAX_VALUE of
4351 array_type if needed for size upper bound of slice_type.
4352 * expr.c (build_concat_expr): Improve calculation of size upper bound.
4353
4354 * typeck.c (valid_array_index_p): Check compatibility using
4355 correct types.
4356 * typeck.c (build_chill_slice_with_length); For now revert
4357 calling valid_array_index_p on length. (It makes it harder
4358 to realize when the slice is constant length.)
4359 * expr.c (build_chill_indirect_expr): Minor tweak. (This
4360 seems to work around a weird C compiler bug. ??)
4361
4362 * expr.c (build_chill_function_call): Cleanup so it doesn't
4363 call build_function_call (in c-typeck.c).
4364 * typeck.c, expr.c: Use build_chill_function_call instead of
4365 build_function_call (in c-typeck.c).
4366
4367 * parse.y (discrete_mode): Move some of the rules from
4368 non_array_mode into new non-terminal.
4369 (arrayindex): Use discrete_mode (with NAME and TYPENAME) to
4370 avoid some misparses.
4371 * ch-tree.h (SLICE_PTR, SLICE_LENGTH): Removed; unused.
4372 * convert.c (digest_structure_tuple): Add missing parameter.
4373 * decl.c (comptypes): Remove unused prototype.
4374 * decl.c (build_chill_function_type): Handle NULL return_type
4375 correctly (convert to void_type_node).
4376 * decl.c (init_decl_processing): layout boolean_type_node *after*
4377 we've set it's TYPE_MIN_VALUE and TYPE_MAX_VALUE.
4378
4379Wed Mar 16 16:08:22 1994 Bill Cox (bill@rtl.cygnus.com)
4380
4381 * ch-tree.h: Add prototype.
4382 * convert.c (convert): Correct calculation of padding length.
4383 * decl.c (grok_chill_fixedfields): Move ignore_exprs test to
4384 parse.y where it belongs. This permits the removal of a kludge
4385 in make_process_struct.
4386 * lex.l, parse.y: Call to_global_level for several errors. Add
4387 code to output error in only one pass.
4388 * tasking.c (make_process_struct): Delete kludge inserted on
4389 March 8.
4390 (build_receive_case_end): Add Wilfried's check for errors.
4391
4392Tue Mar 15 08:42:12 1994 Bill Cox (bill@rtl.cygnus.com)
4393
4394 * actions.c: Fix comment.
4395 (build_rts_call): Ifdef it out - never used.
4396 (expand_varying_length_assignment): call valid_array_index_p.
4397 rather than validate_varying_array_ref.
4398 * ch-tree.h: Fix prototype for valid_array_index_p.
4399 * expr.c (chill_expand_expr): Call build_chill_array_ref to get
4400 index validation.
4401 (build_hill_lower, build_chill_upper): Return value now inherits
4402 the novelty of the input parameter.
4403 (varying_to_slice): Use CH_NOVELTY macro rather than calling
4404 chill_novelty directly.
4405 * grant.c (newstring): Make len unsigned and cast xmalloc parameter
4406 to unsigned.
4407 (print_integer_type): Pass string value as APPEND's second parameter.
4408 (decode_decl): Pass a boolean expression as print_proc_tail's
4409 first parameter.
4410 (chill_finish_module_code): Make xmalloc's parameter unsigned.
4411 * lex.l: Pass sizes to xmalloc as unsigned ints. Pass second
4412 parameter to in_word_set as unsigned.
4413 * loop.c (build_loop_start): Check top_loop_end_check return value.
4414 * parse.y: Add casts to int for third do_decls parameter, fifth
4415 build_loop_iterator parameter, etc.
4416 * tasking.c (build_receive_case_end): Chack cond_stack before popping.
4417 * typeck.c (validate_varying_array_ref, chill_max_vary_array_index,
4418 valid_array_index): Delete them. They're now unused.
4419 (valid_array_index_p): Add function, call it everywhere that an
4420 array index is checked.
4421 (build_chill_slice): Restore old functionality where varying_to_slice
4422 is called to handle slices of varying arrays, rather than handling
4423 handling them here.
4424 (build_chill_slice_with_range, build_chill_slice_with_length):
4425 Check range limits for TREE_CONST before calling tree_int_cst_lt.
4426 Delete now-obsolete checks of constant indices.
4427
4428Mon Mar 14 17:26:51 1994 Per Bothner (bothner@kalessin.cygnus.com)
4429
4430 * parse.y (modeless_expr): New rule to allow ([...]) and (if...)
4431 to count as untyped_exprs. (This is not really permitted by the
4432 Blue Book, but has been requested by customers.)
4433
4434Thu Mar 10 10:11:02 1994 Bill Cox (bill@rtl.cygnus.com)
4435
4436 * chill.texi: Document new command-line options.
4437 * expr.c (build_chill_num): Set unsigned parameter for
4438 type_for_size call correctly (unsigned for enums).
4439 * lang.c (lang_decode_option): Add command-line options to
4440 enable/disable runtime range-checking.
4441 * lex.l: Eat more whitespace.
4442
4443Thu Mar 10 09:41:37 1994 Bill Cox (bill@rtl.cygnus.com)
4444
4445 * Makefile.in: Have rules to make parse.h, y.tab.c and other
4446 derived files. This allows the gcc/configure list of CHILL
4447 files machinery to work.
4448 * ch-tree.h (permanent_allocation): Add a parameter flag.
4449 * decl.c (finish_chill_function, finish_decl): Provide the
4450 new permanent_allocation flag.
4451 (poplevel): Return early, avoid a seg fault.
4452 * lex.l (NORMAL): Replace this whole state with the predefined
4453 INITIAL state. Force compilation state to global level after
4454 compiler directive error - prevents endless loop on error.
4455 (handle_use_seizefile_directive): Rewrite for readability.
4456 (chill_same_grant_file): Reindent.
4457 Generally handle whitespace differently.
4458 * regression.prpt: Print ten PR numbers per line. The report's
4459 getting too long.
4460
4461Wed Mar 9 09:58:51 1994 Bill Cox (bill@rtl.cygnus.com)
4462
4463 * decl.c (do_decl): Suppress the string-assignment-condition
4464 error - it was too often seen.
4465 * expr.c (expand_chill_expr): In CONCAT_EXPR, when argument has a
4466 runtime-changing length (as in a slice), get the parent array's
4467 allocation size from its type tree.
4468 * typeck.c (build_chill_slice): Support VARYING arrays. Pass
4469 parent array's static allocation size along in the slice type.
4470
4471Wed Mar 9 08:54:24 1994 Bill Cox (bill@rtl.cygnus.com)
4472
4473 * lex.l (name_type_signal): Avoid dereferencing a NULL TRE_TYPE.
4474
4475Tue Mar 8 11:51:10 1994 Bill Cox (bill@rtl.cygnus.com)
4476
4477 * expr.c (build_chill_sizeof): Fix typo in error msg, add
4478 some whitespace.
4479 * lex.l (name_type_signal): Add debug output.
4480 * parse.y (call): Allow EVENTNAME and BUFFERNAME parameters
4481 to a call, so that SIZE () works on them.
4482 * tasking.c (make_process_struct): Force ignore_exprs non-zero
4483 when processing a SEIZEd PROCESS declaration. This prevents
4484 grox-fixed_fields from returning a NULL, and indirectly protects
4485 the chill_integer_type_node tree from corruption.
4486
4487Mon Mar 7 19:14:05 1994 Bill Cox (bill@rtl.cygnus.com)
4488
4489 * Makefile.in: Use the 'all' target to build the runtime
4490 library and chillrt0.o.
4491 * README: Explain rules for files in this directory.
4492 * addtest, addtest.man, build-release,
4493 chill.regress.cron: Move to utils subdirectory.
4494 * expr.c (build_chill_function_call): Mark the INOUT
4495 temporary so it doesn't get optimized into a
4496 register. Fixes the execute/inout.ch bug.
4497 * typeck.c (layout_chill_range_type): Restrict it
4498 from complaining about an empty string type's
4499 bounds (0:-1).
4500
4501Mon Mar 7 09:06:39 1994 Bill Cox (bill@rtl.cygnus.com)
4502
4503 * Makefile.in (compiler): Restore this target.
4504 (OBJS, BC_OBJS): Delete unused variables.
4505 Add $(FLAGS_TO_PASS) to sub-make invocations.
4506 * ch_decomment.l, ch_makedepend, chill.patches, printf.c,
4507 tcov.awk, tcov.el, tcov.sh: Move to utils subdirectory.
4508
4509Sat Mar 5 18:37:50 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4510
4511 * except.c (finish_handler_array): When computing address of
4512 the array ex_decl, don't call build_array_ref.
4513
4514Sat Mar 5 17:43:36 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
4515
4516 * loop.c (declare_temps): Force powerset temp to memory.
4517
4518Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4519
4520 * typeck.c (layout_chill_range_type): Convert highval and
4521 lowval to a common type before range-checking them.
4522
4523Fri Mar 4 11:20:44 1994 Bill Cox (bill@rtl.cygnus.com)
4524
4525 * ch-tree.h: Add loop-related prototypes.
4526 * decl.c, grant.c: Fix -Wall violations.
4527 * parse.y: Fix format of %type directives.
4528
4529Fri Mar 4 10:04:18 1994 Wilfried Moser (fs_moser at rcsw1h)
4530
4531 * Makefile.in: Update version number.
4532 * expr.c: Fix a comment.
4533 * inout.c (build_chill_writetext): Add handling of a REAL.
4534 * lex.l (INITIAL): Remove all code to discard 'header lines'.
4535 no longer needed.
4536 * parse.y (optheader): Remove - it's obsolete, as is the
4537 HEADEREL token definition.
4538
4539Fri Mar 4 09:41:18 1994 Bill Cox (bill@rtl.cygnus.com)
4540
4541 * addtest: Fix suffix removal when suffix is .c186.
4542 * regression.sh: Allow for underscores on PR filenames.
4543 * typeck.c: Check in the rewrite mentioned earlier.
4544
4545Thu Mar 3 09:42:10 1994 Wilfried Moser (fs_moser at rcsw1h)
4546
4547 * tasking.c (build_process_header): Build a debug structure
4548 for easier access to PROCESS parameters.
4549
4550Thu Mar 3 09:42:10 1994 Bill Cox (bill@rtl.cygnus.com)
4551
4552 * typeck.c (*string_assignment_condition): Complete rewrite
4553 of a verbose first draft.
4554
4555Wed Mar 2 16:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4556
4557 * actions.c (adjust_return_value): Simplify.
4558 Delete references to CH_RETURNS_LOC, extra parameters to
4559 push_extern_function and start_chill_functions.
4560 (convert_for_assignment): Check whether to generate runtime
4561 range-checking code. Handle reference_type in convert call.
4562 (chill_expand_assignment): Produce an INDIRECT_REF for a
4563 reference_type on the LHS. Delete conversions subsumed by
4564 convert_for_assignment.
4565 * ch-tree.h: Delete parameters from prototypes.
4566 * decl.c (print_lang_decl): Print out signal flag.
4567 (push_extern_function, start_chill_function): Delete
4568 extra parameters, references to CH_RETURNS_LOC.
4569 * grant.c (chill_finish_compile): Delete extra parameter.
4570 * parse.y: Delete references to CH_RETURNS_LOC, extra parameters to
4571 push_extern_function and start_chill_functions.
4572 * regression.sh (checkprms): Skip PRMS discrepancies if we
4573 can't access PRMS for some reason.
4574 * satisfy.c: Correct indentation.
4575 * tasking.c (build_process_header): Delete extra parameters
4576 passed to push_extern_function and start_chill_functions.
4577
4578Wed Mar 2 10:33:50 1994 Bill Cox (bill@rtl.cygnus.com)
4579
4580 * addtest: Require a fill filename. Be more careful about
4581 adding the same test twice.
4582 * expr.c: Add FIXME to comment.
4583 * regression.sh: Add configure script call.
4584
4585Tue Mar 1 16:24:20 1994 Wilfried Moser (fs_moser at rcsw1h)
4586
4587 * Makefile.in: Change version of chill to 1.1.2
4588 * inout.c: Add processing of SET and POWERSET types to WRITETEXT.
4589
4590Tue Mar 1 07:34:56 1994 Bill Cox (bill@rtl.cygnus.com)
4591
4592 RETURN of LOC value is only half-baked. Stay tuned...
4593 * actions.c (adjust_parm_or_field): Add to comment.
4594 (adjust_return_value): New function for issuing errors about
4595 RETURN and RESULT expressions. Also converts them.
4596 (chill_expand_result, chill_expand_return): Call new
4597 adjust_return_value function.
4598 * ch-tree.h (CH_RETURNS_LOC): Add new flag for function types.
4599 New parameter for push_extern_function and start_chill_function.
4600 * decl.c (push_extern_function, start_chill_function): New parameter
4601 to say whether return value is a LOC.
4602 * expr.c (build_chill_indirect_ref): Further qualify the issuing
4603 of the error message.
4604 * grant.c (raw_decode_mode): Move test for instance mode under
4605 STRUCT handling.
4606 (start_chill_module_code, chill_finish_compile): Add new
4607 parameter to start_chill_function calls.
4608 * parse.y (get_type_of): Do lookup_name more often.
4609 (quasi_pdef, procedure, procmode, optresultspec): Set
4610 CH_RETURNS_LOC flag.
4611 (optresultattr): Code keywords as a bitmask.
4612 * tasking.c (build_process_header): Add new parameter to
4613 start_chill_function call.
4614
4615Sat Feb 26 12:49:05 1994 Bill Cox (bill@rtl.cygnus.com)
4616
4617 * Makefile.in: Replace undefined $(RM) with rm -f.
4618 * configure: Make sure scripts are executable.
4619 * regression.sh: Make variables to invoke make
4620 and awk. Don't process a directory if it
4621 doesn't exist.
4622
4623Fri Feb 25 14:48:48 1994 Bill Cox (bill@rtl.cygnus.com)
4624
4625 * Makefile.in (check): Force the building of ../gcov and
4626 ../xgcc before testing. Move the printf dependency here
4627 since we don't need it until we're testing.
4628 * addtest: Strip suffix from each input filename.
4629 * decl.c (do_decl): Correct error checking. Call
4630 string_assignment_condition for some of it.
4631 * tasking.c (build_gen_inst): Add ability to pass an integer
4632 for either the process ID or the copy number. If a number
4633 is passed, range-check it against the CHILL unsigned type
4634 limits.
4635 (build_buffer_descriptor): Add draft code to check the buffer
4636 name for correctness.
4637
4638Wed Feb 23 15:07:12 1994 Per Bothner (bothner@kalessin.cygnus.com)
4639
4640 New cleaner solution to the following problem:
4641 Chill allows an action to be followed by an ON-handler.
4642 But we don't know if an action has a handler until we've parsed
4643 its end, yet we want to generate extra code to set up an
4644 exception handling contour only if needed. The old solution
4645 would generate code for the action into an rtl sequence, and then
4646 splice in the exception-setup code if we later found we needed it.
4647 This has a few problems (for example it confuses the management
4648 of stack temporaries), and is ugly. Now that the compiler is 2-pass
4649 we have a cleaner solution: In pass 1, we remember which actions
4650 were followed by ON-handlers. In pass 2, we use this information
4651 to generate appropriate code before an action.
4652 * except.c (push_handler, pop_handler): In pass 1, set up data
4653 structures (global_handler_list) to remember if an action has an
4654 ON-handler. In pass 2, digest this information, and setup
4655 handler if needed.
4656 * except.c, actions.h (pop_handler): Take an extra int arg.
4657 * except.c (emit_setup_handler): New function, with code (moved
4658 from chill_start_on) to emit code before an action that has a handler.
4659 * except.c (except_init_pass_2): New function.
4660 * parse.y (pass1_2): Call except_init_pass_2 before pass 2.
4661 * parse.y (POP_UNUSED_ON_CONTEXT): Don't call pop_sequence.
4662 * parse.y: Invoke POP_UNUSED_ON_CONTEXT and POP_USED_ON_CONTEXT
4663 in pass 1 as well as pass 2.
4664 * parse.y (BEGIN ... END): Re-arrange logic to avoid block_stack
4665 (local to ../stmt.c) getting out of sync.
4666 * actions.c (push_action): Don't need to emit a NOP,
4667 now that we're no longer moving sequences around.
4668 * actions.c (push_action): Call push_handler even in pass one.
4669
4670Wed Feb 23 11:06:14 1994 Bill Cox (bill@rtl.cygnus.com)
4671
4672 * decl.c (do_decl): Check for possible overflow in initializing
4673 a declared variable.
4674 * expr.c (build-chill_indirect_ref): Add error message for
4675 a syntax error that C programmers converting to CHILL are
4676 quite likely to make.
4677 * satisfy.c (safe_satisfy_decl): Keep yesterday's change from
4678 seg-faulting.
4679
4680Tue Feb 22 17:54:43 1994 Bill Cox (bill@rtl.cygnus.com)
4681
4682 * Makefile.in: Use $(CC) rather than FLAGS_TO_PASS, which isn't
4683 defined. Build chill script differently, and build an install script.
4684 Add an action to run the regression test.
4685 * actions.c (chill_expand_assignment): Change
4686 string_assignment_condition call.
4687 * ch-tree.h: Add prototype.
4688 * expr.c (build_chill_function_call): Change
4689 string_assignment_condition call.
4690 * satisfy.c (safe_satisfy_decl): Add check that string INIT value
4691 will fit in the declared mode.
4692 * typeck.c (string_assignment_condition): Add flag to disable
4693 runtime code generation. Add code to generate runtime test.
4694
4695Mon Feb 21 14:04:20 1994 Bill Cox (bill@rtl.cygnus.com)
4696
4697 * Makefile.in (check): Add target to trigger a regression test.
4698
4699Mon Feb 21 13:54:20 1994 Bill Cox (bill@rtl.cygnus.com)
4700
4701 * decl.c (do _based_decls): Add error check for
4702 decls BASED on a PROC or PROCESS name.
4703
4704Mon Feb 21 13:24:02 1994 Bill Cox (bill@rtl.cygnus.com)
4705
4706 * grant.c (chill_finish_compile): Bypass handling
4707 module-level code if an earlier error has made
4708 is useless.
4709 * tasking.c (build_start_process): Generate error,
4710 return if process name unknown.
4711
4712Mon Feb 21 14:29:41 1994 Wilfried Moser (fs_moser at rcsw47)
4713
4714 * expr.c (build_generalized_call): Use
4715 build_arrow_expr semantics for ADDR () builtin.
4716
4717Mon Feb 21 12:49:14 1994 Bill Cox (bill@rtl.cygnus.com)
4718
4719 * tasking.c (build_gen_inst): Output correct
4720 constructor for GEN_INST.
4721
4722Mon Feb 21 08:14:59 1994 Wilfried Moser (fs_moser at rcsw47)
4723
4724 * lex.l (yywrap): Fix punctuation error.
4725
4726Sun Feb 20 19:58:14 1994 Bill Cox (bill@rtl.cygnus.com)
4727
4728 * regression.sh: Fix cvs update-related commands.
4729 Have cron job always perform the update, so it's
4730 always reporting on the current state of the
4731 sources.
4732 * typeck.c (string_assignment_condition): Allow a
4733 mis-match if the LHS is varying.
4734
4735Fri Feb 18 18:10:04 1994 Bill Cox (bill@rtl.cygnus.com)
4736
4737 * actions.c (expand_chill_assignment): Add call to test the
4738 string assignment condition.
4739 * expr.c (build_chill_function_call): Add call to test the
4740 string assignment condition.
4741 * regression.awk2: Report WITHDRAWN PRs as well.
4742 * regression.sh: Delete extra commentary about FEEDBACK PRs.
4743 * typeck.c (string_assignment_condition): Add function to
4744 perform the check.
4745
4746Fri Feb 18 16:30:40 1994 Bill Cox (bill@rtl.cygnus.com)
4747
4748 * regression.awk1, regression.awk3: Recognize 'withdrawn' PRs
4749 and exclude them from the regression test report. Mark them
4750 in the list of PRs as 'W' status.
4751
4752Thu Feb 17 09:13:42 1994 Wilfried Moser (fs_moser at rcsw47)
4753
4754 * Makefile.in: Define a version number. Build chill script
4755 differently. Makefile depends upon ../configure, not configure.
4756 * chill.in: Define some new flags.
4757
4758Wed Feb 16 19:44:33 1994 Bill Cox (bill@rtl.cygnus.com)
4759
4760 * grant.c (decode_constant): Restore a 'return result' statement
4761 that seems to have gotten lost.
4762
4763Wed Feb 16 12:37:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
4764
4765 * ch-tree.h (various STRING-type macros): Use new TYPE_STRING_FLAG.
4766
4767 * typeck.c (make_chill_array_type): Remove unused args.
4768 Simplify to build only one-dimensionsal arrays, so change
4769 index list to single index. Call layout_chill_array_type
4770 if pass!=1. And rename to: build_simple_array_type.
4771 * typeck.c (layout_chill_array_type): Only recurse
4772 if TREE_TYPE has not been laid out.
4773 * typeck.c (build_chill_array_type): Update accordingly.
4774 * typeck.c (build_chill_slice): Replace calls to build_array_type
4775 (which does hash-canonicalization, which breaks if we later set
4776 the TYPE_STRING_FLAG) by calls to build_simple_array_type.
4777 * convert.c (convert): The same.
4778
4779 * grant.c (decode_constant): Clean up. Remove remnants of switch
4780 on TREE_TYPE of the value, and fold those cases into first switch.
4781
4782Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4783
4784 * Makefile.in: Add printf as a dependency of ../cc1chill.
4785 * regression.sh: Make srcdir and objdir really work.
4786
4787Wed Feb 16 09:12:21 1994 Bill Cox (bill@rtl.cygnus.com)
4788
4789 * expr.c (build_char_array_expr): Fix spelling
4790 error in error msg.
4791 * tree.c (build_string_type): Make check for overlarge
4792 string more robust.
4793
4794Wed Feb 16 02:37:43 1994 Mike Stump (mrs@cygnus.com)
4795
4796 * grant.c (decode_constant): Remove useless tests
4797 for STRING_TYPE (which isn't used by anyone, including CHILL).
4798
4799Tue Feb 15 15:35:07 1994 Bill Cox (bill@cygnus.com)
4800
4801 * build-release: Add refinements to checkout commands.
4802 * decl.c (init_decl_processing): Move initialization of
4803 chill_unsigned_type_node before 1st call to build_string_type.
4804 * tree.c (build_string_type): Add compile-time test of string
4805 allocated length.
4806 * typeck.c (layout_chill_range_type): Add compile-time range limit
4807 checking.
4808
4809Tue Feb 15 08:55:37 1994 Bill Cox (bill@cygnus.com)
4810
4811 * Makefile.in: Add stamp-chill-objs as a dependency of ../cc1chill.
4812 * regression.sh: Rename test directory names.
4813
4814Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4815
4816 * Makefile.in: Change interface with parent directory's
4817 Makefile, decoupling the lists of each others' files.
4818
4819Mon Feb 14 09:24:16 1994 Bill Cox (bill@rtl.cygnus.com)
4820
4821 * lex.l: Delete obsolete comment.
4822 * tasking.c (expand_send_signal): Add a type to the OPTSENDTO
4823 instance constructor.
4824
4825Mon Feb 14 04:04:16 1994 Bill Cox (bill@rtl.cygnus.com)
4826
4827 * lex.l (maybe_number): Add octal to numbers
4828 handled by Feb 1 change.
4829
4830Sat Feb 12 16:24:22 1994 Bill Cox (bill@rtl.cygnus.com)
4831
4832 * actions.c, convert.c, decl.c, expr.c, lex.l,
4833 tasking.c, typeck.c: gcc -Wall cleanups.
4834 * ch-tree.h: Change loop-related prototypes.
4835 * loop.c, parse.y: Rewrite to set up correct loop scope.
4836 Fix error path where loop variable not declared.
4837
4838Fri Feb 11 11:12:29 1994 Bill Cox (bill@rtl.cygnus.com)
4839
4840 * Makefile.in: Add rule to build printf. Make it a dependency
4841 of ../cc1chill.
4842 * printf.c: New tool for regression testing script.
4843 * regression.sh: Look for print in ${objdir}.
4844
4845Thu Feb 24 17:31:12 1994 Wilfried Moser (fs_moser at rcsw1j)
4846
4847 * tasking.c (build_gen_inst): Allow integer expression as argument
4848 1 to this function. This was a change request to get rid of
4849 unsupported value conversion from INSTANCE to ARRAY (0:1) UINT
4850 or STRUCT (t UINT, c UINT).
4851
4852Thu Feb 10 09:49:31 1994 Bill Cox (bill@rtl.cygnus.com)
4853
4854 * regression.awk3: Recognize upper-case PRMS state names.
4855
4856Wed Feb 9 15:26:19 1994 Bill Cox (bill@cygnus.com)
4857
4858 * parse.y (dowithaction): Allow EXIT from DO WITH.
4859
4860Tue Feb 8 13:13:54 1994 Bill Cox (bill@rtl.cygnus.com)
4861
4862 * configure: Change to require grant.c for evidence that we've
4863 found the source directory.
4864 * decl.c (init_decl_processing): delete unused builtin_slice
4865 function declaration.
4866 * expr.c (chill_expand_expr): Calculate powerset's length
4867 correctly, calling powersetlen to do it.
4868 * regression.sh: Replace BASE references with objdir references.
4869 * typeck.c (build_chill_slice): Build the compound expression
4870 in the right order.
4871
4872Mon Feb 7 15:56:07 1994 Bill Cox (bill@rtl.cygnus.com)
4873
4874 * expr.c (build_chill_lower, build_chill_upper): Handle
4875 LOC parameter types.
4876 * regression.sh: Correct path to executable sub-shell-scripts.
4877
4878Mon Feb 7 11:33:47 1994 Bill Cox (bill@rtl.cygnus.com)
4879
4880 * regression.sh: Pervasive changes to allow for separate
4881 source and object directories.
4882
4883Wed Feb 2 17:5620 1994 Bill Cox (bill@rtl.cygnus.com)
4884
4885 * decl.c (find_implied_typed): Delete obsolete reference to
4886 PROCESS_TYPE.
4887 * ch-tree.def (PROCESS_DECL, PROCESS_TYPE): Delete - they're
4888 obsolete.
4889
4890Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4891
4892 * Makefile.in: Delete bogus runtime/Makefile lines.
4893 * configure: Build testsuite directory.
4894
4895Wed Feb 2 13:37:56 1994 Bill Cox (bill@rtl.cygnus.com)
4896
4897 * configure: Correct srcdir for chill.examples directory.
4898
4899Wed Feb 2 11:24:57 1994 Wilfried Moser (fs_moser at rcsw47)
4900
4901 * ch-parse.y (rule call): Add
4902 BUFFERNAME LPRN untyped_expr RPRN
4903 to enable generating a descriptor same as for SIGNALS.
4904 * ch-tasking.c (generate_tasking_code variable,
4905 decl_tasking_code_variable): Implement overflow check of
4906 taskingcode in case a tasking code is specified with the
4907 compiler directives SIGNAL_CODE, BUFFER_CODE, EVENT_CODE or
4908 PROCESS_TYPE.
4909
4910Wed Feb 2 09:31:37 1994 Bill Cox (bill@rtl.cygnus.com)
4911
4912 * configure: Add ${srcdir} to Makefile.in's path.
4913 * loop.c: Delete unused whitespace.
4914
4915Tue Feb 1 17:09:41 1994 Bill Cox (bill@rtl.cygnus.com)
4916
4917 * expr.c (string_char_rep): Process STRING_CST correctly.
4918
4919Tue Feb 1 15:29:28 1994 Per Bothner (bothner@kalessin.cygnus.com)
4920
4921 * expr.c (build_boring_bitstring): New function.
4922 * expr.c (build_chill_repetition_op): Fix a number of bugs in
4923 implementation of bitstring repetition.
4924 Also, implement repetition of Booleans.
4925
4926Tue Feb 1 15:28:21 1994 Bill Cox (bill@rtl.cygnus.com)
4927
4928 * configure: Delete code to check for gas or ld. Add code to
4929 store a config.status file in each configured subdirectory.
4930 * expr.c (): Spell concatbitstring as concatps, which is the
4931 runtime routine name.
4932 * regression.sh: Force use of GNU make.
4933
4934Tue Feb 1 15:22:12 1994 Bill Cox (bill@rtl.cygnus.com)
4935
4936 * tasking.c: Mark compiler-generated temps to prevent
4937 GRANTing them.
4938
4939Tue Feb 1 17:38:51 1994 Wilfried Moser (fs_moser at rcsw1j)
4940
4941 * lex.l (equal_number): Improve check for number after = in a
4942 compiler directive.
4943 * tasking.c (build_tasking_struct): Make field TaskValue
4944 pointer to chill_unsigned_type_node.
4945 * tasking.c (generate_tasking_code_variable): Declare tasking
4946 code variable as chill_unsigned_type_node.
4947 * tasking.c (decl_tasking_code_variable): Declare tasking
4948 code variable as chill_unsigned_type_node.
4949
4950Mon Jan 31 14:01:58 1994 Bill Cox (bill@rtl.cygnus.com)
4951
4952 * addtest (update_Makefile): No longer build actions - they're
4953 now in pattern rules.
4954 * ch_makedepend: Do the grep first, to avoid processing non
4955 USE_SEIZE_FILE lines.
4956 * configure: Pervasive rewrite to support configuring regression
4957 test directories.
4958
4959Mon Jan 31 04:35:53 1994 Michael Tiemann (tiemann@blues.cygnus.com)
4960
4961 * typeck.c (build_chill_slice): Compute EXTENT correctly.
4962
4963Sun Jan 30 14:33:12 1994 Bill Cox (bill@rtl.cygnus.com)
4964
4965 * tasking.c (build_gen_inst): Return a typed tuple with
4966 INSTANCE type.
4967
4968Sun Jan 30 12:01:07 1994 Bill Cox (bill@rtl.cygnus.com)
4969
4970 * actions.c (chill_expand_assignment): Recognize LENGTH builtin
4971 in the left hand side, pass it to
4972 expand_varying_length_assignment.
4973 (expand_varying_length_assignment): Clean up bitrot.
4974 * convert.c (convert): Revert most recent change.
4975 * loop.c (maybe_skip_loop): New function, split out of
4976 begin_chill_loop. Add conditional to skip processing an empty
4977 VARYING array.
4978 * parse.y (assignaction): Delete code to recognize LENGTH
4979 on left-hand-side.
4980 * typeck.c (validate_varying_array_ref): Correct misleading comment.
4981
4982Sat Jan 29 10:54:06 1994 Michael Tiemann (tiemann@blues.cygnus.com)
4983
4984 * typeck.c (build_chill_slice): Pass a valid identifier to
4985 `get_unique_identifier'.
4986
4987 * convert.c (convert): Rename LENGTH variable to MAXIDX, and
4988 use correct value for VAR_LENGTH when initializing a varying array.
4989
4990 * decl.c (do_decl): Set DECL_COMMON.
4991
4992 * actions.c (check_range): Temporarily inhibit warnings so the
4993 compiler doesn't warn the user about useless range checks that it
4994 might create. It's far easier for the compiler to figure out that
4995 a range check need not be done than it is for us to try to figure
4996 it out for ourselves.
4997
4998 * expr.c (build_concat_expr): Generalize to handle bitstrings.
4999 (scalar_to_string): New function.
5000 (chill_expand_expr): Handle SET_TYPEs in CONCAT_EXPR by using new
5001 library call (__concatbitstring).
5002
5003Sat Jan 29 08:43:54 1994 Bill Cox (bill@rtl.cygnus.com)
5004
5005 * ch_makedepend: Fix the 'sed' command so that seize file
5006 name can be delimited by double quotes as well as apostrophes.
5007
5008Thu Jan 27 17:26:19 1994 Per Bothner (bothner@kalessin.cygnus.com)
5009
5010 * typeck.c (my_build_array_ref): Do constant folding.
5011
5012Thu Jan 27 16:24:24 1994 Bill Cox (bill@rtl.cygnus.com)
5013
5014 * actions.c, actions.h, ch-tree.h, chill.texi, convert.c,
5015 decl.c, except.c, expr.c, grant.c, inout.c, lang.c,
5016 lex.h, lex.l, loop.c, parse.y, tasking.c, tasking.h,
5017 tree.c, typeck.c: New 'Copyright' line for 1994.
5018
5019Thu Jan 27 14:12:07 1994 Mike Stump (mrs@cygnus.com)
5020
5021 * configure: Don't configure this directory with this configure,
5022 just subdirectories and cleanup.
5023 * Makefile.in (Makefile): Run config.status in parent directory,
5024 if we need rebuilding.
5025
5026Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
5027
5028 * decl.c (bind_sub_modules): Need a parameter on the recursive call.
5029 Thanks, Zoo!
5030
5031Thu Jan 27 10:37:33 1994 Bill Cox (bill@rtl.cygnus.com)
5032
5033 * expr.c (build_concat_expr): Fix SunOS portability problem.
5034
5035Wed Jan 26 14:57:39 1994 Per Bothner (bothner@kalessin.cygnus.com)
5036
5037 * convert.c (digest_powerset_tuple): New function, used to set
5038 TREE_CONSTANT and TREE_STATIC properly.
5039 (digest_structure_tuple, convert (NULL to instance, non-varying
5040 to varying)): Set TREE_CONSTANT and TREE_STATIC when appropriate.
5041 * expr.c (varying_to_slice): Preserve novelty of slice type.
5042 * expr.c (build_concat_expr): Make sure class of result is
5043 correct (including correct novelty).
5044 * satisfy.c (safe_satisfy_decl): If value of CONST_DECL is
5045 not TREE_CONSTANT, emit an error.
5046 * typeck.c (build_chill_slice): Preserve novelty of result.
5047 * typeck.c (build_chill_slice): Simplify for varying argument
5048 (by using varying_to_slice).
5049 * typeck.c (expand_constant_to_buffer, extract_constant_from_buffer):
5050 New functions.
5051 * typeck.c (build_chill_cast): Use above new functions to convert
5052 constant expressions.
5053 * typeck.c (copy_novelty), ch-tree.h: New function.
5054 * chill.texi: Update for new constant conversion semantics.
5055
5056Tue Jan 25 14:00:02 1994 Wilfried Moser (fs_moser at rcsw1j)
5057
5058 * ch-decl.c (init_decl_processing): Add new builtin function
5059 DESCR. Add call to build_chill_descr_type.
5060 * ch-expr.c: Add function build_chill_descr_type, which actually
5061 build the type the DESCR builtin returns.
5062 Add function build_chill_descr, which process the DESCR builtin.
5063 * ch-expr.c (build_chill_length): Add code to enable
5064 LENGTH (bitstring).
5065 * ch-expr.ch (build_generalized_call): Add processing of DESCR
5066 builtin.
5067 * ch-grant.c: Add code to avoid producing of unnecessary grant
5068 files.
5069 * ch-tree.h: Add enum for builtin function DESCR. Add prototype
5070 for build_chill_descr.
5071 * ch-inout.c (build_chill_io_list_type): Change generation of the
5072 type passed to runtime library according to the new definition.
5073 * ch-inout.c (build_chill_writetext): Change processing of format
5074 string that a character constant is allowed as format string if
5075 compiler gets called with -fold-strings option.
5076 * ch-inout.c (build_chill_writetext): Change processing of
5077 integers in case NEWMODE x = INT.
5078 * ch-inout.c (build_chill_writetext): Remove processing of ranges.
5079 * ch-inout.c (build_chill_writetext): Add processing of
5080 bitstrings.
5081
5082Tue Jan 25 09:07:10 1994 Mike Stump (mrs@cygnus.com)
5083
5084 * Makefile.in (all, OBSTACK): Build interesting things be default,
5085 and make sure we include OBSTACK.
5086
5087Sun Jan 23 12:35:38 1994 Per Bothner (bothner@kalessin.cygnus.com)
5088
5089 * grant.c (decode_constant): Handle RANGE_EXPR.
5090 Simplify handling of CONSTRUCTOR.
5091
5092 * typeck.c (build_chill_slice): Use build_chill_array_ref_1,
5093 not build_chill_array_ref.
5094
5095Sat Jan 22 16:23:30 1994 Per Bothner (bothner@kalessin.cygnus.com)
5096
5097 * parse.y: Generate a RANGE_EXPR (instead of a confusing
5098 TREE_LIST) to indicate a range in case and tuple lables.
5099 * actions.c (chill_handle_case_label), convert.c (digest_constructor):
5100 Update accordingly to handle these RANGE_EXPRs.
5101 * satisfy.c (satisfy): Don't call finish_chill_binary_op
5102 for a RANGE_EXPR.
5103
5104Fri Jan 21 15:39:36 1994 Per Bothner (bothner@kalessin.cygnus.com)
5105
5106 * expr.c (force_addr_of): New function, to encapsulate passing
5107 by reference a powerset or string to a library function.
5108 * expr.c (build_min_max, build_set_expr): Use force_addr_of.
5109 * expr.c (chill_expand_expr case CONCAT_EXPR): Fix passing of
5110 rtl modes. (Old code fails on 64-bit Alpha.)
5111 * expr.c (build_chill_function_call): Remove bogues check for
5112 READonly variable passed as parameter.
5113 * expr.c (build_set_expr): Merge common code.
5114 * parse.y (string repetition): Fix logic for 2-pass scheme.
5115 * expr.c (finish_chill_binary_op), grant.c (decode_constant),
5116 satisfy.c (satisfy): Handle REPLICATE_EXPR.
5117 * chill.texi: Fix typo.
5118
5119Mon Jan 17 13:55:48 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
5120
5121 * Makefile.in (INCLUDE): Add -I$(srcdir)/ch so that toplevel
5122 tree.c can find ch-tree.h.
5123
5124Sat Jan 15 15:34:11 1994 Mike Stump (mrs@rtl.cygnus.com)
5125
5126 * configure: Fix problem so that building in a separate directory
5127 works.
5128
5129Sat Jan 15 09:51:02 1994 Bill Cox (bill@rtl.cygnus.com)
5130
5131 * Makefile.in: Recurse down into runtime to
5132 create its Makefile, and to clean up.
5133 * configure: Recurse into runtime to make its Makefile.
5134
5135Sat Jan 15 09:15:22 1994 Bill Cox (bill@rtl.cygnus.com)
5136
5137 << This set of CHILL frontend sources is now the
5138 maintainable and master set. Accept no substitutes! >>
5139 * Makefile.in, configure: Completely rewritten
5140 to be invoked by gcc/Makefile.in and
5141 gcc/configure.
5142 * addtest (update_ChangeLog): Fix insertion
5143 of the '*'.
5144 * regression.sh: Add global option to suppress results of
5145 proprietary tests.
5146 * cpy.sh: Add necessary edits to files as they
5147 are copied down.
5148 * actions.c, ch-tree.def, ch-tree.h, convert.c,
5149 decl.c, except.c, expr.c, grant.c, inout.c,
5150 lang.c, lex.h, lex.l, loop.c, parse.y,
5151 satisfy.c, tasking.c, typeck.c: Latest
5152 versions from the repository.
5153
5154Fri Jan 14 12:28:39 1994 Bill Cox (bill@rtl.cygnus.com)
5155
5156 * addtest: Fix insertion of line into ChangeLog.
5157 * configure: Add a script.
5158 * Makefile.in: Hack from ../Makefile.in
5159 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5160 * lex.l, loop.c, parse.y, satisfy.c, typeck.c: Latest sources.
5161
5162Mon Jan 10 11:38:07 1994 Bill Cox (bill@rtl.cygnus.com)
5163
5164 * build-release: Rewrite for easier tailoring.
5165
5166Wed Jan 5 08:38:21 1994 Bill Cox (bill@cygnus.com)
5167
5168 * actions.c, convert.c, decl.c, except.c, expr.c,
5169 inout.c, loop.c, parse.y, satisfy.c, typeck.c:
5170 Current versions from devo/gcc.
5171
5172Wed Dec 29 14:07:10 1993 Bill Cox (bill@rtl.cygnus.com)
5173
5174 * addtest: Don't add comment headers to source or .dat files
5175 if they're already present.
5176
5177Wed Dec 29 13:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
5178
5179 * mktg_leads: New file.
5180 * regression.sh, regression.awk2: Updated status report scripts.
5181 * addtest: New script to add a test to a directory.
5182 * ch_makedepend: Add full path to ch_decomment.
5183 * actions.c, convert.c, decl.c, expr.c, grant.c, inout.c,
5184 lex.l, loop.c, parse.y, satisfy.c, tasking.c, typeck.c:
5185 Updated copies of actual sources.
5186 * chill.brochure, chill.texi: Update with current status.
5187 * cpy.sh: Script for updating copies of sources.
5188 * chill.patches: New script for creating a patch release.
5189 Pretty rough.
5190
5191Wed Dec 8 09:35:54 1993 Bill Cox (bill@rtl.cygnus.com)
5192
5193 * build-release: Delete lots of unused regression-testing cruft.
5194 * chill.brochure: Initial draft of marketing brochure.
5195 * chill.patches: Preliminary script for building patch sets
5196 for CHILL.
5197 * tcov.awk, tcov.el, tcov.sh: New files. Script, tools for
5198 building a tcov report on the CHILL compiler.
5199
5200Sun Nov 21 08:34:33 1993 Bill Cox (bill@rtl.cygnus.com)
5201
5202 * Makefile.in: Adjust gperf rule for names in this directory.
5203 * ch_decomment.l: New file. Ignores CHILL comments.
5204 Executable is used bu ch_makedepend.
5205 * ch_makedepend: New script. Makes CHILL dependencies for
5206 Makefiles.
5207 * gperf, hash.h: New files about lexer tokens.
5208 * regression.sh: Delete notes justifying non-summing
5209 report rows.
5210 * regression.awk2: Report PRMS status when there are
5211 missing test results.
5212 * regression.awk3: Add #! line, so this can be used separately.
5213 * Other files: latest versions copied from devo/gcc.
5214
5215Sat Oct 30 15:02:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
5216
5217 * chill.texi: Add new node about conversions.
5218
5219Fri Oct 29 14:17:31 1993 Bill Cox (bill@cygnus.com)
5220
5221 * chill.regress.cron: Change path to executable, enable PR report.
5222 * regression.awk2: Add terminating periods to messages.
5223 * regression.sh: Change path to testsuites. Add disclaimer at end
5224 of report. Print explicit lists of resolved/unresolved PRs.
5225
5226Thu Oct 28 09:22:20 1993 Bill Cox (bill@rtl.cygnus.com)
5227
5228 * regression.sh: More PR-related status is printed.
5229
5230Thu Oct 21 19:24:02 1993 Bill Cox (bill@rtl.cygnus.com)
5231
5232 * regression.sh: Simplify the paths, make the source
5233 and test files accessed separately from the executables.
5234
5235Wed Oct 20 16:35:30 1993 Bill Cox (bill@rtl.cygnus.com)
5236
5237 * regression.sh: Finally fix the file-delete problem.
5238 Thanks, Jeffrey!
5239 * build-release: Make more verbose, fix comment.
5240
5241Mon Oct 18 00:21:24 1993 Bill Cox (bill@cygnus.com)
5242
5243 * regression.sh: Build linker if -U option. Put stderr
5244 into make.log files, too. Also report on Z.200 examples.
5245 * regression.awk3: New script to help build release note.
5246
5247Fri Oct 15 16:33:54 1993 Bill Cox (bill@cygnus.com)
5248
5249 * regression.sh, regression.prpt: Output PR status only
5250 conditionally. Add command-line flag for CVS updates.
5251
5252Thu Oct 14 07:53:59 1993 Bill Cox (bill@rtl.cygnus.com)
5253
5254 * regression.sh: Count PRs accurately.
5255 * Makefile.in: New file.
5256
5257Sat Oct 9 19:46:58 1993 Bill Cox (bill@rtl.cygnus.com)
5258
5259 * regression.awk?: Add program fragments for
5260 report of PRMS/test exceptions.
5261 * regression.sh: Add options and PRMS reports.
5262
5263Fri Oct 8 06:44:41 1993 Bill Cox (bill@rtl.cygnus.com)
5264
5265 Create chill frontend directory, populate it.
5266 Later, the chill-specific frontend files will be moved here.
5267
5268 * chill: Moved here from gcc directory.
5269 * chill.regress.cron: Add crontab file for regression tests.
5270 * regression.sh: Add regression test control script.
5271
5272#
5273# What follows is a copy of the former devo/gcc/ChangeLog.Chill file,
5274#
5275Sat Jan 15 14:54:07 1994 Bill Cox (bill@rtl.cygnus.com)
5276
5277 * ch-*.*: All of these files are now moved to the ch subdirectory.
5278 Further update changes should be recorded in the ch/ChangeLog file.
5279
5280Fri Jan 14 21:09:44 1994 Per Bothner (bothner@kalessin.cygnus.com)
5281
5282 * c-typeck.c, ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
5283 ch-satisfy.c, ch-typeck.c: Undo all of initializer-related changes
5284 that Tiemann did earlier this month.
5285 * c-typeck.c (really_start_incremental_init): Save
5286 constructor_elements and (old value of) constructor_stack
5287 on constructor_stack, to allow for nested initializers.
5288 * ch-convert.c (digest_constructor): If we need a varying
5289 array, and have a constructor (for the array elements),
5290 make sure to use convert so that the constructor gets
5291 wrapped in an implicit record constructor.
5292 * ch-decl.c (do_decl): If there is no initializer for a
5293 varying array (or bitstring), create default constructor.
5294
5295 * ch-expr.c (build_chill_lower): Fix thinko for ARRAY_TYPE.
5296 * ch-satisfy.c (safe_satisfy_decl): Make sure that we make
5297 original decl to check if we need to make an rtl.
5298
5299 * ch-typeck.c (build_chill_array_ref_1), ch-tree.h: New function
5300 which does the actual work for build_chill_array_ref (which
5301 now just loops over an argument list).
5302 * ch-actions.c, ch-expr.c, ch-inout.c: Use build_chill_array_ref_1
5303 instead of build_chill_array_ref where appropriate.
5304 * ch-actions.c, ch-expr.c, ch-typeck.c: Make operand 1 of a
5305 VARY_ARRAY_REF is a single index, not an index list.
5306
5307 * ch-grant.c (__init_list): Renamed to _ch_init_list, to
5308 avoid a conflict on the Alpha.
5309
5310Wed Jan 12 10:19:35 1994 Bill Cox (bill@rtl.cygnus.com)
5311
5312 * ch-lex.l (WS): Add BS, VT and CR to definition of
5313 whitespace.
5314 (convert_number): Allow for uppercase hex digits.
5315
5316Tue Jan 11 19:43:55 1994 Bill Cox (bill@cygnus.com)
5317
5318 * ch-actions.c (lookup_and_handle_exit): Correct
5319 conditional so error messages are output.
5320 * ch-expr.c (build_chill_addr_expr): Add error message.
5321 * ch-grant.c (chill_finish_module_code): Avoid abort by
5322 giving the init_list constructor a type.
5323 (chill_finish_compile): Delete unused code.
5324 * ch-lex.l: Make most build_init_2 calls from the
5325 permanent obstack, so that enumeration values endure.
5326 * ch-loop.c (build_chill_iterator): Add several error
5327 messages.
5328
5329Tue Jan 11 12:31:55 1994 Per Bothner (bothner@kalessin.cygnus.com)
5330
5331 * ch-expr.c, ch-typeck.c: Rewrite some instances of
5332 'struct ch_class class = chill_expr_class (expr);' to
5333 'struct ch_class class; class = chill_expr_class (expr);'
5334 to work around a bug in /usr/ucb/cc on SunOS4.
5335
5336Mon Jan 10 18:29:36 1994 Bill Cox (bill@rtl.cygnus.com)
5337
5338 * ch-actions.c (chill_convert_for_assignment): Avoid seg fault.
5339 * ch-expr.c (expand_packed_set): Add new parameter to pass
5340 set's minimum ordinal value. Fix loop invariant problem.
5341 (fold_set_expr): Change to add new parameter to
5342 expand_packed_set call.
5343 * ch-grant.c: Move extern declaration to ch-tree.h.
5344 * ch-lex.l (convert_bitstring): Also output the bitstring
5345 if yydebug is set.
5346 * ch-tree.h: Add prototype.
5347
5348Mon Jan 10 11:29:41 1994 Bill Cox (bill@rtl.cygnus.com)
5349
5350 * ch-inout.c: Fix comment.
5351 * ch-tree.h: Add prototype.
5352
5353Sun Jan 9 18:22:22 1994 Per Bothner (bothner@kalessin.cygnus.com)
5354
5355 * ch-tree.h (chill_expr_class): New prototype.
5356 * ch-expr.c (build_chill_pred_or_succ, build_chill_unary_op):
5357 Convert result to correct class.
5358 * ch-expr.c (build_chill_repetition_op): Preserve CH_DERIVED_FLAG.
5359 Also, fix some bugs for bitstrings (with ranges).
5360
5361 (Patches from Tiemann.)
5362 * ch-convert.c (convert1): New function to force TREE_TYPE.
5363 (convert): Use convert1 where appropriate.
5364 * ch-typeck.c: Formatting change.
5365 * ch-parse.y (build_chill_constructor): Fix thinko.
5366
5367 * ch-expr.c (varying_to_slice): If array is not referable,
5368 call save_expr on it, rather than stabilize_reference.
5369 * ch-satisfy.c (safe_satify_decl, for CONST_DECL):
5370 Don't force value to value class if mode is not explicitly
5371 specified. Also, make sure convert etc is only done once.
5372
5373Sat Jan 8 16:37:10 1994 Per Bothner (bothner@kalessin.cygnus.com)
5374
5375 * ch-decl.c (build_chill_function_type): Don't call
5376 build_function_type, because it does hash canonicalization,
5377 which once in a while looses badly.
5378 * tree.c (build_function_type): Remove no-longer-needed test
5379 for doing_chill_thang.
5380
5381 * ch-tree.h (CH_DERIVED_FLAG): New flag.
5382 * ch-tree.h (enum ch_expr_class): Renamed to ch_class_kind.
5383 (struct ch_class): New type, used to represent a Chill
5384 'class' as a first-class value.
5385 (CH_ROOT_RESULTING_MODE): Replaced by CH_ROOT_RESULTING_CLASS.
5386 * ch-typeck.c (chill_expr_class): Change interface to return
5387 a struct ch_class.
5388 (chill_compatible, chill_compatible_classes): Update accordingly.
5389 (chill_root_resulting_mode): Replace by ....
5390 (chill_root_resulting_class): ... new function.
5391 * ch-convert.c (convert_to_class): New function.
5392 * ch-decl.c (layout_enum): Mark enum values with CH_DERIVED_FLAG.
5393 * ch-lex.l (string_or_int): Rename to string_or_char.
5394 * ch-lex.l (build_chill_string, string_or_char, convert_bitstring,
5395 convert_float, convert_number): Set CH_DERIVED_FLAG for literals.
5396 * ch-expr.c (finish_chill_binary_op): Use convert_to_class.
5397 * ch-satisfy.c (safe_satisfy_decl): For CONST_DECL, make sure
5398 DECL_INITIAL gets set to result of convert.
5399 Also, clear CH_DERIVED_FLAG for SYN value.
5400 * expr.c (store_constructor): If a [power]set is exactly one
5401 word long, use single-word move.
5402
5403Sat Jan 8 08:38:29 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5404
5405 * c-typeck.c (chill_initializer_constant_valid_p): Fix typo.
5406
5407Wed Jan 5 05:18:46 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5408
5409 * ch-typeck.c (build_chill_slice_with_length): Test that ARRAY is of
5410 ARRAY_TYPE before assuming so. Also, subtract 1 from LENGTH in
5411 computation of SLICE_END.
5412
5413 * ch-typeck.c (chill_location): Treat CONSTRUCTORs like STRING_CSTs.
5414
5415 * ch-expr.c (build_chill_indirect_ref): Handle MODE == NULL_TREE.
5416
5417 * ch-expr.c (fold_set_expr): Handle OP1 == NULL_TREE (which happens
5418 for unary set operations).
5419
5420 * ch-expr.c (build_chill_array_expr): Take new argument FORCE. All
5421 callers changed. All callers changed.
5422
5423 * ch-convert.c (digest_structure_tuple): Handle SELECTED_VARIANT
5424 being NULL_TREE until we've started walking the list of values via
5425 the loop over VARIANTs.
5426
5427 * ch-parse.y (build_chill_constructor): If we see an IDENTIFIER_NODE,
5428 treat it as an enum value (and hence constant). Also, only set
5429 TREE_STATIC if the constructor is indeed constant.
5430 * c-typeck.c (chill_initializer_constant_valid_p): If we see a
5431 VAR_DECL, test the TREE_CONSTANT field of the DECL_INITIAL, don't
5432 recurse on the DECL_INITIAL.
5433
5434Wed Jan 5 01:24:50 1994 Bill Cox (bill@cygnus.com)
5435
5436 * Makefile.in: Add CHILL to LANGUAGES variable.
5437 * ch-actions.c (check_range): Call build_binary_op instead of
5438 fold, build to get the common types chosen.
5439 (cond_range_exception, cond_overflow_exception,
5440 cond_type_range_exception): Delete, obsolete.
5441 (chill_convert_for_assignment): Enable this, get particular
5442 about when to generate rangecheck code.
5443 * ch-expr.c (build_chill_function_call): Sketch in where to
5444 perform chill_convert_for_assignment on actual parameters.
5445 (build_chill_addr_expr): Correct compiler warning.
5446 * ch-loop.c (build_chill_iterator): Add runtime check for
5447 negative loop step expression.
5448 * ch-tree.h: Add prototype.
5449 * ch-typeck.c (chill_max_vary_array_ref): Correct misunderstanding.
5450 A varying array's length field counts the NUMBER of active array
5451 array entries, not the byte-length of them.
5452
5453Tue Jan 4 17:57:39 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5454
5455 * ch-decl.c (do_decl): Call `suspend_momenary' if the
5456 converted constructor must live on the permanent_obstack.
5457 * ch-convert.c (convert): When building a new SET_TYPE
5458 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5459 * c-typeck.c (chill_initializer_constant_valid_p): Handle VAR_DECLs.
5460
5461 * ch-typeck.c (chill_location): CONSTRUCTORS that are static
5462 are locations.
5463 * ch-satisfy.c (safe_satisfy_decl): Convert DECL_INITIAL of CONST_DECL
5464 on permanent_obstack if necessary.
5465
5466 * ch-convert.c (digest_structure_tuple): When building a new SET_TYPE
5467 constructor, re-set the TREE_CONSTANT and TREE_STATIC bits.
5468
5469 * ch-decl.c (do_decl): Fix handling of REFERENCE_TYPEs which
5470 the patch below helped to mess up.
5471
5472 * ch-expr.c (build_chill_arrow_expr): Call `mark_addressable'.
5473 (build_chill_addr_expr): Take new argument ERRORMSG.
5474 All callers changed. Also, call `build_chill_addr_expr' where
5475 we used to call `build1 (ADDR_EXPR, ptr_type_node, ...)' since
5476 that now calls `mark_addressable' automagically.
5477
5478 * ch-decl.c (do_decl): Keep OPT_INIT in DECL_INITIAL if possible.
5479 This is needed because variables may appear in initialization
5480 statements, and their DECL_INITIALs are their values at
5481 initialization time.
5482 * ch-convert.c (digest_structure_tuple,digest_constructor): Changed
5483 to handle VAR_DECLs as initializers.
5484
5485 * ch-convert.c (digest_structure_tuple): Copy elements of INITS so
5486 they aren't destroyed for later use.
5487
5488Tue Jan 4 15:25:30 1994 Bill Cox (bill@cygnus.com)
5489
5490 * ch-expr.c (chill_expand_expr): Correct check-range lo_limit
5491 parameter for varying_array_ref calculations.
5492 (build_chill_indirect_ref): Prevent seg fault due to syntax error.
5493 * ch-typeck.c (build_chill_slice_with_range): Correct issuance
5494 of bogus error in votrics.
5495 (build_chill_slice_with_length): Change for debug tracability.
5496
5497Tue Jan 4 02:43:37 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5498
5499 * ch-convert.c (digest_structure_tuple): Fix phasing problem in
5500 handling variant record initializers.
5501 (various places): Change `pop_init_level' calls to match
5502 `push_init_level' wrt implicit variable.
5503
5504 * ch-typeck.c (build_chill_slice): Convert the dynamic max index to
5505 `integer_type_node' before using it in comparisons. FIXME: should
5506 this be done in `chill_max_vary_array_index' by default?
5507
5508Tue Jan 4 00:24:14 1994 Bill Cox (bill@cygnus.com)
5509
5510 * ch-actions.c: Fix comments.
5511 * ch-parse.y: Define caseaction_flag.
5512 (caseaction): Create new caseaction_flag node at the start,
5513 then free it at the end. Check it before the ELSE code.
5514 (expanded_case_label): Check the flag here. If set in either
5515 place, generate a jump to the end of the case.
5516 * ch-typeck.c (build_chill_slice_with_length,
5517 build_chill_slice_with_range): Add lots of compile-time
5518 parameter range checking.
5519
5520Mon Jan 3 21:49:04 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5521
5522 * ch-convert.c (digest_structure_tuple): Call `push_init_level' with
5523 implicit==0 everywhere, not 1.
5524 (digest_constructor): Ditto.
5525
5526 * ch-actions.c (check_range): Permit limits to be NULL_TREE.
5527 Also, hack out some dead code.
5528 * ch-typeck.c (build_chill_slice): Check varying and non-varying
5529 slice constructs for range failures.
5530 (build_chill_slice_with_range): Reindented, but not changed.
5531
5532 * ch-typeck.c (chill_max_vary_array_index): New function.
5533 * ch-expr.c (chill_expand_expr): Call it.
5534
5535 * ch-decl.c (var_data_id, var_length_id): New variables.
5536 (init_decl_processing): Initialize them. All calls to
5537 get_identifier (VAR_LENGTH or VAR_DATA) are now replaced
5538 by references to these variables. This simplifies the code
5539 w/o obscuring anything.
5540
5541Mon Jan 3 21:24:44 1994 Bill Cox (bill@cygnus.com)
5542
5543 * c-typeck.c: Fix comment.
5544 * ch-actions.c (chill_expand_assignment): Error assigning to
5545 READONLY location. (PR_3903) Pass filename, linenumber
5546 to setbitpowerset runtime routine.
5547 * ch-decl.c (init_decl_processing): Add filename, linenumber
5548 parameters to setbitpowerset prototype.
5549 * ch-expr.c (build_chill_function_call): Error when passing a
5550 READonly location as a LOC or INOUT parameter.
5551 * ch-parse.y (mode): Correct code marking type as readonly.
5552
5553Mon Jan 3 19:03:55 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5554
5555 * ch-actions.c (chill_expand_assignment): Disable code that defeats
5556 building varying array references.
5557 * ch-expr.c (chill_expand_expr): Add rangecheck code to
5558 VARY_ARRAY_REF case.
5559 * ch-typeck.c (build_chill_array_ref): Don't call an `expand_'
5560 function (in this case, `validate_varying_array_ref') when we're
5561 doing a `build_' operation.
5562
5563 * ch-typeck.c (validate_varying_array_ref): Simplify interface
5564 since INDEX parameter can never meaningfully be an INDEXLIST.
5565 * ch-actions.c (expand_varying_length_assignment): Caller changed.
5566
5567Mon Jan 3 07:29:45 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5568
5569 * ch-typeck.c (build_chill_cast): Set TREE_CONSTANT on NOP_EXPRs.
5570 * ch-convert.c (digest_structure_tuple): Switch to permanent_obstack
5571 if we need to build a CONSTRUCTOR for a SET_TYPE initializer.
5572 (digest_structure_tuple): If TREE_VALUE (VALUE) == NULL_TREE, don't
5573 call CH_COMPATIBLE or try to convert it to TREE_TYPE (FIELD). This
5574 can happen when constructors are output incrementally.
5575 * c-typeck.c (initializer_constant_valid_p): Handle SET_TYPEs.
5576 * varasm.c (output_constant): Handle NOP_EXPRs in SET_TYPE
5577 CONSTRUCTORS.
5578
5579Sun Jan 2 08:17:09 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5580
5581 * ch-convert (digest_structure_tuple): Handle SET_TYPEs. Also, call
5582 `convert' so we can handle INSTANCE types (and other anomolies)
5583 correctly.
5584
5585 * ch-convert.c (digest_structure_tuple): Fixed variant
5586 structure initialization. Also fixed a typo (TYPE_NAME
5587 was being used on a FIELD_DECL instead of DECL_NAME).
5588 * c-typeck.c (initializer_constant_valid_p): Pass missing
5589 ENDTYPE argument on recursive call.
5590 (set_init_field): New function, needed by ch-convert.c change above.
5591
5592 * ch-decl.c (layout_chill_variants): Added a FIXME next to an
5593 almost certain typo.
5594
5595 * ch-expr.c (build_chill_arrow_expr): Call `build1' and set
5596 TREE_CONSTANT for static references.
5597 * ch-except.c (chill_start_on): Change calls to
5598 `build_unary_op' (which is C-specific) to `build_chill_arrow_expr'
5599 which has CHILL semantics.
5600 * ch-convert.c (convert): Ditto (albeit in some disabled code).
5601
5602Sat Jan 1 21:26:43 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5603
5604 * ch-satisfy.c (safe_satisfy_decl): Reorder conditional test of
5605 TREE_CODE of DECL in case it's altered by actions in the switch.
5606
5607 * ch-satisfy.c (satisfy): Undo abort added earlier on 1 Jan. CVS log
5608 mentions where to find code that triggers this case.
5609
5610 * ch-actions.c (adjust_parm_or_field): Handle CONSTRUCTORS here as
5611 well.
5612
5613 * ch-convert.c (digest_structure_tuple): Push to permanent_obstack if
5614 we're dealing with a CONSTRUCTOR that is TREE_PERMANENT.
5615 (digest_constructor): Ditto.
5616
5617Sat Jan 1 10:29:19 1994 Michael Tiemann (tiemann@blues.cygnus.com)
5618
5619 * ch-parse.y (handleraction,resultaction,assignaction,call): Modified
5620 so that CONSTRUCTORS are properly handled before being used.
5621
5622 * ch-convert.c (chill_start_init): New function. All callers to
5623 `start_init' changed to call this function instead.
5624 (digest_struct_tuple): Defend against initialization machinery
5625 mucking with CONSTRUCTOR_ELTS of CONSTRUCTORs by grokking both
5626 IDENTIFIER_NODEs and FIELD_DECLs in the TREE_PURPOSE slots. This is
5627 needed because CONSTRUCTORS stored in DECL_INITIALs of CONST_DECLs
5628 can be refered to throughout the compilation unit. Also remove an
5629 extraneous call to `process_init_element' erroneously added to the
5630 variant record sub-loop.
5631 (digest_constructor): Propagate TREE_CONSTANT and TREE_STATIC to
5632 CONSTRUCTORS of SET_TYPE.
5633 * ch-parse.y (build_chill_constructor): Refix typo. Also set
5634 TREE_STATIC if at top level.
5635
5636 * ch-expr.c (build_chill_arrow_ref): Fix yet another case of
5637 TREE_CONSTANT not being set by calling `build1' when `build_unary_op'
5638 should have been called.
5639
5640 * ch-convert.c (digest_struct_tuple): Restore code which tracks
5641 field initializations so that the compiler can deduce what variant
5642 initializations to assume.
5643
5644 * ch-satisfy (safe_satisfy_decl): Turn on initialization machinery
5645 when we push into a scope that has a DECL with a CONSTRUCTOR as its
5646 DECL_INIT.
5647
5648 * ch-parse.y (build_chill_constructor): Change the name of the
5649 parameter to something more meaningful. Fix typo. Also, handle case
5650 where element is an untyped CONSTRUCTOR.
5651
5652 * ch-except.c (finish_handler_array): Set TREE_CONSTANT on
5653 constant ADDR_EXPRs.
5654 (chill_start_on): Call `build_unary_op' to set TREE_CONSTANT
5655 on JBUF_REF (instead of calling `build1' which does not).
5656
5657 * ch-convert.c (convert): Test LENGTH instead of NEEDED_PADDING.
5658
5659 * ch-typeck.c (chill_expand_tuple): Deleted.
5660 * ch-parse.y (primval rule): Don't call `chill_expand_tuple';
5661 instead, use initialization machinery for CONSTRUCTORS that
5662 come through here.
5663 * ch-except.c (finish_handler_array): Ditto for CONSTRUCTORS
5664 that are created here.
5665 * ch-satisfy (satisfy): Abort in case we would have called
5666 chill_expand_tuple. FIXME: some other code is needed here,
5667 but I don't know what yet.
5668
5669 * ch-parse.y (build_chill_constructor): New function to
5670 propagate TREE_CONSTANT bits to CONSTRUCTORS.
5671 (untyped_expr rule): Use it.
5672 (primval rule): Use it.
5673
5674 * ch-decl.c (do_decl): Call `finish_init'.
5675 * ch-convert.c (convert): If we spontaneously create a CONSTRUCTOR in
5676 this function, make sure the initialization machinery is set up.
5677
5678 * ch-convert.c (digest_structure_tuple, digest_constructor): Add
5679 missing prototypes.
5680
5681Fri Dec 31 11:31:01 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5682
5683 * ch-grant.c (chill_finish_module_code): Mark ADDR_EXPR built by hand
5684 as being TREE_CONSTANT. Otherwise it gets bounded by the initializer
5685 code.
5686
5687 * ch-decl.c (do_decl): Change in CONSTRUCTOR handling due to...
5688 * ch-convert.c (digest_structure_tuple,digest_constructor): Mostly
5689 rewritten to work with GCC's initialization code. The basic change
5690 was to keep the initializers in sync with the initialization
5691 machinery that `process_init_element' imposes. Both of these
5692 functions now return `void'.
5693 * ch-convert.c (convert): Changed calls to `digest_...' functions.
5694
5695 FIXME: the code handling UNION_TYPE (and variant records) has not
5696 been tested yet.
5697
5698Fri Dec 31 15:32:56 1993 Bill Cox (bill@rtl.cygnus.com)
5699
5700 * ch-lex.l (convert_number): Output the converted number if
5701 yydebug is enabled.
5702 * ch-parse.y (signaldef): Set ignore_exprs correctly for a
5703 SIGNAL declaration.
5704
5705Fri Dec 31 13:17:48 1993 Bill Cox (bill@cygnus.com)
5706
5707 * ch-parse.y: Cleanup handling of RETURN actions, to distinguish
5708 a RETURN without a value (which cannot have an exception
5709 handler) from a RETURN with a value (which can). Eliminate
5710 some shift/reduce and reduce/reduce conflicts.
5711
5712Thu Dec 30 17:42:32 1993 Michael Tiemann (tiemann@blues.cygnus.com)
5713
5714 * ch-inout.c (build_chill_writetext): Deal with 2 cases where
5715 types returned from `type_for_size' are not expected. FIXME.
5716 * ch-decl.c (init_decl_processing): Mark `char_type_node' unsigned.
5717 This is required when range checking is enabled.
5718
5719Thu Dec 30 14:28:25 1993 Bill Cox (bill@rtl.cygnus.com)
5720
5721 DELAY CASE works now.
5722 * ch-decl.c (init_decl_processing): Move rest of tasking-related
5723 initialization into tasking_init().
5724 * ch-parse.y (delaycaseaction): Pervasive additions/corrections.
5725 (optsetprio): New non-terminal.
5726 * ch-tasking.c (get_task_name): Delete, obsolete.
5727 (build_instance_type): build pointer to instance type also.
5728 (build_receive_case_start): Cleanup per -Wall messages.
5729 (build_receive_case_label): Move between start and end functions.
5730 (build_delay_case_start): Pass SET name and priority also.
5731 Generally update to correct functioning.
5732 (build_delay_case_label): Move between start and end fucntions,
5733 correct its functioning.
5734 (build_delay_case_end): Correct the code.
5735 (tasking_init): Lots of tasking-related code moved here from
5736 init_decl_processing.
5737 * ch-tree.h: Update, add prototypes.
5738
5739Wed Dec 29 10:13:10 1993 Bill Cox (bill@rtl.cygnus.com)
5740
5741 * ch-expr.c (build_chill_indirect_ref): Revert change which
5742 failed full regression testing.
5743 * ch-lex.l (name_type_signal): Add debug output.
5744 * ch-parse.y (structured_variable): Add a debug variable.
5745
5746Wed Dec 29 02:05:51 1993 Bill Cox (bill@rtl.cygnus.com)
5747
5748 * ch-decl.c (get_next_decl): Revert change which failed full
5749 regression testing.
5750
5751Tue Dec 28 18:20:14 1993 Bill Cox (bill@rtl.cygnus.com)
5752
5753 DELAY actions work now.
5754 * ch-decl.c: Correct spelling in comments.
5755 (get_next_decl): NULL out the decl's TREE_CHAIN before returning
5756 it, to prevent accidental access to the remembered_decls.
5757 (init_decl_processing): Add wait_event to runtime functions.
5758 * ch-expr.c (build_chill_indirect_ref): Prevent a syntax error from
5759 becoming a seg fault.
5760 * ch-grant.c: Correct a comment.
5761 * ch-loop.c: Delete/correct comments.
5762 * ch-parse.y (delaycaseaction): Add push/poplevel calls. Turn 'sorry'
5763 into rough draft of actual code.
5764 (delayaction): Don't make a new scope here, use get_unique_identifier
5765 instead.
5766 (locdec): process event decls here, too.
5767 (mode): Add code to forbid READonly EVENT and BUFFER decls. Delete
5768 code which required EVENTs and BUFFERs to be declared at global scope.
5769 (simple_name_string): Add an EVENTNAME.
5770 * ch-satisfy.c (safe_satisfy_decl): Prevent a syntax error from
5771 becoming a seg fault.
5772 * ch-tasking.c (tasking_setup): Add the event queue's max. length
5773 as the 'entry_point' parameter in the list.
5774 (build_receive_case_start, build_receive_case_label): Defer
5775 calling runtime routine until we know whether we have a signal
5776 or a buffer to wait for.
5777 (build_delay_case_start, build_delay_case_end,
5778 build_delay_case_label, build_delay_action,
5779 process_event_decls): Added functions.
5780 * ch-typeck.c (chill_similar): Allow all integers of differing
5781 precisions to be similar.
5782
5783Thu Dec 23 18:00:40 1993 Bill Cox (bill@rtl.cygnus.com)
5784
5785 * gcc.c (CHILL SPECS): Delete references to -M -MM -MD -MMD
5786 options. Delete C-specific defines. Disable piping from
5787 pre-processor to cc1chill (even if -pipe is specified), since cc1chill
5788 rewinds its input for its second pass. Piping still works
5789 from cc1chill to as.
5790
5791Thu Dec 23 12:31:55 1993 Bill Cox (bill@rtl.cygnus.com)
5792
5793 * ch-tasking.c (decl_tasking_code_variable): Assure that the
5794 tasking_code variable is allocated on the permanent obstack.
5795 (tasking_setup): Lots of changes - handle EVENT/BUFFER max.
5796 queue length (passed as the entry_point parameter).
5797 Other changes to variable names to increase 'self-documentation'
5798 the only kind GNU CHILL will get, for a while..
5799
5800Wed Dec 22 10:46:31 1993 Bill Cox (bill@rtl.cygnus.com)
5801
5802 * ch-decl.c (do_seize): Delete - it's unused. Fix comments.
5803 * ch-loop.c (build_chill_iterator): Convert BY expression
5804 so loop involving a SET works. Additional errors generated
5805 for numbered SET expression as start or end expression.
5806 * ch-tree.h: Prototypes for future DELAY functions.
5807 * ch-typeck.c: Standard indentation.
5808
5809Tue Dec 21 15:30:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
5810
5811 * ch-actions.c (build_cause_exception): New function.
5812 (expand_cause_exception): Re-write to use build_cause_exception.
5813 (check_expression, check_range): New functions.
5814 (chill_convert_for_assignment): New function.
5815 * ch-expr.c (build_chill_pred_or_succ): New function.
5816 (build_chill_succ, build_chill_pred): Removed.
5817 (build_generalized_call): Use build_chill_pred_or_succ.
5818 * ch-lex.h, ch-lex.l (init_lex): Add RID_OVERFLOW and RID_RANGEFAIL.
5819 * ch-lex.l (init_lex): Use new macro to make more terse.
5820 * ch-typeck.c (chill_equivalent): New function.
5821 Also check that ranges have the same bounds.
5822 * ch-typeck.c (my_build_array_ref): Add optional range-checking.
5823 * ch-typeck.c (chill_location): Handle COMPOUND_EXPR properly.
5824 Return 2 if also a referable.
5825 * ch-typeck.c (chill_referable): Re-define to use chill_location.
5826 * ch-tree.h (CH_EQUIVALENT): Re-defined to use chill_equivalent.
5827
5828 * dbxout.c (dbxout_type): Output the type attribute "@S;" to
5829 distinguish a string from a char array, and to distinguish a
5830 bitstring from regulat (power)set. (Needed for Chill.)
5831 * dbxout.c (dbxout_type): Only check for baseclasses in
5832 type.binfo is a vector. (It is used in Chill for tagged unions.)
5833
5834Fri Dec 17 09:56:07 1993 Bill Cox (bill@rtl.cygnus.com)
5835
5836 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
5837 ch-grant.c, ch-inout.c, ch-loop.c, ch-parse.y,
5838 ch-satisfy.c, ch-tasking.c, ch-tree.h, ch-typeck.c:
5839 Fix -Wall problems.
5840 * ch-actions.c (chill_expand_assignment): Error if assigning
5841 a value to a BUFFER or EVENT variable.
5842 * ch-expr.c (invalid_left_operand): Delete, unused.
5843 * ch-grant.c (tasking_setup): Call build_enum_tables.
5844 * ch-inout.c (get_final_type_and_range, build_enum_tables,):
5845 New functions.
5846 (build_chill_writetext): Lots of changes to support other
5847 basic CHILL data types.
5848 * ch-loop.c (build_chill_iterator): Lots of new code to check
5849 the expressions in a STEP loop.
5850 * ch-tasking.c (rc_state): Add fields to flag SIGNAL and BUFFER
5851 names in receivecasealternative. Generate error messages
5852 if they're mixed in the same receive case.
5853 (process_buffer_decl): Renamed from build_buffer_decl.
5854 * ch-tree.h: Fix prototypes.
5855 * ch-typeck.c (smash_dummy_type): Handle all four kinds of LANG_TYPE
5856 correctly. Thanks Per!
5857
5858Wed Dec 15 15:05:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
5859
5860 * ch-decl.c (push_scope_decls): Re-arrange some more, so
5861 that normal SEIZES (without ALL) are handled before SEIZE ALL.
5862
5863Wed Dec 15 13:01:22 1993 Bill Cox (bill@rtl.cygnus.com)
5864
5865 * ch-loop.c (declare_temps): Calculate end-of-array pointer
5866 using correct type (NOT chill_integer_type).
5867 (begin_chill_loop): Build loop-bypass expression in the
5868 type of the start expression, not in the unsigned type.
5869
5870Tue Dec 14 15:41:32 1993 Per Bothner (bothner@kalessin.cygnus.com)
5871
5872 * ch-decl.c (push_scope_decls): Re-arrange so that normal
5873 (non-seize) declarations are proclaim_decl'd *before* we
5874 handle the ALIAS_DECLs for seizes. The advantage is
5875 that we can now test for (an approximation) to the
5876 'seizeable' concept, thus avoiding duplicate definitions
5877 when a module has both GRANTs and SEIZE ALL.
5878
5879 * ch-expr.c (build_chill_arrow_expr): No longer re-write
5880 addr-of-conversion to pointer-conversion-of-addr.
5881 * ch-expr.c (build_chill_addr_expr): Re-write to just use
5882 build_chill_arrow_expr.
5883
5884Mon Dec 13 16:44:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
5885
5886 * ch-expr.c (build_chill_addr_expr, build_chill_addr_expr): Don't re-write
5887
5888 * ch-tree.h (chill_root_resulting_mode): Fix typo (missing '_').
5889
5890 * ch-expr.c (finish_chill_binary_op): Use CH_ROOT_RESULTING_MODE
5891 macro (which works on expressions), rather than CH_RESULTING_MODE
5892 (which works on modes, and isn't quite correct).
5893 * ch-tree.h (CH_IS_BOUND_REFERENCE_MODE): New macro.
5894 * ch-typeck.c (chill_read_compatible, chill_compatible):
5895 Use the new macro, which handles NEWMODEs of PTR correctly.
5896 * ch-typeck.c (chill_similar): Return 1 rather than 0 for
5897 dynamic-length array (and string) types (e.g. slices).
5898 * ch-typeck.c (chill_root_mode): If the mode has a Novelty,
5899 just return it as is. (This is still not 100% correct for
5900 NEWMODE of RANGEs, but is close enough.)
5901
5902Mon Dec 13 16:27:06 1993 Bill Cox (bill@rtl.cygnus.com)
5903
5904 * ch-parse.y (locdec): Avoid passing IDENTIFIER_NODEs to
5905 build_buffer_decl, which then seg faults.
5906 * ch-tasking.c (build_buffer_descriptor): Move declaration
5907 of bufdecl closer to its use.
5908
5909Mon Dec 13 14:57:55 1993 Bill Cox (bill@rtl.cygnus.com)
5910
5911 * ch-actions.c (chill_expand_result): Use expand_expr_stmt
5912 to avoid C-specific conversions.
5913 * ch-lex.l (name_type_signal): Rewrite to support BUFFERs and EVENTs.
5914 * ch-parse.y (sendaction): Delete unused statement, use the 'name'
5915 variable.
5916 * ch-tasking.c: Use expand_expr_stmt to avoid C-specific
5917 conversions.
5918 (build_buffer_decl): Save the tasking_code_variable's decl
5919 in the buffer decl tree.
5920 (build_buffer_descriptor): Real, working version.
5921
5922Mon Dec 13 03:13:36 1993 Bill Cox (bill@rtl.cygnus.com)
5923
5924 * ch-decl.c (print_lang_identifier): Delete code
5925 to print buffer size - it's no longer kept here.
5926 * ch-parse.y (expand_send_buffer): Renamed from
5927 build_send_buffer.
5928 (locdec): Enable building of a buffer decl.
5929 (optresultspec, optresultattr): Add optional
5930 result attributes such as LOC. Semantics
5931 not enabled yet.
5932 * ch-tasking.c (expand_send_buffer): Renamed.
5933 * ch-tree.h (build_send_buffer): Renamed.
5934 * ch-typeck.c (chill_expr_class): Do more complete,
5935 job of classifying expressions. Thanks, Per.
5936
5937Mon Dec 13 00:59:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
5938
5939 * ch-typeck.c (chill_expr_class): Return CH_DERIVED_CLASS
5940 for bitstring constants.
5941 * ch-typeck.c (chill_novelty): The novelty of an (unnamed)
5942 range mode is that of its parent mode; the novelty of READ M
5943 is that of M.
5944
5945Sat Dec 11 15:14:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
5946
5947 * ch-expr.c (varying_to_slice): Call stabilize_reference
5948 rather than save_expr.
5949 * ch-typeck.c (build_chill_slice): Don't emit warning
5950 if array is a SAVE_EXPR (it is effectively referable).
5951 * ch-typeck.c (chill_root_resulting_mode): Handle
5952 correctly the case that one operand is DERIVED and one is VALUE.
5953
5954Fri Dec 10 10:00:42 1993 Bill Cox (bill@rtl.cygnus.com)
5955
5956 * ch-grant.c (decode_decl): Restore code mistakenly deleted.
5957 Move instance-handling code to raw_decode_mode.
5958 * ch-parse.y (formpar): Allow READ modifier in SPEC MODULE.
5959 Add rough draft of DELAY statement handling.
5960 * ch-tasking.c (build_event_type): New function.
5961 * ch-tree.h (build_event_type): Add prototype.
5962 * ch-typeck.c (smash_dummy_type): Add buffer & event handling.
5963
5964Wed Dec 8 18:02:26 1993 Bill Cox (bill@rtl.cygnus.com)
5965
5966 Parse and grant BUFFER modes.
5967 * ch-grant.c (raw_decode_mode): Format BUFFER, EVENT modes.
5968 Moved from decode_decl.
5969 * ch-parse.y: Fix several sorry() messages.
5970 * ch-tasking.c (build_buffer_type): Use a LANG_TYPE to pass the
5971 info.
5972
5973Wed Dec 8 12:59:54 1993 Per Bothner (bothner@kalessin.cygnus.com)
5974
5975 * ch-actions.c (chill_expand_assignment): In a multiple
5976 assignment, check that all the targets are equivalent.
5977
5978 * ch-typeck.c (chill_l_equivalent, CH_L_EQUIVALENT): New function
5979 and macro to (partially) implement the relation l-equivalent.
5980 * ch-typeck.c (chill_read_compatible): Implement at least
5981 initial check of read-only-ness.
5982 * ch-typeck.c (build_readonly_type): Fix thinkos.
5983
5984Wed Dec 8 09:11:46 1993 Bill Cox (bill@rtl.cygnus.com)
5985
5986 * ch-decl.c (pop_module): Only warn about duplicate grant
5987 statements if they inhabit different files, by examining
5988 inode numbers. Only report compatibility problems in pass 1.
5989 * ch-lex.l (chill_same_grant_file): New function to support the
5990 above test.
5991
5992Tue Dec 7 17:10:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
5993
5994 * ch-decl.c (start_chill_function): Handle attributes in pass 1,
5995 rather than in pass 2. (It seems to make more sense that way.)
5996 * ch-parse.y (procedureattr): Build attribute list if pass != 2.
5997
5998 * ch-parse.y (mode): Don't call build_readonly_type in pass 2.
5999
6000Mon Dec 6 14:35:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
6001
6002 This implements NOVELTY and READONLY checking.
6003 * ch-tree.def: Added comment about use of LANG_TYPE.
6004 * ch-typeck.c (build_readonly_type, smash_dummy_type): New functions.
6005 * ch-tree.h: New prototypes.
6006 * ch-decl.c (push_modedef): If newmode, lazily "copy" the given mode
6007 immediately (even if it's just a type name), using a LANG_TYPE.
6008 * ch-parse.y (mode): Call build_readonly_type to handle READ.
6009 * ch-decl.c (find_implied_types), ch-grant.c (raw_decode_mode),
6010 ch-satisfy.c (satisfy): Handle a LANG_TYPE.
6011 * ch-decl.c: Remove chill_modes_equiv and other unused junk.
6012 * ch-satisfy.c (safe_satisfy_decl/CONST_DECL): Better
6013 mode compatibility checking for SYN declarations.
6014
6015 * ch-typeck.c (chill_similar): Be more general when checking set
6016 modes for similarity - specifically support calling chill_similar
6017 BEFORE the modes have been satisfied (needed by proclaim_decl).
6018 * ch-decl.c (proclaim_decl): Allow duplicate definitions
6019 of set elements of similar set modes.
6020
6021 * ch-parse.y (caseaction): Call language-independent
6022 expand_start_case rather than c_expand_start_case (which
6023 doesn't allow chars or booleans).
6024
6025Sat Dec 4 22:16:19 1993 Bill Cox (bill@rtl.cygnus.com)
6026
6027 * ch-actions.c (cond_range_exception,
6028 cond_type_range_exception): Check command-line flag before
6029 generating code. Fix comments.
6030 * ch-expr.c (build_chill_num): Add generation of OVERFLOW
6031 code, commented out.
6032 * ch-loop.c (build_chill_iterator): Comment out
6033 exception code generation.
6034 * ch-parse.y: Delete quasi_signal flag, use
6035 current_module->is_spec_module instead.
6036 * ch-tasking.c (build_buffer_decl, build_buffer_descriptor):
6037 Delete quasi_decl flag. Look at current_module
6038 instead.
6039 * ch-tree.h: Take quasi_decl flag out of buffer
6040 related prototypes.
6041 * ch-typeck.c (valid_array_index, chill_similar):
6042 Comment out runtime range checking for now.
6043 * expr.c (store_constructor): Fix word-size set problem.
6044 * varasm.c (emit_set_data): Fix word-size set problem.
6045
6046Wed Dec 1 19:08:12 1993 Bill Cox (bill@rtl.cygnus.com)
6047
6048 * ch-actions.c: Delete unused prototype for build_compound_expr.
6049 * ch-loop.c (begin_chill_loop): Convert operands of the conditional
6050 expression to lp->iter_type before expanding it. Prevents an abort
6051 deep in expand_expr and friends.
6052
6053Wed Dec 1 17:00:44 1993 Bill Cox (bill@rtl.cygnus.com)
6054
6055 * ch-actions.c (chill_expand_assignment): Comment out strange
6056 test and its error message.
6057 * ch-loop.c (begin_chill_loop): Correct call to generate conditional
6058 jump around the loop.
6059 * ch-typeck.c (build_chill_slice): Call correct temporary generator.
6060
6061Wed Dec 1 14:19:51 1993 Bill Cox (bill@rtl.cygnus.com)
6062
6063 * ch-actions.c (cond_exception): Clarify that it generates
6064 an exception if the given expression is TRUE. Make it so, Number One.
6065 * ch-decl.c (DOLLARS_IN_IDENTIFIERS): Disable these.
6066 (print_lang_type): Print max queue size.
6067 Add casts to DECL_TASKING_CODE_DECL references. Fixes a
6068 portability problem.
6069 (init_decl_processing): Add filename and linenumber arameters
6070 to tasking and memory-allocate runtime prototypes.
6071 * ch-expr.c (finish_chill_binary_op): Check for division
6072 by a constant zero. Replace build_temporary_variable
6073 calls with decl_temp1 calls, to decouple from ch-loop.c.
6074 (build_chill_succ, build_chill_pred): Sketch code to generate
6075 exceptions. Add error check for numbered set.
6076 (build_generalized-call): Correct call for return_memory.
6077 Standardize whitespace before left parens.
6078 * ch-grant.c: Use new macro for checking for BUFFER mode.
6079 * ch-lex.l (name_type_signal): Add attempts to recognize BUFFER
6080 and EVENT names.
6081 * ch-loop.c (build_temporary_variable): Make static, unavailable
6082 to outsiders.
6083 (declare_temps): Make user's variable for him/her, in the
6084 true Z.200 case, where it hasn't previously been declared.
6085 (begin_chill_loop): simplify control flow a bit.
6086 * ch-parse.y (quasi_locdec): Set/reset quasi_flag.
6087 (rccase_label): Delete bogus error checks. Rough draft of
6088 BUFFER-related code.
6089 (assertaction): Remove logical negation - it's now in cond_exception.
6090 (locdec): Sketch of buffer-related code.
6091 (non_array_mode): Add EVENT and BUFFER modes here. Add setting of
6092 set-numbered flag for pred and succ functions.
6093 (optqueuesize): Default to integer_zero_node.
6094 (simple_name_string): Add BUFFERNAME.
6095 * ch-tasking.c: Add casts to DECL_TASKING_CODE_DECL references.
6096 (build_chill_start_process, expand_send_signal,
6097 build_receive_case_start, build_send_buffer): Add filename, linenumber parameters
6098 to tasking-related runtime calls. Sketches of BUFFER mode
6099 processing.
6100 * ch-tree.h: Remove left-hand-side cast in DECL_TASKING_CODE_DECL
6101 macro, for portability to non-gcc compilers. Add prototypes
6102 for buffer-related functions.
6103 * ch-typeck.c: Replace build_temporary_variable calls with
6104 decl_temp1 calls, to decouple from ch-loop.c.
6105 (chill_similar): Add tests for BUFFER and EVENT modes.
6106
6107Wed Dec 1 14:05:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
6108
6109 * ch-actions.c (malloc prototype): Remove; can cause conflicts.
6110
6111Wed Dec 1 09:49:58 1993 Bill Cox (bill@rtl.cygnus.com)
6112
6113 * ch-grant.c (raw_decode_mode): Process a REFERENCE_TYPE.
6114
6115Tue Nov 30 14:05:23 1993 Bill Cox (bill@rtl.cygnus.com)
6116
6117 * ch-decl.c (init_decl_processing): Add filename, line number
6118 parameters to tasking-related runtime routines.
6119 * ch-grant.c (decode_decl): Check for BUFFER mode differently.
6120 * ch-parse.y (BUFFER_CODE, EVENT_CODE): Move token to
6121 lex-only list.
6122 (quasi_locdec): Set/reset quasi_decl flag.
6123 * ch-tasking.c (build_start_process, expand_send_signal,
6124 build_receive_case_start, build_send_buffer): Add filename. linenumber to
6125 (build_buffer_decl, build_buffer-type): New rough-draft functions.
6126 generated runtime routine call.
6127 * ch-tree.h (CH_IS_BUFFER_MODE, CH_IS_EVENT_MODE): New macros
6128 to mark a synchronization mode. Update the prototypes.
6129 * ch-typeck.c (chill_similar): Check EVENT or BUFFER modes for
6130 similarity.
6131
6132Tue Nov 30 09:51:47 1993 Doug Evans (dje@canuck.cygnus.com)
6133
6134 * cccp.c (main): Add missing chill sanitization.
6135
6136Sun Nov 28 15:50:10 1993 Bill Cox (bill@rtl.cygnus.com)
6137
6138 * ch-loop.c (initialize_iter_var): Build count expression
6139 more robustly.
6140 (bottom_loop_end_check): Call emit_line_note.
6141 (end_chill_loop): Delete emit_line_note call.
6142 * ch-parse.y (doaction): Move DO keyword
6143 after end_chill_loop call.
6144
6145Wed Nov 24 08:49:07 1993 Bill Cox (bill@rtl.cygnus.com)
6146
6147 * c-typeck.c (c_expand_start_case): Back out previous
6148 change.
6149
6150Tue Nov 23 12:33:50 1993 Bill Cox (bill@rtl.cygnus.com)
6151
6152 * c-typeck.c (c_expand_start_case): Allow any CHILL discrete
6153 type as a CASE label.
6154
6155Tue Nov 23 11:37:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
6156
6157 * ch-decl.c (grok_chill_variantdefs): Use NULL as the name
6158 of variant fields (not __CASE or anything based on it).
6159 * ch-decl.c (handle_one_parent), ch-expr.c (compare_records):
6160 Don't check for field name __CASE.
6161
6162Tue Nov 23 09:37:54 1993 Bill Cox (bill@rtl.cygnus.com)
6163
6164 * ch-decl.c (grok_chill_variantdefs): Use a unique dummy
6165 name for the FIELD_DECL.
6166 * ch-parse.y (optstartset): More error tests.
6167 * ch-tasking.c (make_process_struct): Only report error in pass 1.
6168 (build_start_process): Remove bogus restriction, allowing
6169 an INSTANCE expression as the optset parameter.
6170
6171Mon Nov 22 17:56:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6172
6173 * ch-tree.h (expand_function_end): Now is takes parameters, not 2.
6174 * ch-decl.c (finish_chill_function): Add 3rd parameter to
6175 call of expand_function_end.
6176
6177 * ch-expr.c (chill_expand_expr): For set and strings ops,
6178 if target is in a register, use a stack temporary (since we must
6179 take its address). (Similar to Oct 29 change for store_constructor.)
6180 * ch-expr.c (resolve_component_ref): Fix variant field lookups.
6181
6182Mon Nov 22 14:23:13 1993 Bill Cox (bill@rtl.cygnus.com)
6183
6184 * ch-expr.c (chill_expand_expr): Assure that emit_library_call
6185 parameter 1 and its mode are always in sync.
6186 (build_chill_pred, build_chill_succ): Allow pred/succ of a
6187 pointer.
6188 * ch-loop.c (chill_unsigned_type): New function, used instead of
6189 unsigned-type, since it understands the chill_integer_type.
6190 (decl_iteration_var): Delete, use build_temporary_variable
6191 instead.
6192 (declare_temps): Use lp->iter_type for the temp evaluations.
6193 (initialize_iter_var): More careful calculation, to handle
6194 MININT to MAXINT loops w/o overflow/underflow.
6195 (begin_chill_loop): Use the original start/end expressions
6196 for the loop bypass test.
6197
6198Mon Nov 22 14:02:06 1993 Per Bothner (bothner@kalessin.cygnus.com)
6199
6200 * ch-typeck.c (build_chill_slice): If the argument is
6201 is constant, use a read-only static variant, as the
6202 existing algorithm assumes addressability.
6203 * ch-typeck.c (chill_compatible): De-reference reference types.
6204 * ch-typeck.c (layout_chill_range_type): Set TREE_UNSIGNED.
6205
6206Sat Nov 20 20:17:15 1993 Bill Cox (bill@rtl.cygnus.com)
6207
6208 * ch-decl.c (init_decl_processing): Add filename
6209 and linenumber to allocate, free memory calls.
6210 * ch-expr.c (build_allocate_memory_call,
6211 (build_allocate_global_memory_call): Add
6212 filename, linenumber to call.
6213 * ch-loop.c: Complete rewrite for maintainability.
6214
6215Sat Nov 20 17:30:05 1993 Per Bothner (bothner@kalessin.cygnus.com)
6216
6217 * ch-except.c: Make it so that (by default at least) the
6218 code to push/pop the __exceptionStack is done using library
6219 functions __ch_link_handler and __ch_unlink_handler. This
6220 provides better flexibility (for e.g. multi-threading).
6221
6222 * ch-decl.c (layout_chill_variants): Allow (useless) selectors
6223 even for tag-less variants.
6224
6225Fri Nov 19 14:32:20 1993 Bill Cox (bill@rtl.cygnus.com)
6226
6227 * ch-decl.c (init_decl_processing): Add memmove builtin
6228 function definition.
6229 * ch-actions.c (chill_expand_array_assignment): Use memmove
6230 call to copy an array or slice across the assignment.
6231
6232Wed Nov 17 18:23:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
6233
6234 * ch-satisfy.c (satisfy): If a CONTRUCTOR already has a
6235 TREE_TYPE, temporarily clear it before calling chill_expand_tuple,
6236 to force expansion (processing of the elements).
6237 * ch-grant.c (decode_constant): If a tuple (CONTRUCTOR) has
6238 a mode, write it out.
6239 * ch-decl.c (init_decl_processing): Add some missing inits.
6240
6241Wed Nov 17 17:13:20 1993 Bill Cox (bill@rtl.cygnus.com)
6242
6243 * ch-loop.c: Fix unterminated strings in design comments.
6244 Add enumeration to the iterator structure for type of loop.
6245 unused for now.
6246
6247Wed Nov 17 16:40:05 1993 Bill Cox (bill@rtl.cygnus.com)
6248
6249 * ch-decl.c (init_decl_processing): Add long parameters to lots
6250 of powerset runtime routines.
6251 * ch-expr.c (chill_expand_expr): Change parameters to powerset
6252 runtimes so bitlengths are long unsigned ints.
6253 * ch-inout.c (build_chill_writetext): Add filename and linenumber
6254 as runtime parameters, for better error messages.
6255 * ch-loop.c: general pre-rewrite cleanup.
6256 * expr.c (store_constructor): Rewrite set interface to
6257 setpowersetbits for long bitnumbers, rather than shorts.
6258
6259Tue Nov 16 13:41:12 1993 Bill Cox (bill@rtl.cygnus.com)
6260
6261 * ch-expr.c (build_chill_function_call): Stop generating empty
6262 copyback statements, which lead to a seg fault.
6263
6264Tue Nov 16 12:20:17 1993 Per Bothner (bothner@cygnus.com)
6265
6266 * ch-satisfy.c (satisfy): If satisfying a type whose
6267 TYPE_MAIN_VARIANT is not itself, also satisfy the TYPE_MAIN_VARIANT.
6268 * ch-actions.c (build_exception_variant): Remove some crud.
6269 * ch-actions.c (build_exception_variant), ch-tree.h, ch-decl.c:
6270 Remove unused first argument.
6271 * ch-decl.c (start_chill_function): Call build_exception_variant
6272 in pass 1, not in pass 2.
6273
6274Tue Nov 16 11:10:03 1993 Bill Cox (bill@rtl.cygnus.com)
6275
6276 * ch-decl.c (shadow_record_fields): Call new function
6277 build_chill_arrow_expr, which returns a ptr-to-a-type.
6278 * ch-expr.c (build_chill_arrow_expr): New function, works like
6279 build_chill_addr_expr used to do, returning a typed ptr.
6280 (build_chill_addr_expr): Now returns unbound ref - analogous
6281 to C 'void *'.
6282 * ch-parse.y (PREDEF_MODEDECL): Delete unused token.
6283 (operand6): Call build_chill_arrow_expr. Reindent a bit.
6284 * ch-tree.h (build_chill_arrow_expr): New prototype.
6285
6286Mon Nov 15 16:38:28 1993 Per Bothner (bothner@kalessin.cygnus.com)
6287
6288 * stor-layout.c (layout_type): If a SET_TYPE needs more than
6289 INT_TYPE_SIZE bits, use BLKmode (and never DImode).
6290
6291 * ch-decl.c (start_chill_function): Set DECL_CONTEXT of params.
6292
6293Mon Nov 15 14:49:17 1993 Bill Cox (bill@rtl.cygnus.com)
6294
6295 * ch-decl.c (init_decl_processing): Move tasking stuff (__whoami
6296 build_function_call, etc.) to tasking_init.
6297 * ch-gperf, ch-hash.h: Add ASM keyword.
6298 * ch-parse.y: Add ASM statement rules.
6299 (format_str, text_arg): Delete last rules for WRITETEXT, READTEXT.
6300 * ch-tasking.c: Move tasking stuff here.
6301
6302Sun Nov 14 15:50:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
6303
6304 * ch-parse.y (mode2): Split into array_mode and non_array_mode
6305 to resolve layout ambiguity.
6306 * ch-parse.y (checked_name): Remove. Use name_string instead.
6307 * ch-parse.y (variantdef): Don't crash if no tag fields.
6308 * ch-typeck.c (build_chill_array_type): If varying_p,
6309 actually do build_varying_struct here (rather than in ch-parse.y).
6310
6311Fri Nov 12 15:37:45 1993 Per Bothner (bothner@kalessin.cygnus.com)
6312
6313 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6314 static names. (Let make_decl_rtl generate a unique name.)
6315
6316Sun Nov 14 13:15:26 1993 Bill Cox (bill@rtl.cygnus.com)
6317
6318 * ch-expr.c (build_chill_lower, cuild_chill_upper):
6319 Rewrite for modes, values, etc.
6320 * ch-inout.c (build_chill_writetext): Add ability
6321 to write out characters.
6322 * ch-satisfy.c (safe_satisfy_decl): Don't mangle function-local
6323 static names. (Let make_decl_rtl generate a unique name.)
6324 * varasm.c (unpack_set_constructor): Subtract
6325 lower domain value from a bit's index value,
6326 to match the runtime and allow powersets
6327 with negative lower bounds.
6328
6329Fri Nov 12 14:00:48 1993 Bill Cox (bill@rtl.cygnus.com)
6330
6331 * ch-inout.c (build_chill_writetext): Save reserved words in
6332 uppercase if -fspecial_UC was specified.
6333
6334Fri Nov 12 13:27:12 1993 Per Bothner (bothner@rtl.cygnus.com)
6335
6336 * ch-expr.c (chill_expand_expr, build_concat_expr): Simplify
6337 string concatenation by treating varying strings as slices.
6338 (varying_to_slice): New function.
6339 * ch-typeck.c (build_chill_slice): Changed to support the above.
6340
6341Fri Nov 12 12:07:28 1993 Bill Cox (bill@rtl.cygnus.com)
6342
6343 * ch-convert.c (convert): Fall through & convert a VARY_ARRAY_REF.
6344 * ch-expr.c (build_generalized_call): Start module before a
6345 writetext action, so its variables are inside the module-level
6346 function.
6347 * ch-loop.c (init_loop_counter): Correct for_u_bound computation
6348 for enumeration loop on a varying array.
6349
6350Thu Nov 11 07:49:53 1993 Bill Cox (bill@rtl.cygnus.com)
6351
6352 * cccp.c (main): Disable trigraphs for CHILL.
6353 * ch-decl.c (grok_chill_fixedfields): Add special_UC
6354 to conditional to determine case of reserved words.
6355 Make PACK/UNPACK warning more specific.
6356 * ch-expr.c (build_generalized_call): Enable recognition
6357 of WRITETEXT call here.
6358 * ch-gperf, ch-hash.h: Remove WRITETEXT as a reserved
6359 word. It's only predefined.
6360 * ch-inout.c: Add special_UC to conditionals
6361 to determine case of reserved words.
6362 (build_chill_writetext): Change for call from
6363 build_generalized_call. Add code to format
6364 integers.
6365 * ch-lang.c (lang_decode_option): Add special_UC and
6366 special_LC flags and logic to interlock with
6367 ignore_case flag.
6368 * ch-lex.l: Add special_UC to conditionals
6369 to determine case of reserved words.
6370 * ch-parse.y: Delete WRITETEXT as reserved word.
6371 * ch-tasking.c: Add special_UC to conditionals
6372 to determine case of reserved words.
6373 (build_instance_type): Make components of INSTANCE
6374 unsigned 16-bit integers.
6375 * ch-tree.h (build_chill_writetext): Fix prototype.
6376 * ch-typeck.c (build_chill_array_type): Make PACK
6377 /UNPACK warning more specific.
6378 * toplev.c (lang_options): Add -fspecial_LC
6379 and -fspecial_UC flags.
6380
6381Wed Nov 10 02:29:53 1993 Bill Cox (bill@rtl.cygnus.com)
6382
6383 * Makefile.in: Move ch-hash.h from ch-lex.o
6384 rule to ch-lex.c rule, so flex is rerun.
6385 * ch-actions.c (chill_expand_assignment): Error if
6386 user tries to assign to a LHS function.
6387 * ch-decl.c (grok_chill_fixedfields): Use of PACK
6388 /UNPACK is only a warning.
6389 (init_decl_processing): Add ADDR as a builtin function.
6390 * ch-expr.c (build_generalized_call): Add ADDR
6391 as a builtin function.
6392 (build_chill_addr_expr): Sanity check parameters.
6393 * ch-gperf: Remove ADDR as a reserved word,
6394 make ASM into one.
6395 * ch-hash.h: gperf'd version of the above.
6396 * ch-inout.c (chill_stdio_p): Recognize upper/lower
6397 case file names.
6398 * ch-lex.l: Make ignore-case work. Downcase
6399 token before checking for reserved words.
6400 * ch-parse.y: Delete ADDR as a reserved word.
6401 (mode2, optlayout): Allow PACK/UNPACK specifier.
6402 (call): Use build_generalized_call for
6403 primval LPRN modename RPRN.
6404 (primval): Delete ADDR reference. It's now only
6405 predefined, not reserved.
6406 * ch-tree.h: Add BUILT_IN_ADDR as a predefined.
6407 * ch-typeck.c (build_chill_array_type): Just
6408 a warning for PACK/UNPACK usage.
6409 * toplev.c: Add -fignore-case and -fno-ignore-case.
6410
6411Tue Nov 9 15:07:02 1993 Bill Cox (bill@rtl.cygnus.com)
6412
6413 * ch-actions.c: Reindent for readability.
6414 * ch-convert.c (convert): Turn a NULL keyword into [0, 0] for
6415 a conversion to INSTANCE.
6416 * ch-decl.c: Change special_UC to ignore_case everywhere.
6417 (init_decl_processing): Add builtin_function calls for lots of
6418 predefined functions.
6419 * ch-expr.c: Change builtin function handlers back to accepting
6420 args, not a treelist.
6421 (route_to_predefined_function): Delete it and its call.
6422 (build_generalized_call): Add lots of builtin functions.
6423 * ch-gperf (backwards, duration, inttime, null): Delete them.
6424 * ch-hash.h: New version.
6425 * ch-inout.c: Change special_UC to ignore_case everywhere.
6426 * ch-lang.c: Delete special_UC flag.
6427 * ch-lex.l: Change special_UC to ignore_case everywhere.
6428 * ch-loop.c (high_domain_value, low_domain_value): Change
6429 interfaces to build_chill_upper and built_chill_lower.
6430 * ch-parse.y: Delete lots of stuff which should only be predefined.
6431 * ch-tasking.c: Change special_UC to ignore_case everywhere.
6432 Change builtin function handlers back to accepting args,
6433 not a treelist.
6434 * ch-tree.h: Add lots of builtin functions to the enumerator.
6435
6436Mon Nov 8 18:08:27 1993 Bill Cox (bill@rtl.cygnus.com)
6437
6438 * ch-tasking.c (tasking_init): Disable last-minute change for now.
6439
6440Mon Nov 8 17:30:22 1993 Bill Cox (bill@rtl.cygnus.com)
6441
6442 * Makefile.in: New commands to build ch-hash.h. Add ch-lex.h to
6443 dependencies where it's used.
6444 * ch-decl.c (init_decl_processing): Build predefined constants
6445 for TRUE, FALSE and NULL. Add declaration for abs builtin
6446 function.
6447 (lookup_name): Check for a CONST_DECL, don't ask about DECL_NESTING
6448 stuff for builtin constant like TRUE.
6449 * ch-expr.c (route_to_predefined_function): Add a bunch of
6450 predefined functions to the list.
6451 * ch-gperf: Define the list of reserved words, minus the predefined
6452 words, using the special_UC flag. Remove NULL, TRUE, FALSE -
6453 these are only predefined, not reserved.
6454 * ch-hash.h: Check this into repository, even though it's derived
6455 from ch-gperf, for those users who don't have gperf.
6456 * ch-inout.c (build_chill_io_list_type): Use the special_UC flag
6457 to refer to the IO types. Standardize the indentation.
6458 * ch-lex.h: Add enumerators for TRUE, FALSE, NULL.
6459 * ch-lex.l: Total rewrite of reserved-word recognition, using
6460 the ch-hash.h lookup routines.
6461 * ch-parse.y: Delete a bunch of unused rules for predefined
6462 procedures and their parameters.
6463 * ch-tasking.c (tasking_init): Build predefined functions
6464 for COPY_NUMBER, GEN_CODE, GEN_INST, and GEN_PTYPE. Not
6465 complete yet. Change interface to builtin handlers to accept
6466 just an expression list.
6467
6468Wed Nov 3 18:07:08 1993 Bill Cox (bill@rtl.cygnus.com)
6469
6470 * Makefile.in: Debug, activate rule to make CHILL hash table.
6471 * ch-actions.c: Compress parameter type lists per standard.
6472 * ch-decl.c: Correct spelling in comment, compress parameter lists.
6473 (init_decl_processing): Check special_UC flag to build builtin
6474 function declarations.
6475 * ch-expr.c (route_to_predefined_function): Check for upper OR
6476 lowercase function names.
6477 * ch-gperf: Update the list of keywords.
6478 * ch-inout.c (build_chill_io_list): Check for special_UC flag
6479 to build I/O list type. Compress parameter lists.
6480 (chill_stdio_p): Check for special_UC flag in recognizing
6481 file streams.
6482 * ch-lang.c (lang_decode_option): Add command-line options
6483 for upper-case keywords and user labels.
6484 * ch-lex.l (init_lex): Initialize ridpointers to uppercase
6485 if special_UC flag is set.
6486 (downcase, getlc, check_newline): Don't do this if ignore_case
6487 flag is set.
6488 * ch-parse.y (variantdef, case_expr): Report 'sorry' for use of
6489 multiple selector expressions.
6490
6491Sat Oct 30 01:06:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6492
6493 * ch-expr.c (compare_record, finish_chill_binary_op): Compare
6494 STRUCTs (and INSTANCEs) for equality.
6495 * ch-expr.c (invalid_operand): New functions, combines most of
6496 the functionality of invalid_left_operand and invalid_right_operand.
6497 * ch-convert.c (digest_constructor): Set TREE_CONSTANT if it is.
6498
6499Sat Oct 30 11:12:47 1993 Bill Cox (bill@rtl.cygnus.com)
6500
6501 * Makefile.in (chill): Add back in the commands to build chill
6502 (the script) from chill.in.
6503
6504Fri Oct 29 16:25:38 1993 Per Bothner (bothner@kalessin.cygnus.com)
6505
6506 * expr.c (store_constructor): If SET_TYPE target is in a register,
6507 use a stack temporary (since we must take its address).
6508
6509 * ch-expr.c (build_allocate_global_memory_call,
6510 build_allocate_memory_call): Cast argument pointer to PTR,
6511 if needed (using location cast). Also, some other cleanups.
6512 * ch-parse.y (bracketed_action): Re-arrange things so that
6513 a handler following BEGIN END comes before the final poplevel.
6514 * ch-typeck.c (build_chill_cast): Just return if already correct type.
6515
6516 Re-do DO WITH so that build_component_ref for is done lazily
6517 (at each reference) instead of eagerly (at the beginning
6518 of DO WITH). This is needed for tagged variants,
6519 * ch-tree.def (WITH_DECL): New declaration tree code.
6520 * ch-decl.c (lookup_name): Recognize WITH_DECLs.
6521 * ch-decl.c (handle_one_level): Variant parts are currently
6522 indicacted with '__CASE'. Recognize that.
6523 Generate a WITH_DECL (instead of ALIAS_DECL) for each field name.
6524
6525Thu Oct 28 22:17:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
6526
6527 * ch-expr.c (build_chill_length), ch-typeck.c (build_chill_cast):
6528 Remove some old crud.
6529 * ch-typeck.c (build_chill_cast): Another attempt at a
6530 compromise between robustness and generality for casts.
6531 Location conversions are now less likely to confuse things.
6532 * ch-parse.y (optactions): Allow further optactions following
6533 an initial semicolon.
6534 * ch-parse.y: Add error messages on EVENT and BUFFER.
6535
6536 * ch-decl.c, ch-expr.c, ch-parse.y, ch-typeck.c:
6537 Undo some of the Oct 27 changes.
6538
6539 Convert (some) builtin functions previously using reserved
6540 names to be just predefined.
6541 * tree.h (enum builtin_in_function): Added END_BUILTINS at end.
6542 * ch-decl.c: Add predefines for allocate_memory,
6543 allocate_global_memory, return_memory, writetext.
6544 * ch-expr.c (check_arglist_length): New function.
6545 * ch-expr.c (build_generalized_call): If "function" is
6546 a builtin, build the appropriate tree.
6547 * ch-parse.y, ch-lex.l: No longer recognize many pre-defined
6548 functions at the lexer/parser level.
6549 * ch-tree.h (enum chill_built_in_function): New type.
6550
6551Thu Oct 28 16:43:36 1993 Bill Cox (bill@rtl.cygnus.com)
6552
6553 * ch-expr.c (allocate_memory, allocate_global_memory):
6554 Check for invalid parameters, issue errors.
6555 * expr.c (store_constructor): Calculate bitlength, startrtx
6556 and endrtx of powerset correctly. Define targetx, use it
6557 and XEXP correctly.
6558
6559Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6560
6561 * ch-expr.c (build_max_min): Error for passing empty tuple
6562 as the argument.
6563
6564Wed Oct 27 08:25:56 1993 Bill Cox (bill@rtl.cygnus.com)
6565
6566 * ch-decl.c (init_decl_processing): Make allocate
6567 builtins have a pointer-to-pointer-to-void
6568 first parameter, rather than a reference parameter.
6569 * ch-expr.c (build_allocate_memory_call,
6570 build_allocate_global_memory_call): Do automatic
6571 ADDR () on the first parameter, for backward
6572 compatibility.
6573 * ch-grant.c (grant_one_decl): Don't grant if
6574 DECL_SOURCE_LINE is zero.
6575 (start_chill_module_code): Set DECL_SOURCE_LINE
6576 to zero so that module-level function isn't granted.
6577 * ch-parse.y (handleraction): Add return_memory action.
6578 * ch-typeck.c (chill_similar): Allow a void_type
6579 to be similar to anything. This makes allocate_memory
6580 and return_memory pointer parameters slide through.
6581
6582Tue Oct 26 00:12:19 1993 Per Bothner (bothner@kalessin.cygnus.com)
6583
6584 * ch-typeck.c (build_chill_array_ref): Check for and complain
6585 if there are more index expressions than the array rank.
6586
6587 * ch-actions.c (chill_expand_assignment): Emit appropriate
6588 error message if RHS of multiple assignment is tuple/case/if.
6589 * ch-tree.def (CONCAT_EXPR): Change TREE_CODE_CLASS from
6590 'e' to the more specific '2'. (Fixes a satisfy bug.)
6591
6592Thu Oct 21 17:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
6593
6594 * ch-parse.y: Revert experimental error-generating change
6595 that was checked in by mistake.
6596
6597Thu Oct 21 12:15:30 1993 Bill Cox (bill@rtl.cygnus.com)
6598
6599 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6600 code variables associated with a process or signal.
6601 (Apparently I forgot to actually check these in last time.)
6602 * ch-tasking.c: Replace last calls to get_tasking_code with
6603 working references to DECL_TASKING_CODE_DECL.
6604
6605Thu Oct 21 10:27:42 1993 Bill Cox (bill@rtl.cygnus.com)
6606
6607 * ch-satisfy.c (safe_satisfy_decl): Satisfy the hidden tasking
6608 code variables associated with a process or signal.
6609 * ch-tasking.c (build_gen_inst, build_gen_ptype): Use the decl's
6610 tasking_code_decl pointer, rather than trying to look it up
6611 in the hash table or linked scope list.
6612
6613Wed Oct 20 09:52:44 1993 Bill Cox (bill@rtl.cygnus.com)
6614
6615 * ch-actions.c (lookup_and_handle_exit): Only output error message
6616 in pass 1.
6617 * ch-convert.c (convert): Correct conversion of VARYING array to/
6618 from non-VARYING one.
6619 * ch-decl.c (print_lang_decl): Add debug output for DECL_TASKING_CODE_DECL
6620 field in the node.
6621 (decl_tasking_code_var): Delete it. Its calls are replaced woth
6622 generate_tasking_code_variable calls, plus a little glue.
6623 (push_extern_process): generate tasking_code_variable as local
6624 static variable, point the process' function_decl at it for later
6625 reference by build_start_process.
6626 (print_mode): Use CHILL upper-case convention to print modes.
6627 * ch-lex.l: Must initialize tasking-related trees to NULL at start
6628 of each pass, or we lose the fact that the user did or did not
6629 specify a value for each of them.
6630 * ch-parse.y (check_end_label, action, exceptlist): Only output
6631 error message in pass 1.
6632 (sendaction): Add comments.
6633 (sigdef): Comment out special handling for external signals.
6634 Chain tasking_variable_decl onto signal structure decl, for
6635 easier non-symbol-table access later.
6636 * ch-tasking.c (generate_tasking_code_variable): Do work in both
6637 passes, using do_decl so we can pass the pass 2 value of the
6638 process_type or signal_code to it. Only update the process_type
6639 if the incoming pointer isn't null and pass == 2. Use a new
6640 parameter to know whether to include an init expression.
6641 (build_process_header): Attach tasking-code_variable to process
6642 function_decl for easy access later, not through the hash table.
6643 (build_start_process): Get tasking_code_variable out of the process'
6644 function decl.
6645 (build_signal_struct_type): Return the type decl, to be accessed by ...
6646 (build_signal_descriptor): .. this function.
6647 (build_receive_case_label): Get data buffer pointer not from hash
6648 table, but from Tiemann's current rc_state structure instead.
6649 * ch-tree.h: Change prototype, fix comment, add DECL_TASKING_CODE_DECL
6650 macro for tasking_code_variable storage.
6651
6652Tue Oct 19 17:39:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
6653
6654 * ch-lex.l (equal_number): If the "number" is a CONST_DECL,
6655 return its DECL_INITIAL.
6656 * ch-satisfy.c (safe_satisfy_decl): Change logic for rtl
6657 generation for decls to not use DECL_ASSEMBLER_NAME.
6658 * ch-decl.c: Set DECL_ASSEMBLER_NAME to DECL_NAME.
6659 This matches C, and allows dbxout to emit proper user-level names.
6660 (It would be cleaner to fix dbxout to use DECL_NAME ...)
6661 * ch-decl.c (outer_decls): New global list of the decls granted
6662 into the outer scope.
6663 (pop_module): Change code that grants into outer scope accordingly.
6664 (lookup_name_for_seizing): Similarly update.
6665 (push_scope_decls): Handle SEIZE ALL from the global scope
6666 by searching outer_decls.
6667 * ch-grant.c (grant_array_type): Fix thinko.
6668 * ch-inout.c (build_chill_writetext): Remove excessive TREE_TYPE.
6669
6670Mon Oct 18 15:57:00 1993 Per Bothner (bothner@kalessin.cygnus.com)
6671
6672 * varasm.c (output_constructor): Add support for non-zero
6673 lower array bound.
6674 * c-typeck.c (output_init_element): Revert recent changes.
6675 * varasm.c (emit_set_data): Fix emitting set constant data.
6676 * ch-lex.l (yywrap): Reset line number to 0, not 1.
6677 It sets incremented to 1 by check_newline.
6678 * ch-tree.h: Restore old version.
6679 * ch-expr.c (finish_chill_binary_op): Convert TRUNC_DIV_EXPR
6680 to RDIV_EXPR if an operand is floating. (This functionality
6681 got dropped when hacking finish_chill_binary_op).
6682
6683 * ch-actions.c (build_chill_case_expr): Set type to NULL_TREE.
6684 not error_mark_node.
6685 * ch-actions.c (chill_expand_assignment): Allow such borderline
6686 constructs as: LHS OR:= [X].
6687 * ch-convert.c (convert): Hande CASE_EXPR (and COND_EXPR)
6688 with unknown (NULL_EXPR) type, not just CONSTRUCTORS.
6689 * ch-decl.c (do_decl): Remove CONSTRUCTOR kludge.
6690 * ch-typeck.c (chill_compatible): Allow expr to have NULL mode
6691 if it's a CASE_EXPR or COND_EXPR (and not just CONSTRUCTOR).
6692
6693Mon Oct 18 13:20:53 1993 Ken Raeburn (raeburn@rover.cygnus.com)
6694
6695 * c-typeck.c (output_init_element): Limit previous changes to
6696 ARRAY_TYPE and SET_TYPE initializers.
6697
6698Sun Oct 17 23:15:00 1993 Bill Cox (bill@cygnus.com)
6699
6700 * c-typeck.c (output_init_element): Handle NULL domain case.
6701 * ch-decl.c (do_decl): Revert bogus initializer type change.
6702 * ch-grant.c (chill_finish_module_code): Put module's decl onto
6703 the module_init_list, for chill_finish_compile's possible use.
6704 (chill_finish_compile): Rename variables for clarity, add
6705 commented-out code as example for assignment of module address to its
6706 init_list entry.
6707
6708Sun Oct 17 15:16:54 1993 Bill Cox (bill@cygnus.com)
6709
6710 * ch-convert.c: Move semicolon to separate line - easier to see.
6711 * ch-decl.c (do_decl): Handle untyped_expr initializers by
6712 simply using the variable's declared type - no compatibility
6713 check can be made if the expression has no type.
6714 * ch-expr.c (expand_packed_set): Fix endless loop - increment
6715 the loop variable.
6716 (fold_set_expr): Fix two other endless loops by passing
6717 correct parameters to unpack_set_constructor.
6718 * varasm.c: Standardize 'for' loop.
6719
6720Sun Oct 17 12:16:21 1993 Bill Cox (bill@cygnus.com)
6721
6722 * c-typeck.c (output_init_element): Handle initializer for
6723 array with non-zero lower index bound.
6724
6725Sat Oct 16 16:48:48 1993 Per Bothner (bothner@cygnus.com)
6726
6727 * ch-expr.c (finish_chill_binary_op): Use TREE_SET_CODE
6728 to change TREE_CODE.
6729
6730Sat Oct 16 08:07:17 1993 Bill Cox (bill@rtl.cygnus.com)
6731
6732 * ch-expr.c (finish_chill_binary_op): Disable
6733 rough-draft code, not intended for release.
6734
6735Fri Oct 15 21:44:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6736
6737 * expr.c (store_constructor): use PROTO for pack_set_constructor
6738
6739Fri Oct 15 10:30:09 1993 Bill Cox (bill@cygnus.com)
6740
6741 * ch-expr.c (finish_chill_binary_op): Activate some
6742 type-setup code.
6743 * expr.c (store_constructor): Subtract arrays minimum element.
6744 Makes orientexpress work.
6745
6746Fri Oct 15 09:26:24 1993 Bill Cox (bill@cygnus.com)
6747
6748 * ch-convert.c, ch-expr.c: Add externs so it'll compile.
6749 * ch-tree.def: Add BASED_DECL definition.
6750
6751Thu Oct 14 13:20:02 1993 Bill Cox (bill@cygnus.com)
6752
6753 * ch-actions.c (build_chill_cause_exception): Pass the
6754 *address* of the filename string to the runtime routine,
6755 rather than passing the string by value.
6756
6757Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6758
6759 * expr.c (store_constructor): Use a (usually) more efficient
6760 algorithm for setting SET types.
6761
6762Thu Oct 14 13:08:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
6763
6764 Changes to better support 1984 version of Chill, which doesn't
6765 really distinguish BOOL and BITS(1) or CHAR and CHARS(1).
6766 * ch-lang.c, toplev.c, ch-tree.h (flag_old_strings): New flag.
6767 * ch-typeck.c (chill_similar): Support flag_old_strings.
6768 * ch-convert.c (convert_to_boolean): Generalize code to
6769 convert singleton bitstring to Boolean.
6770 * ch-convert.c (convert): Use string_one_type_node.
6771 * ch-convert.c (convert): Add code to convert Boolean to BOOLS(1).
6772 * ch-convert.c (convert): In code that converts fixed string to
6773 varying use new 'e' variable, rather than original 'expr' variable.
6774 Allows cascaded conversions: CHAR -> CHARS(1) -> varying CHARS.
6775 * ch-decl.c (string_type_node, const_string_type_node,
6776 int_array_type_node), ch-tree.h: Removed.
6777 * ch-decl.c (string_one_type_node, bitstring_one_type_node,
6778 bit_zero_node, bit_one_node), ch-tree.h: New globals tree nodes.
6779 * ch-decl.c (init_decl_precessing): Remove some junk.
6780 * ch-expr.c (build_generalized_call): If flag_old_strings,
6781 treat string index as string slice. Also, better error checking.
6782
6783 Added support for (some kinds of) BASED declarations.
6784 * ch-tree.def (BASED_DECL): New tree code.
6785 * ch-decl.c (lookup_name): Implement BASED_DECL using
6786 build_chill_indirect_ref.
6787 * ch-decl.c (do_based_decls): Make a BASED_DECL.
6788 * ch-parse.y: Call do_based_decls for DCL ... BASED(...).
6789 * ch-satisfy.c (safe_satisfy_decl): Handle BASED_DECL.
6790
6791 Improve handling of set binary operations.
6792 * ch-expr.c (expand_packed_set): New function.
6793 (fold_set_expr): Re-write. Simpler, more general algorithm.
6794 (build_set_expr): Only used for comparsions now.
6795 (finish_chill_binary_op): Handle set ops better (more directly).
6796 (fold_set_and, fold_set_diff, fold_set_eq, fold_set_or,
6797 fold_set_ne, fold_set_xor): Removed. No longer needed.
6798
6799 * ch-decl.c: Remove calls to allocate_lang_decl.
6800 * ch-tree.c (build_string_type): If const length, layout immediately.
6801
6802Mon Oct 11 17:23:02 1993 Bill Cox (bill@cygnus.com)
6803
6804 * ch-decl.c (init_decl_processing): Define __whoami and
6805 __wait_buffer functions.
6806 * ch-lex.l (ch_lex_init): Reset tasking numbers to zero.
6807 * ch-parse.y (sigdef): Add new add_taskstuff_to_list
6808 parameter.
6809 * ch-tasking.c (get_tasking_code): Search tasking_list for
6810 tasking code name match. Can't use lookup_name.
6811 (get_task_name): New function.
6812 (generate_tasking_code_variable): Return if pass 1.
6813 Always update *tasking_code_ptr.
6814 (build_process_header): Add new add_taskstuff_to_list
6815 parameter.
6816 (tasking_setup): New code to unpack the tasking
6817 list entries no built by ..
6818 (add_taskstuff_to_list): Accept new parameter,
6819 add it to the list.
6820 * ch-tree.h (add_taskstuff_to_list): Add new
6821 parameter.
6822
6823Mon Oct 11 14:54:50 1993 Per Bothner (bothner@kalessin.cygnus.com)
6824
6825 * Makefile.in (cc1chill): Also link in $(BC_OBJS).
6826
6827Mon Oct 11 06:28:39 1993 Doug Evans (dje@canuck.cygnus.com)
6828
6829 * ch-decl.c (flag_allow_single_precision): New global,
6830 from ss-931002 merge.
6831
6832Sun Oct 10 09:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
6833
6834 * Makefile.in: Remove references to chill.in and
6835 ch-hash.h. Remove bogus cc1chil : chill
6836 dependency.
6837
6838Fri Oct 8 16:00:04 1993 Bill Cox (bill@cygnus.com)
6839
6840 * ch-actions.c (adjust_parm_or_field): Add parameter to
6841 decl_temp1 call.
6842 *ch-decl.c (decl_tasking_code_var): Replace do_decl call with
6843 decl_temp1 call.
6844 (decl_temp1): Add parameter to signal 'make this external'.
6845 (shadow_record_fields): Add parameter to decl_temp1 call.
6846 * ch-expr.c (chill_expand_case_expr): Add parameter
6847 to decl_temp1 call.
6848 * ch-grant.c (chill_finish_compile): Add code to spoof
6849 get_file_function_name, so we don't get __tmp_s1_code,
6850 for example, as the module-level code's name.
6851 * ch-loop.c (build_temporary_variable, begin_for_range,
6852 init_loop_counter): Add parameter to decl_temp1 call.
6853 * ch-parse.y (quasi_signaldef): Clear quasi_signal flag here,
6854 for easier maintenance.
6855 (sendaction): Rewrite to receive SIGNALNAME token correctly
6856 from ch-lex.l (name_type_signal).
6857 (signaldef): Don't clear quasi_signal here.
6858 * ch-tasking.c (generate_tasking_code_variable): Tell decl_temp1
6859 to make the variable public (visible to linker).
6860 (build_start_process): Add parameter to decl_temp1 call.
6861 (tasking_setup): Comment out band-aid hack which calls
6862 generate_tasking_code_variable. Shouldn't be necessary.
6863 Use null_pointer_node rather than integer_zero_node in
6864 entry_point. More rewrites.
6865 (build_signal_descriptor): Name the non-signal in the error msg.
6866 Rewrite the building of the signal envelope - avoid seg fault.
6867 Add parameter to decl_temp1 call.
6868 (expand_send_signal, build_receive_case_start,
6869 build_receive_case_end, build_buffer_descriptor): Add parameter
6870 to decl_temp1 call.
6871 * ch-tree.h: Add parameter to decl_temp1 proto.
6872 * chill: Add new CHILL frontend directory
6873
6874Tue Oct 5 13:51:27 1993 Bill Cox (bill@cygnus.com)
6875
6876 * ch-grant.c: Standardize indentation.
6877 * ch-parse.y (end_function): Unconditionally poplevel for processes.
6878 * ch-tasking.c (build_process_header): Unconditionally pushlevel.
6879 (generate_tasking_code_variable): Stop using pass number to
6880 force a one-time action.
6881 * ch-tree.h (build_chill_slice): Delete proto since function went static.
6882
6883Mon Oct 4 13:52:36 1993 Bill Cox (bill@cygnus.com)
6884
6885 * ch-decl.c (decl_tasking_code_var): Use do_decl, since we're
6886 called here in both passes. Set DECL_ASSEMBLER_NAME.
6887 (lookup_name_for_seizing): Move NULL test forward to prevent
6888 seg fault.
6889 * ch-expr.c (finish_chill_binary_op): Mode access to TREE_CODE
6890 to prevent a seg fault in telebras/dynsto.ch. Make indentation
6891 changes.
6892 * ch-tasking.c (build_signal_struct): Rename to build_signal_struct_type.
6893 (build_send_signal): Rename to expand_send_signal.
6894 (generate_tasking_code_variable): Return the var's decl.
6895 (build_signal_struct_type): Move generate_tasking_code_variable
6896 and add_taskstuff_to_list calls to ..
6897 * ch-parse.y (sigdef): .. here. And make indentation changes.
6898 * ch-tree.h: Rename functions, add return values.
6899
6900Mon Oct 4 15:43:56 1993 Per Bothner (bothner@kalessin.cygnus.com)
6901
6902 * ch-convert.c (digest_constructor): Convert element to element_type.
6903 * ch-parse.y (end_function): Use DECL_ARGUMENTS to check
6904 for parameterless process.
6905
6906Fri Oct 1 13:57:30 1993 Per Bothner (bothner@kalessin.cygnus.com)
6907
6908 * ch-typeck.c (chill_location): New function.
6909 Based on lvalue_p, but also handle Chill-specific VARY_ARRAY_REF.
6910 * ch-typeck.c, ch-tree.h (CH_LOCATION_P), ch-convert.c: Use
6911 chill_location instead of lvalue_p.
6912
6913
6914Fri Oct 1 11:28:42 1993 Bill Cox (bill@cygnus.com)
6915
6916 * ch-convert.c (convert): Back out Michael's changes, unintentionally
6917 checked in.
6918 * ch-lex.l (handle_use_seizefile_directive): No longer downcase
6919 seize file names.
6920 * ch-parse.y (sendaction): Fix a couple of seg faults. Comment out
6921 SEND BUFFER processing for now.
6922 * ch-tree.h: Fix comment.
6923
6924Thu Sep 30 17:00:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
6925
6926 * ch-tree.h (CH_CHARS_ONE_P, CH_BOOLS_ONE_P): New macros,
6927 for recognizing singleton strings.
6928 * ch-tree.h (MARK_AS_STRING_TYPE): New macro.
6929 * ch-tree.c (build_string_type, build_bitstring_type),
6930 ch-convert.c (convert): Use it.
6931 * ch-typeck.c (build_chill_slice): Take length rather than upper
6932 bound. This makes it easier to recognize that A(X UP LENGTH)
6933 really has fixed length. Also, if the argument is string,
6934 mark the slice as a string too. Also, handle varying strings.
6935
6936 * ch-typeck.c (conflate_singleton_strings): New global.
6937 * ch-typeck.c (chill_similar): If conflate_singleton_strings is
6938 set (as it currently is), allow CHARS(1)/BOOLS(1) to be similar
6939 to CHAR/BOOL, as required by the 1984 version of Z.200.
6940 * ch-convert.c (convert_to_char): Convert CHARS(1) to CHAR.
6941 * ch-convert.c ( build_array_type_for_scalar): If input is string,
6942 so is output.
6943 * ch-convert (maybe_turn_scalar_into_arra), ch-tree.h: Removed.
6944 * ch-convert.c (convert): Convert CHAR to CHARS(1).
6945
6946 This fixes 'X // := Y' and is also a general simplification.
6947 * ch-actions.c (chill_expand_assignment): Convert 'LHS OP := RHS'
6948 to 'LHS := LHS OP RHS' (using stabilize_reference on LHS).
6949 Also, call save_expr on RHS if a multiple assignment.
6950 * ch-parse.y (assignaction): Therefore, no longer need to call
6951 stabilize_reference on RHS.
6952 * ch-typeck.c (build_chill_modify_expr), ch-tree.h: Remove
6953 modifycode parameter. Make it the caller's responsibility to
6954 handle <assigning operator>.
6955 * ch-actions.c, ch-decl.c, ch-except.c, ch-expr.c, ch-grant.c,
6956 ch-loop.c: Fix calls to build_chill_modify_expr accordingly.
6957
6958Wed Sep 29 18:02:55 1993 Per Bothner (bothner@kalessin.cygnus.com)
6959
6960 * ch-lang.c (string_index_type_dummy), ch-tree.h: New variable.
6961 * ch-decl.c (integer_minus_one_node), ch-tree.h: New variable.
6962
6963 * ch-parse.y (arrayindex: modename): Remove useless code.
6964 * ch-satisfy.c (satisfy): Don't gag on string_index_type_dummy,
6965 * ch-tree.c (build_string_type): Pass string_index_type_dummy as
6966 the parent type of the index range.
6967 * ch-typeck.c (layout_chill_range_type): Recognize and handle
6968 string_index_type_dummy - specifically allow an empty range.
6969
6970Wed Sep 29 13:36:23 1993 1993 Bill Cox (bill@cygnus.com)
6971
6972 * ch-convert.c (convert_to_reference): Check for loc-identity
6973 mismatches correctly (and remove one of those chill_compatible
6974 calls).
6975 * ch-decl.c (decl_tasking_code_var): New function, called from
6976 push_extern_process and push_extern_signal.
6977 * ch-parse.y (end_function): Delete parameter. Check current_function_decl
6978 whether it's actually a process, and whether it has parameters.
6979 Make Michael's change simplifying the pass 2 test, preventing a seg
6980 fault.
6981 (procedure, process): Change calls to end_function, remove
6982 code saving value from build_process_header. Delete redundant chill_
6983 phrases from some function calls.
6984 * ch-tasking.c: Remove some redundant _chill phrases from function
6985 names.
6986 * ch-tree.h: Remove some redundant _chill phrases from function
6987 names. Add the CH_VARYING_ARRAY_TYPE macro, call it from
6988 all relevant places.
6989 * ch-typeck.c: Use the new macro. Cast TREE_CODEs to chill_tree_code.
6990
6991Wed Sep 29 13:07:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
6992
6993 * ch-convert.c (convert_to_reference): Remove redundancies.
6994 * ch-convert.c (convert): Handle convert_to_reference
6995 with a recursive convert call.
6996 * ch-decl.c (do_decl): Add missing compatibility-checking
6997 of initializer (don't depend on convert).
6998
6999Tue Sep 28 00:02:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7000
7001 * ch-tree.h (CH_LOCATION_P): New macro.
7002 * ch-typeck.c (layout_chill_range_type): Fix call to
7003 type_for_size, when figuring out a defaulted parent type.
7004 * ch-expr.c (build_chill_lower, build_chill_sizeof): Check
7005 for TREE_CODE_CLASS != 't' rather than == 'd'.
7006 * ch-expr.c (build_chill_function_call): Use CH_LOCATION_P
7007 to check for location, rather than TYPE_CODE_CLASS == 'd'.
7008
7009 * ch-tree.c (build_string_type): Make 2-pass safe. Also,
7010 change parameter to be length, not index type.
7011 * ch-parse.y (mode2), ch-expr.c (build_concat_expr), ch-lex.l
7012 (build_chill_string): Modify callers of build_string_type accordingly.
7013 * ch-lex.l (check_newline): Don't look for # directive inside a
7014 C-style comment.
7015 * ch-grant.c (grant_array_type): Make more robust for char-
7016 and bit-strings (allow non-constant sizes). Change parameters
7017 and return types. (raw_decode_mode): Use grant_array_type
7018 for bitstrings. (otherwise): Fix grant_array_type callers.
7019
7020Mon Sep 27 16:57:57 1993 Per Bothner (bothner@kalessin.cygnus.com)
7021
7022 Remove changes of Sep 15.
7023 * ch-tree.h (CH_SINGLETON_DOMAIN): Removed.
7024 * ch-typeck.c (chill_similar): Don't allow a singleton
7025 powerset to be similar to its domain.
7026 * ch-convert.c (convert_to_boolean): Don't convert a singleton
7027 SET_TYPE constructor to a Boolean.
7028
7029 * ch-actions.c (chill_expand_assignment): Handle IN_EXPR on
7030 LHS of assignment, which is what we're current (temporarily?) using.
7031
7032Mon Sep 27 06:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
7033
7034 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7035 ch-grant.c, ch-inout.c, ch-parse.y, ch-satisfy.c,
7036 ch-tasking.c, ch-tree.c, ch-tree.h, ch-typeck.c:
7037 -Wall cleanup. Add prototypes where missing.
7038 Delete unused variables. Cast uses of tree_codes
7039 to chill_tree_code, which they are.
7040
7041Sun Sep 26 13:09:57 1993 Bill Cox (bill@rtl.cygnus.com)
7042
7043 * ch-decl.c (do_decl): Save initializer in pass zero
7044 case also.
7045 * ch-lex.l: Fix comments, indentation.
7046 * ch-parse.y: Standardize error messages to use
7047 uppercase for CHILL keywords rather than quoting them.
7048 Suggestion from docs department.
7049 * ch-tasking.c: Pervasive changes to get processes to
7050 compile and START.
7051 * ch-tree.h: Delete prototypes for functions whic
7052 I made static inside ch-tasking.c.
7053
7054Sun Sep 26 02:40:02 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7055
7056 * ch-lex.l (yywrap): Call `check_newline' in case the file
7057 started with a line directive.
7058
7059Sat Sep 25 13:54:41 1993 Per Bothner (bothner@kalessin.cygnus.com)
7060
7061 * ch-decl.c: Expand pre-amble comment.
7062 * ch-decl.c (struct scope, push_module): Use new field
7063 tail_chain_module to build child-module list in order.
7064 (Just to make compiler debugging a little less confusing.)
7065
7066 * ch-decl.c (struct scope): New field weak_decls.
7067 * ch-decl.c (find_implied_types): New interface. Now pre-pend
7068 new enum types to a given input list. This makes it easier to
7069 avoid duplicates, which should at least be more efficient.
7070 Also, handle FUNCTION_DECL.
7071 * ch-decl.c (bind_saved_names): Removed. Distribute its
7072 functionality over new functions (push_scope_decls, pop_scope_decls,
7073 build_implied_names, bind_sub_modules). The goal (which seems to
7074 have been more-or-less attained) was to fix weak name handling.
7075 * ch-decl.c (poplevel): Use new function pop_scope_decls.
7076
7077 * ch-tasking.c (build_signal_struct, build_tasking_message_type):
7078 Use build_decl directly, rather than grok_chill_fixedfields
7079 (which depends on ignore_exprs and has more overhead).
7080 * ch-tasking.c (build_signal_struct): Construct the type
7081 only in pass 1.
7082 * ch-typeck.c (build_chill_slice): Use my_build_array_ref rather
7083 than build_array_ref (which does C-specific "optimizations").
7084 (Hence move my_build_array_ref up earlier in the file.)
7085
7086Sat Sep 25 03:47:28 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7087
7088 * ch-tasking.c: Declare static variable `void_ftype_void'.
7089 (chill_tasking_init): Initialize `void_ftype_void' here.
7090 (build_tasking_struct): Use, don't declare `void_ftype_void'.
7091 (generate_tasking_code_variable): Call `do_decl', not
7092 `decl_temp1' to declare TASKING_CODE_NAME.
7093 (tasking_setup): Drop into 1-pass mode so that all
7094 tasking-related declarations are installed in the global
7095 scope. Use correct CHILL types for initializers (since
7096 ptr_type_node doesn't have the right meaning for CHILL).
7097 Also, call `do_decl' instead of `decl_temp1' for
7098 `init_struct'.
7099 (add_taskstuff_to_list): Set TASKING_LIST in pass 1 to keep
7100 `chill_finish_compile' in sync between passes.
7101
7102 * ch-decl.c (do_decl): Set DECL_ASSEMBLER_NAME for
7103 declarations on pass zero. Keep obstacks in sync, and always
7104 call `finish_decl' for pass zero declarations.
7105 (push_chill_extern_function): Keep obstacks in sync, and always
7106 call `finish_decl' for pass zero declarations.
7107 (build_enumerator): Ditto.
7108 (grok_chill_variantdefs): Change PASS test to exclude only
7109 pass one.
7110 (finish_struct): Ditto.
7111 * ch-expr.c (build_chill_component_ref): Ditto.
7112 (build_chill_binary_op): Ditto.
7113 * ch-tree.c (build_powerset_type): Ditto.
7114 (build_bitstring_type): Ditto.
7115 * ch-typeck.c (build_chill_range_type): Ditto.
7116 (build_chill_struct_type): Ditto.
7117
7118 * ch-decl.c (build_chill_exception_decl): Clarify reasons for
7119 extra pushing and popping of obstacks.
7120
7121 * ch-inout.c (build_chill_io_list_type): Call `satisfy_decl'
7122 on IO_DESCRIPTOR. This causes IO_DESCRIPTOR to be laid out.
7123
7124 * ch-grant.c (chill_finish_compile): Clear out both
7125 MODULE_INIT_LIST and TASKING_LIST if either contains stuff
7126 from pass one.
7127
7128 * ch-parse.y (rccase_label): Add NAME rules so that pass one
7129 works w/o knowing we're parsing a signal. Simplify SIGNALNAME
7130 rules since we only get SIGNALNAME tokens in pass two.
7131 (sendaction): Ditto.
7132 * ch-lex.l (name_type_signal): Enable returning SIGNALNAME and
7133 BUFFERNAME on pass two. The grammar now handles this.
7134 * ch-decl.c (lookup_remembered_decl): Deleted.
7135
7136Fri Sep 24 15:27:13 1993 Bill Cox (bill@cygnus.com)
7137
7138 * ch-decl.c (lookup_remembered_names): Removed. It was being
7139 misused in ch-lex.l.
7140 * ch-lex.l (name_type_signal): Revert last change. Basically,
7141 we cannot use the C typedef/variable name trick in CHILL, due
7142 due to the language's 2-pass nature.
7143 * ch-parse.y (arrayindex): Rewrite for correctness, and to avoid
7144 a seg fault.
7145 * ch-tree.h (lookup_remembered_name): Comment out the prototype.
7146
7147Fri Sep 24 11:01:31 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7148
7149 * ch-decl.c (do_decl, push_chill_extern_function): Change pass
7150 checks so the pass == 0 case is handled for built-in types.
7151 (push_modedef): Add check for error_mark_node.
7152 (lookup_remembered_decl): New function.
7153 (pushlevel, poplevel) Change pass checks.
7154 (pushdecl): Check type as well for NULL.
7155 (build_enumerator): Handle pass == 0 case.
7156 * ch-lex.l: Use lookup_remembered_decl to get lastiddecl
7157 during pass 1.
7158 * ch-parse.y: Set pass to zero to indicate initial decl processing.
7159 Replace NAME references with SIGNALNAME references.
7160 (startaction): Only check copy number if not ignoring actions.
7161 Always call build_chill_start_process.
7162 (optstartset): Don't lookup the instance name.
7163 * ch-tasking.c (generate_tasking_code_variable): Replace
7164 do_decl call with decl_temp1 call.
7165 (build_chill_start_action): Check for ignore_actions here.
7166 (build_tasking_message_type): Layout the type.
7167 (rc_state_type): New structure to keep nested receive-case
7168 info in.
7169 (build_chill_receive_case_start, build_chill_receive_case_end):
7170 Use the new struct.
7171
7172
7173Fri Sep 24 04:19:15 1993 Michael Tiemann (tiemann@blues.cygnus.com)
7174
7175 * ch-tasking.c (build_chill_receive_case_start): `namedecl'
7176 should be a _DECL, not an IDENTIFIER_NODE.
7177
7178Thu Sep 23 18:18:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7179
7180 * ch-decl.c (find_implied_types): Handle VAR_DECLs.
7181
7182 * ch-decl.c (print_lang_identifier): Print IDENTIFIER_OUTER_VALUE.
7183 * ch-actions.c (chill_expand_result): Allow value-less RETURN.
7184 * ch-expr.c (resolve_component_ref): Recognize error_mark.
7185
7186 * ch-convert.c (digest_constructor): Handle a nested powerset tuple.
7187 * ch-satisfy.c (satisfy): Use return value of layout_chill_range_type.
7188 * ch-typeck.c (chill_similar): Repeatedly get parent modes
7189 of ranges, not just once.
7190 * ch-typeck.c (chill_root_resulting_mode), ch-tree.h: New function.
7191 * ch-typeck.c (layout_chill_rang_type): Re-do type-checking
7192 to follow Blue Book better (check for Compatibility).
7193
7194 * ch-tree.h (CH_ROOT_RESULTING_MODE): New macro.
7195 * ch-lex.l (use_seizefile_name, current_seizefile_name), ch-tree.h:
7196 New variables. The latter replaces in_seizefile.
7197
7198 Changes to store in the new DECL_SEIZEFILE field each seize
7199 ALIAS_DECL the name in the most recent use_seize_file directive.
7200 (This requires that use_seize_file directives written to the
7201 grant file be written before the SEIZEs that need it.)
7202 Allow clashing declarations granted into the global scope
7203 (produce a warning), but remember the seizefile case from
7204 (using the DECL_SEIZEFILE field of the grant ALIAS_DECL).
7205 The a SEIZE will select the granted decl that matches its
7206 DECL_SEIZEFILE (in other words: grants from the most recent
7207 use_seize_file will be preferred).
7208 * ch-tree.h (DECL_SEIZEFILE), ch-tree.def: New macro.
7209 * ch-tree.h (global_value, IDENTIFIER_GLOBAL_VALUE): Renamed
7210 to outer_value, IDENTIFIER_OUTER_VALUE.
7211 Changes to cause the use_seize_file directives to be written
7212 out in order as they're seen in source.
7213 * ch-lex.l (files_to_seize, next_file_to_seize, last_file_to_seize):
7214 Changed to have type TREE_LIST of pointer to IDENTIFIER_NODE.
7215 * ch-lex.l (handle_use_seizefile_directive): Modify appropriately.
7216 Don't call grant_use_seizefile.
7217 * ch-lex.l (mark_use_seizefile_written): New function.
7218 * ch-grant.c (decode_decl): Write out use_seize_file directive,
7219 if needed, before writing a seize declarations.
7220 * ch-decl.c (pop_module): Handle decls granted into the global
7221 module specially, setting IDENTIFIER_OUTER_VALUE.
7222 * ch-decl.c (lookup_name_for_seizing): Check IDENTIFIER_OUTER_VALUE.
7223
7224Thu Sep 23 19:05:37 1993 Bill Cox (bill@cygnus.com)
7225
7226 * ch-decl.c (push_chill_extern_process): Delete unused variables,
7227 declare the process' tasking_code variable as external.
7228 * ch-parse.y (process): Force ignore_exprs to FALSE while parsing
7229 the process header.
7230 * ch-tasking.c (sigdef): Move resetting of quasi_signal from here
7231 to (signaldef).
7232 * ch-tree.h: Add prototype.
7233 * expr.c (store_constructor): Emergency first-aid. Rewrite later.
7234
7235Thu Sep 23 12:57:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7236
7237 * ch-expr.c (build_chill_function_call): Move possible call to
7238 chill_start_module_code until we know we're not calling a builtin.
7239 * ch-decl.c (save_expr_under_name): Use pushdecllist,
7240 not proclaim_decl (which provide for popping the decl).
7241 * ch-parse.y (optname): Also allow TYPENAME.
7242
7243Thu Sep 23 09:18:35 1993 Bill Cox (bill@cygnus.com)
7244
7245 * ch-decl.c (print_lang_decl): Make weak name output more standard.
7246 (print_lang_identifier): Make signal-data flag output more standard.
7247 (push_chill_extern_process): Pass correct arg tree to
7248 push_chill_extern_function.
7249 (push_syn_decls, fixup_unknown_type, chill_modes_equiv):
7250 Standardize function header layouts (Makes the tcov script
7251 work better).
7252 * ch-except.c (chill_finish_on): Standardize function header.
7253 * ch-expr.c (fold_set_or): Standardize function header.
7254 * ch-grant.c (print_proc_tail, print_proc_exceptions): Standardize
7255 function headers.
7256 (decode_constant): Make sure that alpha operators are surrounded
7257 with whitespace.
7258 * ch-parse.y: Spell Z.200 correctly in comments.
7259
7260Wed Sep 22 10:42:31 1993 Per Bothner (bothner@kalessin.cygnus.com)
7261
7262 * ch-expr.c (build_chill_addr_expr), ch-tree.h: New function.
7263 * ch-parse.y, ch-decl.c (shadow_record_fields): Use it.
7264 * ch-lex.l (handle_use_seizefile_directive): Don't emit
7265 use_seize_file directive if in_seizefile.
7266
7267 * ch-convert.c (digest_structure_tuple): Fix code that checks
7268 for excess init values.
7269 * ch-decl.c (layout_chill_variants): Move increment of nlabels
7270 inside the proper loop.
7271 * ch-grant.c (print_struct): Add missing loop for tag_list.
7272 (print_struct): Look for variant fields by checking for a
7273 UNION_TYPE, not a NULL name, since we must use a dummy name.
7274 * ch-parse.y (structured_variable): Various fixing.
7275 * ch-decl.c (shadow_record_fields): Rename arg decl -> struct_val.
7276
7277 * ch-satisfy.c (safe_satisfy_decl): Disable copying of modes
7278 for NEWMODE (and hence novelty checking), until we figure out
7279 a better way.
7280
7281 * ch-except.c (finish_handler_array): Use null_pointer_node,
7282 not integer_zero_node (which fails to type-check).
7283
7284 * c-typeck.c (get_constructor_element_type): New function.
7285 * ch-tree.h (CH_NOVELTY_FLAG): Now also used in TYPE_DECLs.
7286 (CH_NOVELTY): Redefined to call new function chill_novelty.
7287 (CH_CLASS_IS_XXX, TYPE_NEWMODE, CH_CLASS_MODE): Removed.
7288 * ch-typeck.c (classify_chill_expr renamed to chill_expr_class):
7289 Take extra output parameter (for M, as in M-value class).
7290 * ch-typeck.c (chill_novelty): New function. (Also de-references.)
7291
7292 * ch-expr.c (resolve_component_ref, build_chill_component_ref):
7293 New functions. Handle 2-pass and variant records.
7294 * ch-parse.y (primval DOT name): Use instead of build_component_ref.
7295 * ch-satisfy.c (satisfy, case COMPONENT_REF):
7296 New case, call resolve_component_ref.
7297
7298 * ch-expr.c (build_generalized_call): Extract single arg from
7299 arg list before calling build_chill_cast.
7300
7301 * ch-parse.y (defining_occurrence_list): New non-terminal.
7302 Use it to replace locnamelist, synnames, and modenames.
7303 * ch-parse.y: Re-write parsing of variant records.
7304
7305 * ch-decl.c (grok_chill_variantdefs): Now return a FIELD_DECL
7306 rather than just its type.
7307 * ch-inout.c (build_chill_io_list_type), ch-parse.y:
7308 Change callers appropriately.
7309
7310 * ch-tree.h (TYPE_TAG_VALUES): Add an extra level of TREE_LIST,
7311 to support multiple tag fields.
7312 * ch-grant.c (print_struct), ch-decl.c (layout_chill_variants):
7313 Support multiple tag fields.
7314
7315 * ch-convert.c (remove_tree_element, digest_structure_tuple):
7316 New functions, to digest structure tuples, without calling the
7317 code in c-typeck.c. Handles variant tuples and tags (partially).
7318 * ch-convert.c (digest_constructor, convert): Call
7319 digest_structure_tuple when appropriate.
7320 * ch-convert.c (digest_constructor): Re-arrange a bit.
7321
7322 * ch-decl.c (push_modedef): Defer copying of tree until ...
7323 * ch-satisfy (safe_satisfy_decl): ... here.
7324
7325 * ch-decl.c (getdecls): Add kludge to help dbxout_init.
7326
7327Tue Sep 21 14:19:11 1993 Bill Cox (bill@cygnus.com)
7328
7329 Partial tasking update - not done yet.
7330 * ch-actions.c: Comments, indentation.
7331 * ch-decl.c (push_chill_extern_process): No longer need to
7332 reformat the arg list for make_process_struct.
7333 (pop_module): Don't seg fault on null DECL_NAME.
7334 (handle_one_level): Error, not warning if tree not recognized.
7335 (shadow_record_fields): Rename formal param for readability.
7336 * ch-grant.c (decode_decl): Write proper header for a process.
7337 * ch-parse.y (quasi_pdef): process now uses processparlist,
7338 which doesn't change with the passes.
7339 (quasi_locdec): Call build_chill_reference_type to defer
7340 doing the type's layout.
7341 (processpar): Use paramnamelist, but reformat it into a
7342 list of identifiers in pass 2, so a processpar is the same
7343 structure in both passes.
7344 (locdec): Call build_chill_reference_type to defer doing the
7345 type's layout.
7346 * ch-tasking.c (generate_tasking_code_variable): Call do_decl to
7347 build the decl. Only update the variable's tree in pass 2.
7348 (make_process_struct): Call build_chill_reference_type to defer
7349 doing the type's layout.
7350 (build_process_header): New code to call make_process_struct.
7351 New pass-2 code to make a PARM_DECL for start_chill_function.
7352 Pass a void_type_node, not a NULL_TREE for an empty list.
7353 Get input for shadow_record_fields from current_function_decl.
7354 (build_buffer_decl): Call do_decl not decl_temp1.
7355 * ch-typeck.c: Reindent to standards.
7356 * gcc.c (SPECS): Add recognition for the '.chi' CHILL suffix.
7357
7358Mon Sep 20 12:00:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7359
7360 * ch-typeck.c (classify_chill_expr): An expression with a
7361 REFERENCE_TYPE still has VALUE class, even if an ADDR_EXPR.
7362 * ch-actions.c (adjust_parm_or_field):, ch-tree.h: Change last
7363 parameter, so we can reliably recognize LOC parameters.
7364 * ch-tasking.c, ch-expr.c: Change callers appropriately.
7365
7366Sun Sep 19 22:26:25 1993 Per Bothner (bothner@kalessin.cygnus.com)
7367
7368 * ch-tree.h (CH_READ_COMPATIBLE, CH_REFERABLE): New macros.
7369 * ch-typeck.c (chill_referable, chill_read_compatible): New functions.
7370 * ch-typeck.c (chill_compatible): Allow un-resolved CONSTRUCTOR
7371 (with NULL TREE_TYPE), when reasonable. (Simplifies callers.)
7372 Also, handle case of expr being of reference class.
7373 * ch-actions.c (adjust_parm_or_field): Major re-arrange
7374 to handle conversions and LOC args better.
7375 * ch-actions.c (chill_expand_assignment): Simplify conversions.
7376 * ch-expr.c (build_chill_function_call): If needed, call
7377 chill_start_module_code.
7378 * ch-decl.c (declare_predefined_file): New function, used
7379 to pre-define stdin, stdout, and stderr.
7380 * ch-inout.c (chill_stdio_p): Change names of predefined
7381 files from chill-stdin etc to plain stdin (and change their types).
7382 * ch-lex.l: Remove some obsolete stuff.
7383 * ch-convert.c (convert): Move conversion from reference to
7384 to beginning of convert() so other conversion can work better.
7385 Also, remove bogus direct setting of TREE_TYPE.
7386
7387Fri Sep 10 12:23:41 1993 Wilfried Moser (fs_moser@cygnus.com)
7388
7389 * Makefile.in: Change installation of the chill script. gcc will
7390 be called always with the full path. That made problems when
7391 somebody was using chill but didn't have the installation
7392 directory in PATH.
7393 * ch-parse.y: Change parsing of WRITETEXT action.
7394 * ch-tree.h: Add some new prototypes according to the
7395 (partial) implementation of WRITETEXT.
7396 * ch-typeck.c: Add new function chill_varying_string_type_p. This
7397 functions checks a type for being CHAR(n) VARYING.
7398 * ch-decl.c (init_decl_processing): Add new built-in functions
7399 _writestring and _writeunixstd.
7400 Add call to build_chill_io_list_type in ch-inout.c.
7401 * ch-inout.c (build_chill_writetext): Add some code there.
7402 Add new function build_chill_io_list_type.
7403 Add new static function chill_stdio_p. This function checks
7404 the text argument for being chill_stdin, chill_stdout or
7405 chill_stderr.
7406
7407Fri Sep 17 22:02:04 1993 Per Bothner (bothner@kalessin.cygnus.com)
7408
7409 * ch-decl.c (push_modedef): Fix TYPE_MAIN_VARIANT thinko.
7410
7411Thu Sep 16 18:38:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7412
7413 * ch-decl.c (allocate_lang_decl): Do nothing.
7414 * ch-tree.h (struct lang_decl, DECL_GRANT_FILE, DECL_SEIZE_FILE):
7415 No longer used; remove.
7416
7417 * ch-tree.h (TYPE_TAG_FIELD renamed to TYPE_TAGFIELDS), ch-grant.c
7418 (print_struct), ch-parse.y (opttagfield -> opttagfields), ch-decl.c
7419 (make_chill_variants, layout_chill_variants): Add (initial) part
7420 of support for multiple tags.
7421 * ch-decl.c (lookup_tag_fields): New function.
7422 * ch-parse.y (stmt_count): Not used; removed.
7423 * ch-parse.y (mode2): Clear current_fieldlist before
7424 parsing STRUCT fields; restore afterwards.
7425
7426 * ch-parse.y (push_action): Moved to ch-actions.c.
7427
7428Wed Sep 15 18:19:37 1993 Bill Cox (bill@rtl.cygnus.com)
7429
7430 * ch-convert.c (convert_to_boolean): Convert a SET_TYPE
7431 constructor to a boolean.
7432
7433Wed Sep 15 17:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
7434
7435 * ch-decl.c (push_modedef): Enable novelty-setting code.
7436 * ch-tree.h (CH_SINGLETON_DOMAIN): New macro.
7437 * ch-typeck.c (chill_similar): Add checking of singleton
7438 powerset against its base type.
7439
7440Tue Sep 14 17:11:52 1993 Bill Cox (bill@rtl.cygnus.com)
7441
7442 * ch-actions.c (adjust_parm_or_field): Create a
7443 temporary for an non-referencable actual parameter
7444 passed to a LOC formal parameter.
7445 (chill_expand_assignment): Correct compatibility checking.
7446
7447 * ch-decl.c (push_modedef): Set up a type's NOVELTY value.
7448 * ch-parse.y (opsigdest): Only check for process name
7449 in pass 2, when we know.
7450 * ch-tree.h (CH_NOVELTY_FLAG, CH_NOVELTY): Define.
7451 * ch-typeck.c: Fix comment.
7452
7453Mon Sep 13 17:33:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
7454
7455 * ch-grant.c (lookup_decl_in_process, register_decl_as_output,
7456 decl_seen_p, processed_decls, allocated, nr_decls): Removed
7457 no-longer-useful functions and variables that used to guard
7458 against writing a decl multiple times. Since we now just
7459 go through the decl list linearly, that is no longer an issue.
7460 * ch-satisfy.c (safe_satisfy_decl): Handle missing current_module.
7461
7462 * ch-decl.c (start_chill_function): Clear DECL_ASSEMBLER_NAME.
7463 Don't make TREE_PUBLIC. Don't generate rtl yet.
7464 * ch-decl.c (pop_module): If a decl is granted, set TREE_PUBLIC,
7465 and its DECL_ASSEMBLER_NAME.
7466 * ch-decl.c (fix_identifier): New function.
7467 * ch-grant.c (grant_one_decl): Don't set TREE_PUBLIC.
7468 * ch-tree.h (struct module): New field prefix_name.
7469 * ch-satisfy.c (safe_satisfy_decl): If assembler_name isn't
7470 set, prefix it by the module name(s).
7471 * ch-satisfy.c (safe_satisfy_decl, case FUNCTION_DECL):
7472 Call make_function_rtl if needed and !LOOKUP_ONLY.
7473 * ch-typeck.c (chill_similar): Flesh out substantially.
7474 * ch-typeck.c (chill_compatible): Re-structure.
7475
7476 * ch-actions.c (adjust_parm_or_field): Use CH_COMPATIBLE
7477 instead of chill_comptypes to compare actual and formal.
7478
7479Sun Sep 12 21:10:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
7480
7481 * ch-parse.y (labellist): Don't do anything if ignore_exprs.
7482
7483 * c-typeck.c (output_pending_init_elements): Handle
7484 !constructor_incremental case of filling in empty positions.
7485 (Patch by Jim Wilson. CYGNUS LOCAL until we have approval.)
7486 * ch-decl.c (pop_module): Don't grant a seized name.
7487 * ch-grant.c (decode_constant): Support CALL_EXPR.
7488 * ch-tree.c (build_bitstring_type): Don't try to fold non-constant
7489 size if pass==1 (since it may be an unsatisfied name).
7490
7491
7492Sun Sep 12 18:06:23 1993 Bill Cox (bill@rtl.cygnus.com)
7493
7494 2-pass fixes for processes. Partially done.
7495 * ch-actions.c (chill_expand_assignment): Add real
7496 novelty-checking sketch, $ifdef'd out for now.
7497 * ch-decl.c: Generally fix indentation. Move tasking
7498 init code from init_decl_processing to ch-tasking.c.
7499 Delete ObjC-related cruft. More accurate parameter name
7500 for shadow_record_fields. Move debug_scope before
7501 its first call.
7502 * ch-expr.c (build_chill_function_call): Return if not
7503 pass 2.
7504 * ch-grant.c (print_proc_tail): Avoid trying to format
7505 a VOID return type, or using a NULL pointer.
7506 (decode_decl): Minor changes for PROCESS arg access.
7507 * ch-lang.c (lang_decode_option): Use -itu flag to
7508 enable 'pedantic' mode.
7509 * ch-lex.l (init_lex): Initialize compiler-directive
7510 variable trees.
7511 (name_type-signal): Disable the returning of SIGNAL and BUFFER
7512 name tokens.
7513 * ch-parse.y (rccase_label_flag): Renamed from rccase_ifs.
7514 All uses renamed also.
7515 (end_function): Always poplevel, not just in pass 2.
7516 (quasi_pdef): Check for end-label matching.
7517 (quasi_formparlist): Write more clearly.
7518 (rcaltlist, optelsercvcase, optstartset): Add ignore_actions
7519 guards.
7520 (rccase_label, sendaction): Use NAME, not SIGNALNAME
7521 or BUFFERNAME.
7522 (process): Handle like procedure.
7523 (mode): Add SIGNAL as a generic signal parameter. This
7524 is a client-specific extension, so pedantic is checked.
7525 * ch-tasking.c: Pervasive rewrites for 2-pass. Still not done.
7526 * ch-tree.h (CH_NOVELTY): Make it an lvalue.
7527 * ch-typeck.c: Fix comment.
7528
7529Sun Sep 12 15:03:21 1993 Per Bothner (bothner@kalessin.cygnus.com)
7530
7531 * c-typeck.c (digest_init): Compare types using comptypes
7532 instead of comparing pointers. (Helps Chill front end.)
7533 * ch-expr.c (finish_chill_binary_op):
7534 * ch-typeck.c (build_chill_array_ref, build_chill_bitref),
7535 ch-expr.c (finish_chill_binary_op): For now, prefer IN_EXPR
7536 over BIT_FIELD_REF because of various problems with BIT_FIELD_REF
7537 (incomplete support for variable fields, and possible bug in
7538 optimize_bit_field_compare).
7539 * ch-expr.c (finish_chill_binary_op): Fix type-checking
7540 and appropriately coerce operands for IN_EXPR and comparsions.
7541 * expr.c (expand_expr, case ARRAY_REF): Coerce lower bound (if
7542 non-zero) to sizetype before subtraction.
7543 * expr.c (expand_expr): Remove Chills-specific calls to
7544 __inpowerset from case BIT_FIELD_REF to case IN_EXPR.
7545
7546Fri Sep 10 15:47:52 1993 Per Bothner (bothner@kalessin.cygnus.com)
7547
7548 * ch-tree.def (UNDEFINED_EXPR): New kind of expression.
7549 * ch-grant.c (decode_constant), ch-expr.c (chill_expand_expr),
7550 ch-convert.c (convert): Handle UNDEFINED_EXPR.
7551
7552 * ch-expr.c (build_char_array_expr): Move CONCAT_EXPR support to ...
7553 * ch-expr.c (build_concat_expr): ... here.
7554 Now also folds concatenation of STRING_CST and UNDEFINED_EXPR.
7555 Also, make result varying only if one of the operands are.
7556
7557 * ch-expr.c (build_chill_binary_op): Move stuff from here to ...
7558 * ch-expr.c (finish_chill_binary_op): ... here, as needed for
7559 proper 2-pass split. Also, clean up and simplify heavily.
7560
7561 * ch-tree.h (enum ch_expr_class): The 5 kinds of expression classes.
7562 * ch-typeck.c (classify_chill_expr): New function: Determine
7563 class of expression.
7564 * ch-typeck.c (chill_compatible_classes): Re-structure; fix
7565 asymmetry bugs.
7566 * ch-tree.h (CH_CLASS_IS_XXX): Re-define to use classify_chill_expr.
7567
7568 * ch-convert.c (maybe_turn_scalar_into_array): Complain
7569 unless scalar is a char constant (and we want a string).
7570 * ch-convert.c (convert): New code for converting to variable
7571 string/array. Avoid type errors by padding (with an UNDFIEND_EXPR).
7572 * ch-typeck.c (chill_expand_tuple): Don't do conversion to
7573 varying type here; that is handled by convert now.
7574 * ch-decl.c (digest_constructor): Moved to ...
7575 * ch-convert.c (digest_constructor): ... here.
7576 * ch-decl.c (do_decl): Simplify; just use convert for initializer.
7577 * ch-decl.c (chill_digest_init): Merged into convert, and removed.
7578 * ch-decl.c (init_decl_processing): Set constructor_no_implicit flag.
7579 * ch-except.c (finish_handler-array), ch-decl.c (finish_decl):
7580 Replace chill_digest_init by convert.
7581 * ch-actions.c (chill_expand_array_assignment): Simplify; use convert.
7582 * ch-lex.l (build_chill_string): Make string type be derived
7583 from integer, not sizetype, because upper bound can be -1.
7584
7585Thu Sep 9 18:21:46 1993 Bill Cox (bill@rtl.cygnus.com)
7586
7587 * ch-typeck.c (my_build_array_ref): Delete pedantic
7588 C-specific error message.
7589
7590Thu Sep 9 17:44:20 1993 Jeffrey Wheat (cassidy@eclipse.cygnus.com)
7591
7592 * gcc.c: pass {I*} spec to cc1chill. Fixes -Ifoo not working problem.
7593
7594Thu Sep 9 12:22:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
7595
7596 * ch-typeck.c (build_chill_array_ref): Remove redundant and
7597 broken call to my_build_array_ref.
7598
7599Wed Sep 8 13:03:49 1993 Per Bothner (bothner@kalessin.cygnus.com)
7600
7601 * ch-except.c (finish_handler_array), ch-decl.c (finish_decl):
7602 Don't use store_init_value, since it calls digest_init instead
7603 of chill_digest_init.
7604 * ch-except.c (finish_handler_array): Use build1 (ADDR_EXPR, ...)
7605 instead build_unary_op to avoid C-specific optimizations.
7606 * ch-typeck.c (my_build_array_ref): Don't use default_conversion
7607 to convert array to pointer.
7608 * c-typeck.c (process_init_default): New function, to support
7609 default values for array tuples in Chill.
7610 * c-typeck.c (default_conversion): Don't convert array to pointer
7611 if compiling Chill.
7612 * ch-decl.c (digest_constructor): New function; used to be guts
7613 of chill_digest_init. Now recursive, to handle nested tuples.
7614
7615 * ch-decl.c (chill_digest_init): Handle struct labels.
7616 * ch-grant.c (get_tag_value): Use decode_constant in general case.
7617 * ch-grant.c (decode_constant): Add support for lots of missing
7618 binary and unary operators.
7619
7620Wed Sep 8 10:11:04 1993 Bill Cox (bill@rtl.cygnus.com)
7621
7622 * ch-lang.c: Look for '-I' option for seize file path.
7623 * ch-lex.l: Fix comment about above option.
7624
7625Wed Sep 8 00:37:32 1993 Per Bothner (bothner@rtl.cygnus.com)
7626
7627 * ch-satisfy.c: Move code to set (and restore) file-and-line
7628 from satisfy_decl to safe_satisfy_decl, for the sake of satisfying
7629 alias decls that refer to real decls with errors.
7630 * ch-actions.c (lang_init): Move to ch-lang.c.
7631 * ch-decl.c (init_decl_processing): Move code to initialize
7632 file-and-line from here ...
7633 * ch-lang.c (lang_init): ... to here, to avoid clobbering.
7634
7635 * ch-decl.c (chill_digest_init): Add support for SET_TYPE,
7636 and index values.
7637 * ch-typeck.c (chill_expand_typle): Just call chill_digest_init.
7638 * c-typeck.c: Fix various things that got broken
7639 in the latest merge.
7640
7641Tue Sep 7 15:45:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
7642
7643 * ch-decl.c (build_enumerator): Handle a "unnamed set element"
7644 (obsolete feature) by generating a dummy name.
7645 * ch-decl.c (finish_decl): Call rest_of_decl_compilation with
7646 "correct" value of top-level (to get better debugging output).
7647 * ch-decl.c (bind_saved_names): Allow a null DECL_NAME.
7648
7649Tue Sep 7 15:48:35 1993 Bill Cox (bill@rtl.cygnus.com)
7650
7651 * ch-actions.c (chill_expand_return): Correct breakage
7652 due to recent fsf merge.
7653
7654Tue Sep 7 11:16:10 1993 Bill Cox (bill@rtl.cygnus.com)
7655
7656 * .cvsignore: Add multilib.h.
7657 * ch-decl.c (chill_digest_init): New function. Calls were
7658 changed, since it has fewer parameters than old digest_init.
7659 * ch-parse.y (untyped_expr, primval, tupleelement): Calls to
7660 new init stuff.
7661 (elementlist): Delete unused code.
7662 * ch-satisfy.c (safe_satisfy_decl): Just return if decl == NULL.
7663 * ch-tasking.c (build_tasking_enum): Attempt to adapt to 2-pass.
7664 * ch-tree.h: Delete digest_init prototype.
7665 * ch-typeck.c (digest_init): Much new code.
7666
7667Tue Sep 7 12:06:28 1993 Bill Cox (bill@rtl.cygnus.com)
7668
7669 * ch-decl.c, ch-parse.y, ch-tree.h, ch-typeck.c: Revert
7670 files to their pre-init-change state.
7671
7672Mon Sep 6 15:28:27 1993 Bill Cox (bill@rtl.cygnus.com)
7673
7674 Preliminary adaptation to rms' new initializer code.
7675 * ch-decl.c (do_decl): Call chill_digest_init, not
7676 digest_init, which rms made static.
7677 * ch-expr.c (chill_truthvalue_conversion): Delete C-
7678 specific code.
7679 * ch-loop.c (init_loop_counter): Indent for readability.
7680 * ch-parse.y (untyped_expr, primval, tupleelement): Call new init code.
7681 * ch-tree.h: Prototype changes for new init code.
7682 * ch-typeck.c (chill_expand_tuple): Call new init code.
7683 * chill.texi: Add necessary '-f' prefix on options.
7684
7685Wed Sep 1 13:21:53 1993 Per Bothner (bothner@kalessin.cygnus.com)
7686
7687 * ch-convert.c (build_array_type_for_scalar),
7688 ch-tasking.c (build_chill_receive_case_end): Index type
7689 specification is now chain of types (not chain of TREE_LIST).
7690 * ch-satisfy.c (satisfy): Don't try to satisfy the
7691 abstract_origin of an ALIAS_DECL if DECL_POSTFIX_ALL.
7692 * ch-expr.c (build_chill_binary_op): If pass 1, do NOT
7693 call finish_chill_binary_op.
7694 * ch-parse.y (arrayindex): Simplify.
7695
7696Tue Aug 31 14:57:35 1993 Bill Cox (bill@rtl.cygnus.com)
7697
7698 * ch-decl.c (print_lang_decl): Print weak-name status.
7699 (print_lang_identifier): Print signal_data as T or F.
7700 * ch-lex.l (convert_bitstring, convert_charliteral,
7701 convert_float, convert_number): Pass string directly to convert
7702 as a parameter. Return token code consistently, return 0
7703 for error.
7704 (equal_number): Parse differently, allowing hex, binary
7705 and octal constants.
7706 * ch-parse.y (dowithaction, structured_variable): Only
7707 push/pop scopes once per DO WITH.
7708 (structured_variable_list): Check ignore_actions flag here.
7709 * gcc.c: Delete 'traditional' from string, add 'itu'
7710 as the standard flag's name.
7711
7712Mon Aug 30 15:12:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
7713
7714 * ch-typeck.c, ch-tree.h (build_chill_range_type): Take 3
7715 parameters instead of 2 (explicit low and high bounds).
7716 * ch-parse.y (arrayindex): Build range type from low:high.
7717 (rangesize, optrangesize): Removed.
7718 (where appropriate): Use new build_chill_range_type interface.
7719 * ch-grant.c: Clean up writing of range and array types.
7720 * ch-satisfy.c (satisfy): Don't ignore the return value of
7721 layout_chill_array_type. (It may be an error mark.)
7722 * ch-typeck.c (build_chill_array_type): Simplify.
7723 * ch-typeck.c (layout_chill_array_type): Clean up checks.
7724
7725Fri Aug 27 12:55:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
7726
7727 * ch-decl.c (decl_temp1): Set DECL_ASSEMBLER_NAME.
7728 (push_chill_extern_function) Don't set current_function_decl.
7729 * ch-parse.y (tupleelement): Don't wrap index is a TREE_LIST
7730 (i.e. a range), don't wrap a PAREN_EXPR around it.
7731 * ch-grant.c (decode_constant): For tuple CONSTRUCTORs,
7732 add support for ranges in purpose.
7733
7734Wed Aug 25 16:58:13 1993 Bill Cox (bill@rtl.cygnus.com)
7735
7736 * .cvsignore: Add g++.sum
7737 * ch-actions.c (chill_expand_result): Stop building a temp.
7738 Assign the expression directly into function's DECL_RESULT.
7739 * ch-decl.c: Add formfeeds.
7740 (start_chill_function): Don't need to zero DECL_RESULT's pointer any more.
7741 (push_chill_function_context): Delete C pedwarn message.
7742 * ch-expr.c: Move builtin functions together.
7743 * ch-parse.y (end_function): Delete unused code.
7744 Reformat %union for readability. Delete _MAX and _MIN
7745 tokens.
7746
7747Wed Aug 25 13:24:06 1993 Bill Cox (bill@rtl.cygnus.com)
7748
7749 * ch-actions.c (get_result_tmp_name): Delete unused function.
7750 (chill_expand_result, chill_expand_return): Rewrite for
7751 2-pass.
7752 * ch-decl.c (start_chill_function): NULL out the RESULT_DECL's
7753 chain field, so we can make a temp, evaluate a RESULT action's
7754 expression into it, and hang it on here.
7755 * ch-parse.y (end_function): Look for RESULT temps to emit.
7756 (assertaction): Indentation.
7757
7758Wed Aug 25 08:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
7759
7760 * ch-lex.l, ch-parse.y: Delete CONTINUE_EVENT token.
7761 It wasn't used anyway.
7762
7763Tue Aug 24 17:51:18 1993 Bill Cox (bill@rtl.cygnus.com)
7764
7765 * ch-actions.c (chill_expand_result, chill_expand_return):
7766 No need to make a temp for the value, just use DECL_RESULT.
7767
7768Tue Aug 24 16:38:24 1993 Per Bothner (bothner@kalessin.cygnus.com)
7769
7770 * ch-tree.c (layout_powerset_type): Remove redundant code.
7771 Generalize (in error message) to also handle bitstrings.
7772 * ch-tree.c (build_bitstring_type): Remove all layout-like
7773 stuff, and defer that to layout_powerset_type.
7774 * ch-expr.c (chill_expand_expr): For various SET_xxx_EXPRs,
7775 allocate stack temp for target using correct mode.
7776
7777Tue Aug 24 10:27:19 1993 Bill Cox (bill@rtl.cygnus.com)
7778
7779 * ch-actions.c, ch-decl.c, ch-except.c,
7780 ch-grant.c, ch-lang.c, ch-loop.c, ch-tree.h,
7781 ch-typeck.c: Change build_modify_expr calls to
7782 build_CHILL_modify_expr calls.
7783 * ch-expr.c (build_chill_modify_expr): Adapted from
7784 build_modify_expr in c-typeck.c.
7785
7786Mon Aug 23 16:48:39 1993 Bill Cox (bill@rtl.cygnus.com)
7787
7788 * ch-actions.c, ch-convert.c, ch-decl.c, ch-expr.c,
7789 ch-grant.c, ch-lang.c, ch-lex.l, ch-loop.c,
7790 ch-satisfy.c, ch-tasking.c, ch-tree.c, ch-typeck.c:
7791 Major re-allocation of functions to files.
7792
7793Mon Aug 23 12:15:11 1993 Bill Cox (bill@rtl.cygnus.com)
7794
7795 Thanks for the tip, Jim.
7796 * Makefile.in: Add dependency lines for ch-except.o and
7797 ch-satisfy.o. Correct dependency lines for ch-convert.o,
7798 ch-expr.o, ch-inout.o, and ch-loop.o.
7799 (chill, install-common): Add clean-up commands.
7800
7801Sat Aug 21 17:11:26 1993 Bill Cox (bill@rtl.cygnus.com)
7802
7803 * ch-decl.c (get_type_precision): New function.
7804 (layout_enum): Call it.
7805 * ch-tree.c (layout_powerset_type, build_bitstring_type):
7806 Call it.
7807
7808Sat Aug 21 13:59:40 1993 Bill Cox (bill@rtl.cygnus.com)
7809
7810 * ch-decl.c (init_decl_processing): Define setbitpowerset
7811 runtime function.
7812 * ch-expr.c (chill_expand_assignment): Call setbitpowerset
7813 to set a bit.
7814 * ch-parse.y: Indentation.
7815
7816Fri Aug 20 17:29:56 1993 Bill Cox (bill@rtl.cygnus.com)
7817
7818 * ch-parse.y: Delete unused %type declaration.
7819 * ch-tasking.c (build_signal_struct): Delete return, since
7820 function returns void.
7821 * ch-typeck.c: Indent to standard.
7822 * stor-layout.c: Fix comment.
7823 * toplev.c: Change -L option ti -I.
7824 * varasm.c (emit_set_data): Align set constant to word
7825 boundary.
7826
7827Fri Aug 20 08:20:07 1993 Bill Cox (bill@rtl.cygnus.com)
7828
7829 * ch-actions.c: Fix indentation, comments.
7830 * ch-decl.c (push_chill_extern_signal): Use same interface
7831 as build_signal_struct.
7832 * ch-parse.y (quasi_signaldef): Move build_signal_decl
7833 here to sigdef. Add quasi_signal to distinguish contexts
7834 where sigdef gets used.
7835 * ch-tasking.c: Replace make_signal_struct and build_signal_decl
7836 with build_signal_decl, which doesn't loop through a
7837 TREE_LIST.
7838 * ch-tree.h: Fix protos.
7839
7840Wed Aug 18 17:36:53 1993 Bill Cox (bill@cygnus.com)
7841
7842 * ch-actions.c: Fix comments.
7843 * ch-decl.c (push_modedefs): Return the new decl.
7844 (shadow_record_fields): Move pushlevel (0) calls into
7845 the grammar, so they'll get done in both passes.
7846 * ch-parse.y (dowithaction): Always compute & save # of
7847 'with' variables seen (both passes), and always pop that
7848 number of levels.
7849 (structured_variable_list): Always chain variables into a list.
7850 (structured_variable): Put pushlevel here (from shadow_record_fields).
7851 * ch-tasking.c: Indentation fixes.
7852 * ch-tree.h: Change proto.
7853 * chill.texi: Add Blue Book section numbers to unimplemented
7854 features list.
7855
7856Wed Aug 18 15:48:43 1993 Per Bothner (bothner@kalessin.cygnus.com)
7857
7858 * ch-actions.c (build_generalized_call): New function.
7859 Classifies semantically (if pass 2) this that look like calls.
7860 * ch-parse.y (call): Invoke build_generalized_call.
7861 * ch-parse.y (sigdef): Use defining_occurrence instead of NAME.
7862 * ch-parse.y (opt_untyped_exprlist): New non-terminal.
7863 * ch-satisfy.c (satisfy): Handle CALL_EXPR.
7864
7865Tue Aug 17 16:36:15 1993 Per Bothner (bothner@kalessin.cygnus.com)
7866
7867 * ch-decl.c (find_implied_types): Handle INTEGER_TYPEs (ranges).
7868
7869Mon Aug 16 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
7870
7871 * ch-tree.h (TUPLE_NAMED_FIELD): New macro.
7872 * ch-parse.y (labelled structure tupleelement):
7873 Set TUPLE_NAMED_FIELD flag.
7874 * ch-grant.c (decode_constant): Check for TUPLE_NAMED_FLAG.
7875 * ch-satisfy.c (satisfy): Check for TUPLE_NAMED_FLAG.
7876 Do satisfy the elements of a CONSTRUCTOR even if call
7877 chill_expand_tuple isn't correct.
7878 * ch-satisfy.c (satisfy): Satisfy TYPE_TAG_VALUES of a RECORD_TYPE.
7879 * ch-parse.y (label_spec): Defer any semantic checking until ...
7880 * ch-decl.c (layout_chill_variants): ... here.
7881 Also make sure to call layout_type on the union type.
7882 * ch-decl.c (bind_saved_names): For weak names, allocate an
7883 ALIAS_DECL, rather than a CONST_DECL.
7884
7885 Add support for implied (weakly visible) names.
7886 * ch-tree.h (DECL_WEAK_NAME): New macro.
7887 * ch-satisfy.c (satisfy of IDENTIFIER_NODE): Don't complain
7888 if lookup_name fails if LOOKUP_ONLY - name might be weakly visible.
7889 * ch-decl.c (proclaim_name): Handle DECL_WEAK_NAME appropriately.
7890 * ch-decl.c (concat_lists, find_implied_types): New functions.
7891 * ch-decl.c (bind_saved_names): Search for implied names.
7892 * ch-tree.h (C_DECL_VARIABLE_SIZE): Removed.
7893 * ch-lang.c (layout_chill_struct_type): Don't use
7894 C_DECL_VARIABLE_SIZE.
7895
7896Mon Aug 16 16:10:43 1993 Bill Cox (bill@rtl.cygnus.com)
7897
7898 * ch-actions.c: Delete extra space in error message.
7899 * ch-parse.y: Fix comment.
7900 * expr.c (store_constructor): Avoid passing NULL to convert,
7901 and getting back an error_mark_node and trying to process
7902 *that* node.
7903
7904Mon Aug 16 14:41:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
7905
7906 * ch-decl.c: Add more overview comments.
7907 * ch-decl.c (proclaim_decl): New function.
7908 * ch-decl.c (temp_pushdecl, struct shadowing): Removed.
7909 * ch-decl.c (bind_saved_names): Remove blevel parameter;
7910 use current_scope global instead. Do some other cleanups.
7911 * ch-decl.c (save_expr_under_name): Create an ALIAS_DECL.
7912 * ch-decl.c (pushdecllist, save_expr_under_name): Use proclaim_decl.
7913 * ch-satisfy.c (satisfy, safe_satisfy_decl): Be more careful
7914 to not do inappropriate things (e.g. type layout) if LOOKUP_ONLY.
7915
7916 * chill.texi: Start collecting Chill documentation here.
7917 * ch-parse.y (mode): Ignore READ specifier, for now.
7918
7919Mon Aug 16 11:13:07 1993 Bill Cox (bill@rtl.cygnus.com)
7920
7921 * ch-actions.c (chill_comptypes): Correct handling reference
7922 of type 1.
7923 (build_chill_length, build_chill_num,
7924 build_chill_sizeof): Convert result to CHILL integer.
7925 (build_chill_function_call): Clean up INOUT and OUT
7926 parameter handling.
7927 * ch-decl.c (build_chill_function_type): Handle INOUT and
7928 OUT parameters.
7929 * ch-loop.c: Fix up comments.
7930 * ch-parse.y: Fix up comments.
7931
7932Sun Aug 15 15:06:01 1993 Bill Cox (bill@rtl.cygnus.com)
7933
7934 * ch-actions.c (build_chill_lower, build_chill_upper):
7935 Re-write, mostly to delete bogus ENUMERAL_TYPE handling.
7936 * ch-decl.c (save_expr_under_name): New function to save
7937 addressing expressions for DO WITH and DO FOR handling.
7938 (handle_one_level): Call new function.
7939 * ch-loop.c (init_loop_counter): Call it here, too.
7940 Check lp->user_var before passing it to lookup_name.
7941 (high_domain_value, low_domain_value): Correct call
7942 to build_chill_upper and build_chill_lower.
7943 (begin_chill_loop, end_chill_loop): Move pushlevel,
7944 poplevel up into the grammar, so they're done in both
7945 passes.
7946 * ch-parse.y (doaction): Unconditionally make a scope
7947 for a loop, pop it later.
7948 (controlpart, iteration): Save return from
7949 build_chill_iterator.
7950 * expr.c: Readability changes.
7951
7952Sat Aug 14 19:42:32 1993 Bill Cox (bill@rtl.cygnus.com)
7953
7954 * ch-expr.c (chill_expand_case_expr): Complete rewrite
7955 for 2-pass. About 1/2 the size, too.
7956 * ch-parse.y (actionlabel): Unconditionally do INIT_ACTION.
7957 This assures that a label preceding a module's first action
7958 is enclosed in the module-level function that's generated.
7959
7960Sat Aug 14 14:56:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
7961
7962 Re-implement how EXIT is done.
7963 'LABEL: BEGIN ... EXIT LABEL; ... END' is converted to
7964 'LABEL: BEGIN ... GOTO EXIT!LABEL; ... EXIT!LABEL: ; END'.
7965 Hence we no longer need any support for EXIT in stmt.c.
7966 * stmt.c (stamp_nesting_label, expand_exit_labelled): Removed.
7967 * ch-actions.c (lookup_and_handle_exit): Handle like 'GOTO EXIT!name'.
7968 * ch-tree.c, ch-tree.h (munge_exit_label): New function.
7969 * ch-parse.y: Re-write bracked actions to support EXIT new way.
7970 * ch-decl.c, ch-loop.c: Remove calls to stamp_nesting_level.
7971 * ch-parse.y: Replace SC by new token semi_colon, which
7972 resets the 'label' global. Also make sure that label gets
7973 reset whenever we might start a new action statement.
7974 * ch-parse.y (possibly_define_exit_label): New function.
7975
7976 * ch-except.c (chill_start_on): Wrap an ADDR_EXPR round the jmpbuf.
7977 * ch-grant.c (chill_finish_compile): Make sure
7978 get_file_function_name is only called once.
7979 * ch-expr.c (chill_expand_array_assignment): Use store_expr,
7980 instead of incorrectly calling emit_block_move.
7981
7982 * ch-parse.y (procedure): Call push_chill_function_context
7983 in *both* passes (if nested).
7984 * ch-parse.y (primval): Call get_type_of before chill_expand_type.
7985 * ch-parse.y (tupleelement): Only build PAREN_EXPR during pass 1.
7986
7987Fri Aug 13 16:36:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
7988
7989 Re-implement GRANT and SEIZE, to support prefixes and prefix
7990 rename. All of the Blue Book semantics for these should
7991 now work (except FORBID).
7992 * ch-tree.def, ch-tree.h (DECL_OLD_PREFIX, DECL_NEW_PREFIX,
7993 DECL_POSTFIX, DECL_POSTFIX_ALL): New ALIAS_DECL layout and macros.
7994 * ch-tree.c (get_identifier3, build_alias_decl, decl_old_name,
7995 decl_check_rename): New functions.
7996 * ch-lex.h, ch-lex.l, ch-grant, ... (grant_all_seen): Removed.
7997 * ch-satisfy.c (satisfy_decl): Handle SYN initialized with tuple.
7998 * ch-satisfy.c (satisfy_decl): Set DECL_ASSEMBLER_NAME here ...
7999 * ch-decl.c (pushdecllist): ... instead of here, which is too late.
8000 * ch-grant.c (decode_prefix_rename): New function.
8001 Use to print out GRANT and SEIZE statements.
8002 * ch-decl.c (ALL_POSTFIX): New global variable.
8003 * ch-decl.c (bind_saved_names, pop_module): Change to use new
8004 ALIAS_DECL layout, and support general prefix rename and ALL.
8005 * ch-decl.c (various places): Don't barf if DECL_ANME is NULL.
8006 * ch-parse.y (build_prefix_clause): New function (handle PREFIXED).
8007 * ch-parse.y (optprogendname, optname): Rename to opt_end_label.
8008 * ch-parse.y: Add support for compound name strings, but defer
8009 using all over teh place, due to parser ambiguities.
8010 Howver, do use defining_occurrence where appropriate.
8011 * ch-parse.y: Re-write syntax and semantics of GRANT and SEIZE
8012 statements to support Blue Book functionality. Neato!
8013
8014Fri Aug 13 17:10:52 1993 Bill Cox (bill@rtl.cygnus.com)
8015
8016 * ch-actions.c: Redo decl_temp1 calls to save resulting decl.
8017 * ch-decl.c (decl_temp1): Rewrite to return generated decl.
8018 (decl_temp): Deleted.
8019 * ch-loop.c: Redo decl_temp1 calls to save resulting decl.
8020 * ch-satisfy.c (safe_satisfy_decl): Reorder switch for
8021 readability, add comment.
8022 * ch-tasking.c: Redo decl_temp1 calls to save resulting decl.
8023 * ch-tree.h: Delete decl_temp proto, change decl_temp1.
8024
8025Fri Aug 13 13:39:59 1993 Bill Cox (bill@rtl.cygnus.com)
8026
8027 * ch-decl.c (decl_temp): Break the chain of decls. This
8028 prevents an infinite loop.
8029 * ch-lang.c (make_chill_pointer_type): Fix compiler warning.
8030 * ch-lex.l (equal_number): Check passes in looking up a
8031 symbolic value.
8032 * ch-parse.y: Fix comments.
8033 * ch-tasking.c (tasking_setup): Only act in pass 2.
8034 (make_signal_struct, build_signal_decl,
8035 build_chill_receive_case_label): Don't go indirect
8036 thru NULL decl pointer.
8037
8038Thu Aug 12 11:02:34 1993 Bill Cox (bill@rtl.cygnus.com)
8039
8040 * ch-actions.c (route_to_predefined_function): New function called
8041 from build_chill_function_call, to call the proper predefined routine.
8042 (build_chill_card, build_chill_length, build_chill_lower,
8043 build_chill_max, build_chill_min, build_chill_num,
8044 build_chill_pred, build_chill_sizeof, build_chill_succ,
8045 build_chill_upper): Rewritten to run only in pass 2.
8046 * ch-decl.c (init_decl_processing): Build predefined functions for card,
8047 length, lower, max, min, num, pred, sizeof, succ and upper. Delete
8048 unused builtin_function calls.
8049 * ch-grant.c (chill_finish_module_code): Save current_function_decl
8050 before calling finish_chill_function, and use that to build the
8051 initializer structure.
8052 * ch-lex.l: Remove following tokens, since they're now just predefined,
8053 not reserved: card, length, lower, max, min, num, pred, sizeof, succ
8054 and upper.
8055 * ch-loop.c: Readability, indentation changes.
8056 * ch-parse.y: Delete tokens for card, length, lower, max, min, num, pred,
8057 sizeof, succ and upper. Delete special rules for calls to these.
8058 Delete mode_location and upper_lower_arg non-terminals.
8059 (pmodearg): Eliminate convolutions.
8060 (call): Add rule for typename parameter.
8061 * ch-tasking.c: Readability changes.
8062 * ch-tree.h: Add prototypes.
8063
8064Thu Aug 12 00:38:17 1993 Per Bothner (bothner@kalessin.cygnus.com)
8065
8066 * ch-decl.c (save_decl): Set DECL_CONTEXT (decl).
8067 * ch-grant.c (chill_finish_module_code): Call
8068 finish_chill_function with nested==0.
8069 * ch-tree.h, ch-decl.c, ch-tasking, ch-parse.y: Rename
8070 {push,pop}_c_function_context to {push,pop}_chill_function_context.
8071 * ch-parse.y (end_function): If nested, call
8072 pop_chill_function_context regardless of which pass we're in.
8073
8074Wed Aug 11 02:34:02 1993 Per Bothner (bothner@kalessin.cygnus.com)
8075
8076 * ch-actions.c (finish_chill_binary_op): Handle error marks.
8077 * ch-decl.c (do_decl): Laying out decl and generating rtl
8078 is too late to do here (if there are forward references), so ...
8079 * ch-satisfy.c (satify_decl): ... do it here instead.
8080 * ch-decl.c (finish_enum): Fixup types of enum decls now.
8081 * ch-satisfy.c (safe_satisfy_decl): New routine. Supports
8082 checking illegal cyclic definitions.
8083 All *satisfy* routines now take a 'chain' parameter (instead
8084 of 'lookup_only') used for checking cycles.
8085 * ch-satisfy.c (satisfy_decl): Return DECL_INITIAL if appropriate.
8086 * ch-satisfy.c (satisfy): Lots of little fixes.
8087
8088 * ch-lex.l (init_lex): Make all the standard ridpointers be
8089 lowercase, so that lookup_name on lower-cased user input
8090 will find the standard types.
8091 * ch-lex.l: Remove all the standard types, in effect
8092 converting them from reservered anmes to predefined names.
8093 * ch-lex.l, ch-parse.y: Remove PREDEF_MODEDECL - no longer used.
8094 * ch-grant.c (gfile): Rename to grant_file_name.
8095 * ch-lex.l (yywrap): Don't try to seize current grant_file_name.
8096
8097 * initname.c: Removed. get_file_function_name is now in tree.c
8098 * Makefile.in (CHILL_OBJS): Remove initname.o
8099
8100 * ch-decl.c (do_decl): New function, based on loop body of do_decls,
8101 * ch-decl.c (do_decls): Just call do_decl.
8102 * ch-grant.c (chill_finish_module_code): Minor cleasnups.
8103 Use new do_decl routine. Clear init_entry_decl's source line.
8104 * ch-grant.c (print_proc_tail): Fix for new param list structure.
8105 * ch-parse.y (whatpdef): Removed. Cleaned up procedure
8106 and process, allowing proper end-label-checking.
8107 * ch-typeck.c (build_chill_cast): Remove decl->type conversion.
8108
8109Wed Aug 11 00:33:44 1993 Per Bothner (bothner@kalessin.cygnus.com)
8110
8111 * ch-decl.c (layout_enum): Don't call rest_of_type_compilation.
8112
8113 * ch-lex.l (RETURN_PREDEF): Don't call lookup_name.
8114 * ch-expr.c (build_chill_indirect_ref): Call get_type_of.
8115 * ch-parse.y (call): Call get_type_of before build_chill_cast.
8116
8117Tue Aug 10 21:33:10 1993 Per Bothner (bothner@kalessin.cygnus.com)
8118
8119 * ch-actions.c (build_char_array_expr): If a concat operand is
8120 a constant char, convert it to a STRING_CST.
8121 * ch-decl.c (finish_decl): Call rest_of_decl_compilation
8122 with toplev=0.
8123 * ch-typeck.c (build_chill_cast): Allow type to be TYPE_DECL.
8124
8125 * ch-parse.y (actionlabel): Call define_label in both passes.
8126 * ch-actions.c (lookup_and_expand_goto, lookup_and_handle_exit):
8127 New functions, using lookup_name to find LABEL_DECLs.
8128 * ch-parse.y (GOTO, EXIT): Use above new functions.
8129 * ch-tasking.c (struct rc_state_type *current_rc_state):
8130 Use to store state for the current receive case statement.
8131 (build_chill_receive_case_start, build_chill_receive_case_end):
8132 Don't generate temporary LABEL_DECL; just use gen_label_rtx.
8133 * ch-decl.c: Remove all stuff dealing with specific label scopes,
8134 including functions push_label_level, pop_label_level.
8135 * ch-decl.c (define_label): Re-write for 2-pass.
8136 * ch_tree.h (lang_identifier): Removed label_value.
8137 * ch-tree.h (IDENTIFIER_LABEL_VALUE): Removed.
8138
8139 * ch-parse.y (modename): Changed to yield identifier, not type.
8140 This allows following changes, which work better for 2-pass:
8141 (location): primval ARROW optmodename -> primval ARROW optname.
8142 (primval): Tuple can now be prefixed by unsatisfied name.
8143
8144 * ch-actions.c (chill_grant_only): Renamed to grant_only_flag.
8145 * ch-lex.l (yywrap): Don't read seizefiles if grant_only_flag.
8146 * ch-decl.c (switch_to_pass_2): Exit if grant_only_flag,
8147
8148 * ch-satisfy.c (satisfy): Support CONSTRUCTOR, REFERENCE_TYPE.
8149 * ch-satisfy.c (satisfy_decl, satisfy): Kludge around
8150 to a TYPE_DECL can be simplified to its type.
8151 * ch-expr.c (build_chill_indirect_ref): New function.
8152 * ch-lex.l (prepare_paren_colon): Make kludge even uglier,
8153 since the left paran might already have been seen.
8154 * ch-lang.c (make_chill_pointer_type): Allow parameter
8155 to select pointer or reference type.
8156 (build_chill_reference_type): New function.
8157 Either function: Be more careful (in case arg is identifier).
8158 * ch-except.c (initialize_exceptions): Make
8159 exception_stack_decl be public.
8160 * ch-actions.c (build_char_array_expr): Can only
8161 constant fold if operands are STRING_CST.
8162 * ch-grant.c (raw_decode_mode): Allow TYPE_DECL.
8163 (chill_finish_compile: Set TREE_PUBLIC of init function to 1.
8164
8165Tue Aug 10 17:55:12 1993 Bill Cox (bill@rtl.cygnus.com)
8166
8167 * ch-actions.c (build_char_array_expr): Set array sizes correctly.
8168 * ch-decl.c: Fix comment.
8169 * ch-parse.y (pmodearg): Build tree_list in all cases.
8170 * varasm.c (assemble_tasssking_entry): Delete unused code.
8171
8172Tue Aug 10 13:58:21 1993 Bill Cox (bill@rtl.cygnus.com)
8173
8174 * ch-actions.c (build_char_array_expr): save/restore
8175 a tree's constant status.
8176 (build_chill_binary_op): Don't convert an expression
8177 if the type we're converting to is NULL.
8178 * ch-convert.c (maybe_turn_scalar_into_array): New functions.
8179 Call it from convert, and from ..
8180 * ch-expr.c (chill_expand_assignment): call new function.
8181 Move convert code earlier, too.
8182 * ch-decl.c (lookup_name): Delete bogus error message.
8183 * ch-tree.h (CH_NOVELTY, SCALAR_P): Handle NULL_TREE.
8184 Add protos.
8185 * ch-typeck.c (valid_array_index): Comment out some strange code
8186 which now seg faults.
8187 (chill_expand_tuple): Re-enable prepending of VARYING
8188 length to a tuple.
8189 (chill_similar): Return FALSE if either mode is NULL_TREE.
8190
8191Tue Aug 10 07:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
8192
8193 * ch-decl.c: Delete proto for unused function shadow_tag_warned.
8194 Add commented-out calls to pushtag, in case we decide later
8195 to fill in TYPE_STUB_DECL for dbxout.
8196 * ch-lang.c (build_chill_struct_type): Add commented-out
8197 calls to pushtag, in case we decide later to fill in
8198 TYPE_STUB_DECL for dbxout.
8199
8200Mon Aug 9 23:09:08 1993 Per Bothner (bothner@kalessin.cygnus.com)
8201
8202 * ch-decl.c (chill_seize): Don't get_next_next in pass 2.
8203 * ch-decl.c (get_next_decl): Skip ALIAS_DECLs.
8204 * ch-decl.c (bind_saved_names): Handle SEIZE ALL.
8205 * ch-lang.c (layout_chill_struct_type): Don't call
8206 rest_of_type_compilation - it crashes without a TYPE_STUB_DECL.
8207 * initname.c (get_file_function_name): Get new file and
8208 function for language-independent constructor name generation.
8209 * ch-grant.c (get_init_function_id): Removed.
8210 * ch-grant.c (chill_finish_compile): Call get_file_function_name
8211 instead of get_init_function_id.
8212
8213Mon Aug 9 18:33:36 1993 Bill Cox (bill@rtl.cygnus.com)
8214
8215 * ch-decl.c: Formfeeds and comments.
8216 * ch-parse.y (quasi_formpar): Treat just like real formpar.
8217 Eliminate restriction on single name.
8218 (pmodearg, pmodearglist): Remove ignore_exprs stuff.
8219
8220Mon Aug 9 17:21:14 1993 Per Bothner (bothner@kalessin.cygnus.com)
8221
8222 * ch-lex.h (enum rid), ch-lex.l (init_lex): Added RID_ALL.
8223 * ch-lang.c (build_chill_pointer_type): Layout the pointer type,
8224 if the pointee is laid out, even if pass==1.
8225 * ch-parse.y: Set ignore_exprs=(pass=2) for entire spec module.
8226
8227Mon Aug 9 15:44:01 1993 Bill Cox (bill@rtl.cygnus.com)
8228
8229 This version compiles the 5-line program. Thanks, Per!
8230 * ch-decl.c (print_lang_decl, print_lang_identifier):
8231 Add appropriate calls to indent_to(). Rename reverse_scopes
8232 to switch_to_pass_2, and wait to set pass = 2 until
8233 here.
8234 * ch-grant.c (chill_finish_module_code): Set module_init_list
8235 non-NULL in pass 1; in pass2, chain on the module_init
8236 structure's decl.
8237 (chill_finish_compile): Clear module_init_list to NULL.
8238 * ch-parse.y (quasi_formparlist): Rewrite to avoid seg fault.
8239 Rename reverse_scopes to switch_to_pass_2, delete setting
8240 of pass = 2.
8241 * ch-tree.h: Rename reverse_scopes proto.
8242
8243Mon Aug 9 13:21:34 1993 Per Bothner (bothner@kalessin.cygnus.com)
8244
8245 * ch-decl.c (build_enumerator): If name is NULL,
8246 don't call save_decl or get_next_decl.
8247 * ch-decl.c (layout_enum): Fix calculation of next value.
8248 * ch-grant.c (print_enumeral): Re-do for new 2-pass scheme.
8249 * ch-grant.c (decode_constant): Better CONSTRUCTOR support.
8250
8251Mon Aug 9 11:59:12 1993 Bill Cox (bill@rtl.cygnus.com)
8252
8253 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c,
8254 ch-lang.c, ch-parse.y, ch-tree.h: gcc -Wall cleanup.
8255 Lots of new prototypes.
8256
8257Mon Aug 9 01:00:33 1993 Per Bothner (bothner@kalessin.cygnus.com)
8258
8259 * ch-lex.h: Remove unused RID_'s. Make sure RID_MAX is last.
8260 * ch-decl.c (init_decl_processing): Moved ridpointers
8261 initialization to init_lex(). Use them consistently.
8262 * ch-lex.l (RETURN_PREDEF): New macro. Uses ridpointers
8263 for all preferedined types.
8264 * ch-lex.l (init_lex): Upper case all RIDs, so grantfiles
8265 (and error messages?) will use uppercase.
8266 * ch-decl.c (build_chill_enumerator): Merged into build_enumerator.
8267 * ch-lang.c (finish_chill_enum): Merged into ...
8268 * ch-decl.c (finish_enum): .... this function.
8269 * ch-decl.c (layout_enum): New function. Does all the pass-2
8270 stuff for enumerations.
8271 * ch-decl.c (finish_enum, start_enum): Only trivial pass-1 stuff.
8272 * ch-satisfy.c (satisfy): Support ENUMERAL_TYPE. Improve ranges.
8273 * ch-parse.y: Check ignore_exprs instead of ignore_decls when
8274 parsing and building types.
8275
8276Sun Aug 8 16:26:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8277
8278 * ch-lex.h: Add some missing RID_'s.
8279 * ch-decl.c (init_decl_processing):
8280
8281Sun Aug 8 15:32:54 1993 Bill Cox (bill@rtl.cygnus.com)
8282
8283 * ch-grant.c (module_has_actions): Delete this and all
8284 references. It was a botch.
8285 (chill_finish_module_code): Move finish_chill_function_call inside
8286 the test whether actions were found at module level.
8287 Use current_function_name in the initializer build,
8288 and init_entry_id in the module_list setup.
8289 (chill_finish_compile): Call lookup_name to get the
8290 decl from a module_init_list entry.
8291 * ch-parse.y: Revert module_has_actions additions.
8292 * ch-satisfy.c (satisfy): After satisfying the type referenced
8293 by a pointer_type, call layout type for the pointer.
8294 * ch-tasking.c (tasking_registry): Only active in pass 2.
8295 * ch-typeck.c: Call build_chill_pointer_type everywhere.
8296
8297Sun Aug 8 13:13:29 1993 Per Bothner (bothner@kalessin.cygnus.com)
8298
8299 * ch-tree.def (PAREN_EXPR): New unary op: '(' EXPR ')'.
8300 * ch-parse.y (primval): If pass 1, generate PAREN_EXRR.
8301 * ch-satisfy.c (satisfy): Reduce PAREN_EXPR to its operand.
8302 * ch-grant.c (decode_const): Handle PAREN_EXPR.
8303 * ch-decl.c (pop_module): Fix think. Inprove error message.
8304
8305Sun Aug 8 10:31:04 1993 Bill Cox (bill@rtl.cygnus.com)
8306
8307 Generally, replace 'function' with 'procedure'
8308 and 'type' with 'mode' in error/warning messages.
8309 * ch-actions.c: See Generally. Fix up 'too many' and 'too few' error msgs.
8310 * ch-decl.c: See Generally.
8311 (init_decl_processing): Call build_tasking_enum from here.
8312 Now, it doesn't need a flag to do its work only once.
8313 Also, build the TaskingStruct decl here.
8314 * ch-grant.c: Remove references to `current_grant_file';
8315 there's now only one. See Generally. Do gcc -Wall cleanup.
8316 * ch-lex.l: Remove references to `current_grant_file'
8317 and delete USE_GRANT_FILE token.
8318 * ch-parse.y: Remove call to build_tasking_enum, and its extern.
8319 * ch-tasking.c (tasking_setup): Move TaskingStruct build
8320 to init_decl_procesing. Delete build_tasking_enum calls.
8321 * ch-tree.c: See Generally.
8322 * ch-tree.h: Add proto for build_tasking_struct.
8323
8324Sun Aug 8 08:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8325
8326 * ch-decl.c: Make unnamed_module_number static, reset it to zero
8327 before pass 2, so same module names get generated in both passes.
8328 (push_module): Return user name or generated name.
8329 (init_decl_processing): Build __tmp_initializer_type.
8330 Code moved from chill_finish_module_code.
8331 * ch-grant.c: New flag module_has_actions. Set TRUE by push_actions,
8332 used, reset by chill_finish_module_code. Replaces test of
8333 module_function_name. Shuffled finish-up code to end of module.
8334 (chill_finish_module_code): Use global_bindings_p to determine
8335 'nested' parameter for finish_chill_function. Use new
8336 module_has_actions flag to trigger generation of module_init list
8337 entry. We now can handle not only multiple modules per file,
8338 but modules nested inside functions (I think).
8339 * ch-lang.c (build_chill_pointer_type): Restore missing assignment.
8340 * ch-parse.y (push_actions): Set module_has_actions flag.
8341 (modulion, spec_module): Save possibly-generated module name
8342 returned by push_module.
8343 * ch-satisfy.c (satisfy): Put switch cases into alpha order, add
8344 case for POINTER_TYPE.
8345 * ch-tasking.c: Replace build_pointer_type calls with
8346 build_chill_pointer_type calls.
8347 * ch-tree.h: Fix, add prototypes.
8348
8349Sat Aug 7 17:32:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8350
8351 * ch-parse.y: Remove many useless tests for ignore_decls.
8352 * ch-parse.y: Remove obsolete support for _EXTERN and _INIT.
8353 * ch-parse.y: Reset ignore_exprs while parsing declarations,
8354 but handle initializers appropriately.
8355 * ch-grant.c (decode_constant): Update (for 2-pass) support
8356 for CONSTRUCTOR and SET_TYPE.
8357 * ch-grant.c (chill_initializer_name): Renamed to
8358 module_function_name.
8359 * ch-grant.c (function_generated): Removed;
8360 use module_function_name != NULL instead.
8361 * ch-tree.h, ch-parse.y: Removed unused current_locnamelist.
8362 * ch-decl.c (push_modedef): Simplify to take just one mode.
8363 * ch-tasking.c (make_process_struct, make_signal_struct):
8364 Change calls to push_modedef correspondingly.
8365 * ch-tree.c (build_powerset_type): Move the stuff that's
8366 suitable for pass 1 into new function make_powerset_type,
8367 and that for pass 2 into new function layout_powerset_type.
8368 * ch-lang.c: Move pass-1 stuff from build_chill_pointer_type
8369 into new function make_chill_pointer_type, and split
8370 build_chill_struct_type into make_chill_struct_type
8371 and layout_chill_struct_type.
8372 * ch-decl.c (grok_chill_variantdefs): Similarly split up
8373 into make_chill_variants and layout_chill_variants.
8374 * ch-satisfy.c (satisfy): Add support for SET_TYPE, and UNION_TYPE.
8375 Call layout_chill_struct_type for RECORD_TYPE.
8376
8377Sat Aug 7 09:59:55 1993 Bill Cox (bill@rtl.cygnus.com)
8378
8379 Fixup previous check-in.
8380 * ch-decl.c: Restore unnamed_module_number, which *was*
8381 used after all.
8382 * ch-grant.c (get_init_function_id): Return type s.b. tree.
8383
8384Sat Aug 7 09:28:17 1993 Bill Cox (bill@rtl.cygnus.com)
8385
8386 * ch-decl.c (print_lang_decl, print_lang_type): Add
8387 correct parameter list. Add print statements for
8388 nesting_level, signal_dest, buffer_size, and the
8389 signal_data flag.
8390 (decl_temp, decl_temp1): Delete unused code.
8391 (init_decl_processing): Call build_instance_type and
8392 build_tasking_type in both passes.
8393 Generally change current_scope comparisons against
8394 global_scope to global_biidings_p calls.
8395 * ch-except.c (push_handler): Add space before parameter paren.
8396 * ch-grant.c (chill_start_module, chill_finish_module,
8397 chill_finish_compile): Complete re-write for 2-pass and
8398 multiple modules per source file.
8399 * ch-parse.y (pass1_2): Call chill_finish_compile once each pass.
8400 * ch-tasking.c: Diffused small adaptations to 2-pass.
8401 * ch-tree.h (print_lang_decl, print_lang_type): Correct
8402 the prototypes.
8403 (chill_finish_module_code): Add module name parameter.
8404 * ch-typeck.c: Fix comments, add whitespace.
8405
8406Fri Aug 6 12:17:07 1993 Per Bothner (bothner@kalessin.cygnus.com)
8407
8408 * ch-decl.c (temp_pushdecl, bind_saved_names): The simple-minded
8409 way I allocated the shadow_list on an obstack was too fragile,
8410 so just use xmalloc/free instead.
8411
8412Fri Aug 6 08:31:49 1993 Bill Cox (bill@rtl.cygnus.com)
8413
8414 * ch-satisfy.c (satisfy): Satisfy TYPE_MIN_VALUE and
8415 TYPE_MAX_VALUE for vanilla integer type. Only need
8416 to satisfy TREE_TYPE for integer range type.
8417
8418Fri Aug 6 00:53:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
8419
8420 * ch-lang.c (build_chill_range_type): Split up into two new
8421 functions (make_chill_range_type, layout_chill_range_type);
8422 only former part is done in pass 1.
8423 * ch-lang.c (build_chill_array_type): Split up in the same
8424 way (yielding make_chill_array_type, layout_chill_array_type).
8425 * ch-satisfy.c (satisfy): Handle array and range types.
8426 * ch-tree.h (TYPE_RANGE_PARENT): Removed. Not used.
8427 * ch-parse.y (mode2): Handle optional rangesize.
8428
8429Thu Aug 5 15:13:42 1993 Per Bothner (bothner@kalessin.cygnus.com)
8430
8431 * ch-grant.c (print_an_int): Re-enable (but don't search for SYN).
8432 * ch-grant.c (raw_decode_mode): Support printing
8433 of an IDENTIFIER_NODE (unresolved type name).
8434 * ch-grant.c (decode_constant): Support printing of an unresolved
8435 IDENTIFIER_NODE, as well as some kinds of binary operations.
8436 * ch-grant.c (grant_one_decl): Don't call globalize_decl.
8437
8438 * ch-grant.c (decode_decl): Add support for ALIAS_DECLs
8439 (from SEIZEs and GRANTs).
8440 * ch-grant.c: Remove support for multiple grantfiles.
8441 * ch-grant.c, ch-parse.y: Removed grant_count, for now at least.
8442 * ch-lex.h (in_seizefile): Moved to ch-tree.h.
8443 * ch-tree.h (CH_DECL_SEIZED), ch-tasking.c, ch-decl.c: Removed.
8444 * ch-tree.h (CH_DECL_GRANTED): Added.
8445 * ch-actions.c (build_chill_exception_decl): Use
8446 IDENTIFIER_LOCAL_VALUE, not obsolete IDENTIFIER_GLOBAL_VALUE.
8447 * ch-grant.c (write_grant_file -> write_spec_module): Rename.
8448 Change to accept list of remember_decls and granted_decls.
8449
8450Thu Aug 5 11:58:21 1993 Stan Shebs (shebs@rtl.cygnus.com)
8451
8452 * expr.c: Remove no-longer-used PROCESS_DECL tree type.
8453
8454Thu Aug 5 10:03:27 1993 Bill Cox (bill@rtl.cygnus.com)
8455
8456 * ch-decl.c (init_decl_processing): Only build types
8457 in pass 2, since dbxout machinery is only ready for
8458 output then.
8459 * ch-grant.c (chill_finish_module_code): Do most of the
8460 work in pass 2.
8461
8462Thu Aug 5 06:54:10 1993 Bill Cox (bill@rtl.cygnus.com)
8463
8464 * ch-parse.y (receivecaseaction): Pass label-group
8465 numbers around.
8466 * ch-tasking.c (build_chill_receive_case_start):
8467 Generate unique labels for each case, pass back
8468 the label-group's number.
8469 (build_chill_receive_case_end): Accept label-group
8470 number from parser, use it to build labels
8471 * ch-tree.h: Change prototypes.
8472
8473Wed Aug 4 13:21:13 1993 Per Bothner (bothner@kalessin.cygnus.com)
8474
8475 * ch-decl.c (decl_temp1): Call finish_decl().
8476
8477 * ch-grant.c (chill_start_module_code): Don't call
8478 push_c_function_context - not needed since we're not nested.
8479 * ch-grant.c (chill_finish_module_code): Call finish_chill_function
8480 with nested=0, not 1 (twice).
8481 * ch-grant.c (chill_finish_module_code): Clear function_generated.
8482
8483Tue Aug 3 20:06:22 1993 Per Bothner (bothner@kalessin.cygnus.com)
8484
8485 * ch-decl.c (push_chill_extern_function): Set TREE_PUBLIC.
8486
8487Tue Aug 3 19:08:51 1993 Bill Cox (bill@rtl.cygnus.com)
8488
8489 * ch-actions.c (build_chill_function_call): Handle parameter
8490 attributes better - LOC still not handled.
8491 * ch-tree.def: Amplify comment.
8492
8493Tue Aug 3 18:07:36 1993 Per Bothner (bothner@kalessin.cygnus.com)
8494
8495 * ch-lex.l (handle_use_seizefile_directive): Update
8496 next_file_to_seize correctly.
8497 * ch-actions.c (build_chill_abs): Create an ABS_EXPR, not an rts_call.
8498
8499Tue Aug 3 14:03:50 1993 Bill Cox (bill@rtl.cygnus.com)
8500
8501 First Aid, not real long-term fixes...
8502 * ch-decl.c (pop_module, lookup_name_for_seizing): Check
8503 current_module pointer for NULL before using it.
8504 (init_decl_processing): Set up wchar_type_node before using it.
8505 * ch-grant.c (chill_finish_module_code): Don't build
8506 initializer_type or initializer_decl until pass 2.
8507 * ch-lex.l: Readability - single statement per line.
8508 * ch-tasking.c (make_process_struct): Hide get_parm_info
8509 call inside #ifdef for now.
8510
8511Tue Aug 3 09:59:23 1993 Bill Cox (bill@rtl.cygnus.com)
8512
8513 * ch-decl.c (pushdecllist): Add forward decl.
8514 * ch-parse.y (handler): Add rules which allo
8515 empty onalternativelist.
8516 * ch-tasking.c (get_tasking_code_name): Add
8517 cast of alloca() result.
8518
8519Tue Aug 3 00:11:40 1993 Per Bothner (bothner@kalessin.cygnus.com)
8520
8521 * ch-lex.l (handle_use_seizefile_directive): Make files_to_seize
8522 a queue. Check for duplicate use_seizefile-s immediately.
8523 * ch-lex.l (yywrap): Use this more portable mechanism,
8524 rather than the flex-specific <<EOF>>. Also, clear saw_eof.
8525 * ch-lex.l: Don't call push_module/pop_module automatically.
8526 * ch-decl.c (push_chill_extern_function: Modify for 2-pass.
8527
8528Mon Aug 2 14:24:59 1993 Per Bothner (bothner@kalessin.cygnus.com)
8529
8530 * ch-parse.y: Rename actionstatement -> nonempty_actionstatement.
8531 New actionstatement is now nonempty_actionstatement | SC. Use
8532 where appropriate. This is closer to Blue Book terminology.
8533
8534 * ch-tree.def (ALIAS_DECL): New tree type.
8535 * ch-decl.c: Merged all the code we need (I hope) from c-decl.c,
8536 which is no longer used for cc1chill.
8537 * c-decl.c: Remove all Chill-related code.
8538 * Makefile.in (CHILL_OBJS): Don't use c-decl.o.
8539 * ch-decl.c: No longer use IDENTIFIER_GLOBAL_VALUE anywhere.
8540 Introduce a 'nesting_level' level concept instead.
8541 * ch-decl.c: Merged push_scope into pushlevel; pop_scope into
8542 poplevel; struct scope and struct binding_level.
8543 * ch-decl.c: Other major name lookup algorithm changes.
8544 * ch-tree.h (struct lang_identifier): Remove granted_value field.
8545 * ch-tree.h (IDENTIFIER_GRANTED_VALUE macro): Removed.
8546 * ch-tree.h (DECL_NESTING_LEVEL): New macro.
8547 * ch-satisfy.c (satisfy, satisfy_decl): New 'lookup_only' arg.
8548 * ch-tree.h (struct module): New fields nesting_level, granted_decls.
8549 * ch-grant.c (seize_implied_names, do_seize, chill_seize): Move ...
8550 * ch-decl.c: ... here.
8551 * ch-grant.c (start_chill_function2): Remove.
8552 * ch-grant.c (chill_start_module_code): Now called in both passes.
8553 * ch-actions.c (lang_init): Code moved to ...
8554 * ch-decl.c (init_decl_processing): ... here.
8555 * ch-actions.c (chill_expand_result, chill_expand_return):
8556 Handle being called during pass 1.
8557 * ch-lex.l (name_type_signal): Don't try lookup_name during pass 1.
8558 * ch-parse.y (PUSH_ACTION, push_action): Is now invoked during
8559 both passes, for the sake of chill_start_module_code. Change all
8560 actions rules to invoke PUSH_ACTION unconconditionally.
8561 * ch-parse.y, ch-decl.c (push_module): Module label is now optional.
8562
8563Mon Aug 2 15:02:32 1993 Bill Cox (bill@rtl.cygnus.com)
8564
8565 * expr.c (store_constructor): Convert library function
8566 parameters to proper integer precision before calling
8567 emit_library_call.
8568
8569Mon Aug 2 08:46:06 1993 Bill Cox (bill@rtl.cygnus.com)
8570
8571 * ch-grant.c (seize_implied_names): Check POWERSET's
8572 base type for names to seize.
8573
8574Fri Jul 30 19:59:30 1993 Bill Cox (bill@rtl.cygnus.com)
8575
8576 * ch-tree.h: Delete unused definition of JOINER
8577 macro. Expand comment about INSTANCE_TYPE.
8578
8579Thu Jul 29 14:57:11 1993 Bill Cox (bill@rtl.cygnus.com)
8580
8581 * ch-convert.c (unreferenced_type_of): New function.
8582 (convert): Call new function.
8583
8584Thu Jul 29 07:34:57 1993 Bill Cox (bill@rtl.cygnus.com)
8585
8586 * ch-lex.l: Allow C-style comments before the module
8587 header. Use #undef to assure that strchr isn't a
8588 macro (portability), and remove the extra paren-
8589 theses in its extern name.
8590 (check_newline): Call getlc less often, so that user
8591 labels aren't lowercased before their time. Add BEGIN
8592 INITIAL before starting pass 2, so the header is
8593 correctly ignored.
8594
8595Wed Jul 28 14:23:24 1993 Bill Cox (bill@rtl.cygnus.com)
8596
8597 * ch-grant.c (chill_start_module_code): Cast alloca()
8598 return value.
8599
8600Wed Jul 28 12:39:51 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
8601
8602 * ch-grant.c: remove extra parens around extern function
8603 declarations (they confuse the DECstation compiler)
8604
8605Wed Jul 28 12:28:56 1993 Bill Cox (bill@rtl.cygnus.com)
8606
8607 * Makefile.in: Stop deleting flex's #line lines.
8608
8609Wed Jul 28 07:05:25 1993 Bill Cox (bill@cygnus.com)
8610
8611 Adjust after FSF merge:
8612 * calls.c (expand_call): Add comment.
8613 * ch-expr.c: Add newline.
8614 * expmed.c (store_split_bit_field): Add comment.
8615
8616Tue Jul 27 17:32:13 1993 Bill Cox (bill@rtl.cygnus.com)
8617
8618 * ch-actions.c (build_chill_binary_op): Set code0 and
8619 code1 only in pass 2.
8620 (get_result_tmp_name): Cast alloca return for portability.
8621 * ch-decl.c (pop_module): Test current_module ptr before
8622 using it.
8623 * ch-lex.l: Set lineno and input_filename for pass 2
8624 error messages.
8625
8626Tue Jul 27 15:14:06 1993 Bill Cox (bill@rtl.cygnus.com)
8627
8628 * ch-lex.l: Fix the syntax error at line 329. Will I
8629 *ever* quit fixing these in the ch-lex.c file? Stay tuned..
8630
8631Tue Jul 27 15:01:25 1993 Bill Cox (bill@rtl.cygnus.com)
8632
8633 * ch-lex.l: Pervasive rewrite for queueing seize files,
8634 then parsing them at the end of pass 1. Still some
8635 problems.
8636
8637Tue Jul 27 07:40:39 1993 Bill Cox (bill@rtl.cygnus.com)
8638
8639 * chill.in: Check for .i suffices only, and use -xchill
8640 to bracket the argument.
8641
8642Thu Jul 22 19:17:23 1993 Bill Cox (bill@rtl.cygnus.com)
8643
8644 * c-decl.c (print_lang_identifier): Oops. Syntax error.
8645
8646Thu Jul 22 18:56:16 1993 Bill Cox (bill@rtl.cygnus.com)
8647
8648 * c-decl.c (pushdecllist): Standardize loop for readability.
8649 * ch-decl.c (decl_temp): Call pushdecllist to store decl
8650 into hash table, move after current_scope declaration.
8651 (decl_temp1): Move also.
8652 * ch-lex.l (getlc): New function. Force char to lower case.
8653 (check_newline): Call it, so comparisons work on uppercase
8654 keywords.
8655
8656Wed Jul 21 22:17:22 1993 Bill Cox (bill@rtl.cygnus.com)
8657
8658 * ch-decl.c (do_decls): Add saving of decl tree
8659 address into ID node in pass 2, reindent.
8660 * ch-grant.c (start_chill_function2): New function.
8661 (chill_start_module_code, chill_finish_module_code): Call it.
8662 * ch-loop.c (build_temporary_variable, begin_for_range):
8663 Replace start_decl, finish_decl pairs with decl_temp1 calls.
8664 * ch-parse.y (parnamelist): Eliminate warning by eliminating
8665 the %type for now.
8666 * ch-actions.c, ch-tasking.c: Replace do_decls calls with
8667 decl_temp1 calls.
8668 * ch-tree.h: New prototypes.
8669 * stmt.c (stamp_nesting_label): Check parameters for NULL.
8670 * toplev.c (lang_options): Add '-L' option.
8671
8672Wed Jul 21 21:06:18 1993 Bill Cox (bill@rtl.cygnus.com)
8673
8674 Portability fixes.
8675 * ch-decl.c (save_decl): Make definition match forward declaration.
8676 * ch-lex.l (RETURN_TOKEN): Don't use the 'do { .. return } while 0'
8677 in the macro - Sun's compiler throws warnings. Thanks, Brendan.
8678 * ch-satisfy.c (satisfy): Add forward declaration.
8679 (SATISFY): Add outer parens for greater safety.
8680
8681Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8682
8683 * c-decl.c (pushdecllist): New function. Add a list of decls
8684 to the current scope, checking for duplicates.
8685 * c-decl.c (start_function): Remove some Chill junk.
8686 (This function should no longer be used for Chill.)
8687 * ch-lex.l (ch_lex_init): New function, to re-init for 2nd pass.
8688 * ch-lex.l (<<EOF>>): Cleanup, and re-start for 2nd pass.
8689 * ch-tree.h (UNSATISFIED, UNSATISFIED_FLAG): New flags.
8690 * ch-tree.h (CH_CLASS_IS_VALUE, CH_CLASS_IS_REFERENCE):
8691 Implement. Add comments.
8692 * ch-tree.h (CH_COMPATIBLE_CLASSES, CH_ROOT_MODE, CH_RESULTING_MODE):
8693 Better Blue Book type checking.
8694 * ch-actions.c (finish_chill_binary_op): Handle folding
8695 and other stuff that couldn't be done in pass 1.
8696 * ch-actions.c (build_chill_binary_op): Bail out early if pass 1.
8697 Use new CH_ROOT_MODE macro to handle integer promotions etc.
8698 * ch-except.c (push_handler): Bail out if pass 1.
8699 * ch-tasking.c (make_process_struct): Defer making this work.
8700 * ch-parse.y (assignaction): Simplify, and move some code ...
8701 * ch-expr.c (chill_expand_assignment): ... here.
8702 * ch-typeck.c (chill_root_mode, chill_resulting_mode,
8703 chill_compatible_classes): New functions, implementing the
8704 correspondingly named Blue Book concepts.
8705 * ch-parse.y generally: Lots of little tweaks to support
8706 2-pass compilation.
8707 * ch-parse.y (push_module, pop_module): Moved to ...
8708 * ch-decl.c (push_module, pop_module): ... here.
8709 * ch-parse.y (push_action): New function.
8710 * ch-parse.y (pdef): Move complicated action to ...
8711 * ch-parse.y (end_function): ... new function here.
8712 * ch-parse.y (procedure): Major re-write.
8713 * ch-parse.y (paramname, paramnamelist): New, to avoid conflict (?).
8714 * ch-decl.c (do_decls, push_syndecls, push_modedef,
8715 start_chill_function, finish_chill_function): Do different things
8716 on each pass. Hence, can use code in c-decl.c to lesser extent.
8717 * ch-decl.c (build_chill_function_type): First arg is now
8718 just the return type, rather than a singleton list.
8719 * ch-decl.c (massage_param_node): Remove not needed (we
8720 now encode parameter attributes directly in the TREE_PURPOSE).
8721 * ch-decl.c (chill_munge_params): New function, called by parser.
8722 * ch-decl.c (push_parms): Removed function.
8723 * ch-decl.c (push_cope, pop_scope, save_decl, get_next_decls):
8724 New functions, to coordinate decls between passes.
8725
8726Wed Jul 21 14:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
8727
8728 * ch-actions.c (lang_decode_option): Add option -Lpath
8729 to specify seize file path.
8730 (ch_singleton_set): Readability formatting.
8731 Add comment, move functions to easier found places.
8732 * ch-lex.l (setup_seizefile_read): Check for *no* slashes.
8733 (register_seize_path): Use memcpy so pathlen has an effect.
8734 * gcc.c (default_compilers): Add -L option to chill
8735 compiler SPECs.
8736
8737Wed Jul 21 12:59:20 1993 Per Bothner (bothner@kalessin.cygnus.com)
8738
8739 * ch-satisfy: New file. Used for name lookup.
8740 * Makefile.in (CHILL_OBJS): Add ch-satisfy.o.
8741
8742Wed Jul 21 12:16:51 1993 Bill Cox (bill@rtl.cygnus.com)
8743
8744 * toplev.c (main): Delete -L option handling - breaks
8745 non-chill compilers.
8746
8747Wed Jul 21 09:29:24 1993 Bill Cox (bill@rtl.cygnus.com)
8748
8749 * ch-grant.c: #undef strchr and strrchr names in extern
8750 declarations, to prevent RS6000 compiler from reporting
8751 their misuse as macros.
8752 * ch-lex.l (setup_seizefile_read): Refer to list of paths
8753 for seizefiles specified by -L options on command line.
8754 (register_seize_path): Add a new path to the seize file list.
8755 * toplev.c (strip_off_ending): Recognize chill suffix.
8756 (main): Recognize -L option, specifying a seize file path.
8757
8758Tue Jul 20 12:41:52 1993 Bill Cox (bill@rtl.cygnus.com)
8759
8760 * ch-lex.l (convert_float): Make it really portable,
8761 using the appropriate macros.
8762
8763Tue Jul 20 11:26:02 1993 Bill Cox (bill@rtl.cygnus.com)
8764
8765 * ch-lex.l (convert_float): More casts for vxworks
8766 portability.
8767
8768Tue Jul 20 11:01:30 1993 Bill Cox (bill@rtl.cygnus.com)
8769
8770 * ch-lex.l (convert_float): Give variable `d' correct
8771 type so build_real call is correct. Should remove
8772 vxworks portability problem.
8773 (convert_float): Re-indent to standards.
8774
8775Mon Jul 19 17:32:10 1993 Bill Cox (bill@rtl.cygnus.com)
8776
8777 * ch-actions.c (build_char_array_expr): Add field decls to
8778 constructor. Now, it generates the library call.
8779 * ch-expr.c (chill_expand_array_assignment): Make sure that all
8780 error messages say 'mode' not 'type'.
8781
8782Mon Jul 19 14:44:46 1993 Bill Cox (bill@rtl.cygnus.com)
8783
8784 * ch-actions.c, ch-convert.c, ch-decl.c, ch-grant.c, ch-lang.c,
8785 ch-loop.c, ch-parse.y, ch-tasking.c, ch-tree.c, ch-typeck.c:
8786 Make sure that all error messages say 'mode' not 'type'.
8787 * ch-decl.c (push_modedef): Add novelty computation,
8788 storage in each newmode.
8789 * ch-parse.y: Delete novelty counter - moved to ch-decl.c.
8790 Reformat slightly for readability. Fix comments.
8791 * ch-tree.h: Delete print_lang_type prototype.
8792
8793Mon Jul 19 06:43:51 1993 Bill Cox (bill@rtl.cygnus.com)
8794
8795 * ch-actions.c (chill_expand_return): Disable
8796 error message which requires 2-pass analysis, for
8797 now.
8798 * ch-convert.c (convert): Build length-only constructor
8799 for empty string (PR 2930).
8800
8801Fri Jul 16 16:08:33 1993 Bill Cox (bill@rtl.cygnus.com)
8802
8803 * ch-expr.c (chill_expand_array_assignment): Check
8804 non-varying string assignments for conformance to
8805 the "string assignment condition" (PR 2920).
8806
8807Thu Jul 15 13:25:33 1993 Bill Cox (bill@rtl.cygnus.com)
8808
8809 * ch-actions.c (build_chill_array_expr): Check parameters.
8810 Call convert to build unitary array from scalar if
8811 needed. Rewrite CONCAT_EXPR handling.
8812 * ch-convert.c (build_array_type_for_scalar): New functions.
8813 (convert): Call new function, to convert scalar to unitary
8814 array. Only call chill_expand_tuple if expression hass
8815 NULL_TREE type.
8816 * ch-expr.c (chill_expand_expr): Allow a larger static
8817 varying array to be assigned to a smaller, with a runtime
8818 test (to be provided).
8819 * ch-parse.y (locdec): Comment out bogus error msg.
8820 (elementlist): Replace several lines with chainon call.
8821 * ch-tree.h (SCALAR_P): New macro. New prototype for
8822 build_array_type_for_scalar.
8823 * ch-typeck.c (build_chill_cast): Re-indent.
8824 (chill_expand_tuple): Comment out strange addition of
8825 varying string's length to front of constructor list.
8826
8827Thu Jul 15 05:58:46 1993 Bill Cox (bill@rtl.cygnus.com)
8828
8829 * ch-except.c (start_handler_array): Use unique identifier for
8830 exception array, so we can have > 1 array per reach
8831 (PR 2931). The change was originally entered June 23, and
8832 subsequently lost.
8833
8834Mon Jul 12 16:07:53 1993 Bill Cox (bill@rtl.cygnus.com)
8835
8836 Get executable test cases running again...
8837 * c-typeck.c (build_function_call): Bypass default
8838 parameter promotions, format param syntax check for
8839 CHILL; they've already been converted in
8840 build_chill_function_call.
8841 * ch-actions.c (chill_expand-return): Correct tests
8842 for function which returns no value.
8843 * ch-convert.c (base_type_size_in_bytes): Check for
8844 NULL type parameter, just return.
8845 (convert): Allow conversion of CHAR to varying array
8846 of CHAR.
8847 Change error msg to "conversion" from "assignment".
8848 Remove default from case, which short-circuited before
8849 REFERENCE_TYPEs got converted. Deleted second copy
8850 of REFERENCE_TYPE code.
8851 * ch-lang.c (build_chill_range_type): Simply exit if
8852 NULL input parameter.
8853 * ch-loop.c: Fix comment.
8854
8855Sun Jul 11 11:27:08 1993 Bill Cox (bill@cygnus.com)
8856
8857 * ch-actions.c (chill_expand_result, chill_expand_return):
8858 Move here from ch-typeck.c. Add a temporary to remember the
8859 result value in. Change return handler to fetch that
8860 temporary value, if there is one.
8861 * ch-parse.y (pdef): Call chill_expand_return to fetch
8862 the temp's value.
8863 * ch-tree.h, ch-typeck.c: Move return, result functions to
8864 ch-actions.c. And their prototypes.
8865
8866Fri Jul 9 15:47:51 1993 Bill Cox (bill@rtl.cygnus.com)
8867
8868 * ch-actions.c, ch-convert.c, ch-decl.c, ch-except.c,
8869 ch-expr.c, ch-grant.c, ch-inout.c, ch-lang.c,
8870 ch-lex.l, ch-loop.c, ch-parse.y, ch-tasking.c,
8871 ch-tree.c, ch-tree.h, ch-typeck.c: gcc -Wall cleanup.
8872
8873Fri Jul 9 09:41:05 1993 Bill Cox (bill@rtl.cygnus.com)
8874
8875 * ch-grant.c (decode_decl): Grant BUFFER, INSTANCE variables.
8876 (print_integer): Delete old non-working INSTANCE code.
8877 * ch-lex.l (name_type_signal): Recognize BUFFER name, too.
8878 * ch-parse.y (rccase_label): Move all actions inside if.
8879 Use BUFFERNAME to recognize receice case buffer clause,
8880 eliminate one shift-reduce conflict.
8881 * ch-tasking.c (build_buffer_descriptor): Check for
8882 CH_DECL_BUFFER flag, remove unused code.
8883
8884Thu Jul 8 11:17:32 1993 Bill Cox (bill@rtl.cygnus.com)
8885
8886 Declaring and sending buffers.. first draft
8887 * ch-actions.c (lang_init): Define the send_buffer runtime
8888 function.
8889 * ch-decl.c (do_decls): Standardize loop, so stepping
8890 isn't hidden.
8891 * ch-lex.l: Clean up prototypes for readability.
8892 * ch-parse.y (sendaction): Add send buffer action.
8893 (locdec): Add rule for buffer declaration.
8894 * ch-tasking.c (generate_tasking_code): standardize indentation.
8895 (make_signal_struct): Readability changes.
8896 (build_chill_send_buffer, build_buffer_decl,
8897 build_buffer_descriptor): New functions.
8898 * ch-tree.h (IDENTIFIER_BUFFER_SIZE): Add place to save
8899 buffer's maximum queue length in buffer decl.
8900 (CH_DECL_BUFFER): Add flag in decl. Clean up for
8901 readability. Add prototypes.
8902 * ch-typeck.c (build_chill_cast): Call convert rather
8903 than storing directly into TREE_TYPE field.
8904
8905Tue Jul 6 12:34:32 1993 Bill Cox (bill@rtl.cygnus.com)
8906
8907 * ch-actions.c (lang_init): Set warn_switch so case labels
8908 get checked. Move build_chill_case_expr to ch-expr.c.
8909 * ch-expr.c (chill_expand_case_expr): Enable checking
8910 of expression case labels.
8911 * ch-grant.c: Move a comment.
8912
8913Mon Jul 5 10:02:27 1993 Wilfried Moser (fs_moser at rcsw1j)
8914
8915 * ch-lex.l: Add compiler directive SUPPORT_CAUSING_ADDRESS.
8916 * ch-except.c (initialize_exceptions): Change the layout of the
8917 structure __ch_handler. The entry __jbuf is moved to the end
8918 of the structure and its size was changed to _JBLEN+10.
8919 * ch-decl.c (push_chill_extern_process): Add processing of
8920 processes with no arguments.
8921 * ch-grant.c (decode_decl, do_seize): Add processing of
8922 processes with no arguments.
8923 * ch-tasking.c (build_process_header, build_chill_start_process):
8924 Add processing of processes with no arguments.
8925 (make_process_struct): Add processing of IN attribute for
8926 process arguments.
8927 (tasking_setup): Add NUL-character to name of a tasking
8928 element. The name must be NUL terminated.
8929 (build_chill_send_signal): Default SEND_SIGNAL_PRIORITY
8930 to 0 with a warning if -Wall specified on command-line.
8931
8932Fri Jul 2 16:01:57 1993 Bill Cox (bill@rtl.cygnus.com)
8933
8934 * ch-parse.y: Change 'empty' comments to new non-terminal
8935 so that exyacc doesn't discard them.
8936 * ch-lang.c (build_chill_range_type): New error messages.
8937
8938Fri Jul 2 12:43:25 1993 Bill Cox (bill@rtl.cygnus.com)
8939
8940 * ch-parse.y (action): Catch and report actions which
8941 shouldn't have exception clauses, but do. Unfortunately,
8942 catching more than one of these per compilation will
8943 have to await the general addition of syntax error
8944 recovery to the parser.
8945
8946Fri Jul 2 10:45:35 1993 Bill Cox (bill@rtl.cygnus.com)
8947
8948 * ch-parse.y (locdec): Issue error for initialization
8949 of bitstring with tuple, not for powerset init with
8950 tuple.
8951
8952Thu Jul 1 15:29:26 1993 Bill Cox (bill@rtl.cygnus.com)
8953
8954 * ch-lang.c (build_chill_array_type): Check for indices
8955 that didn't fold into constants, issue error (PR 2924b).
8956 * ch-parse.y: Add novelty counter, alphabeticalize.
8957 * ch-tree.h: Define CH_NOVELTY for novelty checks later.
8958
8959Thu Jul 1 14:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
8960
8961 For Wilfried Moser.
8962 * chill.in: Add -ansi switch at compiler call to avoid
8963 translation of i.e. sun to 1 by cpp.
8964
8965Wed Jun 30 22:21:33 1993 Bill Cox (bill@rtl.cygnus.com)
8966
8967 * ch-grant.c (raw_decode_mode): Add code for
8968 integer and enumeral ranges. Standardize indentation.
8969
8970Wed Jun 30 14:02:23 1993 Bill Cox (bill@rtl.cygnus.com)
8971
8972 * ch-grant.c (print_an_int): New function to print a
8973 decimal integer string or the CONST_DECL (SYN) which
8974 best matches it.
8975 (print_integer): Call the above function. Replace
8976 calls to SAME_TYPE macro with TYPE_MAIN_VARIANT
8977 comparisons, as suggested by Jim Wilson.
8978 (decode_decl): Set current_grant_modename sooner,
8979 be sure to clear it when done.
8980
8981Wed Jun 30 10:10:57 1993 Bill Cox (bill@rtl.cygnus.com)
8982
8983 * ch-actions.c (build_max_min): Change interface to accept
8984 just a max/min flag. Get min/max values from an
8985 enumeral constructor.
8986 (build_chill_max, build_chill_min): Change calls to
8987 build_max_min.
8988 * ch-lang.c (deep_const_expr): Check for NULL_TREE
8989 arguments, don't seg fault.
8990
8991Wed Jun 30 09:20:09 1993 Bill Cox (bill@rtl.cygnus.com)
8992
8993 * config/sparc/sparc.c (sparc_type_code): Add SET_TYPE
8994 to switch cases, preventing abort.
8995
8996Tue Jun 29 19:04:37 1993 Bill Cox (bill@rtl.cygnus.com)
8997
8998 * ch-expr.c: Update comment.
8999 * ch-parse.y (range_or_mode): New non-terminal used in
9000 lexpr to implement mode as case label.
9001
9002Tue Jun 29 13:13:46 1993 Bill Cox (bill@rtl.cygnus.com)
9003
9004 * ch-actions.c (build_chill_case_expr): Pass in the
9005 optional ELSE clause, error for multiple case-selector
9006 expressions, error for missing ELSE clause.
9007 * ch-expr.c (chill_expand_assignment): Error if multiple
9008 location assignment and locations not novelty
9009 equivalent.
9010 * ch-parse.y (caseaction): Add range_list_clause non-
9011 terminal, sorry message for it.
9012 (assignaction): error if operator used on multiple
9013 assignment.
9014 (case_expr): Pass optional ELSE tree to
9015 build_chill_case_expr for checking.
9016 * ch-tree.h (build_chill_case_expr): Change proto.
9017
9018Fri Jun 25 17:22:41 1993 Bill Cox (bill@rtl.cygnus.com)
9019
9020 * ch-actions.c (chill_comptypes, build_chill_binary_op):
9021 Allow PROC mode variables.
9022 * ch-convert.c (convert): Turn a NULL literal into a zero
9023 valued pointer-to-function, given such a type. Also
9024 build the ADDR_EXPR of a function variable.
9025 * ch-grant.c: Pervasive -Wall -pedantic cleanup.
9026 (print_enumeral, print_integer, print_struct) Moved these
9027 large functions out of the switch in raw_decode_mode for
9028 readability, and to encourage future code-sharing.
9029 (print_proc_tail, print_proc_exceptions): Moved these out
9030 of decode_decl, to share them. They're used also to
9031 output PROC modes.
9032 * ch-parse.y (mode2): Enable PROC modes.
9033 (procmode): Represent PROC mode as a ptr-to-function type.
9034 (call): Recognize ptr-to-function as indirect call.
9035 Cleanup 'primval LPRN untyped_exprlist RPRN' action code.
9036
9037Thu Jun 24 15:59:20 1993 Bill Cox (bill@rtl.cygnus.com)
9038
9039 * ch-grant.c: (raw_decode_mode): Add support for unnamed
9040 and user-numbered enumeration members.
9041
9042Thu Jun 24 13:52:10 1993 Bill Cox (bill@rtl.cygnus.com)
9043
9044 * ch-actions.c (build_chill_array_expr, build_chill_length):
9045 Explicitly convert a varying array's length field to an
9046 integer_type_node, now that it's only a chill_integer_
9047 type_node.
9048 * ch-expr.c (chill_expand_expr,
9049 expand_assignment_to_varying_array,
9050 chill_expand_array_assignment,
9051 expand_varying_length_assignment): Explicitly
9052 convert a varying array's length field to an integer_type_node,
9053 now that it's only a chill_integer_type_node.
9054 * ch-loop.c (init_loop_counter, top_of_loop_test): Change
9055 to handle varying array location iterations.
9056 * ch-parse.y (mode2): Count number of named SET members,
9057 as opposed to '*' members. Issue error if there were none.
9058 (setelement): Count named set members. Generate a unique
9059 identifier for the '*' element.
9060 * ch-typeck.c (validate_varying_array_ref): Explicitly
9061 convert a varying array's length field to an integer_type_node,
9062 now that it's only a chill_integer_type_node.
9063
9064Wed Jun 23 19:18:28 1993 Bill Cox (bill@rtl.cygnus.com)
9065
9066 * ch-lang.c (finish_chill_enum): Change test for too-
9067 large enumerations.
9068 * ch-parse.y (setelement, optsetvalue): Allow numbered,
9069 unnamed set elements.
9070
9071Wed Jun 23 16:25:06 1993 Bill Cox (bill@rtl.cygnus.com)
9072
9073 * c-typeck.c (process_init_constructor): Suppress
9074 errors about un-initialized array elements if the
9075 array is VARYING, as signaled by C_TYPE_VARIABLE_SIZE.
9076 * ch-actions.c (lang_init): Set flag_short_enums, so that CHILL
9077 enumerations *can* be only a byte in size.
9078 (adjust_parm_or_field): Convert untyped parameter before
9079 looking at its type to process it.
9080 * ch-convert.c (convert): Generate [ -1, -1 ] value for
9081 an INSTANCE type.
9082 * ch-decl.c (do_decls): Assure that a CONSTRUCTOR has a
9083 type, so that output_constant doesn't seg fault.
9084 * ch-except.c (start_handler_array): Use unique identifier for
9085 exception array, so we can have > 1 array per reach.
9086 * ch-lang.c (finish_chill_enum): Error if number of
9087 enumeration values exceeds 256.
9088 * ch-parse.y (check_end_label): Error, not warning if start
9089 and end labels don't match.
9090 (assignaction): Convert RHS. Allows untyped tuples to be
9091 passed to stabilize_reference.
9092 (exceptlist, onexceptprefix): Error if non-unique exception
9093 name is coded.
9094 * ch-tree.c: Added form feeds, comment reformatted.
9095 * ch-typeck.c (chill_expand_tuple): Compare tree value to
9096 NULL_TREE, not zero. Add a constructor element for a
9097 VARYING array's length to the constructor list.
9098 (build_varying_struct): Mark the type as VARYING for
9099 process_init_constructor.
9100 * toplev.c (lang_options): Add '-lang-chill' and
9101 '-fchill-grant-only' options to table.
9102
9103Tue Jun 22 13:13:41 1993 Bill Cox (bill@rtl.cygnus.com)
9104
9105 * ch-actions.c (build_chill_function_call): Add check
9106 to prevent calling a PROCESS like a PROCEDURE.
9107 * ch-parse.y (rcalternative): Add check for an
9108 receive case alternative after a RECEIVE CASE
9109 statement.
9110 * ch-tree.h: Fix macro ENCAPSULATED_ARRAY_P.
9111 * ch-lang.c (lang_finish): Remove resetting errorcount
9112 and sorrycount for granting.
9113
9114Mon Jun 21 17:56:48 1993 Bill Cox (bill@rtl.cygnus.com)
9115
9116 Receiving signals works.
9117 * ch-actions.c (lang_init): Add else_clause flag to
9118 __wait_signal parameter list.
9119 * ch-lex.l: Add SIGNALNAME token, return when appropriate.
9120 * ch-parse.y (SIGNALNAME): New token. Delete
9121 empty_untyped_exprlist token, no longer used. Add
9122 name_or_signal non-terminal. Standardize a few NULL
9123 tests. Add real RECEIVE CASE semantics. Add checks that
9124 SIGNALS, BUFFERs are only declared at global scope.
9125 (call): Add signal declarations with/without data fields.
9126 * ch-tasking.c (get_tasking_code_name, get_tasking_code,
9127 build_chill_receive_case_start, build_chill_receive_case_end,
9128 build_chill_receive_case_label): New functions.
9129 Replace build (CONSTRUCTOR, ... calls with build_nt
9130 (CONSTRUCTOR, calls.
9131 * ch-tree.h: New prototypes.
9132
9133Thu Jun 17 18:36:38 1993 Bill Cox (bill@rtl.cygnus.com)
9134
9135 SIGNAL declaration compilation, seizing & granting,
9136 SENDing also.
9137 * ch-actions.c (lang_init): Move instance_type_node
9138 build to ch-tasking.c. Call build_tasking_message_type.
9139 Build a type for send_signal. Put builtin_function
9140 calls into alpha order.
9141 (adjust_proc_param): Rename to adjust_parm_or_field,
9142 add is_signal flag, so signal fields can use it. Rename
9143 calls to it, add flag to calls.
9144 * ch-decl.c (push_chill_extern_signal): Add function.
9145 * ch-grant.c (decode_decl): Correct signal decl output.
9146 (do_seize): Correct check for process seizure. Add
9147 code for seized signal decl.
9148 * ch-lex.l (yylex): Treat POS, ROW, STEP as reserved.
9149 * ch-loop.c (get_unique_identifier): Standardize loop
9150 temporary's name to assure that it's not granted.
9151 * ch-parse.y (SIG_NAME): Delete unused token.
9152 (spec_declist): Delete silly printf.
9153 (quasi_signaldef): Add non-terminal.
9154 (sendaction, optsendwith, optsendto, optpriority):
9155 Implement actual working semantics.
9156 (call, empty_untyped_exprlist): Allow empty signal
9157 fields between parens.
9158 * ch-tasking.c: Rename adjust_proc_param calls, add
9159 is_signal flag to calls. Make instance_type_node a
9160 type, not a TYPE_DECL, change references. Fix all
9161 CONSTRUCTOR builds. Add make_signal_struct function.
9162 Move build_instance_type here from lang_init.
9163 (build_tasking_message-type, build_signal_descriptor,
9164 build_chill_send_signal): New functions.
9165 * ch-tree.h: Add, update protos.
9166 * ch-typeck.c (build_chill_cast): Check for NULL expression
9167 type as well as error_mark.
9168
9169Thu Jun 17 12:28:03 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9170
9171 * Makefile.in (STAGESTUFF): Add chill to list.
9172
9173Wed Jun 16 07:12:53 1993 Bill Cox (bill@rtl.cygnus.com)
9174
9175 * Makefile.in: Complete the renaming of ch-process.c
9176 to ch-tasking.c.
9177 * ch-decl.c (push_chill_extern_function): Drop is_process
9178 parameter, and marking process decl trees.
9179 (push_chill_extern_process): New function for
9180 SEIZEd processes. Lotsa form feeds added for print
9181 readability.
9182 * ch-grant.c (decode_decl): Handle GRANTing of SIGNAls.
9183 (do_seize): New parameter seize_all. Handle sseizing
9184 processes.
9185 (chill_seize): Pass seize_all parameter.
9186 (chill_grant): Check for __tmp_ prefix, to disable
9187 *either* seizing or granting.
9188 * ch-parse.y (quasi_pdef): Delete is_process parameter for
9189 push_chill_extern_functon, call push_chill_extern_process
9190 for processes.
9191 (specialinit): Comment these rules as needed only until
9192 2-pass compiler is operational.
9193 (extprocedure): Delete is_process parameter.
9194 (simpledec): Delete `sorry' about SIGNAL decls.
9195 (optsigdest): Correct check for process name.
9196 * ch-tasking.c (build_signal_decl): Finish coding.
9197 * ch-tree.h: Add macro to save a SIGNAL's destination
9198 process name in an id node. Add/change prototype.
9199
9200Mon Jun 14 18:17:13 1993 Bill Cox (bill@rtl.cygnus.com)
9201
9202 * ch-actions.c (lang_init): Build instance_type_node.
9203 Change `this' to a runtime function call.
9204 * ch-grant.c (do_seize): Generate tasking-code
9205 variable for seized process.
9206 * ch-lex.l (equal_number): Also accept synonym
9207 name for numeric value.
9208 * ch-parse.y (primval): Add process-related
9209 function calls.
9210 (signaldef, etc.): Rough draft of SIGNAL definition
9211 processing.
9212 (stopaction): Call runtime function.
9213 (pdef): Pop symbol level if ending a process
9214 and there were parameters.
9215 (primval): Call `whoami' runtime function for THIS.
9216 * ch-tasking.c (build_process_header): Be sure
9217 to define the tasking enum, if it hasn't already
9218 been done. Only call shadow_record_fields if there
9219 are parameters.
9220 (build_tasking_enum): Only call start_enum *after*
9221 checking the already_built flag.
9222 (build_copy_number, get_tasking_code,
9223 build_gen_code, build_gen_inst, build_get_ptype,
9224 build_proc_type): New functions for process-related
9225 builtins.
9226 (build_signal_decl): New function for SIGNAL
9227 declaration - rough draft.
9228 * ch-tree.def (INSTANCE_TYPE): new tree code.
9229 * ch-tree.h: New prototypes. Defines for instance
9230 type field access.
9231
9232Sat Jun 12 21:15:02 1993 Bill Cox (bill@rtl.cygnus.com)
9233
9234 Get start-process action working:
9235 * ch-actions.c (adjust_proc_param): new function,
9236 extracted from build_chill_function_call and called
9237 from there.
9238 * ch-tree.h, ch-grant.c (do_seize): Add process_type
9239 parameter to add_taskstuff_to_list call, prototype.
9240 * ch-parse.y (start_parlist): New non-terminal for
9241 START action.
9242 (startaction): Reference start_parlist, check for
9243 integer-valued process copy-number.
9244 (optstartset): Check instance parameter - must be
9245 an INSTANCE_TYPE location.
9246 * ch-tasking.c (generate_tasking_code_variable): New
9247 function, extracted from tasking_setup and called
9248 from there. Also called from build_process_header.
9249 (build_process_header): Add process_type parameter
9250 to add_taskstuff_to_list call. Remove incrementing
9251 of process_type (moved into generate_tasking_code
9252 _variable).
9253 (build_chill_start_process): Complete rewrite.
9254 (add_tasking_stuff_to_list): Add stuffnumber parameter
9255 putit on the list.
9256
9257Sat Jun 12 06:08:09 1993 Bill Cox (bill@rtl.cygnus.com)
9258
9259 Getting processes compiled, initialized and granted:
9260 * .cvsignore: Add chill file.
9261 * c-decl.c (shadow_record_fields): Allow PARM_DECL
9262 as well as VAR_DECL.
9263 * ch-actions.c (lang_init): Move build of
9264 initializer_type into ch-tasking.c. Change
9265 definition of THIS to function call.
9266 * ch-decl.c (massage_param_node): Add comments.
9267 (start_chill_function): Set nested flag in
9268 start_function call based upon current_function_decl,
9269 not as constant zero.
9270 * ch-grant.c (decode_decl): lotsa code by Wilfried to
9271 GRANT process decls.
9272 (finish_chill_module): Completely rewrote interface
9273 to runtime.
9274 * ch-lex.l (THIS): Just return the token code.
9275 * ch-parse: Add THIS token.
9276 (processpar, processparlist): New rules, to collect
9277 process parameters.
9278 (pdef): Add code to pop the process' WITH scope.
9279 (procedure): Set process WITH scope flag to zero.
9280 (process): Move most code into build_process_header.
9281 (primval): Output function call for THIS.
9282 * ch-tasking.c (add_taskstuff_to_list, build_tasking_enum,
9283 make_process_struct, build_process_header): New code
9284 to handle process translation and interface to runtime.
9285 * ch-tree.h: New prototypes.
9286
9287Thu Jun 10 13:32:51 1993 Bill Cox (bill@rtl.cygnus.com)
9288
9289 * Makefile.in: Change ch-process.c to ch-tasking.c.
9290 A delayed part of the last change..
9291
9292Thu Jun 10 11:14:59 1993 Bill Cox (bill@rtl.cygnus.com)
9293
9294 * .cvsignore: Add 'chill' file.
9295 * ch-actions.c (lang_init): Add new runtime function
9296 __register_process.
9297 * ch-decl.c (push_chill_extern_function): Add is_process
9298 input flag, use it.
9299 * ch-grant.c (decode_decl): Recognize a process for
9300 granting.
9301 (do_seize): Put seized processes onto the tasking_list.
9302 (chill_finish_module_code): Declare init_list entry,
9303 link it onto the init_list. Call tasking_setup and
9304 tasking_registry.
9305 * ch-lex.l: Make tasking-related variables global,
9306 delete their initialized flags.
9307 * ch-parse.y: Add is_process flag to push_chill_extern_function
9308 calls. Put processes onto the tasking_list.
9309 * ch-process.c: Renamed to ch-tasking.c.
9310 * ch-tasking.h: New file.
9311 * ch-tree.h: New, adjusted prototypes.
9312
9313Wed Jun 9 10:59:27 1993 Wilfried Moser (moser@deneb.cygnus.com)
9314
9315 * chill: This file is replaced by chill.in and will be
9316 generated during 'make' and 'make install'. This script
9317 now finds the correct chillrt0.o and libchill.a during
9318 linking.
9319 * chill.in: New file that replaced chill.
9320 * Makefile.in: Add rules to make chill out of chill.in.
9321
9322Wed Jun 9 09:03:55 1993 Bill Cox (bill@rtl.cygnus.com)
9323
9324 * .cvsignore: Add gfloat.h and xlimits.h.
9325 * ch-actions.c (lang_init): Create new type for module-
9326 level initializer list entry.
9327 * ch-grant.c (chill_start_module_code): Rename actual
9328 module-level code to just the modulename, which is
9329 *not* public.
9330 (chill_finish_module_code): Allocate space for initializer
9331 list entry, build real initializer function, which puts
9332 the list entry on the runtime list. Name the init function
9333 as the module's constructor function.
9334 * ch-tree.h (build_init_struct): Add prototype.
9335 * ch-typeck.c (build_init_struct): Add function, called
9336 from lang_init.
9337 Note: these changes require a new devo/chillrt/chillrt0.c.
9338
9339Thu Jun 3 17:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9340
9341 * c-decl.c: Fix comment.
9342 * ch-actions.c, ch-grant.c: Standardize front end:
9343 #define first, etc. Add comments.
9344 (lang_init): Delete unused flag, code for inapplicable
9345 gen-decls option. (lang_decode_option): Delete
9346 gen-decls option, add grant-only option, flag.
9347 * ch-convert.c, ch-decl.c, ch-except.c, ch-tree.c,
9348 ch-typeck.c: Add form feed after front end.
9349 * ch-expr.c: Standardize testing for error_mark node.
9350 * ch-lang.c: Remove unused deep_fold function.
9351
9352Fri May 21 11:04:22 1993 Bill Cox (bill@rtl.cygnus.com)
9353
9354 * c-typeck.c (build_binary_op, build_unary_op):
9355 Recognize BOOLEAN_TYPE.
9356 * ch-actions.c (build_chill_unary_op): Remove
9357 some crufty work-arounds.
9358
9359Thu May 20 19:03:48 1993 Per Bothner (bothner@deneb.cygnus.com)
9360
9361 * ch-grant.c (decode_constant): If the granted value is a
9362 cast, make sure to emit an appropriate expression conversion.
9363
9364Thu May 20 16:35:35 1993 Bill Cox (bill@rtl.cygnus.com)
9365
9366 * ch-lang.c (build_chill_range_type): Initialize the
9367 precision variable. Double-negative ranges work now.
9368
9369Thu May 20 11:24:42 1993 Bill Cox (bill@rtl.cygnus.com)
9370
9371 * ch-actions.c (build_unary_op): Compound a wretched
9372 hack which hides a BOOLEAN_TYPE from the underlying
9373 C code.
9374
9375Wed May 19 16:45:54 1993 Bill Cox (bill@rtl.cygnus.com)
9376
9377 * ch-actions.c: (CH_SINGLETON_SET): Add function, call it
9378 from chill_comptypes. (build_chill_unary_op): Give
9379 better name to unsigned flag.
9380 * ch-expr.c (chill_expand_assignment): Correct calling
9381 sequence for setpowersetbits runtime routine.
9382 * ch-grant.c (raw_decode_mode): Give better name to
9383 unsigned flag. (decode_constant): Check for null
9384 'val' ptr, avoid seg fault.
9385 * ch-lex.l (convert_number): Give better name to
9386 unsigned flag. (convert_bitstring): Move increment
9387 of bl counter to emphasize that it increments once
9388 per loop.
9389 * ch-tree.h: (NO_SOURCE_UNARY_MINUS): Define new flag.
9390 * ch-typeck.c (chill_expand_tuple): Build BOOLEAN
9391 constructor if given a singleton set constructor.
9392
9393Thu May 13 17:03:04 1993 Bill Cox (bill@rtl.cygnus.com)
9394
9395 * c-decl.c (pushdecl): Complete May 9 change.
9396 * ch-actions.c (build_chill_unary_op): Set the
9397 TREE_UNSIGNED flag FALSE for raw_decode_mode.
9398 * ch-grant.c (grant_array_type): Correct the May 12
9399 check for circularity.
9400 (raw_decode_mode): Use TREE_UNSIGNED flag to
9401 control range's printing.
9402 (chill_grant): Remove useless, bogus code.
9403 * ch-lex.l (convert_number): Set the TREE_UNSIGNED
9404 flag TRUE for raw_decode_mode.
9405
9406Wed May 12 18:04:01 1993 Bill Cox (bill@rtl.cygnus.com)
9407
9408 * ch-decl.c (push_syndecls, push_modedef): Comment
9409 reminders to check for circular definitions. Later!
9410 * ch-grant.c (grant_array_type, decode_decl): Prevent
9411 circular definitions in the use of the array's
9412 type name.
9413
9414Wed May 12 16:06:13 1993 Bill Cox (bill@rtl.cygnus.com)
9415
9416 * ch-grant.c (grant_array_type): If array_type has
9417 a name, just use it.
9418 * ch-lang.c (build_chill_range_type): Don't force
9419 unsigned ranges on output.
9420 * expr.c (store_constructor): Preclude seg fault.
9421
9422Wed May 12 07:49:00 1993 Bill Cox (bill@rtl.cygnus.com)
9423
9424 * ch-actions.c (fold_set_*): Correct tests for
9425 range set-constructor list entries.
9426 (lang_init): Define setpowersetbits function.
9427 * expr.c (store_constructor): Handle non-constant
9428 set constructors.
9429
9430Tue May 11 18:25:40 1993 Per Bothner (bothner@cygnus.com)
9431
9432 * ch-lang.c (build_chill_range_type): If the parent type
9433 is unknown, and the endpoints of the range are integer
9434 constants, use the smallest suitable integer type.
9435 * ch-lang.c (build_chill_range_type): Remove kludge
9436 for dealing with char ranges.
9437
9438Tue May 11 15:24:31 1993 Bill Cox (bill@rtl.cygnus.com)
9439
9440 * ch-actions.c (build_chill_repetition_op): Build a
9441 range-type set constructor if there's only one value
9442 in the repeated constructor.
9443 (fold_set_*): Abort if range value seen, for now.
9444 * expr.c (store_constructor): Handle range-type by
9445 storing bytes rather than bits as much as possible.
9446
9447Mon May 10 18:45:18 1993 Bill Cox (bill@rtl.cygnus.com)
9448
9449 * ch-actions.c (invalid{left right}_operand): Add
9450 handlers for REPLICATE_EXPR.
9451 (build_chill_repetition_op): Build constructor list
9452 for repetition of bitstring.
9453 * ch-parse.y (call): Recognize more trees as arrays,
9454 to avoid error msg.
9455 (operand5): Add count, string temporaries, use them.
9456
9457Mon May 10 16:49:08 1993 Per Bothner (bothner@cygnus.com)
9458
9459 * ch-grant.c (seize_implied_names): Fix code that assumed
9460 a FUNCTION_DECL (or PROCESS_DECL) to work on types instead.
9461 * ch-grant.c (generate_set, grant_parent_of_enum,
9462 grant_parent_enum): Removed unused functions.
9463 * ch-grant.c (raw_decode_mode): Remove commented-out code.
9464
9465Mon May 10 10:54:57 1993 Bill Cox (bill@rtl.cygnus.com)
9466
9467 * ch-grant.c (do_seize, seize_implied_types): Move
9468 result and parameter processing to proper place.
9469 (chill_seize): Mark unseized identifier with
9470 error_mark_node, to avoid excessive errors.
9471 * ch-parse.y (call): Check for ERROR_MARK before
9472 reporting an error.
9473
9474Sun May 9 17:21:24 1993 Bill Cox (bill@rtl.cygnus.com)
9475
9476 * c-decl.c (pushdecl): If a strongly-visible name is
9477 seen, in conflict with a weakly-visible name, take
9478 the strongly-visible one and don't complain.
9479 * ch-actions.c (chill_comptypes): Allow chain of ref-
9480 erence types > 1 in length.
9481 * ch-grant.c: Turn disguised for-loops into actual
9482 ones, so continue works. Delete redundant code in
9483 seize_implied_names. Reindent.
9484 * expmed.c (store_split_bit_field): Disable abort for
9485 CHILL.
9486
9487Sun May 9 17:11:33 1993 Per Bothner (bothner@cygnus.com)
9488
9489 * ch-convert.c (convert): Move handling of SET_TYPE until
9490 after we've handled de-referencing and such like.
9491 * ch-grant.c (grant_array_type): Simplify; remove (now-)
9492 bogus call to generate_set.
9493 * ch-grant.c (get_type): Remove obsolete stuff.
9494
9495Fri May 7 10:30:34 1993 Bill Cox (bill@rtl.cygnus.com)
9496
9497 * ch-actions.c (lang_init): Add definition of psslice
9498 runtime routine. (build_chill_binary_op_1,
9499 build_chill_binary_op): Have result type of
9500 TRUTH_ANDIF_EXPR be boolean, not integer. Some
9501 reindenting.
9502 * ch-convert.c (convert): Use consistent notation
9503 for expression.
9504 * ch-parse.y: Add front-end pass count. (locdec):
9505 Add syntax for other BASED declaration.
9506 * ch-tree.c: Fix comment.
9507 * ch-typeck.c (build_chill_slice): Implement a runtime
9508 call for bitstring slices. (build_chill_cast):
9509 Add code for BITS_BIG_ENDIAN bit loop.
9510 (chill_expand_tuple): Don't pass ref type to
9511 digest_init, only underlying type.
9512
9513Thu May 6 12:52:14 1993 Per Bothner (bothner@cygnus.com)
9514
9515 * ch-typeck.c (build_chill_cast): type_for_size takes
9516 a size in bits, not bytes.
9517
9518Wed May 5 19:02:55 1993 Bill Cox (bill@rtl.cygnus.com)
9519
9520 * ch-actions.c: Break out separate routines for set
9521 folding, handle ranges in set_fold_eq and set_fold_ne.
9522 Fix folding as req'd by TTC test.
9523 * ch-grant.c (raw_decode_more): Check for content match
9524 to decide output mode, not pointer identity.
9525 * ch-typeck.c: Add cross-reference comment.
9526 * varasm.c (emit_set_data): Clarify parameter name.
9527 Handle INTEGER_CST as set constructor.
9528 (output_constant): Handle CONSTRUCTOR node for sets.
9529 Apparently forgot to actually 'checkin' this one last
9530 time.
9531
9532Wed May 5 12:23:58 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
9533
9534 * ch-parse.y, ch-tree.h (get_current_declspecs): Obsolete; deleted.
9535
9536Tue May 4 15:47:44 1993 Bill Cox (bill@rtl.cygnus.com)
9537
9538 * ch-actions.c (fold_set_expr): new function to fold
9539 set expressions. Calls inserted into
9540 build_chill_binary_op and build_chill_unary_op.
9541 (build_chill_repetition_op): New function, called
9542 from build_chill_function_call.
9543 * ch-expr.c (chill_expand_assignment): Call
9544 build_chill_repetition_op.
9545 * ch-grant.c (decode_constant): Comment out deep_fold
9546 call. The earlier fold_set_expr calls should make
9547 this one unnecessary. Prevent seg fault when name
9548 of structure field is NULL. Standardize for loop.
9549 * ch-parse.y: Fix comments.
9550 (operand5): build a REPLICATE_EXPR. Don't call
9551 build_repetition_op until we have a type.
9552 * ch-tree.def (REPLICATE_EXPR): Define tree-code.
9553 * ch-tree.h (build_chill_repetiton_op): Fix proto.
9554 * ch-typeck.c (chill_expand_result): Call
9555 build_chill_repetition_op if needed.
9556 * varasm.c (emit_set_data): Clarify parameter name.
9557 Handle INTEGER_CST as set constructor.
9558 (output_constant): Handle CONSTRUCTOR node for sets.
9559
9560Mon May 3 13:06:47 1993 Per Bothner (bothner@cygnus.com)
9561
9562 * ch-typeck.c (build_chill_cast): Allow more liberality to
9563 casting: Any discrete type to any non-discrete type that is the
9564 same size as some other discrete type (and vice versa).
9565 * stor-layout.c (layout_type, case SET_TYPE): If the number
9566 of bits will fit in a char or short, only use that many bits.
9567
9568Mon May 3 08:22:45 1993 Bill Cox (bill@rtl.cygnus.com)
9569
9570 * ch-grant.c (decode_constant): Revert interpretation
9571 of SET_TYPE as integer.
9572
9573Mon May 3 07:55:46 1993 Bill Cox (bill@rtl.cygnus.com)
9574
9575 * chparse.y (casealternative): Allow empty action list.
9576
9577Sat May 1 15:07:01 1993 Bill Cox (bill@rtl.cygnus.com)
9578
9579 * expr.c (expand_expr): Add parameter to __inpowerset
9580 runtime call, to match new runtime.
9581
9582Sat May 1 14:55:58 1993 Bill Cox (bill@rtl.cygnus.com)
9583
9584 * ch-actions.c: Cleanup from -Wall. Reindent.
9585 Redefine __inpowerset to take a 'minval' parameter
9586 that matches the new runtime. Added comments.
9587 * ch-expr.c (chill_handle_case_label): Handle
9588 NULL or ERROR trees.
9589 * ch-grant.c (get_type): Survive bogus type params,
9590 return empty string.
9591 * ch-tree.c (build_powerset_type): Diagnose powerset
9592 of non-discrete type.
9593 * ch-typeck.c (discrete_type_p): Reindent.
9594
9595Fri Apr 30 16:08:54 1993 Bill Cox (bill@rtl.cygnus.com)
9596
9597 * ch-grant.c (decode_constant): Interpret SET_TYPE
9598 with integer value, so we output the same stuff as
9599 the user gave us.
9600 * ch-parse.y: Fix indentation.
9601
9602Fri Apr 30 09:34:03 1993 Bill Cox (bill@rtl.cygnus.com)
9603
9604 * ch-actions.c (chill_comptypes): Simplify, correct
9605 integer subrange analysis.
9606 * ch-grant.c (seize_implied_names): Add handling for
9607 PROCESS_DECL, PROCESS_TYPE.
9608 (do_seize): Call seize_implied_names for process,
9609 procedure parameters and return value.
9610 * ch-lang.c (finish_chill_enum): Canonicalize enum
9611 types.
9612 * ch-tree.def (PROCESS_TYPE): Add.
9613 * ch-typeck.c (valid_array_index): Call chill_comptypes
9614 rather than broken macro CH_COMPATIBLE. The logic
9615 in chill_comptypes will get moved to the macro later.
9616
9617Thu Apr 29 13:07:55 1993 Bill Cox (bill@rtl.cygnus.com)
9618
9619 * ch-actions.c (build_chill_lower, build_chill_upper):
9620 Handle enumeration types.
9621 (build_chill_binary_op): Call chill_comptypes
9622 to error check IN arguments. Change error
9623 messages to say 'mode' rather than 'type'. Cast
9624 tree codes when build is called.
9625 * ch-expr.c (chill_expand_array_assignment): Call
9626 chill_comptypes to validate assignment args.
9627 * ch-lex.l: Add newline for readability.
9628
9629Wed Apr 28 15:22:18 1993 Bill Cox (bill@rtl.cygnus.com)
9630
9631 * Makefile.in (ch-hash.h): Add rule to build this
9632 from chill.gperf. Not yet used.
9633 * ch-actions.c (build_chill_binary_op): Allow enum
9634 subranges on RHS of IN operator.
9635 * ch-grant.c (decode_constant): Recognize
9636 error_mark_node as empty powerset initializer,
9637 re-indent a bit.
9638 * ch-lang.c (deep_fold): Return error_mark_node for
9639 NULL input pointer or incoming error_mark_node.
9640 * ch-lex.l: Ignore PACK and UNPACK keywords. Return
9641 POS, ROW, and STEP as user-defined names.
9642 (name_or_type): New function for above.
9643 * ch-parse.y: Move token defs for following, comment
9644 them separately: NOPACK, PACK, POS, ROW, STEP
9645 * varasm.c (output_constant): Check for VAR_DECLs in
9646 records & unions, like arrays. Don't abort.
9647
9648Tue Apr 27 17:42:29 1993 Bill Cox (bill@rtl.cygnus.com)
9649
9650 * ch-actions.c (CH_PROMOTING_INTEGER_TYPE_P):
9651 rewrite for generality.
9652 * ch-decl.c (grok_chill_variantdefs): Use chill
9653 comptypes, so that subrange compatibility is ok.
9654 (start_chill_function): Use lookup_name(), not
9655 IDENTIFIER_GLOBAL_VALUE, for full generality.
9656 * ch-expr.c (chill_expand_assignment): Need to
9657 handle non-NOP modify codes here, since C code
9658 in build_modify_expr won't understand powersets,
9659 etc.
9660
9661Tue Apr 27 09:05:31 1993 Bill Cox (bill@rtl.cygnus.com)
9662
9663 * ch-actions.c (build_max_min): Assign the set's
9664 base type to the function's return type.
9665 (build_chill_function_call): Before complaining
9666 about parameter mismatches, convert certain actual
9667 parameters.
9668 * ch-expr.c (chill_expand_assignment): Before
9669 complaining about LHS/RHS mismatches, convert
9670 certain RHS expressions.
9671 * ch-grant.c (decode_constant): Deep-fold incoming
9672 expression, so we can output it.
9673 * ch-lang.c (deep_const_expr): New function, called
9674 from const_expr, actually traverses the tree
9675 looking at its leaves for 'const'ness.
9676 (deep_fold): New function to fold already-built
9677 trees.
9678 * ch-parse.y (case_expr): Add whitespace.
9679 * ch-tree.h: Add prototype for deep_fold.
9680
9681Tue Apr 27 07:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
9682
9683 * ch-actions.c (chill_comptypes): Allow enumeration
9684 subranges as compatible with the parent enum.
9685 (build_chill_function_call): Before checking type
9686 compatibility, use convert on typeless expressions,
9687 like constructors.
9688 * ch-expr.c (chill_expand_assignment): Before
9689 checking type compatibility, use convert on
9690 typeless expressions, like constructors.
9691 * ch-lex.l: Add comment.
9692
9693Thu Apr 22 17:23:25 1993 Bill Cox (bill@rtl.cygnus.com)
9694
9695 * .cvsignore: Add genopinit, insn-opinit.c
9696 * c-common.c (binary_op_error): Prevent seg fault on
9697 unknown node code.
9698 * ch-typeck.c (build_chill_array_ref): Remove old
9699 lower-bound-of-array-index-nonzero code.
9700 * expr.c (expand-expr, get_inner_reference): Remove
9701 old lower-bound-of-array-index-nonzero code.
9702
9703Thu Apr 22 16:01:09 1993 Bill Cox (bill@rtl.cygnus.com)
9704
9705 * c-decl.c (shadow_record_fields): Add pushlevel for
9706 each PROCESS parameter, too.
9707 * ch-process.c (make_process_struct): First working
9708 version.
9709 * ch-tree.def: Add PROCESS_DECL definition.
9710 * ch-tree.h: Add CH_IS_EVENT_MODE macro, change proto
9711 for make_process_struct.
9712 * expr.c (expand_expr): Add references to
9713 PROCESS_DECL. Add #include of ch-tree.h.
9714 * tree.c (decl_function_context): Add check for a
9715 PROCESS_DECL, and #include for ch-tree.h.
9716
9717Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9718
9719 * expr.c (expand_expr): Add missing prototypes, and
9720 parameters to expand_expr call.
9721
9722Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9723
9724 * c-decl.c (shadow_record_fields): Add ability to
9725 handle pointers to records/unions. For PROCESS
9726 compilation.
9727
9728Thu Apr 22 09:25:08 1993 Bill Cox (bill@rtl.cygnus.com)
9729
9730 * ch-expr.c (chill_expand_expr): Add missing
9731 parameters to expand_expr calls. Some trivial
9732 reformatting for readability.
9733
9734Wed Apr 21 16:17:07 1993 Bill Cox (bill@rtl.cygnus.com)
9735
9736 * ch-lex.l: Make send_*_prio externally visible,
9737 default them to zero, eliminate the init flags.
9738 Same for process_type.
9739
9740Sat Apr 17 10:59:50 1993 Bill Cox (bill@rtl.cygnus.com)
9741
9742 * ch-actions.c (build_chill_binary_op): Build a
9743 BIT_FIELD_REF tree for IN_EXPR operations.
9744 * ch-typeck.c (build_chill_array_ref): Build a
9745 BIT_FIELD_REF tree for access to packed array of
9746 bits.
9747
9748Fri Apr 16 12:33:34 1993 Bill Cox (bill@rtl.cygnus.com)
9749
9750 * ch-parse.y (EXIT action): Improve error checking,
9751 messages.
9752 * ch-typeck.c (chill_expand_tuple): Remove code to
9753 pack sets (moved to varasm.c long ago).
9754 * varasm.c (unpack_set_constructor): Rename size to
9755 bit_size, since 'size' always means bytes.
9756 (pack_set_constructor): Rename size to wd_size,
9757 since 'size' always means bytes.
9758 (output_constant): Set size to zero, so that extra
9759 bytes of padding aren't output after set constants.
9760
9761Fri Apr 16 11:57:50 1993 Bill Cox (bill@rtl.cygnus.com)
9762
9763 * .cvsignore: Add .gdbinit.
9764 * ch-decl.c (start_chill_bindings): Add function name
9765 to binding contour's exit_label for EXIT stmt.
9766 * ch-parse.y (EXIT action): Call lookup_name to avoid
9767 inserting label for function name. Also check
9768 IDENTIFIER_LABEL_VALUE for label's decl.
9769 (caseaction, beginendblock, ifaction): Call
9770 stamp_nesting_label to put action's label into
9771 contour for EXIT to find.
9772
9773Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9774
9775 * expr.c (expand_expr): Unify, clean up handling of
9776 IN_EXPR, and handling of bit-string element ref.
9777 Now, all goes through IN_EXPR handler.
9778 * stmt.c (stamp_nesting_label, expand_exit_labelled):
9779 New functions, which allow either label or
9780 function decls.
9781
9782Thu Apr 15 17:17:05 1993 Bill Cox (bill@rtl.cygnus.com)
9783
9784 * ch-actions.c ch-actions.h ch-convert.c ch-decl.c ch-except.c
9785 ch-expr.c ch-grant.c ch-inout.c ch-lang.c ch-lex.h ch-lex.l
9786 ch-loop.c ch-parse.y ch-process.c ch-tree.c ch-tree.def
9787 ch-tree.h ch-typeck.c: Add 1993 copyright, fix titles.
9788 * ch-actions.c (build_chill_binary_op): Move runtime function call
9789 to expr.c. Just build a tree here. Clean up error checking.
9790 * ch-convert.c (convert): Simply store a type into an expression if
9791 TREE_TYPE (expr) == NULL. Prevent error if an enum is to be
9792 converted to a set of such enums.
9793 * ch-loop.c (init_loop_counter): Restore error msg for undeclared
9794 variable if no local scope is to be created for the loop.
9795 * ch-typeck.c (build_chill_array_ref): Turn bit array ref into IN_EXPR,
9796 remove redundant code which wasn't ever called.
9797
9798Wed Apr 14 07:54:00 1993 Bill Cox (bill@rtl.cygnus.com)
9799
9800 * .cvsignore (y.tab.c) : Add to list.
9801 * ch-convert.c (convert): Check pointers better - avoid NULL reference.
9802 Remove redundant check for ERROR_MARK - already checked earlier.
9803 * ch-parse.y (get_type_of): Add parameter checks for NULL ptrs and
9804 error_mark_node.
9805
9806Tue Apr 13 16:00:37 1993 Per Bothner (bothner@cygnus.com)
9807
9808 * c-decl.c (start_function): If there is a previous
9809 function declaration of the same name, steal its RTL.
9810 This is a kludge needed for forward declarations of
9811 nested functions.
9812 * ch-decl.c (push_chill_extern_function), ch-tree.h: New
9813 function, for external and seized function declarations.
9814 Make sure to use permanent obstack.
9815 * ch-parse.y (quasi_pdef, extprocedure): Use new function.
9816
9817 * ch-grant.c (chill_finish_module_code): Since module
9818 function is no longer visible,, can't get it using
9819 lookup_name(). Use current_function_decl instead.
9820
9821 * ch-decl.c (build_chill_function_type): Add void_type_node
9822 to end of parameter types list.
9823
9824 * ch-grant.c (chill_start_module_code): Make sure module
9825 function isn't visible (and hence isn't granted).
9826
9827Tue Apr 13 15:48:25 1993 Bill Cox (bill@rtl.cygnus.com)
9828
9829 * ch-loop.c (begin_chill_loop): Also stamp the user's loop name into
9830 current contour for DO FOR EVER loops.
9831
9832Tue Apr 13 14:37:39 1993 Bill Cox (bill@rtl.cygnus.com)
9833
9834 * ch-parse.y (actionstatement): Add error rule. Delete
9835 POP_UNUSED_ON_CONTEXT. Add comments about label name usage.
9836 (nohandleraction): Better error check in EXIT processing.
9837 (optexprlist): Comment out make_function_rtl call.
9838 (seizestatement): Change error to warning.
9839
9840Tue Apr 13 08:29:31 1993 Bill Cox (bill@rtl.cygnus.com)
9841
9842 * ch-grant.c (raw_decode_mode): Supply missing parameter in get_type
9843 call.
9844 * ch-loop.c (begin_chill_loop): Take loop label as parameter. Stamp
9845 its name into the current contour's exit_label, for EXIT to use.
9846 * ch-parse.y: (actionlabel): Save label tree in global variable.
9847 (actionstatement): Clear label to NULL when action is finished.
9848 (handlerstatement, nohandlerstatement): Split actions into
9849 categories which do/don't permit exception handlers.
9850 (exitaction): Move code into nohandleraction, make it work.
9851 (doaction): Pass (possibly NULL) label tree to begin_chill_loop.
9852 * ch-tree.h: Add parameter to begin_chill_tree prototype.
9853 * stmt.c (stamp_nesting_label, expand_exit_labelled): Add functions.
9854 Note: This implementation of EXIT only exits from loops, not yet
9855 from other bracketted statements.
9856
9857Mon Apr 12 13:41:55 1993 Per Bothner (bothner@rtl.cygnus.com)
9858
9859 * ch-grant.c (chill_grant): Remove obsolete code.
9860
9861 * ch-decl.c (push_synmode, push_newmode): Merged to yield ...
9862 * ch-decl.c (push_modedef): ... w/ slightly different interface.
9863 * ch-tree.h, ch-process.c (make_process_struct), ch-parse.y
9864 (modedefinition): Use new push_modedef function.
9865 * ch-parse.y (modedefinition): Don't depend on inherited
9866 attributes (- implemented incorrectly!): Use a global variable
9867 parsing_newmode to distinguish synmode and newmode.
9868
9869Mon Apr 12 08:10:34 1993 Bill Cox (bill@rtl.cygnus.com)
9870
9871 * ch-loop.c: Diffuse cleanup after big functional changes.
9872 * ch-parse.y: Eliminate temporary variables, now unnecessary. Use
9873 parse-time stack instead.
9874 * ch-tree.h: Change build_chill_iterator prototype.
9875
9876Sun Apr 11 15:50:33 1993 Bill Cox (bill@rtl.cygnus.com)
9877
9878 * ch-convert.c (convert): Replace an ERROR_MARK type - from a
9879 untyped_expr with the given type. Move chill_expand_case_expr
9880 call inside chill_expand_expr.
9881 * ch-expr.c, ch-tree.h, ch-typeck.c (chill_handle_case_default,
9882 chill_handle_case_label, chill_expand_case_expr): Move to ch-expr.c
9883 from ch-typeck.c.
9884 * ch-loop.c: Major reorganization to support multiple iterators in
9885 DO FOR loop, very little new code, just a re-org.
9886 * ch-parse.y (iterationlist): Add handling for multiple loop iterators.
9887
9888Sat Apr 10 14:40:12 1993 Bill Cox (bill@rtl.cygnus.com)
9889
9890 * ch-actions.c (build_chill_lower, build_chill_upper): Clean up.
9891 * ch-grant.c (chill_grant): Avoid making strange SYNMODE for enum
9892 member.
9893 * ch-lex.l (equal_number): Add function to look in the input for '='
9894 followed by a decimal literal. Call it from directive scanning.
9895 (start state 'ccitt'): Deleted, unused. Moved unused, but reserved,
9896 tokens to NORMAL state.
9897 (compiler_directive): Replaced by equal_number. Now the only
9898 recursive call to yylex happens in check_newline at the beginning
9899 of a compilation.
9900
9901Sat Apr 10 09:55:50 1993 Bill Cox (bill@rtl.cygnus.com)
9902
9903 * ch-actions.c (build_chill_case_expr): Added from ch-parse.y.
9904 * ch-lex.l (ENTRY, PERVASIVE, ROW, STEP): Add token recognition to
9905 'reserve' them.
9906 * ch-parse.y (case_expr): Move code into ch-actions.c. There will
9907 need to be much more written.
9908 * ch-tree.def (VARY_ARRAY_REF): Add comment.
9909 * ch-tree.h (build_chill_case_expr): Add prototype.
9910 * ch-typeck.c (build_chill_cast): Allow untyped_expr - just assign the
9911 type to the expr. Check for CASE_EXPR, call expand_case_expr.
9912
9913Sat Apr 10 01:10:51 1993 Per Bothner (bothner@rtl.cygnus.com)
9914
9915 * ch-parse,y (in_pseudo_module): New variable. Try if we're
9916 in a seizefile, but not in a module nested in the seizefile.
9917 Use for backwards compatibility with old grantfiles.
9918 * ch-decl.c (do_decls, push_syndecls, push_newmode, push_synmode):
9919 If in_pseudo_module, grant new declaration.
9920 * ch-decl.c (pushd_newmode): If there is a granted previous
9921 incomplete type, fix it up.
9922 * ch-grant.c (seize_implied_names): Do remaining types.
9923 Guard against recursion.
9924 * ch-tree.h (IDENTIFIER_ENUM_VALUE): Removed, not used.
9925 * ch-tree.h (CH_DECL_ENUM), ch-grant.c (chill_grant), ch-lang.c
9926 (finish_chill_enum): Enum constants are marked with
9927 CH_DECL_ENUM so they don't get written to the grantfile.
9928 * ch-tree.h (IDENTIFIER_GRANTED_VALUE): Allow fast seizing.
9929 * ch-lex.l: Re-write to use start states, to avoid calling
9930 yylex() recursively.
9931 * ch-lex.l (compiler_directive); This is now obsolste. FIXME.
9932 * ch-lex.l: Call push_module and pop_module when reading a
9933 seizefile. This creates a pseudo-module.
9934 * ch-parse.y: Clean up handling of empty declarations and
9935 action statements; semicolons are now optional a number of
9936 places.
9937 * ch-parse.y: Remove some bogus tests for "statement
9938 out of sequence" (they're both legal and work).
9939 * varasm.c (mak_function_rtl): Remove kludge that may
9940 not be necessary (and loses anyway).
9941
9942Fri Apr 9 09:37:38 1993 Bill Cox (bill@rtl.cygnus.com)
9943
9944 * ch-expr.c (chill_expand_array_assignment): Remove false error about
9945 arrays that are too small.
9946 * ch-parse.y (callaction): Don't pass an error_mark_node to
9947 c_expand_expr_stmt.
9948
9949Fri Apr 9 00:26:54 1993 Per Bothner (bothner@rtl.cygnus.com)
9950
9951 * ch_tree.h (DECL_HIDDEN_BY_MODULE, ENCAPSULATED_ARRAY_P):
9952 New macros.
9953 * ch-actions.c (build_chill_function_call): Use latter.
9954 * ch-typeck.c (chill_similar): Fix typo.
9955 * ch-grant.c (raw_decode_mode): Handle ENCAPSULATED_ARRAY_P
9956 parameter types.
9957 * ch-grant.c (seize_implied_names): Handle ranges of enums.
9958 * ch-grant.c (do_seize): Set DECL_SOURCE_FILE and _LINE of
9959 seized declaration to be the point of the seize itself.
9960 * ch-grant.c (chill_grant), ch-tree.h: Add a parameter
9961 which is the list (in order) of decls in the module.
9962 Don't reverse the getdecls() list; that is handled by caller.
9963 * ch-grant.c (chill_grant): Test that a declaration is
9964 visible before writing it.
9965 * ch-parse.y (push_module): Make sure to hide declarations
9966 from surrounding module.
9967 * ch-parse.y (pop_module): Restore those declarations.
9968 * ch-parse.y (pop_module): This function is now responsible
9969 for writing out for calling chill_grant() to the grant file.
9970 * ch-actions.c (lang_finish): Remove calls to chill_grant().
9971
9972Thu Apr 8 16:56:52 1993 Bill Cox (bill@rtl.cygnus.com)
9973
9974 * ch-actions.c (build_char_array_expr): Add handling of varying
9975 arrays in relational expressions.
9976 * ch-decl.c: Add prototype for lookup_name_current_level.
9977 * ch-expr.c (chill_expand_expr): Make concat_expr's temp a BLKmode,
9978 so its length is used as the temp's size.
9979 (chill_expand_array_assignment): Correct for varying := varying
9980 assignment, clean up.
9981 * ch-typeck.c: Add prototype for require_complete_type.
9982
9983Wed Apr 7 16:41:29 1993 Bill Cox (bill@rtl.cygnus.com)
9984
9985 * ch-loop.c (for_location, begin_chill_loop, end_chill_loop): Major
9986 diffuse changes to fix location loops.
9987 * ch-parse.y (location): Remove ref through NULL ptr.
9988
9989Wed Apr 7 13:42:06 1993 Per Bothner (bothner@rtl.cygnus.com)
9990
9991 * ch-decl.c (massage_param_node): New function.
9992 It handles the LOC/IN/OUT/INOUT parameter distinction,
9993 as well as calling build_chill_array_parm_type if needed.
9994 * ch-tree.h (massage_param_node): New prototype.
9995 * ch-decl.c (push_parms): Use new massage_param_node().
9996 * ch-parse.y (pmodearg): Use new massage_param_node().
9997 * ch-parse.y (formpar): Don't call build_chill_array_parm_type;
9998 now handled by massage_param_node.
9999 * ch-typeck.c (my_build_array_ref): Handle non-zero array
10000 lower bounds.
10001 * ch-actions.c (build_chill_function_call): If the formal
10002 parameter is a pseudo record wrapped around an array, make
10003 sure we wrap the actual parameter in a record CONSTRUCTOR.
10004 * ch-typeck.c (build_chill_array_parm_type): Make sure
10005 the pseudo struct type is allocated on the permanent_obstack.
10006 * ch-parse.y (location): Remove thinko.
10007 * ch-actions.c (chill_comptypes): Comment out test for
10008 NEWMODEness - it gets broken by the forward declaration hacks.
10009
10010Tue Apr 6 18:05:40 1993 Bill Cox (bill@rtl.cygnus.com)
10011
10012 * ch-actions.c: Move build_varying_struct to ch-typeck.c.
10013 * ch-parse.y (formpar): Turn ARRAY_TYPE parms into structure.
10014 * ch-parse.y (location): Do build_component_ref for an array wrapped
10015 in a structure.
10016 * ch-tree.h: Add prototype, #define for build_chill_array_parm_type.
10017 * ch-typeck.c (build_chill_array_parm_type): Add function, move
10018 build_varying_struct here from ch-actions.c.
10019
10020Mon Apr 5 19:56:56 1993 Bill Cox (bill@rtl.cygnus.com)
10021
10022 * ch-actions.c, ch-decl.c: Use tree_int_cst_equal and integer_zerop
10023 rather than in-line code - tests LOW and HIGH values.
10024 * ch-lang.c: Use tree_int_cst_lt rather than inline code.
10025 * ch-typeck.c (my_build_array_ref): Handle case where array low bound
10026 isn't zero.
10027
10028Mon Apr 5 15:45:10 1993 Bill Cox (bill@rtl.cygnus.com)
10029
10030 * ch-typeck.c (my_build_array_ref): Add some more code from
10031 build_array_ref. Change checks, error messages to mention
10032 'discrete types'. I.E. types which don't kiss and tell..
10033
10034Sat Apr 3 09:27:03 1993 Bill Cox (bill@rtl.cygnus.com)
10035
10036 * ch-except.c, ch-expr.c: Turn externs into prototypes.
10037 * ch-grant.c (chill_grant): Remove orphan #else.
10038 * ch-tree.h: Add prototype for build_chill_bin_type.
10039 * ch-typeck.c: Turn externs into prototypes, delete code which
10040 was commented out in chill_expand_return; it will never be used.
10041
10042Fri Apr 2 21:55:14 1993 Per Bothner (bothner@rtl.cygnus.com)
10043
10044 Major re-write of New module/seize/grant stuff.
10045 Now, a grantfile is a spec module and contains all the
10046 top-level declarations of the granting module, not just
10047 those that are granted. It also contains explicit grant
10048 statments naming those declared names that are granted.
10049 It also has seize statements and use_seize_file directives
10050 to correctly handle transitive dependencies.
10051
10052 * ch-parse.y: Change to allow multiple modules per source file.
10053 Allow spec modules (including quasi definitions) as well as
10054 regular modules.
10055 Allow spec modules inside normal modules; these behave as if
10056 they were outermost. This violates the Blue Book, but is
10057 needed by the new grantfile mechanism. (A grant file is a
10058 spec module that gets included by the use_seize_file directive.)
10059 * ch-parse.y (struct module *current_module, push_module,
10060 pop_module): Support module nesting (for spec modules only).
10061
10062 * ch-tree.h (struct module): New.
10063 * ch-grant.c (granted_decls): New list of declarations
10064 that have been granted into the outermode pseudo-module.
10065 * ch-grant.c (decode_mode): If the decl has a name,
10066 always write the name, not just if the decl has already
10067 been written. Since we write out all decls, we can assume
10068 it will be written later, and depend on the forward
10069 declaration kludges to catch it.
10070 * ch-grant.c (decode_decl): Don't write out _EXTERN.
10071 Instead write out standard (Blue Book) quasi-definitions.
10072 * ch-grant.c (push_granted): New function.
10073 * ch-grant.c (seize_implied_names): New function. Re-write
10074 how set element names are seized when a set type is seized.
10075 * ch-grant.c (chill_seize): Work by seraching the
10076 granted_decls list and copying the declaration.
10077 * ch-grant.c (chill_grant): Write all declarations
10078 declared in this module. Write GRANT statements for
10079 those granted. seize statements for decls seized from
10080 other modules. Write extra syntax to make a complete
10081 spec module.
10082 * ch-grant.c (grant_use_seizefile): Copy use_seize_file
10083 directives into grant file.
10084 * ch-lex.l (setup_seizefile_read): Call grant_use_seizefile.
10085
10086 * ch-lex.l (struct input_state, current_input_state,
10087 push_input_file, pop_input_file): New (type, variable,
10088 function*2). Used to save and restore state on an input file.
10089 * ch-lex.l: Clean up to handle nested input seizefiles
10090 (needed by new grant/seize mechanism.
10091 * ch-lex.l (skip_to_end_of_directive): New function.
10092 * ch-lex.l (compiler_directive: USE_SEIZE_FILE): Make sure
10093 we skip to the end of the directive *before* we switch
10094 input files.
10095 * ch-lex.l (setup_seizefile_read): Prevent reading the
10096 same seizefile twice (otherwise likely with new grant/seize).
10097 * ch-lex.l: Recognize SPEC. Misc cleanups.
10098
10099 * ch-parse.y: Fixed foreward references of types.
10100 Removed the unknown_type_node crock.
10101 * ch-decl.c: Remove all uses of unknown_type_node.
10102 Check for TYPE_SIZE zero instead.
10103 * ch-decl.c (fixup_unknown_type): Make sure new mode
10104 gets copied into old mode. Merge their variant chains.
10105 * c-decl.c (lookup_name_current_level): Make non-static.
10106 * ch-decl.c (lookup_name_current_level): No longer needed.
10107
10108 * ch-parse.y (call): Allow an implicitly defined function
10109 name following the CALL keyword.
10110 * ch-tree.h (struct lang_identifier): Add implicit_decl,
10111 and make sure order of fields matches c-tree.h.
10112
10113 * ch-actions.c (lang_init, build_allocate_memory_call,
10114 build_allocate_globals_memory_call): Fix names (add initial '_')
10115 and prototypes of _allocate_[global_]memory (2nd param is ref).
10116 Use build_chill_function_call, not build_function_call,
10117 so the reference parameter gets handled.
10118 * ch-actions.c. (lang_init): Make sure boolean_{true,false}_node
10119 have boolean_type_node as their types.
10120 * ch-actions.c (build_chill_lower, build_chill_upper): Fix to
10121 work for arrays with BOOLEAN_TYPE ranges (and simplify some).
10122
10123 * ch-except.c: Make sure an end_label is generated,
10124 and jump to it if there is no exception.
10125
10126 * ch-convert.c (convert_to_reference): Strip off NOP_EXPR casts.
10127 * expr.c (expand_expr): Handle NOP_EXPR as Chill-style casts.
10128 (Need cleaning up and FSF installation!)
10129 * ch-parse.y: If taking the address of a cast, move the
10130 ADDR_EXPR inside the NOP_EXPR.
10131
10132 * ch-typeck.c (my_build_array_ref): Simplified, more suitable
10133 versions of build_array_ref from c-decl.c. (E.g. don't barf
10134 if index type is char or bool.)
10135 * ch-typeck.c (build_chill_array_ref): Use my_build_array-ref.
10136
10137 * ch-typech.c (build_chill_bin_type): New function.
10138 Support BIN(N) range type specification.
10139 * ch-parse.y (mode2), ch-lex.l: Recognize BIN(N).
10140
10141 * ch-tree.h (CH_SIMILAR): Redefine in terms of chill_similar.
10142 * ch-typeck.c (chill_similar): New function. Recognize that
10143 that range types are similar to their parent types.
10144
10145 * ch-tree.h: Declare flag_local_loop_counter.
10146 * ch-loop.c: Whether the loop variable is local to the loop
10147 in now controlled by flag_local_loop_counter, instead of
10148 #ifdef'd on CREATE_SCOPE.
10149 * ch-actions.c (lang_decode_option): Recognize flags
10150 "-f[no-]local-loop-counter".
10151 * toplev.c (lang_options): Add Chill flags -f[no-]local-loop-counter.
10152
10153 * varasm.c (make_function_rtl): Due to problems with forward
10154 references, don't rename nested functions in Chill. (Kudge!)
10155
10156Sun Mar 28 10:12:45 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
10157
10158 * ch-lex.l (push_back, readstring): Fix prototypes.
10159
10160Fri Mar 26 18:32:15 1993 Bill Cox (bill@rtl.cygnus.com)
10161
10162 * ch-parse.y: Put %type directives back into alpha order.
10163 (variant_alternative): Simplify error_mark test.
10164 (variantfields, varianthack): Add error_mark checks.
10165
10166Fri Mar 26 13:36:23 1993 Bill Cox (bill@rtl.cygnus.com)
10167
10168 * ch-lex.l (convert_charliteral): Rewrite to avoid bogus error msg.
10169 * ch-parse.y (get_type_of): Add function to deal with possible fwd
10170 declared type name. Call it from lotsa places. Add lotsa checks
10171 for error_mark_node. Standardize indentations.
10172
10173Thu Mar 25 15:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
10174
10175 * ch-expr.c (chill_expand_assignment): Avoid seg fault while checking
10176 for array assignments.
10177 * ch-parse.y (action): Add recognition for allocate_memory and
10178 allocate_global_memory system calls.
10179 (mode2): Remove ill-conceived error check that broke REFs to
10180 as-yet-undeclared types. Check for IDENTIFIER_NODE, lookup its
10181 DECL if there, pass TREE_TYPE of decl to build_pointer_type.
10182 (variantfields, varianthack): Clean up.
10183 (variantfield): Check for IDENTIFIER_NODE, lookup its DECL if
10184 there, pass TREE_TYPE of decl to grok_fixedfields.
10185 (labellist): Explicitly assign error_mark_node to signal error.
10186 * ch-typeck.c (chill_compatible): Report FALSE for bad parameters,
10187 rather than seg faulting.
10188
10189Thu Mar 25 10:35:58 1993 Bill Cox (bill@rtl.cygnus.com)
10190
10191 * ch-actions.c (lang_init): build_function_type for allocate_memory
10192 and allocate_global_memory runtime routines. Move discrete_type_p
10193 into ch-typeck.c.
10194 * ch-typeck.c (discrete_type_p): Move here, where it belongs, call it
10195 in build_chill_cast.
10196
10197Wed Mar 24 16:25:16 1993 Per Bothner (bothner@rtl.cygnus.com)
10198
10199 * ch-grant.c: Don't grant previously seized names.
10200
10201Tue Mar 23 15:25:39 1993 Bill Cox (bill@rtl.cygnus.com)
10202
10203 * Makefile.in (ch-actions.o): Add dependencies (expr.h insn-codes.h)
10204 * dwarfout.c (fundamental_type_code): Add handling of BOOLEAN_TYPEs,
10205 avoid abort.
10206
10207Tue Mar 23 09:03:35 1993 Bill Cox (bill@rtl.cygnus.com)
10208
10209 * ch-actions.c (build_char_array_expr): Just build a type for the
10210 result of a CONCAT_EXPR, and pass the tree back.
10211 chill_expand_array_assignment can do a better job of
10212 code-generation.
10213 * ch-expr.c (chill_expand_array_assignment): Generate the CONCAT_EXPR
10214 code.
10215
10216Mon Mar 22 12:42:58 1993 Per Bothner (bothner@rtl.cygnus.com)
10217
10218 * ch-except.c (start_handler_array): Make sure the handler
10219 array and its type get on the permanent obstack.
10220 * ch-grant.c (write_grant_file): Don't write the _INIT=name
10221 specifier: It isn't needed, and loses (because of funny
10222 characters in the chill_initializer_name).
10223 * ch-decl.c (push_synmode): Set TYPE_NAME(mode) = syndecl.
10224 * ch-lang.c (finish_chill_enum): Don't allocate a dummy
10225 TYPE_DECL for the enum. I don't think it is needed (?),
10226 and removing it is needed for the change above.
10227
10228 * ch-grant.c (grant_array_type, decode_mode): Remove unused
10229 'decl' parameter.
10230 * ch-grant.ch (raw_decode_mode): New function, based on old
10231 decode_mode.
10232 * ch-grant.c (decode_mode); This is now just a wrapper around
10233 raw-decode_mode - but does not call raw_decode_mode if the
10234 type is named and has already been emitted.
10235
10236Fri Mar 19 11:55:35 1993 Bill Cox (bill@rtl.cygnus.com)
10237
10238 * ch-actions.c: Add prototypes, remove unused variables. Attempt to
10239 continue generating grant file in presence of error (Wilfried's
10240 patch to lang_finish).
10241 * ch-expr.c: Change assign_stack_temp calls so temps get recovered
10242 after each statement. Move convert call into
10243 chill_expand_assignment from ch-parse.y.
10244 * ch-grant.c: Generally re-order, clean up. Include Per's decode_mode
10245 simplification. Include commented-out hack in decode_mode to return
10246 type's name if type SEIZEd or already GRANTed in this file.
10247 * ch-lex.l: Add prototypes.
10248 * ch-parse.y (assignaction): Move convert call into
10249 chill_expand_assignment.
10250
10251Thu Mar 18 16:04:45 1993 Bill Cox (bill@rtl.cygnus.com)
10252
10253 * ch-convert.c (convert): Remove unused variable, fix int_size_in_bytes
10254 comparison.
10255 * ch-decl.c: Add prototypes, correct error message spelling, remove
10256 unused variables.
10257 * ch-lang.c (build_chill_range_type): Add error message. Add prototypes.
10258 Correct comment spelling.
10259 * ch-lex.l: Add prototypes, remove unused variable, put double parens aarround
10260 assignment in conditional.
10261 * ch-loop.c: Add prototypes, remove unused variable.
10262 * ch-parse.y (structured_variable): Return NULL_TREE is invalid WITH
10263 parameter is seen, don't count it in structured_variable_list. Pre-
10264 vents seg fault when only WITH operand is invalid.
10265 * ch-parse.y (label_spec): Correct assignment within IF expression which
10266 was intended to be equality test. Remove unused variables.
10267 * ch-tree.h: Add prototype. Remove unused EXCP_CODE enumeration, and
10268 prototyping editorial comments.
10269 * ch-typeck.c: Disable generation of code to validate array index for
10270 now. Should be done as a call-back from more generic array_ref code.
10271 Clean up parameter checking. Remove unused variables.
10272
10273Fri Mar 12 11:57:32 1993 Bill Cox (bill@rtl.cygnus.com)
10274
10275 * ch-actions.c (chill_varying_type_p): Return FALSE if given NULL type.
10276 * ch-actions.c (build_chill_binary_op): Pass ALL arrays to
10277 build_char_array_expr.
10278 * ch-convert.c (convert): protect against seg fault, if type == NULL.
10279 * ch-expr.c (chill_expand_expr): Add FIXME comment.
10280
10281Fri Mar 12 11:04:02 1993 Bill Cox (bill@rtl.cygnus.com)
10282
10283 * ch-expr.c (chill_expand_expr): Completely rethink set unary ops.
10284 Thanks very much to dje!
10285
10286Thu Mar 11 21:06:55 1993 Bill Cox (bill@rtl.cygnus.com)
10287
10288 * ch-actions.c (build_char_array_expr, build_chill_binary_op):
10289 Move CONCAT_EXPR handling from binary_op to array_expr. Add
10290 handling for relationals between varying arrays to array_expr.
10291
10292Thu Mar 11 19:20:37 1993 Bill Cox (bill@rtl.cygnus.com)
10293
10294 * ch-actions.c (build_set_expr, build_chill_binary_op): Calculate
10295 *BIT* length of powersets and arrays of BOOLs.
10296 (invalid_left_operand, invalid_right_operand): Disallow relationals
10297 with arrays of BOOL as operands.
10298 * ch-convert.c (convert): Test TREE_CODE for ERROR_MARK rather than
10299 comparing pointers.
10300 * ch-decl.c (push_newmode): Re-indent.
10301 * ch-expr.c (chill_expand_expr): Calculate *BIT* length of powersets
10302 and arrays of BOOLs.
10303 * ch-lang.c (build_chill_array_type): Add parameter error checking.
10304
10305Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10306
10307 * expr.c (store_constructor): Handle set construction.
10308 * varasm.c (output_constant): Prevent seg fault - terminate case
10309 alternative with a 'break'.
10310
10311Mon Mar 8 17:13:00 1993 Bill Cox (bill@rtl.cygnus.com)
10312
10313 * ch-expr.c (): Move SET_TYPE constructor to expr.c.
10314 * ch-loop.c (end_chill_loop): Only do expand_end_loop if not POWERSET loop.
10315 * ch-typeck.c (build_chill_cast): Fix error msg spelling.
10316
10317Mon Mar 8 13:16:05 1993 Bill Cox (bill@rtl.cygnus.com)
10318
10319 * fold-const.c (fold_convert): Allow CHAR_TYPE CONVERT_EXPR to
10320 be folded.
10321
10322Mon Mar 8 10:13:57 1993 Bill Cox (bill@rtl.cygnus.com)
10323
10324 * ch-grant.c (get_tag_value): Correctly output certain enumerations.
10325 Correct some non-standard indentations.
10326
10327Fri Mar 5 14:58:35 1993 Bill Cox (bill@rtl.cygnus.com)
10328
10329 * ch-actions.c: Fix up comment.
10330
10331Thu Mar 4 18:05:43 1993 Bill Cox (bill@rtl.cygnus.com)
10332
10333 * ch-actions.c: Define builtin '__nepowerset' and call it - avoid
10334 negating the result of calling __eqpowerset. New function
10335 discrete_type_p().
10336 * ch-grant.c (get_tag_value): Don't seg fault referring to an
10337 anonymous enumeration's name.
10338 * ch-lex.l: Turn EVEN token into an ignored compiler directive.
10339 * ch-loop.c (end_chill_loop): Output end-of-loop marker.
10340 * ch-parse.y (label_spec): redefine variant structure label_spec
10341 to agree with the Z.200 spec.
10342 (locdec): Error if set/bitstring initialized with a tuple.
10343 (case_label, arrayindex): Use new discrete_type_p
10344 function.
10345 * ch-process.c: Fix typo.
10346
10347Wed Mar 3 14:30:53 1993 Per Bothner (bothner@rtl.cygnus.com)
10348
10349 * ch-lang.c, ch-tree.h: Rename build_range_type to
10350 build_chill_range_type. Call new build_range_type() in tree.c.
10351 * ch-parse.y: Call build_chill_range_type as approriate.
10352 * ch-typeck.c (build_chill_cast); Clean up.
10353
10354Wed Mar 3 09:36:56 1993 Bill Cox (bill@rtl.cygnus.com)
10355
10356 * ch-parse.y: Define CONTINUE_EVENT token.
10357 * ch-parse.y (mode2): Give error message for SYN modea = modeb
10358 where modeb is undefined.
10359
10360Tue Mar 2 20:16:37 1993 Bill Cox (bill@rtl.cygnus.com)
10361
10362 * ch-actions.c: Add builtin function descriptions for memset and
10363 bitsetpowerset. Allow build_chill_num expression to exceed 16 bits,
10364 but not 32.
10365 * ch-tree.h: Correct chill_handle_case_default prototype.
10366 * ch-actions.h, ch-lex.h: Add prototypes.
10367 * ch-lex.l, chill.gperf: Add CONTINUE_EVENT token.
10368
10369Thu Feb 25 17:35:46 1993 Bill Cox (bill@rtl.cygnus.com)
10370
10371 * c-decl.c (init_decl_processing): Disable creation of C-specific
10372 builtin functions. They pollute the CHILL name space.
10373 * stor-layout.c (variable_size): Allow variable-size objects at file
10374 scope, for CHILL.
10375
10376Fri Feb 26 07:14:34 1993 Bill Cox (bill@rtl.cygnus.com)
10377
10378 * c-decl.c (finsh_decl): Don't output non-constant storage size
10379 error for CHILL
10380 * ch-actions.c: Call build_temporary_variable, fix build_tree_list
10381 call in build_chill_cause_exception.
10382 * ch-convert.c, ch-expr.c: Use tree_cons to build list's last entry
10383 * ch-loop.c (build_temporary_variable): New function
10384 * ch-process.c: Call build_temporary_variable, spell start_process
10385 correctly.
10386 * ch-tree.h: Extern for build_temporary_variable
10387
10388Thu Feb 25 12:09:01 1993 Bill Cox (bill@rtl.cygnus.com)
10389
10390 * c-decl.c (init_decl_processing): Disable initial creation of C-specific
10391 builtins - they pollute the CHILL name space.
10392 * ch-typeck.c (valid_array_index): Correct upper-bound check.
10393 * expr.c (expand_expr): Use actual library name for __inpowerset
10394 builtin.
10395 * stor-layout.c (variable_size): Disable complaint about variable-
10396 size type or decl at file scope. Perhaps later this s.b. a warning.
10397 * varasm.c (emit_set_data): Add function.
10398 (output_constant): Call new emit_set_data function for VAR_DECLs,
10399 in addition to CONSTRUCTORs.
10400
10401Thu Feb 25 11:34:36 1993 Bill Cox (bill@rtl.cygnus.com)
10402
10403 * ch-actions.c: Change all builtin functions names to their
10404 actual library names. Change references to boolean_type_node
10405 to references to the TREE_CODE == BOOLEAN_TYPE, to follow the
10406 convention.
10407 build_set_expr: Remove length parameter, call powersetlen() instead.
10408 remove handling of CHAR arrays - they're handled in build_char_array_expr.
10409 Call __eqpowerset to test for equality - we can't use a byte-length -
10410 need bitcount instead.
10411 build_chill_compound_expr, internal_build_compound_expr: Copy from C
10412 version that does stuff we don't want.
10413 build_binary_op: Check for in_size_in_bytes return < 0, indicating
10414 size is changeable at run time. Build two memcpy calls to implement
10415 string concatenation.
10416 powersetlen: Add function.
10417 build_chill_card: Call powersetlen.
10418 build_chill_max_min: Common code for powerset max/min.
10419 build_chill_length: Move VARYING array handling before regular char
10420 array handling.
10421 * ch-expr.c chill_expand_expr: Disable concatenate code - we need to
10422 the VARYING status of the target to do this correctly. Use powersetlen
10423 for the powerset operations, not a byte length.
10424 * ch-loop.c: Make CREATE_SCOPE #define to enable creation of a new scope
10425 for each CHILL loop, as Z.200 requires. Add powerset and error flags
10426 to loop structure. Evaluate user's powerset expression into a temp,
10427 scan it destructively with __ffsetclrpowerset or __flsetclrpowerset
10428 for powerset loop. Only do loop-end assignments if NOT a powerset
10429 loop, which has much less overhead now.
10430 * ch-tree.h: Add prototype for powersetlen.
10431
10432Fri Feb 19 08:40:24 1993 Bill Cox (bill@rtl.cygnus.com)
10433
10434 * ch-lex.l (convert_number): Evaluate number and pass it as
10435 HOST_WIDE_INT.
10436
10437Fri Feb 19 08:56:44 1993 Michael Tiemann (fs_tie at rcsw18)
10438
10439 * ch-typeck.c (build_chill_array_ref): Handle newmodes
10440 correctly.
10441
10442 * ch-actions.c (chill_comptypes): Always initilize ERRSTR if
10443 we are going to return 0.
10444
10445 * ch-convert.c (convert_to_reference): Don't use
10446 TYPE_MAIN_VARIANT, because REFTYPE's type may be a newmode
10447 (which must match the type of the expr).
10448
10449 * ch-grant.c (chill_seize): Don't let a type be copied just
10450 because we are seizing it.
10451
10452 * ch-lang.c (finish_chill_enum): Convert TYPE_MIN_VALUE and
10453 TYPE_MAX_VALUE to integer type.
10454
10455 * ch-loop.c (begin_for_range): Set lp->iter_type based on the
10456 tree type of the bounds.
10457 (build_loop_top): type of GE_EXPR and LE_EXPR is
10458 boolean_type_node, not lp->iter_type.
10459 (for_location): Ditto.
10460
10461 * ch-action.c (build_chill_lower,build_chill_upper): Handle
10462 ENUMERAL_TYPE. Also, handle different kinds of arguments more
10463 cleanly.
10464
10465 * ch-parse.y (iteration): Convert start_exp and end_exp to
10466 match the type of modename.
10467
10468 * ch-grant.c (chill_seize_aggr): Search also through anonymous
10469 types.
10470
10471 * ch-grant.c (chill_seize): Check to see if SEIZEITEM has
10472 already been seized, and if so, do nothing.
10473
10474 * c-typeck.c (process_init_constructor): If DEFAULT_VALUE
10475 comes out error_mark_node, set ERRONEOUS.
10476
10477 * ch-actions.c (build_chill_binary_op_1): If EXP is NULL_TREE,
10478 don't use it.
10479
10480 * ch-action.c (chill_comptypes): Test for structural
10481 equivalence of enums.
10482
10483 * ch-typeck.c (build_chill_array_ref): Convert INDEX to
10484 TYPE_MIN_VALUE of DOMAIN if the types are compatible.
10485
10486 * ch-grant.c (chill_seize): If DECLS is a TYPE_DECL for an
10487 ARRAY_TYPE, seize the domain type if its a set.
10488
10489Thu Feb 18 20:02:15 1993 Per Bothner (bothner@rtl.cygnus.com)
10490
10491 * c-typeck.c (process_init_constructor): Emit error if some
10492 array elements are not initialized.
10493 * c-typeck.c (process_init_constructor): Call digest_init()
10494 recursively to expand default_value.
10495 * ch-expr.c (chill_expand_array_assignment): Simplify, and
10496 handle the case that the lhs has dynamic size (e.g. a slice).
10497 * ch-parse.y (elementlist): Handle the case that tupleelement
10498 generates more than one TREE_LIST node.
10499
10500Thu Feb 18 12:40:56 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10501
10502 * .cvsignore: add yacc sources, xgcc and stmp-* files. (Bill)
10503 * c-typeck.c (lookup_field): add function, calls.
10504 * ch-actions.c (build_chill_binary_op): figure return_type differently.
10505 * ch-convert.c (convert_to_reference): return error_mark_node,
10506 STRIP_NOPS. (convert): Braces for readability.
10507 * ch-decl.c (build_chill_function_type): accept typespec as parm.
10508 Handle exceptions.
10509 (grok_chill_variantdefs): call comptypes, not chill_comptypes.
10510 * ch-expr.c (chill_expand_assignment): handle references.
10511 * ch-grant.c (chill_seize_set, chill_seize_aggr): new functions
10512 * ch-parse.y (structured_variable): check for REFERENCE_TYPE,
10513 call convert. Generally handle reference types.
10514
10515
10516Thu Feb 18 09:30:11 1993 Michael Tiemann (fs_tie@rcvie.co.at)
10517
10518 * ch-actions.c (chill_comptypes): Figure out which newmode or
10519 synmode decls look most canonical.
10520 * ch-convert.c (convert): handle location conversions of records,
10521 unions and arrays.
10522 * ch-decl.c (fixup_unknown_type): changes for variant records
10523 * ch-parse.y (tupleelement): avoid confusing digest_init.
10524 * ch-typeck.c (build_chill_array_ref): give element ref the
10525 type of the ELEMENT, not the array (Bill Cox).
10526
10527Wed Feb 17 11:52:20 1993 Bill Cox (bill@rtl.cygnus.com)
10528
10529 * ch-parse.y: change push_newmode and push_synmode interfaces.
10530 * ch-actions.c (build_chill_binary_op): convert operands.
10531
10532Wed Feb 17 10:54:24 1993 Bill Cox (bill@rtl.cygnus.com)
10533
10534 * ch-actions.c (build_chill_binary_op, build_chill_unary_op):
10535 handle reference types.
10536 * ch-decl.c (push_newmode, push_synmode): rewritten
10537 * ch-process.c (make_process_struct): new push_newmode interface.
10538 * ch-typeck.c (build_chill_cast): change interface, error checks.
10539
10540Wed Feb 17 09:50:37 1993 Bill Cox (bill@rtl.cygnus.com)
10541
10542 * ch-decl.c, ch-parse.y, ch-tree.h: delete old INOUT, OUT parameter
10543 code.
10544 * ch-typeck.c (valid_array_index): new function.
10545
10546Tue Feb 16 22:36:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10547
10548 * ch-convert.c (convert): Slightly more correct conversion
10549 for ARRAY_TYPEs (return as OK if CH_COMPATIBLE).
10550 * ch-expr.c (chill_expand_array_assignment): Invoke
10551 __builtin_memcpy using build_function_call, not directly at
10552 the rtx level (which doesn't work).
10553 * ch-typeck.c (build_chill_slice): First attempt at slices.
10554 * ch-tree.h, ch-typeck.c (build_chill_slice_with_range,
10555 build_chill_slice_with_length): New functions.
10556 * ch-parse.y: Use new slice-building functions.
10557 * expr.c (get_inner_reference): Subtract low bound of
10558 array when doing an ARRAY_REF.
10559
10560Tue Feb 16 14:17:55 1993 Bill Cox (bill@rtl.cygnus.com)
10561
10562 * ch-actions.c (build_chill_function_call): better comments.
10563 * ch-decl.c (push_parms): encode OUT, INOUT parms in additional way.
10564 * ch-parse.y: indentation cleanup
10565
10566Tue Feb 16 12:03:53 1993 Michael Tiemann (tiemann@cygnus.com)
10567
10568 * ch-decl.c (grok_chill_variantdefs): Really implement variant
10569 records for CHILL.
10570 * ch-grant.c (get_tag_value): New function.
10571 * ch-grant.c (decode_mode): Grant variant records.
10572
10573 * ch-grant.c (chill_seize): If we seize a set, seize the set
10574 values.
10575
10576 * ch-lex.l (RETURN_TOKEN): Make this safe to use in if/else
10577 constructs.
10578
10579 * ch-parse.y (EMPTY): New pseudo-token to disambiguate
10580 variant_alternatives.
10581 (current_fieldlist): New variable to help processing tag
10582 declarations in variant records.
10583 (fields): Renamed from structdef.
10584 (field): Renamed from fields.
10585 (varianthack): New non-terminal to handle parsing ambiguity
10586 for variant records.
10587 (optlabellist): Changed to preserve CONST_DECLs when they are
10588 parsed.
10589
10590 * ch-tree.h (TYPE_TAGFIELD): New macro.
10591 (TYPE_TAG_VALUES): Ditto.
10592
10593Mon Feb 15 00:49:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10594
10595 * ch-grant.c (decode_mode): Fix output for powerset modes.
10596 * ch-grant.c (decode_constant): Support grant output of
10597 powerset literals.
10598 * ch-actions.c (build_chill_binary_op): IN_EXPR fix.
10599 * expr.c (expand_expr): Add Chill-specific kludge for
10600 BIT_FIELD_REF if operand is SET_TYPE to call runtime function.
10601 * ch-expr.c (chill_expand_assignment): Remove no-longer-needed
10602 special-case support for a BIT_FIELD_REF in right-hand-side.
10603 * ch-lang.c (finish_chill_enum): Patch up enum elements to
10604 have the correct type (instead of integers, as in C).
10605
10606 * ch-lex.l, ch-parse.y: Add disgusting hack (involving
10607 context-dependent look-ahead) so we can parse exception
10608 handlers correctly.
10609 * c-typeck.c (digest_init): Set output type for SET_TYPEs.
10610 * varasm.c (unpack_set_constructor): Add support for
10611 (power-)set ranges (i.e. low_element:high_element).
10612
10613Sun Feb 14 13:37:52 1993 Bill Cox (bill@rtl.cygnus.com)
10614
10615 * ch-inout.c: delete unused #include
10616 * ch-typeck.c (build_chill_slice): turn abort call into error msg.
10617
10618Sat Feb 13 13:13:31 1993 Bill Cox (bill@rtl.cygnus.com)
10619
10620 * Makefile.in: Add cc1chill to STAGESTUFF per Eichin's suggestion.
10621
10622Sat Feb 13 12:17:41 1993 Bill Cox (bill@rtl.cygnus.com)
10623
10624 * Makefile.in: add lots of header files to the CHILL dependencies
10625
10626Fri Feb 12 15:48:27 1993 Per Bothner (bothner@rtl.cygnus.com)
10627
10628 * ch-actions.c (build_chill_function_call): Don't return
10629 error_mark_node on empty parameter-list.
10630
10631Fri Feb 12 12:54:52 1993 Bill Cox (bill@rtl.cygnus.com)
10632
10633 * ch-actions.c (build_chill_function_call): fix start_decl parms.
10634 * ch-parse.y (PUSH_ACTION): guarantee to generate an insn!
10635
10636Fri Feb 12 10:32:37 1993 Bill Cox (bill@rtl.cygnus.com)
10637
10638 * ch-actions.c (build_chill_function_call): create temps, do
10639 assignments to handle INOUT and OUT parameters.
10640 * ch-decl.c (build_chill_function_type): better parameter name.
10641 * ch-parse.y (action): keep rules in alpha order.
10642 (pmodearg): turn INOUT, OUT parameter types into reference types.
10643 * ch-typeck.c (build_tree_slice): indentation change.
10644
10645Thu Feb 11 23:16:34 1993 Per Bothner (bothner@rtl.cygnus.com)
10646
10647 * ch-lex.l (convert_bitstring), Changed SET_TYPE_CONSTRUCTOR to
10648 take a list of elements which are in the set. This corresponds
10649 better to the tuple input form in Chill (and Pascal).
10650 * varasm.c (unpack_set_constructor, pack_set_constructor):
10651 New functions, to expand SET_TYPE CONSTRUCTORs.
10652 * varasm.c (output_constructor): Use pack_set_constructor
10653 to assemble a SET_TYPE constant from a CONSTRUCTOR.
10654
10655 * ch-grant.c (decode_constant): Better grant for strings,
10656 enumeral, and bitstring constants.
10657 * ch-grant.c: Fixes in seize to avoid duplicates, and emit
10658 things in the correct order.
10659 * c-typeck.c (chill_initializer_constant_valid_p): Kludge
10660 needed to export a static function.
10661 * ch-typeck.c (convert): Avoid needlessly (and lossingly) calling
10662 chill_expand_tuple to convert fix string to varying.
10663 * ch-actions.c (build_chill_binary_op): Promote short
10664 integer operands if needed (otherwise emit routines barf).
10665 * ch-tree.h (SET_WORD_SIZE): New macro.
10666 * ch-parse.y: Fix syntax for RECEIVE CASE.
10667 * ch-parse.y (location): If IDENTIFIER is a CONST_DECL
10668 return its value instead.
10669
10670Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10671
10672 * ch-actions.c (build_chill_max, build_chill_min): clean up
10673 * ch-typeck.c (chill_expand_tuple): correct set initialization from
10674 an enumeration tuple. Add sort_constructor function.
10675
10676Thu Feb 11 07:41:45 1993 Bill Cox (bill@rtl.cygnus.com)
10677
10678 * config/sparc.c (sparc_type_code): handle CHAR_TYPE and
10679 BOOLEAN_TYPE w/out an abort.
10680
10681Wed Feb 10 14:59:53 1993 Bill Cox (bill@rtl.cygnus.com)
10682
10683 * ch-actions.c: change most integer_type_node references to
10684 chill_integer_type_node. Rewrite _max and _min routines,
10685 redefine the signatures for those runtime routines. Move
10686 empty-set check into runtime.
10687 * ch-expr.c, ch-loop.c, ch-process.c, ch-tree.c, ch-typeck.c: change
10688 most integer_type_node references to chill_integer_type_node.
10689
10690Tue Feb 9 16:00:05 1993 Per Bothner (bothner@rtl.cygnus.com)
10691
10692 * ch-except.c: New file. Stuff for exception handling.
10693 * ch-parse.y: Add working exception handling support.
10694 * ch-lex.l, ch-parse.y: Prefer standard type terminology
10695 (BOOLS, CHARS) even though non-standard (BITS, CHAR) is ok.
10696 * ch-grant.c: Fix various problems related to granting
10697 types such as bitsets.
10698 * ch-tree.c (build_bitstring_type): Set TYPE_MIN_VALUE
10699 to distinguish bitstrings from powersets (in the same way
10700 we distinguish char strings from char arrays).
10701 * ch-tree.h: New macro CH_BOOL_TYPE_P.
10702 * ch-tree.h, ch-actions.c (lang_init), ch-grant.c (decode_mode):
10703 Undo kludge where integer_type_node was hardwired to 16 bits.
10704 Make integer_type_node etc have the same size as in cc1.
10705 New types chill_integer_type_node and chill_unsigned_type_node
10706 that correspond to the Chill source types INT and UINT.
10707 For now, these match the C 'short' types, but that should
10708 become a configuration option later,
10709
10710Tue Feb 9 11:41:25 1993 Bill Cox (bill@rtl.cygnus.com)
10711
10712 * ch-actions.c (build_chill_unary_op): allow NOT of a set.
10713
10714Tue Feb 9 08:27:18 1993 Bill Cox (bill@rtl.cygnus.com)
10715
10716 * ch-actions.c (build_chill_function_call): add test for
10717 too many/few actual parameters (and avoid seg fault).
10718 * ch-decl.c (do_decls): code cleanup for readability.
10719 * ch-loop.c (begin_chill_loop, end_chill_loop): remove
10720 emit_nop() calls - they now (since exceptions) cause seg faults.
10721 Make derogation on poor CHILL compiler non-specific.
10722 * ch-parse.y (mode2): enable VARYING keyword in CHAR(expr).
10723 * ch-tree.h: remove prototypes added to c-tree.h.
10724 * ch-typeck.c (build_chill_array_ref): correct getting domain
10725 subtree for a PARM_DECL. Subscripting a SET_TYPE is turned into
10726 an IN_EXPR.
10727
10728Sun Feb 7 18:20:49 1993 Bill Cox (bill@rtl.cygnus.com)
10729
10730 * ch-tree.def: add a new tree type - just for varying array
10731 references. We were using ARRAY_REF, but the underlying C
10732 code also generates that one.
10733 * ch-convert.c, ch-expr.c, ch-typeck.c: use the new tree type.
10734
10735Sun Feb 7 17:33:17 1993 Bill Cox (bill@rtl.cygnus.com)
10736
10737 * ch-convert.c: test given type against type of expr before
10738 calling chill_expand_tuple. We were getting lots of spurious
10739 calls...
10740
10741Fri Feb 5 15:24:01 1993 Per Bothner (bothner@rtl.cygnus.com)
10742
10743 * cccp.c: Merge in various Chill-specific changes.
10744 * gcc.c (default_compilers array): Pass -lang-chill
10745 to cpp, not -lang-ch.
10746
10747Fri Jan 29 17:18:22 1993 Per Bothner (bothner@rtl.cygnus.com)
10748
10749 * Makefile.in (install-libchill, install-librmt): Removed.
10750 * ch-actions.c (build_chill_exception_decl): Change decl
10751 to initialized char array, rather than unitialized common.
10752 (Simplifies extracting string name of exception.)
10753 * ch-actions.c: Adjust interface to cause_exception accordingly.
10754 * ch-typeck.c (build_chill_array_ref): Cause rangefail if
10755 index > limit, not >= limit.
10756
10757 * ch-actions.c (build_chill_function_call): Rename misleading
10758 formal parameter.
10759 * ch-decl.c (do_decls): Allow (again) general initializer exprs.
10760 * ch-parse.y (call): Test for function call needs to test for
10761 FUNCTION_TYPE, not FUNCTION_DECL.
10762 nreverse arg list to build_chill_array_ref.
10763 * ch-typeck.c (build_chill_array_ref): Do recursive call at end
10764 and only if multiple indexes.
10765 * ch-typeck.c: Cleanups.
10766
10767Fri Jan 29 11:05:58 1993 Bill Cox (bill@rtl.cygnus.com)
10768
10769 * ch-decl.c (do_decls): handle set initializations better, more to do.
10770 * ch-loop.c (begin_for_range): correct interface to expand_start_cond
10771 and build_binary_op.
10772 * ch-tree.h: lots more prototypes
10773 * ch-typeck.c (build_array_from_set): added function.
10774 * ch-typeck.c (chill_expand_tuple): handle set initializations better.
10775
10776Thu Jan 28 17:41:58 1993 Per Bothner (bothner@rtl.cygnus.com)
10777
10778 * ch-grant.c (set_default_grant_file): Change default.
10779 Normally, grant file should end up in cwd.
10780 * ch-lang.c (build_chill_struct_type): Call pushtag,
10781 for the sake of debugging.
10782 * ch-lex.l: Improve comment parsing.
10783 * ch-lex.l (readstring): Some improvements.
10784 Initial support for control sequences in string literals.a
10785
10786Thu Jan 28 16:16:00 1993 Bill Cox (bill@rtl.cygnus.com)
10787
10788 * ch-convert.c (convert): correct fixed->varying conversion.
10789 * ch-parse.y (mode2): delete unesthetic newline.
10790
10791Thu Jan 28 10:32:55 1993 Bill Cox (bill@rtl.cygnus.com)
10792
10793 * ch-actions.c: delete maybe_array_ref()
10794 * ch-expr.c (chill_expand_assignment): handle RHS array_ref, delay
10795 calling convert().
10796 * ch-lex.l, ch-parse.y, chill.gperf: add keywords, syntax for time
10797 supervision actions & builtins
10798 * ch-parse.y (call): eliminate optlocarrayidx, call build_chill_slice,
10799 smaller actions directly (maybe_array_ref() used to call them).
10800 * ch-tree.h: add build_chill_function_call, build_chill_slice
10801 * ch-typeck.c: add build_chill_slice()
10802
10803Thu Jan 28 08:44:28 1993 Bill Cox (bill@rtl.cygnus.com)
10804
10805 * ch-tree.h: bring up to date with ch-actions.c changes.
10806
10807Wed Jan 27 23:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10808
10809 * ch-expr.c (chill_expand_assignment): handle an RHS varying array
10810 reference.
10811
10812Wed Jan 27 22:28:36 1993 Per Bothner (bothner@rtl.cygnus.com)
10813
10814 * ch-grant.c (decode_constant): Add REAL_TYPE support.
10815 * ch-actions.c (build_chill_exception_decl): New function.
10816 * ch-actions (build_chill_cause_exception, cond_exceptions):
10817 Convert to take a (char*) parameter (the exception name).
10818 * ch-actions.c, ch-expr.c, ch-typeck.c: Convert calls to
10819 cond_exception.
10820 * ch-parse.y (check_end_label): New function, to check if
10821 and end label matches start label.
10822 * ch-parse.y: Fix syntax to properly recognize and
10823 test optional end labels (using check_end_label).
10824 * ch-decl.c (finish_chill_function): Simplify, since
10825 we assume check_end_label has already been called.
10826 * ch-parse.y: Put in infrastructure for exception handling.
10827
10828Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10829
10830 * ch-actions.c: delete convert_chill_parameter, replace call with
10831 call to convert().
10832 * ch-convert.c (convert): combine chill_give_type_to_expr in here.
10833 * ch-decl.c: call convert rather than chill_give_type_to_expr.
10834 * ch-expr.c: delete chill_expand_array_assignment, move code to convert.
10835 * ch-expr.c (chill_expand_assignment): just call convert.
10836 * ch-loop.c (end_chill_loop): expand the end of the loop for a
10837 do while.
10838 * ch-parse.y: call convert rather than chill_give_type_to_expr.
10839 * ch-process.c: checkpoint.
10840 * ch-typeck.c: delete chill_give_type_to_expr, call convert instead.
10841
10842Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10843
10844 * ch-grant.c (grant_array_type): new function to allow handling of
10845 VARYING array types.
10846
10847Wed Jan 27 15:45:20 1993 Bill Cox (bill@rtl.cygnus.com)
10848
10849 * ch-typeck.c (chill_give_type_to_expr): fix typo. Reorder to
10850 avoid checking types on CONSTRUCTORs. Correct typo.
10851 * ch-expr.c (expand_assignment_to_varying_array): use proper
10852 expansion function expand_expr_stmt.
10853 * ch-expr.c (expand_chill_assignment): only convert VARYING
10854 array refs or RHS.
10855
10856Wed Jan 27 15:32:21 1993 Bill Cox (bill@rtl.cygnus.com)
10857
10858 * ch-actions.c (build_chill_length, build_chill_lower,
10859 build_chill_upper): accept parameters, too.
10860 * ch-expr.c (chill_expand_assignment): decipher ARRAY_REF on RHS.
10861 * ch-typeck.c (chill_give_type_to_expr, build_chill_array_ref):
10862 assign proper type to ARRAY_REF expression.
10863
10864Wed Jan 27 09:51:46 1993 Bill Cox (bill@rtl.cygnus.com)
10865
10866 * ch-actions.c (build_chill_binary_op): delete unused variable,
10867 get set's base type from TYPE_DOMAIN rather than TREE_TYPE.
10868 * ch-actions.c (build_chill_repetition_op): handle differently-built
10869 declaration trees.
10870 * ch-loop.c (begin_for_set): adapt to new powerset declaration tree.
10871 * ch-typeck.c (chill_give_type_to_expr): give type to constructor
10872
10873Tue Jan 26 11:32:38 1993 Bill Cox (bill@rtl.cygnus.com)
10874
10875 * ch-parse.y (ifaction): re-add lost call to expand_end_code().
10876 * ch-parse.y (siezelist, grantlist): use 'name' rather than
10877 'checked_name'. It makes no sense to check sieze/grant names
10878 for WITH expansion.
10879 * ch-expr.c (chill_expand_expr): delete unnecessary (and
10880 seg-fault-causing) code.
10881 * ch-expr.c (chill_expand_assignment): make test for varying array
10882 on the LHS more specific.
10883 * ch-actions.c (invalid_left_operand, invalid_right_operand): error
10884 for use of MOD, REM operators.
10885 * ch-actions.c (build_chill_repetition_op): error for bit-field
10886 initializers (which will get handled in the lexer).
10887
10888Mon Jan 25 17:26:47 1993 Bill Cox (bill@rtl.cygnus.com)
10889
10890 * ch-typeck.c (build_chill_array_ref),
10891 * ch-expr.c (chill_expand_expr, chill_expand_assignment):
10892 translate varying array ref into ARRAY_REF, defer processing
10893 until chill_expand_expr. Update array's length field in
10894 new function expand_assignment_to_varying_array.
10895
10896Mon Jan 25 14:57:24 1993 Bill Cox (bill@rtl.cygnus.com)
10897
10898 * ch-parse.y (mode2): eliminate old method to mark varying arrays.
10899 * ch-expr.c (expand_varying_length_assignment): repair scaling of
10900 RHS expression.
10901
10902Mon Jan 25 11:44:21 1993 Per Bothner (bothner@cygnus.com)
10903
10904 * ch-parse.y: Allow character and bitstring literals
10905 in string repetition operator.
10906
10907Sat Jan 23 14:18:11 1993 Per Bothner (bothner@cygnus.com)
10908
10909 * ch-parse.y (primval): Re-recognize '(' expr ')'.
10910 * ch-parse.y (name): Remove call to check_identifier -
10911 this is not appropriate in certain contexts.
10912 * ch-parse.y (checked_name): Same as <name>, but *with* the
10913 call to check_identifier. Use where appropriate.
10914 * ch-parse.y (operand5): Only allow string repetition of
10915 string literals, because otherwise you get a conflict.
10916
10917Thu Jan 21 16:32:39 1993 Bill Cox (bill@rtl.cygnus.com)
10918
10919 * ch-actions.c, ch-parse.y, ch-process.c, ch-tree.h: sync modules,
10920 continue start_process development.
10921
10922Thu Jan 21 13:51:06 1993 Bill Cox (bill@rtl.cygnus.com)
10923
10924 * ch-decl.c (do_decl): fix handling of multi-char initializer.
10925
10926Thu Jan 21 13:14:00 1993 Bill Cox (bill@rtl.cygnus.com)
10927
10928 * .cvsignore: add CHILL files to be ignored
10929
10930Thu Jan 21 07:38:57 1993 Bill Cox (bill@cygnus.com)
10931
10932 * ch-parse.y: rough draft of start_process handling.
10933
10934Wed Jan 20 17:11:05 1993 Bill Cox (bill@rtl.cygnus.com)
10935
10936 * ch-inout.c: fix mismatch with readtext proto in ch-tree.h.
10937
10938Wed Jan 20 16:48:13 1993 Bill Cox (bill@rtl.cygnus.com)
10939
10940 * ch-tree.h, ch-process.c, ch-inout.c, Makefile.in:
10941 create new modules for I/O and process-related stuff.
10942 * ch-actions.c: move routines to new modules.
10943 call xmalloc, not malloc.
10944 * ch-lang.c (build_chill_struct_type): add parameter checking.
10945 * ch-lex.l (init_lex): remove redundant cast.
10946
10947Tue Jan 19 16:33:56 1993 Bill Cox (bill@rtl.cygnus.com)
10948
10949 * ch-parse.y (operand5): delete unnecessary argument to
10950 build_chill_unary_op. Add rule for string repetition.
10951 * ch-parse.y (primval): delete string repetition attempt.
10952 * ch-parse.y (start_process): rough draft of action.
10953 * ch-actions.c (build_repetition_op): add it
10954 * ch-actions.c (build_chill_binary_op): handle constant arguments
10955 of CONCAT_EXPR, combine into a single string if possible.
10956 * ch-actions.c (invalid_left_operand, invalid_right_operand):
10957 allow single character arguments to CONCAT_EXPR.
10958 * ch-tree.h: add prototype for build_repetition_op
10959
10960Tue Jan 19 15:03:29 1993 Fred Fish (fnf@cygnus.com)
10961
10962 * dwarfout.c (output_type): Add hack that matches the one in the
10963 chill front end to distinquish between true string types and
10964 arrays of char, since it uses ARRAY_TYPE for both, rather than
10965 trying to use the existing support for STRING_TYPE.
10966
10967Tue Jan 19 13:54:27 1993 Bill Cox (bill@rtl.cygnus.com)
10968
10969 * ch-tree.h: added prototypes for all non-static CHILL functions.
10970 * ch-actions.c (lang_init): declare builtin type for start_process
10971 * ch-actions.c (build_chill_binary_op): combine string literals when
10972 concatenated.
10973 * ch-actions.c (formpars2struct): added for later start_process
10974 implementation.
10975 * ch-actions.h: remove un-needed function declarations.
10976 * ch-decl.c: extern cleanup.
10977 * ch-expr.c (chill_expand_array_assignment): add missing first
10978 parameter to cond_exception call.
10979 * ch-lex.l: make build_chill_string non-static.
10980
10981Mon Jan 18 19:15:08 1993 Bill Cox (bill@rtl.cygnus.com)
10982
10983 * ch-decl.c (do_decls): get varying array length initialized.
10984
10985Mon Jan 18 09:51:43 1993 Bill Cox (bill@rtl.cygnus.com)
10986
10987 * ch-expr.c (chill_expand_array_assignment): fix the copy length
10988 in the memcpy call (it was just 4 bytes always). Simplify some
10989 code, also.
10990
10991Mon Jan 18 08:24:21 1993 Bill Cox (bill@rtl.cygnus.com)
10992
10993 * ch-decl.c (do_decls): change CH_VARYING_TYPE_P to function.
10994
10995Mon Jan 18 08:00:11 1993 Bill Cox (bill@rtl.cygnus.com)
10996
10997 * ch-lex.l, ch-parse.y: make BOOLS synonymous with BIT and
10998 CHARS synonymous with CHAR, in the lexer. Delete unnecessary
10999 'bools' non-terminal.
11000 * ch-parse.y (assignaction): add lhs version of length() function
11001 * ch-actions.c: add builtin_concat function, lots of support for
11002 CONCAT_EXPR.
11003 * ch-actions.c, ch-tree.h: make a function out of former
11004 macro CH_VARYING_TYPE_P
11005 * ch-expr.c: add expand_varying_length_assignment ().
11006 * ch-expr.c (chill_expand_expr): add CONCAT_EXPR support.
11007 * ch-expr.c (chill_expand_array_assignment): call emit_library_call
11008 rather than build_rts_call, to eliminate a recursion problem.
11009 * ch-lang.c: eliminate 'sorry' about varying arrays.
11010 * ch-typeck.c (validate_varying_array_ref): re-enable constant
11011 index validation.
11012
11013Sun Jan 17 18:20:04 1993 Per Bothner (bothner@cygnus.com)
11014
11015 * ch-grant.c, ch-lex.l: Major simplification of how
11016 seizes are done and how seizefiles are read.
11017 * ch-actions.h: Remove declaration of check_seize().
11018 * ch-decl.c (do_decls): Handle READONLY types.
11019 * ch-parse.y (mode2): Allow REF to be followed by any mode.
11020 * ch-parse.y (mode2): Allow literal expressions in string length.
11021 * ch-parse.y (tupleelement): Allow elemenst to be untyped_expr.
11022 * ch-parse.y (seizestatement, etc): Call chill_seize each
11023 time something is seized, rather than building a list first.
11024
11025Sat Jan 16 12:24:44 1993 Bill Cox (bill@rtl.cygnus.com)
11026
11027 * chill.gperf, ch-hash.h: add Wilfried's tokens
11028 * ch-lex.l: fold in Wilfried's changes. Some tokens
11029 weren't getting recognized, and INSTANCE wasn't correctly
11030 reported to ch-parse.y as a PREDEF_MODEDCL.
11031
11032Thu Jan 14 15:02:39 1993 Per Bothner (bothner@cygnus.com)
11033
11034 * ch-tree.h (CH_CHARS_TYPE_P): New macro. Add comment
11035 explaining difference between char strings and char arrays.
11036 * ch-tree.h (CH_STRING_TYPE_P): Add FIXME re bitstrings.
11037 * ch-tree.c (build_string_type): Add comment.
11038
11039Wed Jan 13 15:19:15 1993 Per Bothner (bothner@cygnus.com)
11040
11041 * calls.c, expr.c, function.c, stmt.c, varasm.c: Set
11042 MEM_IN_STRUCT_P for SET_TYPE where it is set for other aggregates
11043 * expmed.c (store_bit_field, extract_field_field): Undo
11044 yesterday's removal of MEM_IN_STRUCT_P "sanity test".
11045
11046 * ch-decl.c (do_decls): Put back support for initializing.
11047 (Was accidentally removed in Jan 8 change.)
11048
11049Wed Jan 13 14:13:11 1993 Jim Wilson (wilson@sphagnum.cygnus.com)
11050
11051 * ch-lex.l (convert_bitstring): Correct typo in cast.
11052
11053Tue Jan 12 20:29:08 1993 Per Bothner (bothner@cygnus.com)
11054
11055 * ch-lex.l (convert_bitstring): Change to pack bits
11056 within words, not bytes, and to use machine bit-order
11057 (not always little-endian).
11058 * ch-parse.y: Allow BOOLS(n) as well as BITS(n).
11059 Use build_bitstring_type, not build_string_type.
11060 * expmed.c (store_bit_field, extract_field_field): Remove
11061 "sanity test" that prevents use with SET_TYPE.
11062 * tree.c (build_bitstring_type, build_powerset_type,
11063 build_string_type): Move (so far) Chill-specific functions to ...
11064 * ch-tree.c: ... new file.
11065 * ch-tree.c (build_powerset_type, build_bitstring_type): Re-write.
11066 * ch-typeck.c (build_chill_array_ref): Handle bit strings better.
11067 * ch-typeck.c (chill_expand_tuple): Kludge to handle SET_TYPE.
11068 * Makefile.in (CHILL_OBJS): Add ch-tree.o.
11069 * ch-decl.c (do_decls): Call expand_decl.
11070 * stor-layout.c (layout_type): Handle SET_TYPE.
11071 * expr.c (expand_expr): Add FIXMEs about IN_EXPR.
11072 * ch-actions.c (lang_init): Add type and decl for new
11073 function __builtin_setbitinstring.
11074 * ch-expr.c (chill_expand_assignmment): Special-case handling
11075 for BIT_FIELD_REF with non-constant bit position (which is
11076 not yet handled by expand_expr).
11077 * ch-convert.c (convert): Handle SET_TYPE.
11078
11079Tue Jan 12 12:49:13 1993 Fred Fish (fnf@cygnus.com)
11080
11081 * chill: If -B arg is given, use to find gcc.
11082
11083Fri Jan 8 20:21:43 1993 Bill Cox (bill@rtl.cygnus.com)
11084
11085 * ch-decl.c: revert to avoid seg fault
11086
11087Fri Jan 8 14:20:42 1993 Bill Cox (bill@rtl.cygnus.com)
11088
11089 * ch-decl.c: fix storage into correct offset in varying array.
11090 * ch-actions.c: define sizetype for everyone, use it to build
11091 varying structure.
11092 * ch-parse.y: tiny cleanup.
11093
11094Wed Jan 6 13:25:33 1993 Bill Cox (bill@cygnus.com)
11095
11096 * modules: use gdb rather than naked-gdb, to get opcodes
11097 in chill definition.
11098
11099Wed Jan 6 09:48:35 1993 Bill Cox (bill@cygnus.com)
11100
11101 * ch-typeck.c: add code to handle references to elements of VARYING
11102 arrays. Simplify chill_give_type_to_expr. Add rough draft of run-
11103 time index checking for VARYING arrays (under #if 0).
11104 * ch-actions.c: new function cond_type_range_exception & calls.
11105 New function cond_range_exception, for more general range-checking.
11106 New function build_varying_struct, to do just that. Use the macros
11107 for the special varying field names.
11108 * ch-tree.h: define macros for varying field names.
11109 * ch-expr.c: use macros for varying struct names. Simplify
11110 chill_expand_array_assignment.
11111 * ch-parse.y: assure that build_varying_struct is called everywhere
11112 that it applies. Add a line-number note before the body of a DO
11113 loop.
11114 * ch-loop.c: #ifdef out creation of new scope for DO loop body.
11115
11116Tue Jan 5 17:26:14 1993 Bill Cox (bill@cygnus.com)
11117
11118 * c-decl.c: correct order of declaration of start_decl params,
11119 for readability.
11120
11121Tue Jan 5 15:59:36 1993 Per Bothner (bothner@cygnus.com)
11122
11123 * ch-grant.c (still_start_module_code), ch-parse.y (procedure):
11124 Move shared code into ...
11125 * ch-decl.c (start_chill_function): ... here.
11126 * ch-decl.c (start_chill_function): Add missing call to
11127 expand_start_bindings.
11128 * ch-decl.c (finish_chill_function): Add missing call to
11129 expand_end_bindings.
11130
11131Tue Jan 5 01:00:47 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11132
11133 * Makefile.in: took out the rest of the runtime support
11134
11135Mon Jan 4 18:02:06 1993 Bill Cox (bill@cygnus.com)
11136
11137 * ch-expr.c: make chill_expand_array_assignment not static.
11138
11139Mon Jan 4 17:57:48 1993 Per Bothner (bothner@cygnus.com)
11140
11141 * ch-grant.c, ch-parse.y: Remove all code for explicitly
11142 calling initializer functions. This is not needed, since we
11143 use the same mechanism used for C++ static constructors.
11144 * ch-grant.c (chill_start_module_code): Make sure the
11145 init_name starts with the magic string also used for C++
11146 initializers. Also, don't embed the file name in the name,
11147 just use the module name.
11148 * ch-grant.c (chill_finish_module_code): Now that the
11149 initializer name follows the standard 'collect' convention,
11150 don't need to call assembler_constructor_alias, but can
11151 use the standard assemble_constructor instead.
11152 * varasm.c (assemble_constructor_alias): Remove no-longer-
11153 needed function.
11154 * ch-parse.y: Move code that is common to the beginning of
11155 all functions to a new macro INIT_ACTION.
11156 Make sure INIT_ACTION is also done for callaction, fixing a bug.
11157 * ch-parse.y (INIT_ACTION): Do chill_start_module_code()
11158 before emit_line_note(), not after.
11159
11160Mon Jan 4 11:43:12 1993 Bill Cox (bill@cygnus.com)
11161
11162 * ch-parse.y: restore requirement for :upper-bound in array decl.
11163 * ch-actions.c: enhance upper, lower, length functions for VARYING.
11164
11165Mon Jan 4 09:28:44 1993 Bill Cox (bill@cygnus.com)
11166
11167 * ch-actions.c: fix NOT of boolean expr.
11168
11169Mon Jan 4 08:42:57 1993 Bill Cox (bill@cygnus.com)
11170
11171 * ch-actions.c: provide range-checking function
11172 * ch-lex.l: better compiler-directive error messages,
11173 allow underscores in exponents
11174 * ch-loop.c: prevent passing NULL ptr to printf
11175
11176Sun Jan 3 11:57:13 1993 Bill Cox (bill@cygnus.com)
11177
11178 * ch-typeck.c: correct & enable array index range-checking
11179
11180Sun Jan 3 11:36:39 1993 Bill Cox (bill@cygnus.com)
11181
11182 * ch-parse.y: define IGNORED_DIRECTIVE
11183 * ch-typeck.c: subtract array's lower domain value, even if
11184 index expression is constant.
11185
11186Sat Jan 2 23:05:14 1993 Fred Fish (fnf@cygnus.com)
11187
11188 * ch-lex.l (convert_float): Fix misspelling in error message.
11189
11190Sat Jan 2 16:02:16 1993 Per Bothner (bothner@rtl.cygnus.com)
11191
11192 * Makefile.in: Took out chill-runtime support.
11193 Chill run times are now in ../chillrt, not ./chillrt.p
11194
11195Sat Jan 2 15:04:13 1993 Bill Cox (bill@cygnus.com)
11196
11197 * ch-hash.h, chill.gperf: cleanup. fewer keywords seen by ch-parse.y.
11198
11199Sat Jan 2 13:27:49 1993 Per Bothner (bothner@rtl.cygnus.com)
11200
11201 * ch-lex.l (check_newline): Use the orginal versions (derived
11202 from the C code, not the simplified, special-case version).
11203 Also, fix that version of check_newline to not call yylex()
11204 recursively.
11205 * ch-lex.l (yy_input): Call check_newline to handle
11206 newlines and check for # directives.
11207 * ch-lex.l (syntax): Don't recognize #-directives; these
11208 are now handled by check_newline.
11209 * ch-actions.c (lang_init): Call the modified version of
11210 check_newline(). Do this at the *after* we've initialized
11211 standard types, so this can be done while lineno is still 0.
11212
11213Sat Jan 2 10:57:20 1993 Bill Cox (bill@cygnus.com)
11214
11215 * ch-hash.h, chill.gperf: add remaining reserved words.
11216
11217Sat Jan 2 09:59:55 1993 Bill Cox (bill@cygnus.com)
11218
11219 * ch-tree.h, ch-parse.y, ch-lex.l: add remaining reserved words,
11220 names for exceptions
11221
11222Fri Jan 1 12:30:31 1993 Fred Fish (fnf@cygnus.com)
11223
11224 * ch-tree.h (JOINER): Define joiner character the same way
11225 C++ defines it.
11226 * ch-grant.c (chill_start_module_code): Use JOINER character
11227 to implement name mangling for the initializer function name.
11228 Algorithm is designed to be simple, distinct from C++ mangled
11229 symbols, and easy to convert to demangled form.
11230
11231Thu Dec 31 10:30:51 1992 Bill Cox (bill@rtl.cygnus.com)
11232
11233 * ch-expr.c: make array assignments work with indirect refs.
11234 * ch-actions.c: prepare for array parameter handling.
11235 * ch-loop.c, ch-parse.y, ch-tree.def, ch-typeck.c: clean up.
11236
11237Thu Dec 31 15:29:20 1992 Per Bothner (bothner@rtl.cygnus.com)
11238
11239 * ch-lex.l (yy_input): Re-write to return more than one
11240 character at a time (execpt when reading seize-files).
11241 Don't increment lineno until we start reading the next line.
11242 This fixes some off-by-one errors in lineno.
11243
11244Wed Dec 30 16:15:23 1992 Per Bothner (bothner@rtl.cygnus.com)
11245
11246 * ch-convert.c: Assume use of new common.c.
11247 * ch-convert.c (convert_to_reference, convert_from_reference):
11248 New routines, to handle loc-identity declared variables and
11249 LOC parameters (both of which are implemented as references).
11250 * ch-lang.c (convert_to_boolean, convert_to_char): Move to
11251 ch-convert.c, where they would seem to belong.
11252 * ch-convert.c (convert): New function, since we no longer
11253 link in c-convert.c.
11254 * ch-expr.c (chill_expand_assignment): Handle by calling
11255 convert() instead of chill_comptypes().
11256 Also handle the LHS being a reference.
11257 * ch-parse.y: Add a procedure call as an action.
11258 * ch-parse.y (locdec, optlocinit): Move handling of
11259 loc-identity declarations from optlocinit to locdec
11260 - and add working semantics for it.
11261 * ch-parse.y (seizestatement, visibilty_stmt): Simplify.
11262 * ch-parse.y (grantstatement etc): Don't bother making list.
11263 * ch-lex.l: #include <sys/types.h> before <sys/stat.h>.
11264
11265Wed Dec 30 16:06:55 1992 Bill Cox (bill@rtl.cygnus.com)
11266
11267 * ch-parse.y, ch-expr.c: add support for declaring & assigning
11268 VARYING arrays.
11269 * ch-typeck.c: allow VARYING structures in assign_type_to_expr.
11270
11271Tue Dec 29 15:28:48 1992 Bill Cox (bill@cygnus.com)
11272
11273 * ch-actions.c: implement expressions of arrays of char,
11274 ( concatenation, relationals ), correct type of code parameters
11275 * ch-expr.c: correct type of code parameters
11276
11277Tue Dec 29 11:16:19 1992 Bill Cox (bill@cygnus.com)
11278
11279 * ch-decl.c: cleanup.
11280 * ch-parse.y: put emit_line_note() calls in lotsa places,
11281 per Fred's request; be sure that statements get counted also.
11282 * ch-lex.l: standardize function headers.
11283
11284Tue Dec 29 10:41:56 1992 Fred Fish (fnf@cygnus.com)
11285
11286 * ch-decl.c (start_chill_function): Always return 1, rather
11287 than a random value.
11288 * ch-lex.l (check_newline): Add a version for chill that
11289 just snarfs the right value for main_input_filename out of
11290 the first line of the input file, without disturbing the
11291 lexer state or requiring it's assistance.
11292 * ch-actions.c (lang_init): Call check_newline, like the
11293 other language frontends, to get main_input_filename set
11294 from first line of input file.
11295
11296Mon Dec 28 18:49:01 1992 Bill Cox (bill@cygnus.com)
11297
11298 * ch-parse.y: clean up conflicts. The remaining one is
11299 harmless.
11300
11301Mon Dec 28 17:28:40 1992 Bill Cox (bill@cygnus.com)
11302
11303 * ch-parse.y, ch-lex.l, ch-actions.c: add stubs for I/O,
11304 clean up some parser conflicts.
11305
11306Mon Dec 28 15:00:20 1992 Bill Cox (bill@cygnus.com)
11307
11308 * ch-parse.y, ch-lex.l: add keywords and parsing for most of
11309 CHILL I/O
11310
11311Sat Dec 26 20:48:23 1992 Fred Fish (fnf@cygnus.com)
11312
11313 * chillrt/chillrt0.c: Oops, SVR4 doesn't need leading '_'
11314 on build_exceptions.
11315
11316Sat Dec 26 11:00:36 1992 Fred Fish (fnf@cygnus.com)
11317
11318 * ch-grant.c (chill_finish_module_code): Call
11319 assemble_constructor_alias rather than assemble_constructor.
11320 * varasm.c (assemble_constructor_alias): New function,
11321 like assemble_constructor, but also handles the case where
11322 ASM_OUTPUT_CONSTRUCTOR is not defined and GNU ld is not
11323 being used. Emits a symbol table alias name with the correct
11324 prefix for collect to find and add to the __CTOR_LIST__.
11325 * chillrt/chillrt0.c: Build on previous hack that gets
11326 _build_exceptions into the __CTOR_LIST__, to make it work
11327 for both the non GNU-ld case and for the SVR4 case.
11328
11329Tue Dec 22 18:24:55 1992 Bill Cox (bill@cygnus.com)
11330
11331 * ch-loop.c: clean up location enumeration - one more
11332 pass to do.
11333
11334Tue Dec 22 16:31:48 1992 Bill Cox (bill@cygnus.com)
11335
11336 * ch-loop.c: Working version of location enumeration loop
11337
11338Tue Dec 22 14:42:14 1992 Bill Cox (bill@cygnus.com)
11339
11340 * ch-lex.l: readability cleanup
11341
11342Mon Dec 21 14:58:39 1992 Bill Cox (bill@cygnus.com)
11343
11344 * ch-parse.y, c-decl.c: Add Jukka's Pascal WITH code.
11345 ch-loop.c: rough draft of location enumeration
11346 ch-lex.l, ch-expr.c, ch-decl.c: minor cleanup
11347 ch-actions.c: finish making pred() and succ() work.
11348
11349Mon Dec 21 10:04:35 1992 Bill Cox (bill@cygnus.com)
11350
11351 * ch-actions.c: allow pred(char) and succ(char).
11352
11353Sun Dec 20 16:04:28 1992 Bill Cox (bill@cygnus.com)
11354
11355 * ch-expr.c, ch-actions.c, ch-parse.y, ch-loop.c,
11356 c-expr.c: make DO WITH work.
11357
11358Sun Dec 20 12:22:53 1992 Bill Cox (bill@cygnus.com)
11359
11360 * ch-loop.c, ch-actions.c, ch-typeck.c: powerset loops
11361 now work
11362
11363Sat Dec 19 14:20:23 1992 Per Bothner (bothner@cygnus.com)
11364
11365 * c-typeck.c (process_init_constructor): Add warning if
11366 there is a duplicate default initializer element.
11367 * ch-typeck.c (chill_give_type_to_expr): New function,
11368 to handle coercion of an expression to context-given type,
11369 Takes care of untyped tuples, and case expressions.
11370 * ch-decl.c (do_decls), ch-typeck.c (chill_expand_return,
11371 chill_expand_result), ch-parse.y <assignaction>:
11372 Use chill_give_type_to_expr().
11373 * ch-typeck.c (chill_handle_case_label): New parameter list,
11374 to handle the (new) conventions for <case_label>, including
11375 default elements and ranges.
11376 * ch-parse.y <expanded_case_label>, ch-typeck.c
11377 (expand_case_expr): Use new version of chill_handle_case_label.
11378 * ch-decl.c (push_syndecls): Change parameters: Instead of
11379 TREE_LIST representing a compete <synonym definition statement>,
11380 just pass the parts of a single <synonym definition> as 3
11381 different parameters. Also, use chill_give_type_to_expr(),
11382 to handle untyped tuples in the RHS.
11383 * ch-parse.y <syndeclist, syndef>: Don't bother trying to construct
11384 a tree - just call push_syndecls() on each <synonum_definition>
11385 as we see it.
11386 * ch-parse.y (exprlist_get_single): Remove; no longer needed.
11387 * ch-parse.y: Handle <tuple> without mode name diferently from
11388 <tuple> with mode name. The latter is a <primval> that can be
11389 in most contexts, but if the <mode name> is missing, the <tuple>
11390 is only allowed in certain contexts. Use the new non-terminal
11391 <untyped_expr> to indicate those contexts where untyped tuples
11392 (and case expressions) are valid because the expression gets a
11393 type from its context (such as the RHS of an assignment).
11394 Use chill_give_type_to_expr in those contexts.
11395
11396Sat Dec 19 14:01:26 1992 Bill Cox (bill@cygnus.com)
11397
11398 * ch-actions.c, ch-loop.c, Makefile.in: looping stuff.
11399
11400Sat Dec 19 10:16:20 1992 Bill Cox (bill@cygnus.com)
11401
11402 * ch-parse.y: clean up warning messages from byacc. bison
11403 still complains thrice.
11404
11405Fri Dec 18 12:33:29 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11406
11407 * ch-actions.c (maybe_chill_comptypes): Delete unused
11408 function.
11409 (chill_comptypes): Add new parameter ERRSTR. All callers
11410 changed.
11411 (build_chill_binary_op): Fix indentation to match GNU coding
11412 style.
11413
11414Fri Dec 18 08:18:13 1992 Bill Cox (bill@rtl.cygnus.com)
11415
11416 * ch-parse.y, ch-expr.c, ch-actions.c, expr.c: major
11417 cleanup of expression and assignment handling.
11418
11419Thu Dec 17 10:16:32 1992 Bill Cox (bill@cygnus.com)
11420
11421 * ch-parse.y: standardize indentation after c-parse.y
11422
11423Wed Dec 16 15:22:12 1992 Per Bothner (bothner@cygnus.com)
11424
11425 * c-typeck.c (process_init_constructor): Add support for
11426 a default initializer element.
11427 * ch-parse.y: Implement default elements for tuples
11428 (as in '(else):' and '(*):' ).
11429
11430 * ch-parse.y: Previous change to dis-ambiguate case-labels
11431 seems to have allowed getting rid of all of the expr_or_list hair.
11432 * ch-decl.c (do_decls): Undo Tiemann's change to "Handle
11433 initialization of multiple variables by a tuple" - the
11434 idea is bogus.
11435
11436Wed Dec 16 11:17:53 1992 Bill Cox (bill@cygnus.com)
11437
11438 * ch-parse.y: complete re-write of DO statement handling.
11439 now operational, except WITH is stubbed out. Improved
11440 syntax error message.
11441 * ch-actions.c: DO support: high_domain_value(), low_domain_value ().
11442 * ch-expr.c: fixes to IN_EXPR handling.
11443
11444Tue Dec 15 17:15:13 1992 Jim Wilson (wilson@sphagnum.cygnus.com)
11445
11446 * ch-grant.c: Add casts to alloca return to avoid compiler warning.
11447 * ch-lex.c: Likewise.
11448
11449 * Makefile.in (ch-lex.c): Delete incorrect free declaration added
11450 by flex to avoid compiler error.
11451
11452Tue Dec 15 08:41:08 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11453
11454 * ch-decl.c (do_decls): Handle initialization of multiple
11455 variables by a tuple.
11456
11457 * ch-decl.c (do_decls,start_chill_function): Make DECL public
11458 if we're doing a GRANT ALL at top level.
11459
11460 * ch-lang.c (build_range_type): Deal with typecast to CHAR in
11461 range expression.
11462
11463 * c-typeck.c (digest_init): SET_TYPE is not a scalar type.
11464 BOOLEAN_TYPE and CHAR_TYPE are scalar types.
11465
11466Mon Dec 14 14:58:32 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11467
11468 * ch-lex.l (get_chill_{linenumber,filename}): New functions.
11469 (convert_number): Use LONG_TYPE_NODE instead of INTEGER_TYPE_NODE.
11470
11471Mon Dec 14 13:36:44 1992 Bill Cox (bill@cygnus.com)
11472
11473 * expr.c: install and test newer Pascal IN_EXPR code,
11474 but don't activate it - it's very verbose.
11475
11476Mon Dec 14 00:22:49 1992 Fred Fish (fnf@cygnus.com)
11477
11478 * Makefile.in (LANGUAGES): Add chill.
11479 * Makefile.in (CHILL_INSTALL_NAME, CHILL_CROSS_NAME):
11480 New macros for chill native and cross installation names.
11481 * Makefile.in (COMPILERS): Add cc1chill.
11482 * Makefile.in (CHILL_OBJS): New macro, chill objects.
11483 * Makefile.in (CHILL_TREE_H): New macro, chill headers.
11484 * Makefile.in (CHILL, chill, cc1chill, chill-runtime, libchill.a,
11485 sublibchill.a, ch-parse.o, ch-parse.c ch-*.o, install-libchill,
11486 install-librmt): New targets.
11487 * Makefile.in (install-native): Add install-libchill,
11488 install-librmt.
11489
11490Sun Dec 13 15:21:06 1992 Bill Cox (bill@cygnus.com)
11491
11492 * ch-actions.c, ch-expr.c: Fix the pop-count in library calls.
11493
11494Sun Dec 13 14:07:32 1992 Bill Cox (bill@cygnus.com)
11495
11496 * ch-actions.c: fix unary operations, modulus ops,
11497 (discovered after extending regression tests).
11498
11499Sun Dec 13 12:16:32 1992 Bill Cox (bill@cygnus.com)
11500
11501 * resync with Michael and Wilfried
11502
11503Sun Dec 13 09:11:25 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11504
11505 * ch-parse.y (output_constant): Fixed some whitespace
11506 problems.
11507 * ch-tree.h: Add declarations for new chill functions that
11508 have been implemented but not (yet) declared.
11509
11510Sat Dec 12 00:17:23 1992 Per Bothner (bothner@cygnus.com)
11511
11512 * c-typeck.c (process_init_constructor): Warn about duplicate
11513 labels for labelled initializer elements.
11514 * ch-lex.l (various operator tokens, such as "+"): Don't
11515 set yylval.code to a TREE_CODE; this is better done in parser.
11516 * ch-parse.y: Some work with case labels and tuples.
11517 Get literal range as tuple (and case) labels working.
11518 Fix some problems introduced by recent grammar overhaul.
11519
11520Fri Dec 11 13:28:48 1992 Bill Cox (bill@cygnus.com)
11521
11522 * ch-actions.c, ch-parse.y ch-tree.h ch-expr.c, ch-typeck.c:
11523 got long, real expressions working. We can also call a func-
11524 tion and use its return value.
11525
11526Thu Dec 10 14:45:17 1992 Per Bothner (bothner@cygnus.com)
11527
11528 * ch-parse.y: Major change to remove or at least identify
11529 parser ambiguities. One result: We now allow actions that
11530 start with '(', as required by teh Blue Book. This does break
11531 some things; look for FIXME for things that need work.
11532 * ch-typeck.c (chill_expand_case_expr): We need an extra
11533 level of looping to (in the future) support <case label
11534 specification>s with more than one <case label list>.
11535
11536Thu Dec 10 09:21:41 1992 Bill Cox (bill@cygnus.com)
11537
11538 * ch-actions.c, ch-expr.c: Implement string assignments
11539 and relationals.
11540
11541Thu Dec 10 07:17:35 1992 Bill Cox (bill@cygnus.com)
11542
11543 * ch-decl.c, ch-typeck.c: rest of previous commit.
11544
11545Wed Dec 9 18:26:29 1992 Bill Cox (bill@cygnus.com)
11546
11547 * ch-parse.y, ch-actions.c, ch-expr.c: redo type checking.
11548 regression test and fix bit arrays and set ops.
11549
11550Mon Dec 7 14:57:46 1992 Bill Cox (bill@cygnus.com)
11551
11552 * ch-actions.c: implement crude relationals between
11553 non-exotic operands, such as integers.
11554
11555Mon Dec 7 10:42:35 1992 Bill Cox (bill@cygnus.com)
11556
11557 * ch-actions.c: implement relational, logic operations
11558 on arrays of BOOLs.
11559
11560Mon Dec 7 08:55:20 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11561
11562 * ch-actions.c (lang_init): Set LINENO to 1 at beginning to
11563 indicate we are done with initialization.
11564
11565 * ch-decl.c (do_decls): Set TREE_PUBLIC if we are doing a
11566 `grant all'.
11567 (start_chill_function): Ditto.
11568
11569 * ch-lex.c (convert_bitstring): Set TREE_CONSTANT.
11570 (compiler_directive): Don't confuse compiler directives with
11571 equality comparison operators.
11572
11573 * ch-parse.y: Clear CURRENT_LOCNAMELIST after calling do_decls.
11574
11575Sun Dec 6 13:12:32 1992 Bill Cox (bill@cygnus.com)
11576
11577 * ch-actions.c: repair set inequality code.
11578
11579Sun Dec 6 11:15:59 1992 Bill Cox (bill@cygnus.com)
11580
11581 * ch-parse.y, ch-actions.c, ch-expr.c: Implement set-oriented
11582 relational expressions, including (<, <=, =, /=, >, >=, IN).
11583
11584Fri Dec 4 13:54:58 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
11585
11586 * tree.def: Move CARD_EXPR and SET_LE_EXPR back down with the other
11587 Pascal-required ones, since C++ no longer needs them. When
11588 Chill's public, a comment can be added to the effect that
11589 SET_LE_EXPR is also used by Chill.
11590
11591Fri Dec 4 12:05:01 1992 Bill Cox (bill@cygnus.com)
11592
11593 * Restore CARD_EXPR and SET_LE_EXPR to tree.def.
11594
11595Fri Dec 4 10:23:10 1992 Bill Cox (bill@cygnus.com)
11596 * Get *.def and *.c in sync.
11597
11598Fri Dec 4 06:48:41 1992 Fred Fish (fnf@cygnus.com)
11599
11600 * ch-actions.c (lang_init): Change types "long" and
11601 "ulong" from 16 bits to 32.
11602 * dwarfout.c (fundamental_type_code): Use FT_signed_char
11603 for type "byte" and FT_unsigned_char for type "ubyte".
11604
11605Thu Dec 3 15:13:24 1992 Bill Cox (bill@cygnus.com)
11606 * ch-actions.c, ch-tree.def, ch-parse.y: preparation
11607 for powerset expressions.
11608
11609Tue Dec 2 17:02:30 1992 Bill Cox (bill@cygnus.com)
11610 * ch-actions.c: sketch code for exceptions generated
11611 by builtin routines.
11612
11613Tue Dec 2 12:49:50 1992 Bill Cox (bill@cygnus.com)
11614 * ch-actions.c, ch-parse.y: add support for lower()
11615 upper() builtin functions.
11616
11617Wed Dec 2 12:03:30 1992 Fred Fish (fnf@cygnus.com)
11618
11619 * Makefile.in (chillrt0.o, install-chillrt0): Remove.
11620 * chill (library): Remove chillrt0.o.
11621 * chillrt/Makefile: Remove maintenance of chillrt0.o as a
11622 separate file. Now gets put in libchill.a.
11623
11624Tue Dec 2 10:100:20 1992 Bill Cox (bill@cygnus.com)
11625
11626 * ch-parse.y, ch-actions.c: add support for num()
11627 builtin function.
11628
11629Wed Dec 2 09:52:06 1992 Michael Tiemann (tiemann@rtl.cygnus.com)
11630
11631 * ch-decl.c (fixup_unknown_type): New function.
11632 (push_newmode,push_synmode): Call `fixup_unknown_type' when we
11633 see a declaration that uses `unknown_type_node'. FIXME.
11634
11635 * ch-grant.c (decode_constant): New function.
11636 (decode_decl): Call `decode_constant' for CONST_DECLs.
11637
11638 * ch-lex.l (char action): Use ridpointers instead of
11639 lookup_name to get "char"'s declaration.
11640
11641 * ch-parse.y: Call `build_lang_decl' instead of `build_decl'
11642 when we need to build a TYPE_DECL.
11643
11644Tue Dec 2 09:44:05 1992 Bill Cox (bill@cygnus.com)
11645
11646 * ch-typeck.c: clean up a gcc warning with a forward
11647 declaration of build_string_type.
11648
11649Tue Dec 1 16:51:05 1992 Bill Cox (bill@cygnus.com)
11650
11651 * ch-actions.c: completely remove those builtin calls
11652 that are duplicated in c-decl.c
11653
11654Tue Dec 1 16:38:51 1992 Fred Fish (fnf@cygnus.com)
11655
11656 * ch-actions.c (lang_init): Ifdef out initializations for
11657 __builtin_abs and __builtin_fabs, since they are duplicates of
11658 initializations in c-decl.c, and trigger spurious warnings.
11659
11660Tue Dec 1 16:35:18 1992 Bill Cox (bill@cygnus.com)
11661
11662 * ch-parse.y: make size() work with a typename argument.
11663
11664Tue Dec 1 16:15:56 1992 Bill Cox (bill@cygnus.com)
11665
11666 * ch-parse.y, ch-lex.l, ch-actions.c: add builtin
11667 functions min, max, card.
11668
11669Tue Dec 1 12:35:56 1992 Bill Cox (bill@cygnus.com)
11670
11671 * ch-lex.l: fix char-type
11672
11673Tue Dec 1 11:10:56 1992 Bill Cox (bill@cygnus.com)
11674
11675 * ch-parse.y, ch-actions: added parsing and processing
11676 for upper, lower, and length built-ins.
11677
11678Tue Dec 1 09:40:49 1992 Fred Fish (fnf@cygnus.com)
11679
11680 * dwarf.h (LANG_CHILL): Add as GNU extension.
11681 * dwarfout.c (output_compile_unit_die): Test language_string and
11682 set LANG_CHILL if appropriate.
11683 * ch-parse.y (language_string): New for chill.
11684 * chillrt: Renamed directory chill to chillrt.
11685 * chill: Renamed chillsh to chill.
11686 * Makefile.in: Adjust for renamings.
11687 * chillrt/Makefile: Adjust for directory renaming.
11688
11689Mon Nov 30 17:35:33 1992 Fred Fish (fnf@cygnus.com)
11690
11691 * chillsh: New script frontend (ala g++), installed as "chill".
11692 Can't be called "chill.sh" because make tries to cat it into the
11693 "chill" directory. Can't be called just "chill" cause that's
11694 already there as a directory.
11695 * Makefile.in: Add rules to install chillsh as "chill".
11696 * chill/libchill.c: Temporarily ifdef out stuff that wants
11697 to conflict with i486/SVR4 runtime or wants to pull in librmt.a,
11698 which itself causes linkage to fail.
11699
11700Mon Nov 30 16:28:19 1992 Bill Cox (bill@cygnus.com)
11701
11702 * ch-lex.l: added keywords for TRUNC, ROUND, FLOAT, LFLOAT
11703 conversion routines.
11704 * ch-parse.y: added %tokens for TRUNC, ROUND, FLOAT, LFLOAT.
11705 Added production for SIZE(expr).
11706 * ch-actions.c: Add semantic routine chill_sizeof ().
11707
11708Mon Nov 30 16:20:40 1992 Per Bothner (bothner@cygnus.com)
11709
11710 * ch-lex.l, ch-parse.y: Translate token PFEIL into English ARROW.
11711 * ch-parse.y (op6): Remove handling of string repetition operator,
11712 until we can figure out a way to parse it correctly.
11713 * ch-parse.y (optmodename): New non-terminal.
11714 * ch-parse.y (tuple): Merge the two variants using optmodename.
11715 * ch-parse.y (location): Add semantic actions for
11716 dereferencing operator ->.
11717
11718Mon Nov 30 08:01:29 1992 Bill Cox (bill@cygnus.com)
11719
11720 * ch-actions.c: removed compile warning, better code for abs.
11721
11722 * ch-parse.y: add productions for builtin functions succ, pred,
11723 abs, and size. Add %tokens also. Sort %tokens alphabetically.
11724
11725 * ch-lex.l: add parsing for builtin function names, such as abs,
11726 pred, succ, etc. Put flex -a option into Makefile.in, so we can
11727 clean up the lexer soon.
11728
11729Tue Nov 24 14:18:48 1992 Per Bothner (bothner@rtl.cygnus.com)
11730
11731 * ch-typeck.c (chill_handle_case_label, chill_handle_case_default):
11732 New functions, for code common to CASE actions and expressions.
11733 * chill.y: Replace some code by calls to chill_handle_case_label
11734 and chill_handle_case_default.
11735 * ch-typeck.c (chill_expand_case_expr): Add semantics.
11736
11737 * tree.c: Change doing_chill_thang from extern to common.
11738
11739Mon Nov 23 18:34:22 1992 Per Bothner (bothner@rtl.cygnus.com)
11740
11741 * ch-tree.def: New CASE_EXPR type, for case expressions.
11742 * ch-expr.c (chill_expand_expr): Hook for CASE_EXPR.
11743 * ch-typeck.c (chill_expand_case_expr): New function.
11744 Placeholder to implement case expressions.
11745 * ch-typeck.c (chill_expand_result, chill_expand_return):
11746 Handle mode-unspecified tuples and case expressions in
11747 the context of RETURN and RESULT actions.
11748 * chill.y (assignaction): Handle case expressions in the
11749 context of the RHS of an assignment action.
11750 * chill.y (caseaction): Remove spurious duplicate OF in grammar.
11751 * chill.y: Handle labeled structure tuples.
11752 * chill.y: New rules to parse CASE expressions.
11753 * tree.c (build_function_types): Allow Chill functions
11754 to return arrays and functions.
11755
11756Wed Nov 18 13:50:28 1992 Per Bothner (bothner@rtl.cygnus.com)
11757
11758 * ch-typeck.c (chill_expand_tuple): New function. Expand a
11759 tuple (constructor) given an expected (context) type.
11760 * chill.y: Implement 'LHS := TUPLE' using expand_chill_tuple,
11761 using the mode of the LHS and the expected type of the TUPLE.
11762 * chill.y: Implement initialization.
11763 * chill.y: Fix some syntax bugs (forbidlist must be surrounded
11764 by parentheses), and remove or note ambiguities.
11765 * chill.y: Started converting layout style to be like c-parse.in.
11766 * chill.y: Implement IF expressions.
11767 * chill.y: Added syntax rules for tuples. Labelled and unlabelled
11768 array tuples should now work (in some contexts).
11769 * ch-actions.c: Initialize doing_chill_thang to 1.
11770 * ch-decl.c (do_decls): Set DECL_INITIAL if there is an
11771 initializer, to make pushdecl and finish_decl work.
11772 * c-decl.c (convert_for_assignment): If Chill, don't convert
11773 function and arrays into pointers. (Maybe functions should
11774 still be converted?)
11775 * c-typeck.c (grokdeclarator): Allow functions in Chill
11776 to return arrays and functions.
11777
11778Mon Nov 16 15:40:47 1992 Per Bothner (bothner@rtl.cygnus.com)
11779
11780 * chill.y (exprlist_get_single): New function, used when
11781 parsing tuples.
11782 * chill.y: Re-did parsing of tuples to remove ambiguities.
11783 This was a bitch.
11784
11785Tue Nov 10 16:30:55 1992 Per Bothner (bothner@rtl.cygnus.com)
11786
11787 * ch-typeck.c (chill_expand_result); Set TREE_SIDE_EFEFCTS
11788 flags on assignment to result.
11789 * ch-typeck.c (build_chill_array_ref): Subtract lower
11790 bound of domain if non-zero. Preliminary hook for range checking.
11791 * ch-tree.h, chill.l: Combine variables range_check and
11792 range_check_disabled into global variable range_checking.
11793 * ch-tree.h: Better definitions of CH_CLASS_IS_VALUE
11794 CH_CLASS_IS_DERIVED.
11795
This page took 1.300567 seconds and 5 git commands to generate.