1 2004-06-21 Joseph S. Myers <jsm@polyomino.org.uk>
3 * trans.h (stmtblock_t): Change has_scope to unsigned int.
5 2004-06-20 Steven G. Kargl <kargls@comcast.net>
7 * arith.c (gfc_range_check): correct complex underflow.
9 2004-06-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
12 * match.c (match_case_selector): Call gfc_match_init_expr
13 instead of gfc_match_expr.
14 * resolve.c (validate_case_label_expr): No need to check for
15 constant, since it wouldn't have been matched with the fix to
18 2004-06-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
21 * trans-intrinsic.c (gfc_conv_intrinsic_len): Deal with arrays
24 2004-06-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
27 * trans-deecl.c (generate_local_decl): Do not issue warning for
28 unused variables if they're use associated.
30 2004-06-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
31 Andrew Vaught <andyv@firstinter.net>
34 * gfortran.h (gfc_check_f): Add new field f3ml.
35 * check.c (gfc_check_minloc_maxloc): Take argument list instead
36 of individual arguments, reorder if necessary.
37 * intrinsic.h (gfc_check_minloc_maxloc): ... adapt prototype.
38 * intrinsic.c (add_sym_3ml): New function.
39 (add_functions): Change to add_sym_3ml for MINLOC, MAXLOC.
40 (check_specific): Catch special case MINLOC, MAXLOC.
42 2004-06-14 Paul Brook <paul@codesourcery.com>
44 * intrinsic.c (add_sym_2s): Use correct function types.
46 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
48 * Make-lang.in (F95_OBJS, F95_PARSER_OBJS): Alphabetize. Move data.c
49 * data.c (gfc_get_section_index): Remove dependency on trans.h.
51 2004-06-12 Steven G. Kargl <kargls@comcast.net>
53 * check.c (gfc_check_second_sub, gfc_check_irand, gfc_check_rand
54 gfc_check_srand, gfc_check_etime, gfc_check_etime_sub): New functions.
55 * gfortran.h (gfc_generic_isym_id): New symbols GFC_ISYM_ETIME,
56 GFC_ISYM_IRAND, GFC_ISYM_RAND, GFC_ISYM_SECOND.
57 * trans-intrinsic.c: Use symbols.
58 * intrinsic.c (add_sym_2s): New function.
59 * intrinsic.c: Add etime, dtime, irand, rand, second, srand.
60 * intrinsic.h: Function prototypes.
61 * iresolve.c (gfc_resolve_etime_sub, gfc_resolve_second_sub
62 gfc_resolve_srand): New functions.
64 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
67 * decl.c (gfc_match_end): Require END {SUBROUTINE|FUNCTION} for
70 2004-06-12 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
73 * interface.c (compare_parameter, compare_actual_formal): Don't
74 check types and array shapes for NULL()
75 * trans-expr.c (conv_function_call): No double indirection for
78 2004-06-09 Toon Moene <toon@moene.indiv.nluug.nl>
80 * trans-expr.c (gfc_conv_cst_int_power): Compute
81 x**(-n) by converting it to (1/x)**n instead of
84 2004-06-09 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
87 * module.c (write_symbol, write_symtree): Don't write symbols
88 wrongly added to namespace.
89 * trans-decl.c (gfc_create_module_variable): Don't create a
90 backend decl for a symbol incorrectly added to namespace.
92 2004-06-09 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
95 * resolve.c (resolve_symbol): Verify that parameter array has an
96 explicit shape. Fix typos and coding style issues in surrounding
99 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
102 * gfortran.texi: The documentation doesn't contain infomration on
103 how to report bugs, and shouldn't, so remove the line which
106 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
108 * intrinsic.c (sort_actual): Keep track of type of missing
109 arguments. (Missing from previous commit.)
111 2004-06-03 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
113 * gfortran.h (gfc_actual_arglist): New field missing_arg_type.
114 * interface.c (compare_actual_formal): Keep type of omitted
116 * trans-expr.c (gfc_conv_function_call): Add string length
117 argument for omitted string argument.
119 2004-06-03 Paul Brook <paul@codesourcery.com>
121 * trans.c (gfc_finish_block, gfc_add_expr_to_block): Build statement
122 lists instead of compound expr chains.
123 (gfc_trans_code): Annotate statement lists.
125 2004-06-03 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
127 * trans-array.c: Fix spelling in comments.
129 2004-06-02 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
132 * data.c (assign_substring_data_value): New function.
133 (gfc_assign_data_value): Call the new function if we're dealing
134 with a substring LHS.
136 2004-06-01 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
139 * gfortran.h (GFC_VERSION): Remove.
140 * gfortran.texi (version-gfortran): Remove, replace by version-GCC
143 2004-05-31 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
145 * trans-types.c: Fix spelling & layout in comments.
147 2004-05-30 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
150 * trans-const.c (gfc_conv_string_init): Allow variable string
151 length lower than initialization string length.
153 2004-05-30 Paul Brook <paul@codesourcery.com>
156 * trans-decl.c (gfc_shadow_sym, gfc_restore_sym): New functions.
157 * trans-expr.c (gfc_trans_string_copy): New function.
158 (gfc_conv_statement_function): Use them. Create temp vars. Enforce
160 (gfc_conv_string_parameter): Use gfc_trans_string_copy.
161 * trans-stmt.c (gfc_trans_forall_1): Use gfc_{shadow,restore}_sym.
162 * trans.h (struct gfc_saved_var): Define.
163 (gfc_shadow_sym, gfc_restore_sym): Add prototypes.
165 2004-05-30 Steven G. Kargl <kargls@comcast.net>
167 * iresolve.c (gfc_resolve_random_number): Clean up conditional.
169 2004-05-29 Steven G. Kargl <kargls@comcast.net>
171 * simplify.c (gfc_simplify_log): Remove useless line of code.
173 2004-05-29 Paul Brook <paul@codesourcery.com>
175 * trans-common.c (find_equivalence): Find multiple rules.
177 2004-05-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
179 * gfortran.h (gfc_current_locus, gfc_set_locus): Remove.
180 (gfc_current_locus): Declare new global variable.
181 * scanner.c (gfc_current_locus, gfc_set_locus): Remove.
182 (gfc_current_locus1): Rename ...
183 (gfc_current_locus): ... to this.
184 (gfc_at_eof, gfc_at_bol, gfc_at_eol, gfc_advance_line, next_char,
185 skip_fixed_comments, skip_free_comments, gfc_next_char_literal,
186 gfc_peek_char, gfc_gobble_whitespace, gfc_new_file): Use
187 gfc_current_locus instead of gfc_current_locus1, gfc_set_locus()
188 and gfc_current_locus(), respectively.
189 * array.c (match_subscript, gfc_match_array_ref, match_array_list,
190 match_array_cons_element, gfc_match_array_constructor):
191 Read/modify gfc_current_locus instead of calling gfc_set_locus()
192 and gfc_current_locus().
193 * decl.c (gfc_match_null, variable_decl, gfc_match_kind_spec,
194 match_attr_spec, gfc_match_function_decl, gfc_match_end,
195 attr_decl1, gfc_match_save): Likewise.
196 * error.c (error_print, gfc_internal_error): Likewise.
197 * expr.c (gfc_int_expr, gfc_default_logical_kind): Likewise.
198 * interface.c (gfc_add_interface): Likewise.
199 * io.c (gfc_match_format, match_dt_format, match_dt_element,
200 match_io_iterator, match_io): Likewise.
201 * match.c (gfc_match_space, gfc_match_eos,
202 gfc_match_small_literal_int, gfc_match_st_label,
203 gfc_match_strings, gfc_match_name, gfc_match_iterator,
204 gfc_match_char, gfc_match, gfc_match_assignment,
205 gfc_match_pointer_assignment, gfc_match_if, gfc_match_do,
206 gfc_match_nullify, gfc_match_call, match_implicit_range,
207 gfc_match_implicit, gfc_match_data, match_case_selector,
208 gfc_match_case, match_forall_iterator): Likewise.
209 * matchexp.c (gfc_match_defined_op_name, next_operator,
210 match_level_1, match_mult_operand, match_ext_mult_operand,
211 match_add_operand, match_ext_add_operand, match_level_2,
212 match_level_3, match_level_4, match_and_operand, match_or_operand,
213 match_equiv_operand, match_level_5, gfc_match_expr): Likewise.
214 * module.c (gfc_match_use, mio_array_ref, mio_expr): Likewise.
215 * parse.c (match_word, decode_statement, next_free, next_fixed,
216 add_statement, verify_st_order, parse_if_block, gfc_parse_file):
218 * primary.c (match_digits, match_integer_constant,
219 match_boz_constant, match_real_constant, match_substring,
220 next_string_char, match_charkind_name, match_string_constant,
221 match_logical_constant, match_const_complex_part,
222 match_complex_constant, match_actual_arg, match_keyword_arg,
223 gfc_match_actual_arglist, gfc_match_structure_constructor,
224 gfc_match_rvalue, gfc_match_variable): Likewise.
225 * st.c (gfc_get_code): Likewise.
226 * symbol.c (check_conflict, check_used, check_done,
227 duplicate_attr, add_flavor, gfc_add_procedure, gfc_add_intent,
228 gfc_add_access, gfc_add_explicit_interface, gfc_add_type,
229 gfc_add_component, gfc_reference_st_label, gfc_new_symbol): Likewise.
231 2004-05-26 Roger Sayle <roger@eyesopen.com>
233 * io.c (format_asterisk): Silence compiler warnings by correcting
234 the number of elements of a "locus" initializer.
236 2004-05-25 Roger Sayle <roger@eyesopen.com>
239 * matchexp.c: Allow unary operators after arithmetic operators
241 (match_ext_mult_operand, match_ext_add_operand): New functions.
242 (match_mult_operand): Tweak to call match_ext_mult_operand.
243 (match_add_operand): Tweak to call match_ext_mult_operand.
244 (match_level_2): Rearrange to call match_ext_add_operand.
246 2004-05-25 Paul Brook <paul@codesourcery.com>
248 * expr.c (check_inquiry): Remove bogus tests.
250 2004-05-23 Paul Brook <paul@codesourcery.com>
253 * expr.c (restricted_args): Remove redundant checks/argument.
254 (external_spec_function): Update to match.
255 (restricted_intrinsic): Rewrite.
257 2004-05-23 Paul Brook <paul@codesourcery.com>
258 Victor Leikehman <lei@haifasphere.co.il>
260 * gfortran.h (struct gfc_symbol): Add equiv_built.
261 * trans-common.c: Change int to HOST_WIDE_INT. Capitalize error
263 (current_length): Remove.
264 (add_segments): New function.
265 (build_equiv_decl): Create initialized common blocks.
266 (build_common_decl): Always add decl to bindings.
267 (create_common): Create initializers.
268 (find_segment_info): Reformat to match coding conventions.
269 (new_condition): Use add_segments.
270 (add_condition, find_equivalence, add_equivalences): Move iteration
271 inside functions. Only process each segment once.
272 (new_segment, finish_equivalences, translate_common): Simplify.
274 2004-05-23 Steven G. Kargl <kargls@comcast.net>
276 * check.c (gfc_check_random_seed): Issue for too many arguments.
278 2004-05-22 Steven G. Kargl <kargls@comcast.net>
280 * intrinsic.c (add_subroutines): Use add_sym_3s for random_seed.
282 2004-05-22 Paul Brook <paul@codesourcery.com>
284 * dump-parse-tree.c (gfc_show_equiv): New function.
285 (gfc_show_namespace): Use it.
287 2004-05-22 Victor Leikehman <lei@haifasphere.co.il>
290 * symbol.c (gfc_add_common): Disable checks to work around other more
291 fundamental inadequacies.
293 2004-05-22 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
295 * trans-decl.c (gfc_get_extern_function_decl): Set DECL_IS_PURE
297 (gfc_build_function_decl): Likewise.
299 2004-05-22 Steven G. Kargl <kargls@comcast.net>
301 * check.c (gfc_check_system_clock): New function.
302 * intrinsic.c (add_sym_3s): New function.
303 (add_subroutines): Use it.
304 * intrinsic.h (gfc_check_system_clock, gfc_resolve_system_clock):
306 * iresolve.c (gfc_resolve_system_clock): New function.
308 2004-05-22 Steven G. Kargl <kargls@comcast.net>
310 * invoke.texi: Document -Wunderflow and spell check.
311 * lang.opt: Add Wunderflow.
312 * gfortran.h (gfc_option_t): Add warn_underflow option.
313 * options.c (gfc_init_options, set_Wall): Use it.
314 * primary.c (match_real_constant): Explicitly handle UNDERFLOW.
315 * arith.c (gfc_arith_uminus, gfc_arith_plus, gfc_arith_minus,
316 gfc_arith_times, gfc_arith_divide, gfc_arith_power, gfc_real2real,
317 gfc_real2complex, gfc_complex2real, gfc_complex2complex): Ditto.
318 * arith.c (common_logarithm): Fix typo in comment.
320 2004-05-21 Roger Sayle <roger@eyesopen.com>
322 * io.c (check_format): As a GNU extension, allow the comma after a
323 string literal to be optional in a format. Use gfc_notify_std to
324 issue an error/warning as appropriate.
326 2004-05-21 Roger Sayle <roger@eyesopen.com>
328 * io.c (check_format): Use gfc_notify_std to determine whether to
329 issue an error/warning for omitting the digits from the X format.
331 2004-05-20 Roger Sayle <roger@eyesopen.com>
333 * io.c (check_format): Allow the number before the X format to
334 be optional when not -pedantic.
336 2004-05-18 Feng Wang <fengwang@nudt.edu.cn>
337 Paul Brook <paul@codesourcery.com>
339 * f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.
340 Create decls for __builtin_pow{,f}.
341 * gfortran.h (PREFIX_LEN): Define.
342 * trans-decl.c (gfor_fndecl_math_powi): Add.
343 (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
344 (gfc_build_intrinsic_function_decls): Create decls for powi.
345 * trans-expr.c (powi_table): Add.
346 (gfc_conv_integer_power): Remove.
347 (gfc_conv_powi): New function.
348 (gfc_conv_cst_int_power): New function.
349 (gfc_conv_power_op): Use new powi routines.
350 * trans.h (struct gfc_powdecl_list): Add.
351 (gfor_fndecl_math_powi): Add.
352 (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
354 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
356 * trans.c, trans-decl.c: Fix comment typos.
358 2004-05-18 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
360 * trans-const.c (gfc_conv_mpf_to_tree): Fix typo.
362 2004-05-18 Steve Kargl <kargls@comcast.net>
364 * arith.c (gfc_int2complex): Fix incorrect range checking.
366 2004-05-18 Paul Brook <paul@codesourcery.com>
369 * decl.c (add_init_expr_to_sym): Remove incorrect check.
370 (default_initializer): Move to expr.c.
371 (variable_decl): Don't assign default initializer to variables.
372 * expr.c (gfc_default_initializer): Move to here.
373 * gfortran.h (gfc_default_initializer): Add prototype.
374 * resolve.c (resolve_symbol): Check for illegal initializers.
375 Assign default initializer.
377 2004-05-17 Steve Kargl <kargls@comcast.net>
379 * arith.c (gfc_arith_power): Complex number raised to 0 power is 1.
381 2004-05-17 Steve Kargl <kargls@comcast.net>
383 * arith.c (gfc_real2complex): Range checking wrong part of complex
386 2004-05-16 Paul Brook <paul@codesourcery.com>
388 * options.c (gfc_handle_module_path_options): Fix buffer overrun.
390 2004-05-16 Paul Brook <paul@codesourcery.com>
392 * arith.c (gfc_range_check): Fix logic error.
394 2004-05-16 Steve Kargl <sgk@troutmask.apl.washington.edu>
396 * arith.c: Fix comment typos.
398 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
401 * decl.c (add_init_expr_to_sym): Verify that COMMON variable is
402 not initialized in a disallowed fashion.
403 * match.c (gfc_match_common): Likewise.
404 (var_element): Verify that variable is not in the blank COMMON,
405 if it is in a common.
407 2004-05-15 Joseph S. Myers <jsm@polyomino.org.uk>
409 * Make-lang.in (f95.generated-manpages): Remove.
411 (f95.info, fortran/gfortran.info, fortran/gfortran.dvi,
412 f95.maintainer-clean): Generate info and dvi files in objdir/doc.
415 (f95.install-info): Remove.
418 2004-05-15 Victor Leikehman <lei@haifasphere.co.il>
420 * decl.c (add_init_expr_to_sym): Check for variable size arrays.
422 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
424 * primary.c (match_boz_constant): Use gfc_notify_std() for
425 issuing a warning or an error.
427 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
430 * primary.c (match_structure_constructor): Rename ...
431 (gfc_match_structure_constructor): ... to this. Make non-static.
432 (gfc_match_rvalue): Call renamed function.
433 * match.h (gfc_match_structure_constructor): Declare.
434 * match.c (gfc_match_data_constant): Handle structure
437 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
441 * gfortran.h (gfc_linebuf): New typedef.
443 (gfc_file): Revamped, use new gfc_linebuf.
444 (locus): Revamped, use new types.
445 (gfc_current_file): Remove.
446 (gfc_current_form, gfc_source_file): New global variables.
447 * match.c (gfc_match_space, gfc_match_strings): Use
448 gfc_current_form to find source form.
449 * module.c (gfc_dump_module): Use gfc_source_file when printing
451 * error.c (show_locus, show_loci) Use new data structures to print
453 * scanner.c (first_file, first_duplicated_file, gfc_current_file):
455 (file_head, current_file, gfc_current_form, line_head, line_tail,
456 gfc_current_locus1, gfc_source_file): New global variables.
457 (gfc_scanner_init1): Set new global variables.
458 (gfc_scanner_done1): Free new data structures.
459 (gfc_current_locus): Return pointer to gfc_current_locus1.
460 (gfc_set_locus): Set gfc_current_locus1.
461 (gfc_at_eof): Set new variables.
462 (gfc_at_bol, gfc_at_eol, gfc_advance_line, gfc_next_char): Adapt
463 to new locus structure.
464 (gfc_check_include): Remove.
465 (skip_free_comments, skip_fixed_comments): Use gfc_current_locus1.
466 (gfc_skip_comments): Use gfc_current_form, find locus with
468 (gfc_next_char): Use gfc_current_form.
469 (gfc_peek_char, gfc_gobble_whitespace): Use gfc_current_locus1.
470 (load_line): Use gfc_current_form. Recognize ^Z as EOF. Fix
472 (get_file): New function.
473 (preprocessor_line, include_line): New functions.
474 (load_file): Move down, rewrite to match new data structures.
475 (gfc_new_file): Rewrite to match new data structures.
476 * parse.c (next_statement): Remove code which is now useless. Use
477 gfc_source_form and gfc_source_file where appropriate.
478 * trans-decl.c (gfc_get_label_decl): adapt to new data structures
479 when determining locus of frontend code.
480 * trans-io.c (set_error_locus): Same.
481 * trans.c (gfc_get_backend_locus, gfc_set_backend_locus): Likewise.
482 * lang-specs.h (@f77-cpp-input, @f95-cpp-input): Remove '-P' from
484 (all): Add missing initializers.
486 2004-05-15 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
488 * Make-lang.in (trans-common.o): Remove redundant dependency.
489 (data.c): Replace object file name ...
490 (data.o): ... by the correct one.
492 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
494 * dump-parse-tree.c (gfc_show_array_ref): Print colon only
495 for ranges when dumping array references.
497 2004-05-14 Victor Leikehman <lei@haifasphere.co.il>
499 * decl.c (variable_decl): Always apply default initializer.
501 2004-05-08 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
504 * trans-intrinsic.c (gfc_conv_intrinsic_rrspacing): Fixed to
505 handle zero correctly.
507 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
509 * match.c (gfc_match): Eliminate dead code.
511 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
513 * parse.c (gfc_statement_next_fixed): (Change from Andy's tree)
514 Detect bad continuation line in fixed form sources.
516 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
519 * iresolve.c (gfc_resolve_nearest): Add new function.
520 * intrinsic.h: ... declare it here.
521 * intrinsic.c (add_functions): ... add it as resolving function
524 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
527 * match.c (gfc_match_do): Allow infinite loops with
528 label-do-stmt. Do not enforce space after comma.
530 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
533 * parse.c (parse_interface): Allow empty INTERFACE, remove
536 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
538 * Make-lang.in, arith.c, arith.h, array.c, bbt.c, check.c,
539 decl.c, dependency.c, dependency.h, dump-parse-tree.c, error.c,
540 expr.c, f95-lang.c, gfortran.h, interface.c, intrinsic.c,
541 intrinsic.h, io.c, iresolve.c, lang-specs.h, match.c, match.h,
542 matchexp.c, misc.c, module.c, options.c, parse.c, parse.h,
543 primary.c, resolve.c, scanner.c, simplify.c, st.c, symbol.c,
544 trans-array.c, trans-array.h, trans-common.c, trans-const.c,
545 trans-const.h, trans-decl.c, trans-expr.c, trans-intrinsic.c,
546 trans-io.c, trans-stmt.c, trans-stmt.h, trans-types.c,
547 trans-types.h, trans.c, trans.h: Update copyright years and
549 * data.c: Likewise, also removed two whitespace-only lines.
550 * gfortranspec.c, lang.opt: Update copyright years.
552 2004-05-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
555 * trans-decl.c (generate_local_decl): Don't warn for unused
556 variables which are in common blocks.
558 2004-05-13 Diego Novillo <dnovillo@redhat.com>
560 * Make-lang.in, f95-lang.c, trans-array.c, trans-decl.c,
561 trans-expr.c, trans-intrinsic.c, trans-io.c, trans-stmt.c,
562 trans.c: Rename tree-simple.[ch] to tree-gimple.[ch].
564 2004-05-13 Victor Leikehman <lei@haifasphere.co.il>
567 * trans-expr.c (gfc_conv_structure): Use field type, not expr type.
569 2004-05-13 Joseph S. Myers <jsm@polyomino.org.uk>
571 * gfortran.texi: Use @table @emph instead of @itemize @emph.
572 Remove "set DEVELOPMENT".
573 (Compiling GFORTRAN): Remove.
575 2004-05-09 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
577 * array.c (match_subscript, match_array_ref): Add comments
578 explaining argument 'init'.
579 * decl.c, f95-lang.c, match.c, resolve.c, trans-array.c,
580 trans-expr.c, trans.c: Fix some typos in comments.
581 * dump-parse-tree.c (gfc_show_expr): Remove wrong comment.
582 * primary.c (match_digits, match_integer_constant): Add comment
585 2004-05-01 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
588 * primary.c: Include system.h and flags.h, needed for pedantic.
589 (match_boz_constant): Allow "x" for hexadecimal constants, warn if
592 2004-05-01 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
595 * match.c (match_data_constant): Handle case where
596 gfc_find_symbol sets sym to NULL
598 2004-04-28 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
600 * Make-lang.in (f95-lang.o, trans-intrinsic.o): Add missing
601 dependency on mathbuiltins.def
603 2004-04-24 Victor Leikehman <lei@il.ibm.com>
605 * trans-io.c (transfer_expr): Implemented recursive printing
608 2004-04-24 Andrew Pinski <pinskia@physics.uc.edu>
610 * gfortranspec.c: Do not include multilib.h.
612 2004-04-24 Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
614 * trans-intrinsic.c: Fix comment, this is not trans-expr.c. Add
615 2004 to copyright years.
616 * trans-expr.c, trans-decl.c: Comment update, we now generate
617 GENERIC, not SIMPLE. Add 2004 to copyright years.
619 2004-04-24 Paul Brook <paul@codesourcery.com>
621 * Make-lang.in (gfortranspec.o): Add dependency on $(TM_H).
623 2004-04-24 Feng Wang <fengwang@nudt.edu.cn>
626 * arith.c (gfc_arith_divide): Fix complex divide.
628 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
630 * gfortranspec.c: Include the target headers.
632 2004-04-18 Feng Wang <fengwang@nudt.edu.cn>
636 * arith.c (arctangent2): New function.
637 * arith.h (arctangent2): Add function prototype.
638 * simplify.c (gfc_simplify_atan2): Use it.
639 (gfc_simplify_log): Use it.
641 2004-04-12 Diego Novillo <dnovillo@redhat.com>
643 * fortran/f95-lang.c (gfc_expand_stmt): Remove.
644 (LANG_HOOKS_RTL_EXPAND_STMT): Remove.
646 2004-04-11 Bud Davis <bdavis9659@comcast.net>
649 * trans-io.c (build_dt): Change REC to value.
651 2004-04-11 Feng Wang <fengwang@nudt.edu.cn>
654 * trans-const.c (gfc_conv_mpf_to_tree): Loosen the maximum digits of
655 the real value when converting mpf to string.
657 2004-04-11 Feng Wang <fengwang@nudt.edu.cn>
660 * trans-intrinsic.c (gfc_conv_intrinsic_cmplx): Fix the imag part of
663 2004-04-11 Feng Wang <fengwang@nudt.edu.cn>
666 * simplify.c (simplify_min_max): Convert the type of the result.
668 2004-04-11 Paul Brook <paul@codesourcery.com>
670 * gfortran.texi: Use full target triplet.
672 2004-04-11 Paul Brook <paul@codesourcery.com>
674 * Make-lang.in (GFORTRAN_TEXI): Set it.
675 (fortran/dfortran.dvi): Use it. Add fortran to include paths.
676 (fortran/gfortran.info): Ditto.
677 * gfortran.texi: Major update.
678 * invoke.texi: New file.
680 2004-04-10 Paul Brook <paul@codesourcery.com>
682 * trans-array.c (gfc_trans_allocate_temp_array,
683 gfc_conv_tmp_array_ref): Don't use GFC_DECL_STRING.
684 * trans-decl.c (gfc_build_dummy_array_decl,
685 gfc_get_symbol_decl, gfc_build_function_decl,
686 gfc_create_module_variable): Ditto.
687 * trans-expr.c (gfc_conv_variable): Ditto.
688 * trans-intrinsic.c (gfc_conv_intrinsic_len): Ditto.
689 * trans.h (GFC_DECL_STRING): Remove.
690 (GFC_DECL_PACKED_ARRAY, GFC_DECL_PARTIAL_PACKED_ARRAY,
691 GFC_DECL_ASSIGN): Renumber flags.
693 2004-04-05 Paul Brook <paul@codesourcery.com>
697 * f95-lang.c (gfc_init_builtin_functions): Add stack_alloc, stack_save
699 * gfortran.h (struct gfc_charlen): Add backend_decl.
700 * trans-array.c (gfc_trans_allocate_temp_array,
701 gfc_conv_temp_array_ref, gfc_conv_resolve_dependencies,
702 (gfc_conv_loop_setup, gfc_array_allocate, gfc_conv_array_init_size):
703 Remove old, broken string handling.
704 (gfc_trans_auto_array_allocation, gfc_trans_g77_array,
705 gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
706 gfc_trans_deferred_array): Handle character arrays.
707 * trans-const.c (gfc_conv_const_charlen): New function.
708 * trans-const.h (gfc_conv_const_charlen): Add prototype.
709 * trans-decl.c (gfc_finish_var_decl): Don't mark automatic variables
711 (gfc_build_dummy_array_decl): Handle arrays with unknown element size.
712 (gfc_create_string_length): New function.
713 (gfc_get_symbol_decl): Create lengths for character variables.
714 (gfc_get_fake_result_decl): Ditto.
715 (gfc_build_function_decl): Only set length for assumed length
717 (gfc_trans_dummy_character): New function.
718 (gfc_trans_auto_character_variable): Rewrite.
719 (gfc_trans_deferred_vars): Handle more types of character variable.
720 (gfc_create_module_variable): String lengths have moved.
721 (gfc_generate_function_code): Initialize deferred var chain earlier.
722 * trans-expr.c (gfc_conv_init_string_length): Rename ...
723 (gfc_trans_init_string_length): ... to this.
724 (gfc_conv_component_ref, gfc_conv_variable, gfc_conv_concat_op,
725 gfc_conv_function_call): Update to new format for character variables.
726 (gfc_conv_string_length): Remove.
727 (gfc_conv_string_parameter): Update assertion.
728 * trans-intrinsic.c (gfc_conv_intrinsic_len): Use new location.
729 * trans-io.c (set_string): Use new macro names.
730 * trans-stmt.c (gfc_trans_label_assign. gfc_trans_goto): Ditto.
731 * trans-types.c (gfc_get_character_type): Use existing length expr.
732 (gfc_is_nodesc_array): Make public.
733 (gfc_get_dtype_cst): Rename ...
734 (gfc_get_dtype): ... to this. Handle unknown size arrays.
735 (gfc_get_nodesc_array_type): Use new name.
736 (gfc_sym_type): New character variable code.
737 (gfc_get_derived_type): Ditto.
738 (gfc_get_function_type): Evaluate character variable lengths.
739 * trans-types.h (gfc_strlen_kind): Define.
740 (gfc_is_nodesc_array): Add prototype.
741 * trans.h: Update prototypes.
742 (struct lang_type): Update comments.
743 (GFC_DECL_STRING_LEN): New name for GFC_DECL_STRING_LENGTH.
744 (GFC_KNOWN_SIZE_STRING_TYPE): Remove.
746 2004-04-04 Paul Brook <paul@codesourcery.com>
748 * gfortran.h (struct gfc_option_t): Remove flag_g77_calls.
749 * options.c (gfc_init.options, gfc_handle_option): Ditto.
750 * trans-expr.c (gfc_conv_function_call): Ditto.
751 * trans-types.c (gfc_is_nodesc_array): Ditto
752 * lang.opt (fg77-calls): Remove.
754 2004-04-04 Paul Brook <paul@codesourcery.com>
756 * trans-array.c (OFFSET_FIELD): Rename from BASE_FIELD.
757 (gfc_conv_descriptor_base): Rename ...
758 (gfc_conv_descriptor_offset): ... to this.
759 (gfc_trans_allocate_array_storage): Set offset to zero.
760 (gfc_conv_array_base): Rename ...
761 (gfc_conv_array_offset): ... to this.
762 (gfc_conv_array_index_ref): Add offset parameter.
763 (gfc_conv_array_ref): Include offset.
764 (gfc_trans_preloop_setup): Use existing offset.
765 (gfc_trans_allocate_temp_array, gfc_array_allocate,
766 gfc_trans_auto_array_allocation, gfc_trans_g77_array,
767 gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
768 gfc_conf_ss_descriptor): Set offset.
769 * trans-array.h: Rename prototypes.
770 * trans-const.h (gfc_index_zero_node): Define.
771 * trans-decl.c (gfc_build_qualified_array): Change base to offset.
772 * trans-types.c (gfc_get_array_type_bounds): Ditto.
773 (gfc_get_nodesc_array_type): Calculate offset before upper bound.
775 2004-03-25 Diego Novillo <dnovillo@redhat.com>
777 * convert.c (convert): Don't handle WITH_RECORD_EXPR.
779 2004-03-24 Bud Davis <bdavis9659@comcast.net>
782 * arith.c (gfc_convert_integer,gfc_convert_real): Removed leading '+'
783 before conversion by gmp library call.
785 2004-03-24 Bud Davis <bdavis9659@comcast.net>
788 * trans-io.c (gfc_trans_open): Change RECL= to a value parameter.
790 2004-02-24 Richard Henderson <rth@redhat.com>
792 * trans-array.c (gfc_trans_dummy_array_bias): Fix typo.
794 2004-02-19 Loren J. Rittle <ljrittle@acm.org>
796 * Make-lang.in ($(srcdir)/fortran/gfortran.info): Move...
797 (fortran/gfortran.info): ... to here.
800 2004-02-16 Richard Henderson <rth@redhat.com>
802 * Make-lang.in (f95-lang.o, trans-decl.o): Depend on cgraph.h.
803 * f95-lang.c (LANG_HOOKS_EXPAND_DECL): Remove.
804 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): New.
805 (gfc_expand_function): Rename from expand_function_body, make static,
806 don't do anything except invoke tree_rest_of_compilation.
807 (gfc_be_parse_file): Invoke cgraph.
808 (gfc_expand_decl): Remove.
809 (gfc_init_builtin_functions): Add __builtin_init_trampoline and
810 __builtin_adjust_trampoline.
811 * trans-decl.c (gfc_get_extern_function_decl): Don't set DECL_CONTEXT.
813 (gfc_generate_function_code): Use it. Lower nested functions.
814 * trans-expr.c (gfc_conv_function_call): Add static chain operand
816 * trans.c (gfc_build_function_call): Likewise.
817 * trans.h (expand_function_body): Remove.
819 2004-02-15 Victor Leikehman <lei@il.ibm.com>
822 * trans-decl.c (gfc_build_function_decl) For functions
823 returning CHARACTER pass an extra length argument,
824 following g77 calling conventions.
825 * trans-types.c (gfc_get_function_type) Ditto.
826 * trans-expr.c (gfc_conv_function_call) Ditto.
828 2004-02-14 Paul Brook <paul@codesourcery.com>
830 * f95-lang.c (gfc_init_builtin_functions): Build chain properly.
832 2004-02-12 Paul Brook <paul@nowt.org>
836 2004-02-08 Steve Kargl <sgk@troutmask.apl.washington.edu>
838 * gfortran.texi: Fix typos.
840 2004-02-07 Bud Davis <bdavis9659@comcast.net>
843 * intrinsic.c (add_conversions) Use logical conversion instead
845 * trans-types.c (gfc_get_logical_type) implemented logical*1
848 2004-01-17 Paul Brook <paul@codesourcery.com>
850 * lang-specs.h: Remove %<fixed-form.
852 2004-01-15 Toon Moene <toon@moene.indiv.nluug.nl>
854 * lang-specs.h: Enable preprocessing of source files
855 ending in .F, .fpp, .FPP, .F90 and .F95.
857 2004-01-13 Toon Moene <toon@moene.indiv.nluug.nl>
860 * lang-specs.h: Enable compilation of files ending
861 in .f, .for and .FOR.
863 2004-01-11 Paul Brook <paul@codesourcery.com>
865 * trans-stmt.c (gfc_trans_if_1): New function.
866 (gfc_trans_if): Use it.
868 2004-01-11 Erik Schnetter <schnetter@uni-tuebingen.de>
870 * gfortran.h (GFC_MAX_SYMBOL_LEN): Increase.
871 (gfc_option_t): Add max_identifier_length.
872 * lang.opt: Add fmax-identifier-length.
873 * match.c (parse_name): Use limit.
874 * options.c (gfc_init_options): Set max_identifier_length.
875 (gfc_handle_option): Ditto.
877 2004-01-11 Feng Wang <fengwang@nudt.edu.cn>
879 * intrinsic.c (add_functions): Add resolve function to dcmplx.
880 * intrinsic.h (gfc_resolve_dcmplx): Add prototype.
881 * iresolve.c (gfc_resolve_dcmplx): New function.
883 2004-01-10 Paul Brook <paul@codesourcery.com>
885 * trans-decl.c (gfc_get_symbol_decl): Don't set subroutine attr.
886 * trans-types.c (gfc_sym_type): Handle external dummy procedures.
887 (gfc_return_by_reference): Correct condition.
888 (gfc_get_function_type): Ditto.
890 2004-01-10 Paul Brook <paul@codesourcery.com>
892 * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Convert mismatched
895 2004-01-10 Huang Chun <chunhuang73@hotmail.com>
897 * iresolve.c: Use correct kind.
899 2004-01-10 Huang Chun <chunhuang73@hotmail.com>
902 * trans-decl.c (gfc_create_module_variable): Output array valued
905 2004-01-10 Paul Brook <paul@codesourcery.com>
907 * resolve.c (resolve_branch): Get error message right way round.
909 2004-01-10 Canqun Yang <canqun@nudt.edu.cn>
911 * trans-array (gfc_conv_loop_setup): Adjust comment to track
913 (gfc_array_allocate): Don't count size of element twice.
915 2004-01-04 Paul Brook <paul@codesourcery.com>
917 * lang.opt (i8, r8, std=*): Remove RejectNegative.
919 2004-01-04 Paul Brook <paul@codesourcery.com>
921 * error.c (gfc_notify_std): New function.
922 * gfortran.h (gfc_notify_std): Declare.
924 (gfc_option_t): Add warn_std and allow_std.
925 * intrinsic.c (gfc_init_expr_extensions): Fix logic.
926 (gfc_intrinsic_func_interface): Use gfc_notify_std.
927 * check.c (check_rest): Use gfc_notify_std.
928 * match.c (gfc_match_pause): Ditto.
929 (gfc_match_assign): Ditto.
930 (gfc_match_goto): Ditto.
931 * resolve.c (resolve_branch): Ditto.
932 * lang.opt: Add std=<foo> and w.
933 * options.c (gfc_init_options): Set allow_std and warn_std.
934 (gfc_handle_option): Handle OPT_std_* and OPT_w.
936 2004-01-01 Paul Brook <paul@codesourcery.com>
938 * array.c (gfc_append_constructor): Take constructor, not expression.
939 * data.c (struct gfc_expr_stack): Remove.
940 (expr_stack): Remove.
941 (find_con_by_offset): Rename from find_expr_in_con.
942 (find_con_by_component): Rename from find_component_in_con.
943 (gfc_get_expr_stack): Remove.
944 (gfc_assign_data_value): Rewrite.
945 (gfc_expr_push): Remove.
946 (gfc_expr_pop): Remove.
947 (gfc_advance_section): Rename from
948 gfc_modify_index_and_calculate_offset. Handle unbounded sections.
949 (gfc_get_section_index): Handle unbounded sections.
950 * gfortran.h: Update prototypes.
951 * resolve.c (check_data_variable): Array section maight not be the
954 2004-01-01 Paul Brook <paul@codesourcery.com>
957 * resolve.c (resolve_symbol): Allow assumed length function results.
959 2004-01-01 Steve Kargl <sgk@troutmask.apl.washington.edu>
961 * match.c (gfc_match_pause): Fix spelling.
963 2004-01-01 Steven Bosscher <stevenb@suse.de>
966 * trans-expr.c (gfc_conv_variable): Take the type kind of a substring
967 reference from the expression.
969 2003-12-26 Feng Wang <fengwang@nudt.edu.cn>
971 * dump-parse-tree.c (gfc_show_code_node): Add ASSIGN and ASSIGNED GOTO
973 * gfortran.h (gfc_statement): New ST_LABEL_ASSIGNMENT.
974 (gfc_exec_op): New EXEC_LABEL_ASSIGN.
975 (symbol_attribute):New variable attribute: assign.
976 * io.c (resolve_tag):Integer variable is allowed.
977 (match_dt_format): Add ASSIGN statement. Set assign flag.
978 * match.c (gfc_match_if): Change ST_NONE to ST_LABEL_ASSIGNMENT.
979 (gfc_match_assign): Add ASSIGN statement. Set assign flag.
980 (gfc_match_goto): Add ASSIGNED GOTO statement. Set assign flag.
981 * parse.c (decode_statement): Add ST_LABEL_ASSIGNMENT.
982 (next_statement): Add ST_LABEL_ASSIGNMENT.
983 (gfc_ascii_statement): Add ST_LABEL_ASSIGNMENT.
984 * resolve.c (resolve_code): Resolve ASSIGN and ASSIGNED GOTO statement.
985 (resolve_blocks): Resolve ASSIGNED GOTO statement label list.
986 * st.c (gfc_free_statement): Add EXEC_LABEL_ASSIGN.
987 * trans-decl.c (gfc_get_symbol_decl): Create the shadow variable for
988 assign. Put them into the stuct lang_decl.
989 * trans-io.c (set_string): Add the assign statement.
990 * trans-stmt.c (gfc_trans_label_assign): New function.
991 (gfc_trans_goto): Translate ASSIGNED GOTO statement.
992 * trans-stmt.h (gfc_trans_label_assign): Added function prototype.
993 * trans.c (gfc_trans_code): Add EXEC_LABEL_ASSIGN.
994 * trans.h (lang_decl):Add shadow variable decl tree needed by assign.
995 (GFC_DECL_ASSIGN_ADDR(node)): New macro to access this.
996 (GFC_DECL_ASSIGN(node)): New macro to access flag.
998 2003-12-31 Huang Chun <chunhuang73@hotmail.com>
1001 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Fixed bug in
1004 2003-12-22 Toon Moene <toon@moene.indiv.nluug.nl>
1006 * options.c (gfc_init_options): Set flag_argument_noalias to 2, to indicate
1007 that arguments to subroutines/functions can't alias themselves, nor global
1010 2003-12-20 Steven Bosscher <stevenb@suse.de>
1012 * trans-expr.c (gfc_conv_expr_op): Fold the result expression.
1013 * trans.c (gfc_add_modify_expr, gfc_add_expr_to_block): Likewise.
1015 2003-12-12 Huang Chun <chunhuang73@hotmail.com>
1017 * primary.c (match_substring): Fix substring bug for start point
1018 or end point is NULL.
1019 * trans-expr.c (gfc_conv_substring): Ditto
1020 * trans-types.c (gfc_sym_type): Get correct type of scalar
1021 character variables.
1022 * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle character in
1025 2003-12-10 Richard Henderson <rth@redhat.com>
1027 * options.c (gfc_post_options): Don't ever use rtl inlining.
1029 2003-12-05 Canqun Yang <canqun@nudt.edu.cn>
1031 * trans-common.c: Re-implement COMMON blocks and EQUIVALENCE lists.
1032 * trans-equivalence.c: Remove.
1033 * trans-decl.c (gfc_get_symbol_decl): Update to match.
1034 (gfc_generate_function_code): Ditto.
1035 * trans-array.c (gfc_conv_array_parameter): Ditto.
1036 * Make-lang.in (F95_OBJS): Remove fortran/trans-equivalence.o
1037 (F95_ADDITIONAL_OBJS): Add stor-layout.o
1038 * trans.h (gfc_trans_equivalence): Remove.
1039 * gfortran.h (struct gfc_equiv): Add used field.
1040 (struct gfc_symbol): Remove addr_base, addr_offset, equiv_ring,
1041 equiv_offset fields.
1043 2003-12-05 Richard Henderson <rth@redhat.com>
1045 * trans.c (gfc_build_addr_expr): New.
1046 (gfc_build_indirect_ref, gfc_build_array_ref): New.
1047 * trans.h: Declare them.
1048 * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-io.c,
1049 trans-stmt.c, trans.c (*): Use them.
1051 * f95-lang.c (gfc_post_options): Remove dead prototype.
1052 * trans-array.c (gfc_trans_deferred_vars): Remove unused variable.
1053 * trans-stmt.c (gfc_evaluate_where_mask): Fix temporary_list
1056 2003-12-01 Feng Wang <fengwang@nudt.edu.cn>
1058 * io.c (gfc_match_format): Check for missing format label.
1060 2003-11-30 Huang Chun <chunhuang73@hotmail.com>
1063 * trans-decl.c (gfc_sym_mangled_function_id): Don't mangle symbols
1064 from interfaces in modules.
1066 2003-11-30 Paul Brook <paul@nowt.org>
1068 * trans-array.c (gfc_trans_g77_array): Make non-static.
1069 (gfc_trans_assumed_size): Remove.
1070 (gfc_trans_dummy_array_bias): Explicitly free temporary.
1071 * trans-array.h (gfc_trans_g77_array): Add prototype.
1072 (gfc_trans_assumed_size): Remove.
1073 * trans-decls.c (gfor_fndecl_push_context): Remove.
1074 (gfor_fndecl_pop_context): Remove.
1075 (gfc_build_function)decls): Don't create them.
1076 (gfc_trans_deferred_vars): Update to match. Remove dead code.
1077 * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Free temp.
1079 2003-11-30 Kejia Zhao <kejia_zh@nudt.edu.cn>
1081 * trans-array.c (gfc_conv_array_parameter): Simplify
1082 array argument passing for array name actual argument.
1083 * trans-expr.c (gfc_conv_function_call): Ditto
1084 * trans-types.c (gfc_is_nodesc_array):Ditto.
1086 2003-11-30 Paul Brook <paul@nowt.org>
1088 * f95-lang.c (gfc_post_options): Move ...
1089 * options.c (gfc_post_options): .. to here. Handle inlining options.
1090 * gfortran.h (gfc_post_options): Add prototype.
1092 2003-11-28 Richard Henderson <rth@redhat.com>
1094 * trans.c (gfc_create_var_np): Use create_tmp_var_raw.
1096 2003-11-28 Huang Chun <chunhuang73@hotmail.com>
1098 * trans.h (has_alternate_specifier): New global variable.
1099 * match.c (gfc_match_call): Handle actual arguments associated with
1100 alternate return indicators.
1101 * trans-expr.c (gfc_conv_function_call): Ditto
1102 * trans-stmt.c (gfc_trans_call): Ditto
1103 (gfc_trans_return): Handle return statement with value.
1104 * trans-decl.c (gfc_generate_function_code): Handle functions with
1106 (gfc_get_fake_result_decl): Ditto
1107 * trans-types.c (gfc_get_function_type): Ditto
1108 * resolve.c (resolve_actual_arglist): Check alternate return indicators.
1109 (resolve_formal_arglist): Check asterisk dummy.
1111 2003-11-27 Paul Brook <paul@nowt.org>
1113 * trans-array.c (gfc_tran_allocate_array_storage): Use new memory
1114 allocation interface.
1115 (gfc_conv_ array_parameter): Ditto.
1116 (gfc_trans_auto_array_allocation): Ditto. Also free the memory.
1117 * trans-array.c: Update prototype.
1118 * trans-decl.c (gfc_build_builtin_function_decls): Update prototypes.
1119 (gfc_trans_auto_character_variable): Use new memory alloc interface.
1120 * trans-expr.c (gfc_conv_string_tmp): Ditto.
1121 (gfc_conv_function_call): Use gfc_conv_string_tmp.
1122 * trans-stmt.c (gfc_do_allocate): Use new memory alloc interface.
1123 * trans-intrinsic.c (gfc_conv_intrinsic_trim): Ditto.
1124 * trans.h (gfc_ss_info): Remove unused pdata field.
1125 * trans.c (gfc_create_var_np): Change T to V.
1127 2003-11-26 Richard Henderson <rth@redhat.com>
1129 * mathbuiltins.def: Move acos, asin, cosh, log10, sinh, tanh from ...
1130 * trans-intrinsic.c (gfc_intrinsic_map): ... here. Add SCALE,
1131 FRACTION, NEAREST, SET_EXPONENT.
1132 (gfc_intrinsic_map_t): Add libm_name, complex_available, is_constant.
1133 Fix GTY marking. Remove unnecessary const's.
1134 (LIBM_FUNCTION): Rename from I_LIB.
1135 (LIBF_FUNCTION): New.
1136 (gfc_get_intrinsic_lib_fndecl): Handle libm and libgfortran naming
1137 conventions. Assume the expr signature is correct. Mark const.
1138 (gfc_conv_intrinsic_exponent): Use library functions.
1139 (gfc_conv_intrinsic_set_exponent): Remove.
1140 (gfc_conv_intrinsic_scale): Remove.
1141 (gfc_conv_intrinsic_nearest): Remove.
1142 (gfc_conv_intrinsic_fraction): Remove.
1143 (gfc_conv_intrinsic_function): Update.
1144 * trans-decl.c (gfor_fndecl_math_exponent4): New.
1145 (gfor_fndecl_math_exponent8): New.
1146 (gfc_build_intrinsic_function_decls): Set them.
1147 * trans.h: Declare them.
1149 2003-11-25 Canqun Yang <canqun@nudt.edu.cn>
1151 * trans-common.c (gfc_layout_global_equiv): Locate the error for
1152 underflow COMMON block.
1153 (gfc_trans_one_common): Fix bug for size of COMMON block containing
1154 EQUIVALENCE object. Also fix typo in an error message.
1156 2003-11-25 Diego Novillo <dnovillo@redhat.com>
1158 * Make-lang.in: Add check-gfortran to lang_checks.
1159 (check-f95): Alias for check-gfortran.
1161 2003-11-25 Jason Merrill <jason@redhat.com>
1163 * Make-lang.in (f95.tags): Create TAGS.sub files in each
1164 directory and TAGS files that include them for each front end.
1166 2003-11-24 Paul Brook <paul@nowt.org>
1169 * trans-decl.c (gfc_greate_module_variable): Skip COMMON blocks.
1171 2003-11-24 Paul Brook <paul@nowt.org>
1173 * expr.c (simplify_const_ref): Return SUCCESS for things we don't
1175 * resolve.c (gfc_resolve_expr): Resolve contents before rank/shape.
1177 2003-11-24 Paul Brook <paul@nowt.org>
1180 * array.c (gfc_array_ref_shape): Handle elemental dimensions.
1181 * trans-array.c (gfc_trans_preloop_setup): Use correct dim lookup.
1183 2003-11-20 Richard Henderson <rth@redhat.com>
1185 * trans-array.c (gfc_trans_allocate_array_storage): Use convert.
1186 (gfc_conv_array_base): Likewise.
1187 * trans-decl.c (gfc_trans_auto_character_variable): Likewise.
1188 * trans-expr.c (gfc_conv_string_tmp): Likewise.
1189 * trans-intrinsic.c (gfc_conv_intrinsic_trim): Likewise.
1190 * trans-stmt.c (gfc_trans_character_select): Likewise.
1192 2003-11-13 Paul Brook <paul@nowt.org>
1194 * trans-decl.c (gfc_sym_mangled_function_id): Dont mangle externals.
1196 2003-11-13 Canqun Yang <canqun@nudt.edu.cn>
1198 * resolve.c (gfc_resolve): Also resolve EQUIVALENCE objects.
1199 (resolve_equivalence): New function.
1200 (resolve_equivalence_derived): New function.
1202 2003-11-12 Richard Henderson <rth@redhat.com>
1204 * trans.c (gfc_trans_code): Use annotate_with_locus instead of
1205 annotate_all_with_locus.
1207 2003-11-11 Canqun Yang <canqun@nudt.edu.cn>
1209 * options.c (gfc_init_options): Set flag_max_stack_var_size as 32768.
1210 * trans-decl.c (gfc_finish_var_decl): Modified.
1212 2003-11-08 Paul Brook <paul@nowt.org>
1215 * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Handle zero-size
1218 2003-11-06 Paul Brook <paul@nowt.org>
1220 * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Initialize pos.
1222 2003-11-02 Canqun Yang <canqun@nudt.edu.cn>
1224 * match.c (gfc_match_stopcode): Assign '0' to stop_code.
1226 2003-10-27 Anthony Green <green@redhat.com>
1228 * Make-lang.in (f95.stageprofile): Use tabs, not spaces.
1229 (f95.stagefeedback): Ditto.
1231 2003-10-27 Andrew Pinski <pinskia@physics.uc.edu>
1234 * Make-lang.in (f95.stageprofile): Add.
1235 (f95.stagefeedback): Add.
1237 2003-10-23 Richard Henderson <rth@redhat.com>
1239 * f96-lang.c (gfc_gimplify_expr): Remove.
1240 (LANG_HOOKS_GIMPLIFY_EXPR): Remove.
1241 (LANG_HOOKS_GIMPLE_BEFORE_INLINING): New.
1243 2003-10-23 Richard Henderson <rth@redhat.com>
1245 * f95-lang.c (gfc_gimplify_expr): Return gimplify_status.
1247 2003-10-20 Paul Brook <paul@nowt.org>
1249 * trans-expr.c (gfc_conv_integer_power): Use boolean_type_node.
1250 * trans-stmt.c (gfc_trans_do_while): Ditto.
1252 2003-10-17 Paul Brook <paul@nowt.org>
1254 * simplify.c (gfc_simplify_shape): Use gfc_array_dimen_size.
1256 2003-10-17 Paul Brook <paul@nowt.org>
1258 * trans-io.c (gfc_build_io_library_fndecls): Set TREE_PUBLIC.
1260 2003-10-17 Feng Wang <wf_cs@yahoo.com>
1262 * iresolve.c (gfc_resolve_maxloc): Change the result's kind and type.
1263 (gfc_resolve_minloc): Ditto.
1264 * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use correct types.
1265 Return the value after subtracting the lower bound.
1267 2003-10-16 Richard Henderson <rth@redhat.com>
1269 * f95-lang.c (expand_function_body): Don't check flag_disable_gimple.
1271 2003-10-16 Steven Bosscher <steven@gcc.gnu.org>
1273 * lang.c: Remove -M option for now, it's in the way for C.
1275 2003-10-14 Jason Merrill <jason@redhat.com>
1277 * Make-lang.in (f95.tags): New rule.
1279 2003-10-13 Richard Henderson <rth@redhat.com>
1281 * trans.c (gfc_trans_code): Use annotate_all_with_locus.
1283 2003-10-13 Paul Brook <paul@nowt.org>
1285 * trans-decl.c (generate_local_decl): Don't create junk variables.
1287 2003-10-13 Paul Brook <paul@nowt.org>
1289 * resolve.c (resolve_formal_arglist): Use function result decl in
1290 preference to function decl.
1292 2003-10-12 Richard Henderson <rth@redhat.com>
1294 * f95-lang.c (gfc_define_builtin): New const_p argument. Set
1295 TREE_READONLY. Update all callers.
1297 2003-10-12 Feng Wang <wf_cs@yahoo.com>
1299 * iresolve.c (gfc_resolve_cshift): Change to match implementation.
1300 * trans-intrinsic.c (gfc_conv_intrinsic_function): Remove CSHIFT.
1301 (gfc_is_intrinsic_libcall): Add CSHIFT.
1303 2003-10-12 Richard Henderson <rth@redhat.com>
1305 * trans-array.c (gfc_trans_static_array_pointer): Set TREE_INVARIANT.
1306 (gfc_trans_array_constructor_value): Likewise.
1307 (gfc_conv_array_initializer): Likewise.
1308 * trans-stmt.c (gfc_trans_character_select): Likewise.
1310 2003-11-12 Kejia Zhao <kejia_zh@yahoo.com.cn>
1312 * trans-intrinsic.c (integer_kind_info, real_kind_info): Remove.
1314 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
1316 * check.c (gfc_check_repeat): Check arguments are scalar.
1317 (gfc_check_trim): New function.
1318 * intrinsic.h (gfc_check_trim): Add prototype.
1319 * intrinsic.c (add_functions): Use it.
1320 * trans.h (gfor_fndecl_string_trim, gfor_fndecl_string_repeat):
1322 * trans-decl.c: Ditto.
1323 (gfc_build_intrinsic_fucntion_decls): Set them.
1324 * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle result vars.
1325 (gfc_conv_intrinsic_trim): New function.
1326 (gfc_conv_intrinsic_repeat): New function.
1327 (gfc_conv_intrinsic_function): Use them.
1329 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
1331 * trans-types.c (gfc_sym_type): Handle result variables.
1333 2003-10-11 Huang Chun <jiwang@mail.edu.cn>
1335 * trans-intrinsic.c (gfc_conv_intrinsic_char): Don't use
1336 gfc_get_character_type.
1338 2003-10-11 Feng Wang <wf_cs@yahoo.com>
1340 * trans-expr.c (gfc_conv_variable): Check sym->ts, not the decl.
1342 2003-10-11 Paul Brook <paul@nowt.org>
1344 * iresolve.c (gfc_resolve_dint, gfc_resolve_dnint): New functions.
1345 (gfc_resolve_dprod): New function.
1346 (gfc_resolve_aint, gfc_resolve_anint): Only base name on arg type.
1347 * intrinsic.h (gfc_resolve_dint, gfc_resolve_dnint): Declare.
1348 (gfc_resolve_dprod): Declare.
1349 * intrinsic.c (add_functions): Use them.
1350 * trans-decl.c (gfc_get_extern_function_decl): Only pass one arg.
1352 2003-10-06 Richard Henderson <rth@redhat.com>
1354 * f95-lang.c (gfc_init_builtin_functions): Add clzll.
1355 * trans-intrinsic.c (call_builtin_clz): Use it.
1357 2003-10-05 Paul Brook <paul@nowt.org>
1359 * f95-lang.c (expand_function_body): Call (push|pop)_function_context.
1360 * trans-decl.c (gfc_generate_function_code): Set
1361 cfun->function_end_locus.
1363 2003-09-24 Jason Merrill <jason@redhat.com>
1365 * f95-lang.c, trans-decl.c: Use DECL_SOURCE_LOCATION instead of
1368 2003-09-21 Lifang Zeng <zlf605@hotmail.com>
1369 Paul Brook <paul@nowt.org>
1371 * Make-lang.in (F95_OBJS): Add fortran/data.o.
1372 * array.c (gfc_inser_constructor): New function.
1373 (gfc_get_constructor): New function.
1374 (gfc_free_constructor): Initialize offset and repeat.
1375 (iterator_stack): Remove.
1376 (expand_info): Add offset, component and repeat fields.
1377 (expand_constructor): Set them.
1378 (expand): Set new fields.
1379 (gfc_copy_constructor): Ditto. Avoid recursion.
1380 * gfortran.h: Add prototypes for new functions.
1381 (gfc_constructor): Add offset, component and repeat.
1382 (iteratio_stack): Move to here.
1383 * resolve.c (check_data_variable): Convert data values into variable
1385 (traverse_data_list): Build implicit loop chain.
1386 (gfc_resolve): Ditto.
1387 * trans-array.c (gfc_conv_array_intializer): Handle repeat count.
1388 * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_structure.
1389 * trans-expr.c (gfc_conv_structure): Handle array initializers.
1390 (gfc_conv_expr): Update to match.
1391 * trans.h (gfc_conv_structure): Declare.
1394 2003-09-20 Kejia Zhao <kejia_zh@yahoo.com.cn>
1396 * trans.h: Add declarations for gfor_fndecl_si_kind and
1397 gfor_fndecl_sr_kind.
1398 * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
1399 * trans-intrinsic.c (g95_conv_intrinsic_si_kind): New function.
1400 (g95_conv_intrinsic_sr_kind): New function.
1401 (g95_conv_intrinsic_function): Add SELECTED_INT_KIND and
1404 2003-09-17 Lars Segerlund <Lars.Segerlund@comsys.se>
1406 * iresolve.c (gfc_resolve_random_number): Generate _r4 & _r8
1407 instead of _4 and _8 as postfix for libgfortran calls.
1409 2003-09-16 Paul Brook <paul@nowt.org>
1411 * array.c (compare_bounds): New function.
1412 (gfc_compare_array_spec): Use it.
1414 2003-09-14 Paul Brook <paul@nowt.org>
1416 * primary.c (gfc_match_rvalue): Make sure sym->result is set.
1417 * trans-expr.c (gfc_conv_string_parameter): Also allow PRAM_DECLs.
1419 2003-09-14 Paul Brook <paul@nowt.org>
1421 * check.c (dim_rank_check): Allow assumed bounds if requested.
1422 (gfc_check_lbound): Call it.
1423 (gfc_check_ubound): Ditto.
1424 (gfc_check_size): Change to match.
1425 * simplify.c (gfc_simplify_bound): New function.
1426 (gfc_simplify_lbound): New function.
1427 (gfc_simplify_ubound): New function.
1428 * intrinsic.h: Declare them.
1429 * intrinsic.c (add_functions): Use them.
1431 2003-09-14 Paul Brook <paul@nowt.org>
1433 * io.c (format_lex): Initialize negative_flag.
1434 (check_format): Intialize repeat.
1435 * trans-io.c (gfc_new_nml_name_expr): Declare static.
1436 (gfc_new_var_expr): Ditto.
1438 2003-09-14 Paul Brook <paul@nowt.org>
1440 * trans-array.c (gfc_conv_array_initializer): Handle derived types.
1441 * trans-decl.c (gfc_get_symbol_decl): Only do local scalar values.
1443 2003-09-12 Paul Brook <paul@nowt.org>
1445 * trans-intrinsic.c (gfc_conv_intrinsic_sign): Call fold.
1447 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1449 * fortran/trans.c (gfc_finish_block): Call rationalize_compound_expr
1450 for a correct expression.
1452 2003-09-10 Kejia Zhao <kejia_zh@yahoo.com.cn>
1454 * trans-intrinsic.c (real_compnt_info): New struct.
1455 (prepare_arg_info): New function.
1456 (gfc_conv_intrinsic_set_exponent): New function.
1457 (gfc_conv_intrinsic_scale): New function.
1458 (gfc_conv_intrinsic_nearest): New function.
1459 (gfc_conv_intrinsic_fraction): New function.
1460 (gfc_conv_intrinsic_exponent): New function.
1461 (gfc_conv_intrinsic_spacing): New function.
1462 (gfc_conv_intrinsic_rrspacing): New function.
1463 (gfc_conv_intrinsic_function): Use them.
1465 2003-08-24 XiaoQiang Zhang (zhangapache@yahoo.com>
1467 * trans-const.c (gfc_conv_mpz_to_tree): Fix bug, parameter for
1468 build_int_2 changed from (high, low) to (low, high).
1469 * trans-io.c (ioparm_namelist_name, ioparm_namelist_name_len,
1470 ioparm_namelist_read_mode, iocall_set_nml_val_int,
1471 iocall_set_nml_val_float, iocall_set_nml_val_char,
1472 iocall_set_nml_val_complex, iocall_set_nml_val_log): New declaration.
1473 (gfc_build_io_library_fndecls): Add variable initialization.
1474 (gfc_new_nml_name_expr, get_new_var_expr): New function.
1475 (build_dt): Add namelist support.
1476 * io.c (value): New variable.
1477 (check_format): Support FMT_H now.
1479 2003-09-07 Paul Brook <paul@nowt.org>
1481 * io.c (gfc_resolve_dt): Error if format label is not defined.
1483 2003-09-07 Kejia Zhao <kejia_zh@yahoo.com.cn>
1485 * trans-intrinsic.c (gfc_conv_intrinsic_aint): Fix two bugs. One is
1486 about case_switch's break. The other is about building the condition
1487 statement tree, which judges the argument in the range of the
1488 corresponding integer type.
1489 * trans-intrinsic.c (gfc_conv_intrinsic_mod): MOD and MODULO can work
1490 for the large values.
1492 2003-09-05 Paul Brook <paul@nowt.org>
1494 * f95-lang.c (expand_function_body): Gimplify the function.
1496 2003-09-04 Jeff Law <law@redhat.com>
1498 * f95-lang.c (DEFINE_MATH_BUILTIN): C arrays start at
1501 2003-09-04 Paul Brook <paul@nowt.org>
1503 * f95-lang.c (gfc_define_builtin): Also set implicit_built_in_decls.
1504 (gfc_expand_stmt): New function.
1505 (LANG_HOOKS_RTL_EXPAND_STMT): Define.
1506 (expand_function_body): Use tree_rest_of_compilation.
1507 * trans-decl.c (gfc_generate_function_code): Don't free cfun.
1509 2003-09-03 Jeff Law <law@redhat.com>
1511 * f95-lang.c (gfc_init_builtin_functions): C arrays start at
1514 2003-08-30 Paul Brook <paul@nowt.org>
1516 * f95-lang.c (builtin_function): Remove #if 0 code.
1517 (gfc_define_builtin): New function.
1518 (gfc_init_builtin_functions): Use mathbuiltins.def not ../builtins.def.
1519 * mathbuiltins.def: New file.
1520 * trans-intrinsic.c (gfc_intrinsic_map_t): Add builtin code fields.
1521 (gfc_intrinsic_map): Use mathbuiltins.def.
1522 (gfc_intrinsic_builtin_t): Remove.
1523 (gfc_build_intrinsic_lib_fndecls): Update.
1524 * trans-types.c (gfc_init_types): Remove redundant initilaization of
1525 signed_size_type_node.
1527 2003-08-29 Paul Brook <paul@nowt.org>
1529 * arith.c (gfc_real_kinds): Use correct minimum exponents.
1531 2003-08-22 Kejia Zhao <kejia_zh@yahoo.com.cn>
1533 * trans-instinsic.c (gfc_conv_intrinsic_mod): Also do MODULO.
1534 (gfc_conv_intrinsic_function): Add MODULO.
1536 2003-08-22 Jason Merrill <jason@redhat.com>
1538 * trans-array.c (gfc_conv_expr_descriptor): Update use of predicates.
1540 2003-08-22 Andreas Jaeger <aj@suse.de>
1542 * Make-lang.in (f95.install-common): Add DESTDIR support.
1543 * (f95.install-info): Likewise.
1544 (f95.uninstall): Likewise.
1546 2003-08-19 Diego Novillo <dnovillo@redhat.com>
1548 * trans-types.c (gfc_init_types): Initialize
1549 signed_size_type_node with size_type_node.
1551 2003-08-18 Paul Brook <paul@nowt.org>
1553 * dependency.c (gfc_dependency): New enum.
1554 (check_another_array_ref): Remove.
1555 (gfc_get_array_from_component): Remove.
1557 (get_range): Remove.
1558 (get_no_of_elements): Use mpz_t, not mpf_t.
1559 (transform_sections): New function.
1560 (gfc_check_range_range): Rename ...
1561 (gfc_check_section_vs_section): ... to this. Use new function.
1562 (gfc_is_inside_range): Rewrite to match.
1563 (gfc_check_element_vs_section): Ditto.
1564 (gfc_check_element_vs_element): Ditto.
1566 (gfc_dep_resolver): Ditto. Remove unused parameter.
1567 * Dependency.h (gfc_check_range_range, gfc_check_element_vs_section,
1568 gfc_check_element_vs_element, gfc_is_inside_range,
1569 gfc_get_array_from_component): Remove prototypes for static functions.
1570 (gfc_dep_resolver): Update prototype.
1571 * trans-array.c (gfc_conv_resolve_dependencies): Change to match.
1573 2003-08-15 Paul Brook <paul@nowt.org>
1575 * trans-decl.c (gfc_build_qualified_array): Don't add symbols for
1576 return values to parent scope.
1577 (gfc_build_dummy_array_decl): Ditto.
1579 2003-08-14 Paul Brook <paul@nowt.org>
1581 * trans-stmt.c (gfc_trans_allocate): Handle NULL refs. Allocate the
1582 size of the type, not the pointer.
1583 * resolve.c (resolve_symbol): Give more accurate error message.
1585 2003-08-10 Paul Brook <paul@nowt.org>
1587 * trans-decl.c (gfc_build_function_decl): Only mangle global symbols.
1589 2003-08-10 Paul Brook <paul@nowt.org>
1591 * trans-stmt.c (gfc_trans_allocate): Correctly handle non-array derived
1594 2003-08-10 Chun Huang <compiler@sohu.com>
1596 * resolve.c (resolve_formal_arglist): Resolve STATEMENT function.
1597 (resolve_symbol): Ditto.
1598 * trans-expr.c (gfc_conv_statement_function): New function.
1599 (gfc_conv_function_expr): Use it.
1601 2003-08-10 Paul Brook <paul@nowt.org>
1603 * trans-array.c (gfc_conv_ss_startstride): Handle functions.
1604 (walk_function_expr): Set section rank.
1605 * trans-intrinsic.c (gfc_walk_intrinsic_libfunc): Ditto.
1607 2003-08-10 Paul Brook <paul@nowt.org>
1609 * intrinsic.c (add_sym): Prefix names with correct string.
1610 (add_sym_0s): New function.
1611 (add_subroutines): Register abort.
1613 2003-08-10 Erik Schnetter <schnetter@uni-tuebingen.de>
1615 * gfortran.h: Introduce options to control the mangling.
1616 * lang.opt: Likewise.
1617 * options.c (gfc_init_options): Handle the options.
1618 * trans-common.c (gfc_sym_mangled_common_id): New function.
1619 (gfc_build_common_decl): Call it.
1620 * trans-decl.c (gfc_sym_mangled_function_id): New function.
1621 (gfc_get_extern_function_decl, gfc_build_function_decl): Call it.
1623 2003-08-09 Paul Brook <paul@nowt.org>
1625 * module.c (mio_symbol): Always ouput a namespace for formal args.
1626 (load_needed): Namespace now belong to their proper symbol.
1627 (gfc_dump_module): Change G95=>GFORTRAN.
1629 2003-08-05 Paul Brook <paul@nowt.org>
1631 * options.c: Force -fg77-calls.
1633 2003-08-02 Paul Brook <paul@nowt.org>
1635 * Makelang.in: Rename G95_* to GFORTRAN_*.
1636 * All sources: Rename G95_* to GFC_*.
1638 2003-08-01 Paul Brook <paul@nowt.org>
1640 * fortran/Make-lang.in: Use GMPLIBS.
1641 * fortran/config-lang.in: Set need_gmp.
1642 * trans-expr.c (gfc_conv_variable): Remove incorrect assertion.
1644 2003-07-27 Andreas Jaeger <aj@suse.de>
1646 * trans-decl.c (gfc_generate_constructors): Convert prototype to
1648 * trans-const.c (gfc_init_constants): Likewise.
1649 * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Likewise.
1651 * gfortranspec.c: Convert to ISO C90.
1652 (lang_specific_driver): Correct copyright, remove ALT_LIBM usage.
1654 2003-07-26 Paul Brook <paul@nowt.org>
1656 * lang.opt: Add -fdump-parse-tree.
1657 * options.c (gfc_handle_option): Ditto.
1658 * resolve.c (resolve_forall_iterators): Convert to proper type.
1659 * trans-stmt.c (gfc_trans_forall_1): Create temp var with correct type.
1661 2003-07-26 Paul Brook <paul@nowt.org>
1663 * Makefile.in: Add build dependencies on files common with rest of gcc.
1665 2003-07-26 Lifang Zeng <zlf605@hotmail.com>
1667 * trans.h: Declare g95_trans_pointer_assignment.
1668 * trans-expr.c (g95_trans_pointer_assignment): New function.
1669 (g95_trans_pointer_assign): Use it.
1670 * trans-stmt.c (g95_trans_forall_1): Handle pointer assignment.
1671 (g95_trans_pointer_assign_need_temp): New function.
1673 2003-07-26 Paul Brook <paul@nowt.org>
1675 * gfortran.texi: Replace references to g95.
1677 2003-07-26 Paul Brook <paul@nowt.org>
1679 Rename g95_* to gfc_*.
1681 2003-07-25 Paul Brook <paul@nowt.org>
1683 * gfortran.h: Rename from g95.h.
1684 * trans-types.c (boolean_type_node, booelan_true_node,
1685 boolean_false_node): Remove.
1686 * trans-types.h: Ditto.
1688 2003-07-25 Chun Huang <compiler@sohu.com>
1690 * parse.c (accept_statement): Implement BLOCK DATA statement.
1691 * trans-expr.c (g95_conv_variable): Fix bug for dereference pointer
1694 2003-07-24 Lifang Zeng <zlf605@hotmail.com>
1696 * trans-stmt.c (temporary_list): Define.
1697 (g95_trans_assign_need_temp): New function.
1698 (g95_trans_forall_1): Modified for WHERE.
1699 (g95_trans_where_assign): Modified.
1700 (g95_trans_where_2): Modified.
1701 (g95_evaluate_where_mask): Modified.
1702 (g95_trans_where): Modified.
1703 (g95_get_temp_expr): Removed.
1704 (g95_add_to_where_stmt_list): Removed.
1705 (compute_overall_iter_number): Modified for WHERE.
1706 * trans.h: Remove where_stmt_list.
1708 2003-07-24 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1710 * lang.opt: Correct description of options -J and -M.
1712 2003-07-23 Steven Bosscher <steven@gcc.gnu.org>
1714 * lang.opt: Move help text to here.
1715 * lang-options.h: Remove.
1717 2003-07-23 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1718 * iresolve.c (g95_resolve_transpose): Proper variable in switch.
1719 * simplify.c (g95_simplify_nearest): Fix typo and use a correct test
1722 2003-07-22 Steven Bosscher <steven@gcc.gnu.org>
1723 Paul Brook <paul@nowt.org>
1725 * check.c (check_rest): Use global pedantic flag.
1726 * io.c (data_desc): Ditto.
1727 * error.c (g95_warning, g95_warning_now): Use global flag.
1728 * f95-lang.c (LANG_HOOKS_HANDLE_OPTION): Rename from DECODE.
1729 (expand_function_body): Update to new prototypes.
1730 (g95_init): Use new option names.
1731 * g95.h (g95_option_t): Standardize names.
1732 (g95_init_options, g95_handle_option): Update prototypes.
1733 * interface.c: Use new option names.
1740 * simplify.c: Ditto.
1742 * trans-array.c: Ditto.
1743 * trans-expr.c: Ditto.
1744 * trans-types.c: Ditto.
1745 * trans-decl.c: Ditto.
1746 (g95_build_library_function_decl): Remove obsolete VPARAMS.
1748 * options.c (g95_display_help): Remove.
1749 (g95_init_options): Convert to new scheme.
1751 (g95module_option): Ditto, rename from g95_parse_arg.
1752 (g95_handle_module_path_options): New function.
1753 * trans-equivalence.c: Fix error message.
1754 * lang.opt: Corrections.
1756 2003-07-21 Steven Bosscher <steven@gcc.gnu.org>
1758 * lang.opt: New file.
1760 2003-07-21 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1762 * decl.c (match_attr_spec): Set colon_seen.
1764 2003-07-14 Paul Brook <paul@nowt.org>
1766 * trans-array.c: Update comment.
1767 (g95_trans_array_constructor_subarray): Cleanup loopinfo data.
1768 * trans-intrinsic.c (g95_conv_intrinsic_anyall,count,arith,
1769 minmaxloc,minmaxval): Ditto.
1770 * trans-io.c (g95_trans_transfer): Ditto.
1771 * trans-stmt.c: Remove unneeded prototypes.
1772 (generate_loop_for_lhs_to_rhs): Rename vars. Add loop post chain.
1773 (generate_loop_for_rhs_to_temp): Rename vars. Don't share loopinfo.
1774 (compute_inner_temp_size): Remove bits of dead code. Add comments.
1775 Don't share loopinfo.
1776 (compute_overall_iter_number): Declare as static.
1777 (allocate_temp_for_forall_nest): Ditto.
1778 (g95_trans_forall_1): Don't pass shared loopinfo.
1779 * trans.c (g95_start_block): Expand comment.
1781 2003-07-12 Paul Brook <paul@nowt.org>
1783 * arith.c (g95_index_integer_kind): Remove unused initializer.
1784 * trans-stmt.c (generate_loop_for_temp_to_lhs): Don't multiply array
1785 index by size of element.
1786 (generate_loop_for_rhs_to_temp): Ditto.
1787 (allocate_temp_for_forall_nest): Use element size, not index size.
1789 2003-07-11 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1791 * arith.c (g95_index_integer_kind): Add a TODO.
1792 * simplify.c (g95_simplify_nearest): Add a TODO.
1794 2003-07-09 Chun Huang <compiler@sohu.com>
1796 * trans.h: Add declarations for gfor_fndecl_string_scan and
1797 gfor_fndecl_string_verify.
1798 * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
1799 * trans-intrinsic.c (g95_conv_intrinsic_scan): New function.
1800 (g95_conv_intrinsic_verify): New function.
1801 (g95_conv_intrinsic_function): Add SCAN and VERIFY.
1802 * simplify.c (g95_simplify_scan, g95_simplify_verify): Fix bug in case
1803 of parameter 'BACK=.TRUE.'
1805 2003-07-05 Lifang Zeng <zlf605@hotmail.com>
1807 * trans-stmt.c (iter_info, forall_info): Define.
1808 (g95_trans_forall_block): Remove.
1809 (g95_trans_forall_loop): Use forall info blocks.
1810 (g95_trans_nested_forall_loop): New function.
1811 (g95_do_allocate): Handle things other than logical masks.
1812 (generate_loop_for_temp_to_lhs): New function.
1813 (generate_loop_for_rsh_to_temp): New function.
1814 (compute_inner_temp_size): New function.
1815 (compute_overall_iter_number): New function.
1816 (allocate_temp_for_forall_nest): New function.
1817 (g95_trans_forall): Move body ...
1818 (g95_trans_forall_1): ... to here. Handle loops with temporaries.
1820 2003-07-02 Paul Brook <paul@nowt.org>
1822 * trans-decl.c (create_index_var, g95_build_qualified_array): Put vars
1823 in correct scope. Change callers to match.
1824 * trans-types.c (g95_get_dtype_cst): Allow rank 7 arrays.
1825 * iresolve.c (g95_resolve_reshape): Only use constant shapes.
1827 2003-07-02 Paul Brook <paul@nowt.org>
1829 * trans-array.c (g95_conv_loop_setup): Remove dead var. Use
1830 expression shape for all expressions.
1831 * trans-decl.c (g95_symbol_init): Allow adding at very end of list.
1833 2003-07-03 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1835 * g95.h (g95_option_t), lang-options.h, options.c (g95_init_options,
1836 g95_parse_arg), intrinsic.c (g95_convert_type): support of
1838 * intrinsic.c, g95.h: Add g95_convert_type_warn,
1839 * resolve.c (g95_resolve_index): Call it.
1841 2003-07-02 Paul Brook <paul@nowt.org>
1843 * iresolve.c (g95_resolve_reshape): Set expression shape.
1844 (g95_resolve_shape): Ditto.
1845 * simplify.c (g95_simplify_shape): Move common code outside condition.
1846 * trans-array.c (g95_conv_array_initializer): Teach it how to count.
1848 2003-07-01 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1850 * array.c (g95_array_dimen_size): Deal with EXPR_ARRAY to improve
1853 2003-06-29 Paul Brook <paul@nowt.org>
1855 * array.c (g95_simplify_iterator_var): Don't bother with return value.
1856 * expr.c (find_array_element, find_component_ref): New functions.
1857 (remove_subobject_ref): New function.
1858 (simplify_const_ref): Use them. Rename from simplify_component_ref.
1859 (simplify_ref_chain): New function.
1860 (g95_simplify_expr): Use it. Simplify parameter variable subobjects.
1861 (g95_specification_expr): Simplify the expression.
1862 * resolve.c (resolve_operator): Check simplifications return code.
1863 (g95_resolve_expr): Ditto.
1865 2003-06-26 Paul Brook <paul@nowt.org>
1867 * expr.c (simplify_component_ref): New function.
1868 (g95_simplify_expr): Use it.
1869 * resolve.c (resolve_structure_cons): Handle references.
1871 2003-06-25 Paul Brook <paul@nowt.org>
1873 * trans-io.c (build_dt): Handle internal units.
1875 2003-06-25 Canqun Yang <canqun@yahoo.com.cn>
1877 * trans-common.c (g95_build_common_decl): Array index range starts at 0.
1878 (g95_build_common_decl, g95_layout_global_equiv, g95_trans_one_common):
1879 Use g95_array_index_type instead of integer_type_node.
1880 (g95_build_common_decl, g95_set_common_master_type): Use
1881 g95_character1_type_node instead of char_type_node.
1882 * trans-equivalence.c (g95_layout_local_equiv): As above.
1884 2003-06-24 Steven G. Kargl <kargls@attbi.com>
1886 * g95.h (g95_option_t), options.c (g95_init_options, g95_parse_arg):
1887 remove last remains of -fquiet.
1889 2003-06-22 Paul Brook <paul@nowt.org>
1891 * resolve.c (resolve_operator): Don't fail if we can't simplify.
1892 (g95_resolve_expr): Ditto.
1893 (resolce_code): Mark as static.
1894 * trans-stmt.c (g95_trans_chaaracter_select): Mark labels because the
1895 gimplifer doesn't (yet).
1897 2003-06-20 Paul Brook <paul@nowt.org>
1899 * g95.h: Add ST_PAUSE and EXEC_PAUSE.
1900 * match.c (g95_match_if): Add ST_PAUSE.
1901 (g95_match_stopcode): New function.
1902 (g95_match_pause, g95_match_stop): Use it.
1903 * parse.c (g95_ascii_statement): Handle ST_PAUSE.
1904 (decode_stmt, next_statement, parse_executable): Ditto.
1905 * resolve.c (resolve_code): Ditto.
1906 * st.c (g95_free_statement): Ditto.
1907 * trans-stmt.c (g95_trans_pause): New function.
1908 * trans-stmt.h: Declare it.
1909 * trans.c (g95_trans_code): Use it.
1910 * trans-decl.c (gfor_fndecl_pause_numeric, gfor_fndecl_pause_string):
1912 (g95_build_builtin_function_decls): Initialize them.
1914 * dump-parse-tree.c (g95_show_code_node): Handle EXEC_PAUSE.
1916 2003-06-18 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1918 * io.c (g95_match_open , g95_match_close, g95_match_inquire,
1919 match_filepos): Fix error handling.
1921 2003-06-18 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1923 * array.c (spec_dimen_size, ref_dimen_size, g95_array_dimen_size):
1924 Add assertions on arguments.
1925 * resolve.c (expression_shape): Remove useless &.
1926 * simplify.c (get_kind, g95_simplify_bit_size, g95_simplify_digits,
1927 g95_simplify_ibclr, g95_simplify_ibits, g95_simplify_ibset,
1928 g95_simplify_ishft,g95_simplify_ishftc, g95_simplify_maxexponent,
1929 g95_simplify_minexponent, g95_simplify_radix, g95_simplify_range
1930 g95_simplify_rrspacing, g95_simplify_scale, g95_simplify_spacing,
1931 g95_simplify_tan, g95_simplify_tiny): Clean predicates and assertions.
1932 (g95_simplify_not, g95_simplify_scale): Add assertions.
1934 2003-06-15 Paul Brook <paul@nowt.org>
1936 Clean up stuff to work with the ssa optimizers.
1937 * convert.c (convert): Handle BOOLEAN_TYPEs.
1938 * f95-lang.c (g95_truthvalue_conversion): Implement.
1939 * trans-array.c (g95_trans_array_constructor_value): Group multiple
1941 * trans.h (g95_truthvalue_conversion): Declare.
1942 * trans-intrinsic.c (g95_conv_intrinsic_anyall): Use bool constants.
1943 * trans-stmt.c (g95_trans_character_select): Don't create array
1944 assignments. Mark labels as indirect jump targets.
1945 * trans-types.h (g95_init_types): Use BOOLEAN_TYPE nodes.
1946 (g95_get_dtype_cst): Handle LOGICAL types.
1948 2003-06-14 Paul Brook <paul@nowt.org>
1950 * f95-lang.c (g95_gimplify_expr): New function.
1951 * trans-array.c (g95_trans_array_constructor_value): Don't create
1953 (g95_conv_expr_descriptor): Rename simple->gimple.
1954 * trans-expr.c (conv_expr_op): Use proper logical operators.
1955 * trans-intrinsic.c (build_fixbound_expr): New function.
1956 (build_fix_expr): Ditto.
1957 (g95_conv_intinsic_aint): Use them. Use builtin functions.
1958 (g95_conv_intrinsic_function): Add FLOOR and CEILING.
1960 2003-06-10 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1962 * array.c (g95_compare_array_spec): Remove unreachable code.
1963 * expr.c (g95_copy_expr): Likewise.
1964 * intrinsic.c (g95_convert_type): Likewise.
1965 * misc.c (g95_code2string): Likewise.
1966 * simplify.c (g95_simplify_ishft, g95_simplify_real,
1967 g95_simplify_reshape, g95_simplify_sign, g95_simplify_sqrt): Likewise.
1968 * trans-stmt.c (g95_trans_select): Likewise.
1969 * primary.c (extend_ref): Add an assertion.
1970 * simplify.c (g95_convert_constant): Add const.
1971 * intrinsic.h: Remove g95_check_x_ni.
1972 * f95-lang.c (g95_finish): Call g95_release_include_path.
1974 2003-06-10 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
1976 * resolve.c (resolve_contained_functions): Fix typo introduced on
1979 2003-06-09 Paul Brook <paul@nowt.org>
1981 * g95.h: Include system.h not hwint.h.
1982 * many: use safe-ctype.h not ctype.h. Change isalpha -> ISALPHA, etc.
1983 * misc.c (g95_getmem): Use xmalloc/memset instead of calloc.
1985 2003-06-09 Paul Brook <paul@nowt.org>
1987 * g95.h (g95_symbol): Add fields for COMMON and EQUIVALENCE variables.
1988 * Make-lang.in (F95_OBJS): Add files for COMMON and EQUIVALENCE.
1989 * trans-decl.c (g95_add_decl_to_functions): Make non-static.
1990 (g95_get_symbol_decl): Handle COMMON and EQUIVALENCE objects.
1991 (g95_generate_function_code): Translate COMMON and EQUIVALENCE
1993 * trans.h (g95_trans_equivalence, g95_trans_common,
1994 g95_add_decl_to_function): Declare.
1995 * trans-common.c, trans-equivalence.c: New files.
1997 2003-06-08 Steven Bosscher <steven@gcc.gnu.org>
1999 * intrinsic.c (g95_intrinsic_extension): Remove.
2000 (add_functions): Substitute g95_check_x for g95_check_x_ni
2002 (g95_init_expr_extensions): New function.
2003 (g95_intrinsic_func_interface): Use it.
2004 * intrinsic.h: Remove extern decl for g95_intrinsic_extension.
2005 * check.c (g95_check_digit, g95_check_huge, g95_check_kind,
2006 g95_check_precision, g95_check_present, g95_check_radix,
2007 g95_check_range, g95_check_selected_real_kind): Do not set
2008 g95_intrinsic_extension.
2009 (g95_check_x_ni): Remove now duplicate of g95_check_x.
2011 * expr.c (check_inquiry): Add FIXME, fixup some code style.
2013 2003-06-06 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2015 * g95.h (ref_type): Name this type explicitly.
2016 * module.c (MIO_NAME): Add specialisations of mio_name.
2017 (mio_symbol_attribute, mio_typespec, mio_array_ref,
2018 mio_array_spec, mio_ref, mio_expr, mio_symbol): Use them.
2019 (ab_attribute): Name this type explicitly.
2020 (mio_symbol_attribute, mio_expr): Add cast to call to find_enum.
2022 2003-06-05 Kejia Zhao <kejia_zh@yahoo.com.cn>
2024 * trans-intrinsic.c (g95_conv_allocated): New function.
2025 (g95_conv_intrinsic_function): Make G95_ISYM_ALLOCATED work.
2027 2003-06-05 Steven Bosscher <steven@gcc.gnu.org>
2029 * f95-lang.c: Don't include g95-support.h
2030 (g95_mark_addressable): Add prototype.
2031 (g95_init_decl_processing): Remove C front end hack.
2032 * f95-tree.c: Remove file.
2033 * support.c: Remove file.
2034 * g95-support.h: Remove file.
2035 * trans-types.c (g95_init_types): Set up boolean
2036 type related tree nodes.
2037 * Make-lang.in: Remove rules for dead files and
2038 dependencies on them.
2040 2003-06-05 Steven Bosscher <steven@gcc.gnu.org>
2042 * Make-lang.in (F95_ADDITIONAL_OBJS): Remove the final
2043 C front end dependency. Also, convert.c does not depend on
2044 g95-support.h anymore.
2045 * convert.c: Don't include c-common.h and g95-support.h
2046 * f95-lang.c: Don't inlude c-common.h and c-common.def (3x).
2047 (g95_stmt_tree, g95_scope_stmt_stack, anon_aggr_type_p,
2048 stmts_are_full_exprs_p, current_stmt_tree,
2049 current_scope_stmt_stack): Remove.
2050 * g95-support.h (unsigned_conversion_warning): Kill proto.
2051 (boolean_type_node, boolean_true_node, boolean_false_node):
2052 Don't define here. Instead, make then true tree nodes in
2054 * support.c (c_global_trees): Die, C front end, die!!!
2055 (g95_init_c_decl_hacks): Don't touch intmax_type_node,
2056 uintmax_type_node, string_type_node and const_string_type_node.
2057 (decl_constant_value, overflow_warning): Make static functions.
2058 They are in death row too, though.
2059 (default_conversion, c_expand_asm_operands): Remove.
2060 * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-stmt.c,
2061 trans.c: Don't include c-common.h.
2062 * trans-types.c (boolean_type_node, boolean_true_node,
2063 boolean_false_node): Make them real tree nodes.
2064 * trans-types.h (intmax_type_node, string_type_node,
2065 const_string_type_node): Hack to work around C dependencies
2066 in builtin-types.def.
2068 2003-06-04 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2070 * decl.c (decl_types): Add some iterators-like sentinels.
2071 * decl.c (match_attr_spec): Use them.
2072 Use "decl_types" instead of "int".
2073 Add cast in call to g95_match_strings.
2074 * dump-parse-tree.c (g95_show_namespace): Use "g95_intrinsic_op"
2076 * g95.h (g95_intrinsic_op): Add some iterators-like sentinels.
2077 (g95_interface_info): Use "g95_intrinsic_op".
2078 * dump-parse-tree.c (g95_show_namespace): Use them.
2079 * interface.c (g95_check_interfaces): Use them.
2080 * module.c (read_module, write_module): Use them.
2081 * symbol.c (g95_get_namespace, g95_free_namespace): Use them.
2082 Use "g95_intrinsic_op".
2083 * interface.c (check_operator_interface): Use "g95_intrinsic_op".
2084 Add a default case in switch statement.
2085 * intrinsic.h (g95_generic_isym_id): Moved to...
2086 * g95.h (g95_generic_isym_id): here.
2087 (g95_intrinsic_sym): Use "g95_generic_isym_id".
2088 * intrinsic.c (make_generic): Use "g95_generice_isym_id".
2089 * trans-intrinsic.c (g95_intrinsic_map_t,
2090 g95_conv_intrinsic_lib_funtion): Use "g95_generice_isym_id".
2091 * match.c (g95_match_intrinsic_op): Add cast in call to
2094 2003-06-03 Steven Bosscher <steven@gcc.gnu.org>
2096 * support.c (skip_evaluation, warn_conversion, lvalue_p,
2097 lvalue_or_else, pedantic_lvalue_warning, warn_for_assignment,
2098 constant_fits_type_p, convert_and_check,
2099 unsigned_conversion_warning): Remove these ugly remnants
2100 we inherited from the C front end.
2101 (function_types_compatible): Remove '#if 0'-edcode.
2102 (build_modify_expr): Likewise.
2103 (convert_for_assignment): Don't use the deceased functions.
2104 The parameter fundecl is now unused.
2105 (decl_constant_value): Always just return decl. In fact
2106 this function is not used at present, but it might be in
2107 the future, when we start using the tree inliner.
2108 (overflow_warning, default_conversion, c_expand_asm_operands):
2109 Abort when these are called, they are part of the C type
2110 checking implementation and therefore poison to Fortran.
2112 2003-06-04 Steven Bosscher <steven@gcc.gnu.org>
2114 * Make-lang.in (F95_ADDITIONAL_OBJS): Don't depend on
2115 c-pretty-print.o and c-dump.o. Add a comment on why we
2116 depend on c-semantics.c.
2117 * f95-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN):
2118 Don't use the C front end tree dumper hook to dump the
2119 language specific tree representation -- we don't have
2120 one. So instead, inherit the default langhook.
2122 2003-06-02 Paul Brook <paul@nowt.org>
2124 * trans-expr.c (g95_conv_variable): Remove incorrent assertion.
2126 2003-06-02 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2128 * check.c (g95_check_associated): Use proper types. Remove
2129 extraneous argument in call to g95_error().
2131 2003-06-02 Kejia Zhao <kejia_zh@yahoo.com.cn>
2133 * resolve.c (resolve_operator): Make logical operands convert to the
2134 type with higher kind.
2136 2003-06-02 Kejia Zhao <kejia_zh@yahoo.com.cn>
2138 * check.c (g95_check_associated): Make sure both pointer and target has
2139 the same type and rank. Null pointer or array section with vector
2140 subscript as target are not allowed.
2141 * trans.h: Declare gfor_fndecl_associated.
2142 * trans-decl.c: (g95_build_builtin_function_decls): Initialize
2143 gfor_fndecl_associated.
2144 * trans-intrinsic.c (g95_conv_associated): New function.
2145 (g95_conv_intrinsic_function): Make G95_ISYM_ASSOCIATED work.
2147 2003-06-02 Kejia Zhao <kejia_zh@yahoo.com.cn>
2149 * trans-array.c (g95_conv_expr_descriptor): Set the base of POINTER
2150 according to POINTER itself rather than TARGET.
2151 (g95_conv_expr_descriptor): Make lbound start at 1.
2152 * trans-expr.c (g95_trans_pointer_assign): Fix a bug for Nullify.
2154 2003-06-01 Paul Brook <paul@nowt.org>
2156 * expr.c (g95_type_convert_binary): Make it match the standard.
2157 * g95.texi: Remove dead link.
2159 2003-06-01 Steven Bosscher <steven@gcc.gnu.org>
2161 * g95.texi: Cleanup somewhat in preparation for inclusion
2164 2003-05-23 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2165 Canqun Yang <canqun@yahoo.com.cn>
2167 * resolve.c (compare_bound_int, resolve_where_shape): Proper return
2169 (g95_find_forall_index): Return proper value.
2170 (g95_resolve_assign_in_forall, g95_resolve_forall): Use proper type to
2171 compare the return value from g95_find_forall_index.
2173 2003-05-23 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2174 * g95.h, io.c (g95_st_label): Remove "length".
2175 (g95_symtree): Remove "link".
2176 (g95_case): Remove "code".
2177 * arith.c, arith.h (g95_compare_string, g95_convert_integer,
2178 g95_convert_real): Make an argument pointer to const.
2179 * decl.c (colon_seen): Add a TODO.
2180 * interface.c (g95_compare_types): Fix typo.
2181 * interface.c (compare_interfaces): Preserve value of "p".
2182 * intrinsic.c (sort_actual): Remove "i".
2183 * match.c (g95_match_assign): Proper type in call to g95_match().
2184 * parse.c (next_free): Avoid duplicate call due to macro.
2185 * parse.c (check_statement_label): wrong type in call to g95_error.
2186 * primary.c (match_real_constant): Add a TODO.
2187 * resolve.c (resolve_select): Remove useless conditional.
2188 * simplify.c (g95_simplify_repeat): Proper assignment to
2189 "value.character.string".
2190 * simplify.c (g95_simplify_reshape): Wrong variable in call to
2193 2003-05-20 Canqun Yang <canqun@yahoo.com.cn>
2195 * trans-stmt.c: Remove unnecessary include file defaults.h.
2197 2003-05-19 Lifang Zeng <zlf605@hotmail.com>
2199 * trans-stmt.c (g95_trans_forall_loop): Handle FORALL with negative
2201 (g95_trans_forall): Allow arbitrary number of FORALL indexes and
2202 actual variables used as FORALL indexes.
2204 2003-05-15 Paul Brook <paul@nowt.org>
2206 * trans-array.c (g95_trans_static_array_pointer): Use
2208 (g95_trans_deferred_array): Initialize static array pointers.
2209 * trans-expr.c (g95_conv_function_call): Use formal arglist to
2210 correctly pass POINTER and absent CHARACTER arguments.
2212 2003-05-14 Lifang Zeng <zlf605@hotmail.com>
2214 * resolve.c (g95_resolve_forall): Resolve FORALL construct/statement.
2215 (g95_resolve_forall_body): Resolve FORALL body.
2216 (g95_resolve_where_code_in_forall): Resolve WHERE inside FORALL.
2217 (g95_resolve_assign_in_forall): Resolve assignment inside FORALL.
2218 (g95_find_forall_index): Check whether the FORALL index appears in
2219 the expression or not.
2220 (resolve_code): Modified.
2222 2003-05-14 Paul Brook <paul@nowt.org>
2224 * iresolve.c (g95_resolve_spread): Convert ncopies to index_type.
2226 2003-05-13 Paul Brook <paul@nowt.org>
2228 * trans-types.c (g95_max_array_element_size): Now a tree node.
2229 (g95_init_types): Work out max size properly.
2230 (g95_get_dtype_cst): Modify to match.
2232 2003-05-11 Paul Brook <paul@nowt.org>
2234 * trans-io.c (add_case): Create a label decl for case labels.
2236 2003-05-11 Paul Brook <paul@nowt.org>
2238 * arith.c (g95_integer_index_kind): New variable.
2239 * f95-lang.c (g95_init): Move frontend initialization here ...
2240 (g95_post_options): ... from here.
2241 * g95.h (g95_index_integer_kind, g95_resolve_index): Declare.
2242 * intrinsic.c (add_functions): Use index kinds.
2243 * iresolve.c: Convert to index_kind where needed.
2244 * resolve.c (g95_resolve_index): Make public, use index_kind.
2245 (resolve_array_ref): Adjust to match.
2246 * trans-array.c: Rename g95_array_index_kind to g95_index_integer_kind.
2247 * trans-stmt.c: Ditto.
2248 * trans-types.c: Ditto.
2249 * trans-types.h (g95_array_index_kind): Remove declaration.
2250 * trans-expr.c (g95_conv_expr_present): Use null_pointer_node.
2252 2003-05-07 Paul Brook <paul@nowt.org>
2254 * trans-const.c (g95_conv_mpz_to_tree): Typecast constant.
2255 * trans-intrinsic.c (g95_conv_intrinsic_bound): Convert type
2258 2003-05-07 Paul Brook <paul@nowt.org>
2260 * trans-array.c (trans_static_array_pointer,
2261 g95_trans_array_constructor_value, g95_conv_array_initializer,
2262 g95_conv_structure): CONSTRUCTOR nodes only have one operand.
2263 (g95_add_loop_ss_code): Convert subscripts to the correct type.
2264 * trans-stmt.c (g95_trans_character_select): Ditto.
2265 * trans-types.c (g95_init_types): Ditto.
2267 2003-05-07 Steven Bosscher <steven@gcc.gnu.org>
2269 * f95-lang.c (expand_function_body): Use input_line, not lineno.
2270 * trans-decl.c (g95_generate_function_code,
2271 g95_generate_constructors): Likewise.
2272 * trans.c (g95_trans_runtime_check, g95_add_block_to_block,
2273 g95_get_backend_locus, g95_set_backend_locus, g95_trans_code):
2276 2003-05-07 Kejia Zhao <kejia_zh@yahoo.com.cn>
2277 * trans-types.c (g95_get_derived_type): Fix bug for DERIVED type
2278 with components point to the DERIVED type itself, and two DERIVED
2279 type with components point to each other.
2280 * trans-expr.c (g95_conv_componet_ref): Modified
2282 2003-05-07 Kejia Zhao <kejia_zh@yahoo.com.cn>
2283 * trans-expr.c (g95_conv_expr): Translate EXPR_NULL into
2285 (g95_trans_pointer_assign): Implement Nullify.
2287 2003-05-01 Paul Brook <paul@nowt.org>
2289 * trans-array.c (g95_walk_function_expr): Cope with NULL esym.
2290 * trans-decl.c (g95_get_symbol_decl): Don't mangle dummy functions.
2292 2003-05-01 Paul Brook <paul@nowr.org>
2294 * trans-array.c, trans.c, trans-expr.c, trans-intrinsic.c,
2295 trans-stmt.c: Replace empty_stmt_node with build_empty_stmt () and
2298 2003-05-01 Canqun Yang <canqun@yahoo.com.cn>
2300 * trans-stmt.c (g95_trans_integer_select): Add a parameter to build
2303 2003-04-28 Paul Brook <paul@nowt.org>
2305 * iresolve.c (g95_resolve_transpose): COMPLEX types are twice as big
2306 as their kind suggests.
2307 (g95_resolve_reshape): Ditto.
2309 2003-04-28 Chun Huang <compiler@sohu.com>
2311 * trans-expr.c (g95_conv_substring_expr): New function.
2312 (g95_conv_expr): Use it.
2314 2003-04-28 Paul Brook <paul@nowt.org>
2316 * iresolve.c (g95_resolve_transpose): Make it match the
2318 * trans-intrinsic.c (g95_is_intrinsic_libcall): Add TRANSPOSE.
2320 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
2322 * trans-types.c (g95_add_field_to_struct): New function to
2323 add a field to a UNION_TYPE or RECORD_TYPE.
2324 * trans-types.h (g95_add_field_to_struct): Prototype.
2325 (g95_get_derived_type): Use g95_add_field_to_struct to add
2327 * trans-io.c (g95_add_field): Remove.
2328 (ADD_FIELD): Use new g95_add_field_to_struct function.
2329 (ADD_STRING): Likewise.
2330 * trans-stmt.c (g95_trans_select): Likewise.
2331 (g95_add_field): Remove duplicated function.
2333 2003-04-18 Canqun Yang <canqun@yahoo.com.cn>
2335 Port implementation for CHARACTER SELECT from Andy's tree.
2336 * trans-stmt.c (g95_trans_character_select): Implement character
2337 select. (g95_add_field): New function.
2338 * trans-decl.c: Declare 'gfor_gndecl_select_string'.
2339 (g95_build_builtin_function_decls): Add 'gfor_fndecl_select_string'.
2340 * g95.h (struct g95_case): Add field 'int n'.
2341 * trans.h: Declare 'gfor_fndecl_select_string'.
2343 2003-04-18 Steven Bosscher <steven@gcc.gnu.org>
2345 * bbt.c (duplicate_key, g95_insert_bbt_with_overlap): Remove.
2346 (g95_insert_bbd): Die on duplicates.
2347 * g95.h (g95_insert_bbt_with_overlap): Delete prototype.
2349 2003-04-14 Steven Bosscher <steven@gcc.gnu.org>
2351 * g95.texi: Require GMP 4.0 -- like we actually
2352 do. Explain the testsuite and what-goes-where.
2353 Don't use undefined texinfo symbol. Break very
2354 long line. Remove finished item from the list
2357 2003-04-11 Canqun Yang <canqun@yahoo.com.cn>
2359 * trans-stmt.c (g95_evaluate_where_mask): Give mask temporaries
2362 2003-04-10 Canqun Yang <canqun@yahoo.com.cn>
2364 * trans-stmt.c (g95_trans_forall): Implement WHERE inside FORALL.
2365 (g95_trans_forall_body): New function.
2367 2003-04-10 Canqun Yang <canqun@yahoo.com.cn>
2369 * resolve.c (resove_where): New function.
2370 (resolve_where_shape): New function.
2371 (resolve_code): Add call to 'resolve_where'
2372 * trans-stmt.c (g95_trans_where): Modified.
2373 (g95_trans_where_2): New function.
2374 (g95_trans_where_assign): New function.
2375 (g95_evaluate_where_mask): New function.
2376 (g95_add_to_stmt_list): New function.
2377 (g95_get_temp_expr): New function.
2378 * trans.h (where_stmt_list): New structure.
2380 2003-04-10 Paul Brook <paul@nowt.org>
2382 * g95spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
2383 (DEFAULT_WORD_SWITCH_TAKES_ARG): Ditto.
2385 2003-04-10 Steven Bosscher <steven@gcc.gnu.org>
2387 Update after mainline -> tree-ssa-branch merge.
2388 * f95-lang.c (g95_mark_addressable): Update put_var_into_stack
2390 (g95_init): Update for new lang_hooks definition.
2391 (g95_post_options): New langhook.
2392 (LANG_HOOK_POST_OPTIONS): Clear, then define to g95_post_options.
2393 * scanner.c (g95_new_file): Comment update.
2395 2003-04-09 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2397 * g95.h, lang-options.h: Add -Wimplicit-interface.
2398 * options.c (g95_init_options, g95_parse_arg): Set it.
2399 * interface.c (check_intents): Warn about call with implicit
2401 * resolve.c (resolve_unknown_f, resolve_unknown_s): Call
2404 2003-04-05 Paul Brook <paul@nowt.org>
2406 * iresolve.c (g95_resolve_spread): Don't resole based on type.
2407 * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_SPREAD.
2409 2003-03-29 Paul Brook <paul@nowt.org>
2411 * iresolve.c (g95_resolve_pack): Don't bother resolving based on type.
2412 (g95_resolve_unpack): Ditto.
2413 * trans-intrinsic.c (g95_conv_intrinsic_merge): New Function.
2414 (g95_conv_intrinsic_function): Use it. Remove PACK and UNPACK.
2415 (g95_is_intrinsic_libcall): Add PACK and UNPACK.
2417 2003-03-25 Paul Brook <paul@nowt.org>
2419 * arith.c (g95_unary_user, g95_user): Remove dead functions.
2421 * array.c (g95_free_array_ref): Ditto.
2423 * symbol.c (g95_use_derived_tree): Ditto.
2424 * intrinsic.c (add_functions): Use simplification for SCALE.
2425 * primary.c (g95_match_rvalue): Test sym, not symtree.
2427 2003-03-25 Paul Brook <paul@nowt.org>
2429 * trans-decl.c (build_function_decl): Add parameter before it gets
2430 turned into a constant.
2431 * iresolve.c (g95_resolve_eoshift): Resolve to a useful name.
2432 * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_EOSHIFT.
2433 * trans-decl.c (g95_create_module_variable): Don't pushdecl constants.
2435 2003-03-22 Paul Brook <paul@nowt.org>
2437 * trans-array.c (g95_conv_array_initializer): Allow scalar
2439 * trans-decl.c (g95_finish_var_decl): Result variables are not
2441 * trans-intrinsic.c (g95_conv_intrinsic_transfer): New function.
2442 (g95_conv_intrinsic_function): Use it.
2443 * trans-types.h (g95_type_spec): Remove dead declaration.
2445 2003-03-21 Paul Brook <paul@nowt.org>
2447 * trans-decl.c (g95_build_function_decl): Mark string parameters.
2449 2003-03-20 Paul Brook <paul@nowt.org>
2451 * trans-decl.c (g95_build_function_decl): Put character length
2452 parameters at the end of the function declaration.
2453 * trans-expr.c (g95_conv_function_call): Ditto.
2454 * trans-types.c (g95_get_function_type): Ditto.
2456 2003-03-20 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2458 * resolve.c (resolve_formal_arglist): Don't impose intent for
2459 procedure arguments of pure functions.
2460 (resolve_select): Remove redundant assignment.
2462 2003-03-19 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2464 * arith.c (validate_logical), g95.h, options.c (g95_init_options):
2466 * g95.h, intrinsic.c(g95_get_intrinsic_sub_symbol): Add const.
2467 * iresolve.c(g95_resolve_cpu_time, g95_resolve_random_number): Add
2469 * lang-options.h: Remove -finline-repack-arrays. Add -fg77-calls.
2471 * symbol.c (g95_add_type): Fix typo in comment.
2474 2003-03-16 Paul Brook <paul@nowt.org>
2476 * dump-parse-tree.c (g95_show_code_node): Print resolved sym name.
2477 * expr.c (g95_build_call): Remove.
2478 * f95-lang.c (puchdecl_top_level): New function.
2479 * g95.h (g95_code): Store resolved symbol, not just the name.
2480 * intrinsic.c (g95_intrinsic_namespace): New global namespace.
2481 (g95_intirinsic_init_1, g95_intrinsic_done_1): Use it.
2482 (g95_get_intrinsic_sub_symbol): New function.
2483 * iresolve.c (g95_resolve_cpu_time): Use it.
2484 (g95_resolve_random_number): Ditto.
2485 * resolve.c: Set code->resolved_sym instead of code->sub_name.
2486 * trans-decl.c (g95_get_extern_function_decl): Give external decls
2487 the correct DECL_CONTEXT. Add global symbold to the global scope.
2488 * trans-stmt.c (g95_trans_code): Remove hacks now the fronted is
2491 2003-03-16 Paul Brook <paul@nowt.org>
2493 * g95.h (g95_option_t): Add g77_calls. Remove inline_repack_arrays.
2494 * options.c (g95_parse_arg): Ditto.
2495 * module.c (mio_symbol_attribute): Handle the always_explicit bit.
2496 * resolve.c (resolve_formal_arglist): The always_explicit sould be set
2497 for the procedure, not the parameter.
2498 * trans-array.c (g95_trans_g77_array): New function.
2499 (g95_trans_assumed_size): Use it.
2500 (g95_trans_dummy_array_bias): Ditto.
2501 (g95_conv_array_parameter): Handle g77 arrays. Move existing body ...
2502 (g95_conv_expr_descriptor): ... to here. Update callers.
2503 * trans-decl.c (g95_build_dummy_array_decl): Handle g77 arrays.
2504 (g95_get_symbol_decl): Avoid processing g77 arrays multiple times.
2505 * trans-expr.c (g95_conv_function_call): Handle g77 arrays.
2506 * trans-intrinsic.c (g95_get_symbol_for_expr): Never use g77 arrays.
2507 * trans-types.c (g95_is_nodesc_array): Handle g77 arrays.
2508 (g95_sym_type): Ditto.
2510 2003-03-15 Paul Brook <paul@nowt.org>
2512 * trans-array.c (g95_walk_elemental_function_args): Don't amputate the
2514 * trans-expr.c (g95_conv_function_call): Use the resolved symbol.
2516 2003-03-14 Paul Brook <paul@nowt.org>
2518 * trans-array.c (g95_array_is_packed): Remove.
2519 (g95_conv_array_base): Correctly handle all descriptorless cases.
2520 (g95_conv_array_stride): Use descriptorless strides.
2521 (g95_trans_dummy_array_bias): Don't always repack the array.
2522 (g95_build_dummy_array_decl): Automatic dummy arrays are only partial
2524 * trans-types.c (g95_get_nodesc_array_type): Differentiate between
2525 dummy and non-dummy arrays...
2526 (g95_sym_type, g95_get_derived_type): ... like these.
2527 (g95_get_array_type_bounds): Allow discontiguous arrays.
2529 2003-03-12 Paul Brook <paul@nowt.org>
2531 * array.c (g95_resolve_array_spec): Fix comment.
2532 * g95.h (symbol_attributes): New flag always_explicit.
2533 * resolve.c (resolve_formal_arglist): Set it always_explicit.
2534 * iresolve.c (g95_resolve_lbound, g95_resolve_ubound): Simplify.
2535 * trans-array.c (g95_conv_descriptor_dimension): Remove dead assert.
2536 (g95_trans_array_bounds): Allow assumed shape arrays.
2537 (g95_trans_repack_array): Remove.
2538 (g95_trans_dummy_array_bias): Rewite to use descriptorless arrays.
2539 * trans-decl.c (g95_build_qualified_array): Only ignore absent
2540 bounds for assumed size arrays.
2541 (g95_build_dummy_array_decl): Use descriptorless arrays.
2542 * trans-expr.c (g95_conv_expr_present): Allow descriptorless arrays.
2543 (g95_trans_pointer_assign): Fix typo.
2544 * trans-intrinsic.c (g95_conv_intrinsic_function_args): Remove dead
2546 (g95_conv_intrinsic_bound): Rewrite to handle descriptorless arrays.
2547 * trans-types.c (g95_get_nodesc_array_type): Allow non-packed arrays.
2548 Also modify callers.
2549 * trans-types.h (g95_get_nodesc_array_type): Modify prototype.
2551 2003-03-08 Paul Brook <paul@nowt.org>
2553 * trans-array.c (g95_walk_elemental_functions): Don't reverse the SS.
2554 (g95_conv_array_ubound): Provide dummy value for assumed size arrays.
2555 * resolve.c (compare_spec_to_ref): Allow full array sections.
2557 2003-03-08 Paul Brook <paul@nowt.org>
2559 * expr.c (g95_simplify_expr): Also simplify array index and
2560 substring expressions.
2561 * resolve.c (compare_spec_to_ref): Check for assumed size bounds.
2562 * trans-array.c (g95_trans_array_bounds): New function.
2563 (g95_trans_auto_array_allocation): Use it.
2564 (g95_trans_assumed_size): Rewrite.
2565 * trans-decl.c (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
2566 (gfor_fndecl_repack): Remove.
2567 (g95_build_qualified_array): Handle absent upper bounds.
2568 (g95_build_dummy_array_decl): Assumed shape arrays are descriptorless.
2569 (g95_get_symbol_decl): Update.
2570 (g95_build_intrinsic_function_decls): Initialize new decls.
2571 * trans.h (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
2572 (gfor_fndecl_repack): Remove.
2573 * trans-io.c (g95_build_io_library_fndecls): Correct prototypes.
2574 * trans-types.c: (g95_build_array_type): Merge duplicated code..
2575 (g95_get_nodesc_array_type): Handle absent bounds.
2576 * trans-types.h (g95_get_nodesc_array_type): Declare.
2578 2003-03-04 Paul Brook <paul@nowt.org>
2580 * f95-lang.c (DEF_FUNCTION_TYPE_VAR_3): Define before including
2583 2003-03-02 Paul Brook <paul@nowt.org>
2585 * options.c (g95_init_options): Drfault to 1.
2586 (g95_pasrse_arg): Add -frepack-arrays, use strcmp.
2587 * trans-array.c (g95_conv_array_data, g95_conv_array_base,
2588 g95_conv_array_stride,g95_conv_array_lbound, g95_conv_array_ubound):
2589 Handle non-constant size automatic arrays.
2590 (g95_conv_section_upper_bound, g95_conv_section_startstride): Use
2591 generic bound functions.
2592 (g95_trans_auto_array_allocation): Don't create a descriptor.
2593 (g95_trans_assumed_size): New function (broken).
2594 (g95_trans_dummy_array_bias): Remove unused var.
2595 * trans-array.h (g95_trans_assumed_size): Declare.
2596 * trans-decl.c (create_index_var): New fuction.
2597 (g95_build_qualified_array): New function.
2598 (g95_get_symbol_decl): Use it.
2599 (g95_trans_deferred_vars): Handle assumed shape seperately.
2600 * trans-types.c (get_element_type): Handle heap allocated arrays.
2601 (g95_is_nodesc_array): Include non-const size arrays.
2602 (g95_get_nodesc_array_type): Ditto.
2604 2003-02-23 Paul Brook <paul@nowt.org>
2606 * trans-array.c (g95_array_init_size): Should use stride, not size of
2609 2003-02-18 Paul Brook <paul@nowt.org>
2611 * trans-expr.c (g95_trans_arrayfunc_assign): Nove elemental check
2612 after intrinsic function check.
2614 2003-02-18 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2616 * io.c (match_io): Fix missing return value and remove useless
2618 * match.c (g95_match): Remove useless assignment.
2619 * module.c (parse_string): Remove useless post increment.
2620 * simplify.c (g95_simplify_verify): Remove useless assignment.
2622 2003-02-15 Paul Brook <paul@nowt.org>
2624 * expr.c (restricted_intrinsic): Handle bad values gracefully.
2625 * g95.h (symbol_attribute): Add referenced member.
2626 (g95_symbol): Add dummy_order member.
2627 (g95_set_sym_referenced): Declare.
2628 * match.c (g95_match_assignment, g95_match_call): Use it
2629 * primary.c (match_actual_arg, g95_match_rvalue,
2630 g95_match_variable): Ditto.
2631 * symbol.c (next_dummy_order): New variable.
2632 (g95_set_sym_referenced): New function.
2633 (check_done): New function.
2634 (g95_add_*): Use it.
2635 * trans-decl.c: Make formatting conform to GCC standards.
2636 (g95_defer_symbol_init): Add dummy variables in the right order.
2637 (g95_get_symbol_decl): Only accept referenced variables.
2638 (g95_create_module_variable): Module variables are always required.
2639 (generatr_local_decls): New function.
2640 (generate_local_vars): New function.
2641 (g95_generate_function_code): Use it.
2643 2003-02-13 Paul Brook <paul@nowt.org>
2645 * trans-decl.c (g95_conv_struct_cons): Remove.
2646 (g95_get_symbol_decl): Use g95_conv_expr for structure initializers.
2647 * trans-expr.c (g95_conv_structure): New function.
2648 (g95_conv_expr): Use it.
2650 2003-02-09 Paul Brook <paul@nowt.org>
2652 * trans-array.c (g95_array_init_size): Don't evaluate the linit
2653 expressions multiple times.
2654 (g95_trans_auto_arry_allocation): Use pointer not tmp.
2656 2003-02-08 Paul Brook <paul@nowt.org>
2658 * module.c (mio_symtree_ref): Declare as static.
2659 (mio_expr): Remove dead code.
2660 (read_module): Set the symtree link for fixups.
2661 * trans-intrinsic.c (g95_conv_intrinsic_round): Rename...
2662 (build_round_expr): ... to this.
2663 (g95_conv_intrinsic_aint): New function.
2664 (g95_conv_intrinsic_function): Use it.
2666 2003-02-08 Paul Brook <paul@nowt.org>
2668 * trans-array.c (g95_trans_array_constructor_value): Use the acutal
2669 offset after modificaton, not the increment expression.
2670 * dependency.c: Kill excess whitespace.
2672 2003-02-07 Sanjiv Gupta <sanjivg@noida.hcltech.com>
2674 * dependency.h: Remove some function declarations.
2675 * dependency.c (get_no_of_elements): Change this function not to
2677 * other: Add comments for all modified functions.
2679 2003-02-06 Paul Brook <paul@nowt.org>
2681 * g95spec.c (lang_specific_functions): Fix initializer warning.
2682 * dump-parse-tree.c (g95_show_expr): Use typespec instead of symtree
2683 for structure type names.
2684 * trans-decl.c (g95_cons_structure_cons): New function.
2685 (g95_get_symbol_decl): Use it.
2686 * trans-expr.c (g95_conv_component_ref): Remove duplicate pointer
2689 2003-02-06 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2691 * resolve.c (compare_cases): Add const to casts.
2693 2003-01-30 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2695 * g95.h (g95_check_f): Change a1 to f1m.
2696 * intrinsic.c (add_sym_1m, check_specific,
2697 g95_intrinsic_func_interface): Use it.
2699 * module.c (init_pi_tree): Remove useless cast.
2700 (fp2): Fix argument type.
2702 * parse.c (parse_select_block): Add comment.
2704 2003-02-05 Toon Moene <toon@moene.indiv.nluug.nl>
2706 * lang-options.h: Fix warning involving C90 concatenated
2709 2003-02-06 Steven Bosscher <s.bosscher@student.tudelft.nl>
2710 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2712 * io.c (format_asterisk): Complete initializer to kill warning.
2713 * arith.c (DEF_G95_INTEGER_KIND, DEF_G95_LOGICAL_KIND,
2714 DEF_G95_REAL_KIND, MPZ_NULL, MPF_NULL): New #defines.
2715 (g95_integer_kinds, g95_logical_kinds, g95_real_kinds): Use the
2716 new defines to complete initializers. Kills all warnings.
2718 * Make-lang.in: Comment cleanup.
2720 2003-02-05 Paul Brook <paul@nowt.org>
2722 * array.c (g95_free_constructor): Handle NULL expressions.
2723 * resolve.c (resolve_structure_cons): Ditto.
2724 * decl.c (g95_match_null): New Function.
2725 (variable_decl): Use it.
2726 * module.c (mio_expr): Don't bother saving symtree for EXPR_STRUCTURE.
2727 * primary.c (g95_match_runtime): Don't use symtree for EXPR_STRUCTURE.
2728 * trans-types.c (g95_set_decl_attributes): Remove empty function.
2730 2003-02-05 Paul Brook <paul@nowt.org>
2732 * trans.h (build1_v): New macro.
2733 (build_v): Remove pointless and incorrect prototype.
2734 * various: Use build1_v for GOTO_EXPR and LABEL_EXPRs.
2735 * f95-lang.c (g95_init_builtin_decls): DEF_BUILTIN takes 10 args.
2737 2003-02-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
2739 * Make-lang.in (F95_OBJS): Remove one more dead file.
2741 2003-02-01 Paul Brook <paul@nowt.org>
2743 * lang-specs.h: Don't pass -ffixed-form to the linker.
2744 * trans-decl.c (g95_generate_function_code): Clear saved decl chain.
2746 2003-02-01 Paul Brook <paul@nowt.org>
2748 * Make-lang.in (F95_OBJS): Remove dead files.
2749 * trans-array.c (g95_array_init_size): Do the right thing when
2751 * trans-decl.c (g95_generate_function_code): Initialize deffered
2752 symbol list before translating contained subroutines.
2753 * trans-expr.c (g95_conv_expr, g95_conv_expr_reference): Substitute
2754 scalar invariant values here...
2755 (g95_conv_variable, g95_conv_function_call): ... instead of here ...
2756 * trans-intrinsic.c (g95_conv_intrinsic_function_args): .. and here.
2758 2003-01-29 Paul Brook <paul@nowt.org>
2760 * trans-array.c (g95_add_loop_code): Put pre code in the right block.
2761 (g95_walk_elemental_function_args): Reverse chains before adding.
2762 (g95_reverse_ss): Move about a bit.
2763 * trans-expr.c (g95_conv_function_call): Handle scalar intrinsic
2766 2003-01-28 Paul Brook <paul@nowt.org>
2768 * intrinsic.c (resolve_intrinsic): Use correct union member.
2769 * trans-array.c (g95_trans_dummy_array_bias): Don't touch absent
2771 * trans-decl.c (g95_get_symbol_decl): Don't translate initializers for
2772 use associated variables.
2773 * trans-intrinsic.c (g95_conv_intrinsic_present): Move body ...
2774 * trans-expr.c (g95_conv_expr_present): ... to here.
2775 * trans.h: Declare it.
2776 * trans-types.c (g95_sym_type): Assume subroutine if not specified.
2778 2003-01-28 Arnaud Desitter <arnaud.desitter@geography.oxford.ac.uk>
2780 * array.c (expand_iterator): Suppress useless assignment.
2781 * decl.c (match_char_spec): Ditto.
2782 * io.c (match_io_iterator): Ditto.
2783 * primary.c (match_real_constant): Ditto.
2784 * interface.c (fold_unary, g95_free_interface, g95_extend_expr):
2785 Ditto. Also, use g95_intrinsic_op not int for intrinsic operators.
2786 * matchexp.c (match_add_operand, match_level_5): Likewise.
2787 * module.c (parse_atom, find_enum): Likewise.
2788 * resolve.c: move #include <string.h>
2789 (resolve_select): Fix serious typo.
2791 2003-01-28 Steven Bosscher <s.bosscher@student.tudelft.n>
2793 * Make-lang.in: Don't build with broken tree-ssa-pre.
2795 2003-01-28 Steven Bosscher <s.bosscher@student.tudelft.nl>
2797 * resolve.c (resolve_index): Add a TODO.
2798 * symbol.c: Remove useless "#include <ctype.h>".
2800 2003-01-27 Paul Brook <paul@nowt.org>
2802 * check.c (check_rest): Allow different type kinds as an extension.
2803 * g95.h (g95_resolve_f): Add f1m.
2804 * intrinsic.c (add_sym_1m, resolve_intrinsic): Use it.
2805 * intrinsic.h: Chenge prototypes for MIN and MAX.
2806 * iresolve.c (g95_resolve_minmax): New function.
2807 (g95_resolve_min, g95_resolve_max): Use it.
2808 * trans-intrinsic.c (g95_trans_intrinsic_minmax): Only evaluate
2810 (g95_conv_intrinsic_present): Fix logic.
2812 2003-01-27 Steven Bossche <s.bosscher@student.tudelft.nl>
2814 * g95.h (g95_case): Don't be a tree, be a double linked list.
2815 * match.c (match_case_selector): Remove redundant semantics check.
2816 Clean up a few goto's to make it a tiny little bit faster.
2817 * resolve.c (case_tree): Die.
2818 (compare_cases): Accept and compare unbounded cases too.
2819 (check_case_overlap): Don't build a tree. Instead, merge-sort the
2820 whole list of g95_cases passed from resolve_select.
2821 (sane_logical_select): Die.
2822 (check_case_expr): Return FAILURE if a CASE label is of the wrong
2824 (resolve_select): Fixup case expression for computed GOTOs, put it
2825 in expr, not expr2, for easier handing in the parse tree dumper and
2826 the code generator. Rewrite the rest of the function: Kill
2827 unreachable case labels and unreachable case blocks.
2828 * dump-parse-tree.c (g95_show_code_node): Always dump expr for
2829 an EXEC_SELECT, not case2 anymore.
2830 * trans-const.c (g95_conv_constant_to_tree): New function.
2831 (g95_conv_constant): Use it.
2832 * trans-const.h: Declare prototype for the new function.
2833 * trans-stmt.c (g95_trans_integer_select, g95_trans_logical_select,
2834 g95_trans_character_select): New static functions.
2835 (g95_trans_select): Rewrite.
2837 2003-01-26 Paul Brook <paul@nowt.org>
2839 * intrinsic.c (add_fnctions): Properly add dreal.
2840 * trans-intrinsic.c (g95_conv_intrinsic_present): New function.
2841 (g95_conv_intrinsic_function): Use it.
2842 * trans-io.c (build_dt): Abort on internal files (unimplemented).
2844 2003-01-26 Paul Brook <paul@nowt.org>
2846 Widespread changes to the handling of symbols in expressions. These
2847 are now linked via g95_symtree nodes.
2848 * parse.c (g95_fixup_sibling symbols): New function.
2849 (parse_contained): Use it.
2850 * g95.h (symbol_attribute): Add contained. Indicates a symbol is a
2851 contained procedure that has bee correctly fixed up.
2852 (g95_code, g95_expr): Point to a g95_symtree, not a g95_symbol.
2854 2003-01-24 Paul Brook <paul@nowt.org>
2856 * trans-array.c (g95_walk_expr): Function result attributes are in
2858 * trans-expr.c (g95_conv_function_call,
2859 g95_trans_arrayfunc_assign): Ditto.
2860 * trans-decl.c (g95_get_symbol_for_expr): Set sym->result.
2862 2003-01-23 Steven Bosscher <s.bosscher@student.tudelft.nl>
2864 * expr.c (check_restricted): Fix error message.
2865 * symbol.c (free_st_labels): Plug memleak.
2867 2003-01-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
2869 * arith.c (reduce_unary, reduce_binary_ac, reduce_binary_ca,
2870 reduce_binary_aa, reduce_binary, eval_intrinsic,
2871 eval_intrinsic_f2): Use typesafe prototypes for eval functions.
2872 * g95.h (g95_check_f, g95_simplify_f, g95_resolve_f): New unions
2873 for typesafe intrinsics helper functions.
2874 (g95_intrinsic_sym): Use them.
2875 * intrinsic.c (do_check, add_sym, add_sym_0, add_sym_1,
2876 add_sym_1s, add_sym_1m, add_sym_2, add_sym_3, add_sym_4,
2877 add_sym_5, add_conv, resolve_intrinsic, do_simplify,
2878 check_specific, g95_intrinsic_func_interface,
2879 g95_intrinsic_sub_interface): Adjust all calls to intrinsics
2881 * trans-decl.c (g95_get_extern_function_decl): Likewise.
2882 * Make-lang.in: Don't disable warnings for strict prototypes
2883 any longer, everything is typesafe now.
2885 2003-01-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
2887 * bbt.c (duplicate_node): Make static.
2888 * module.c (module_name): Make static.
2889 * scanner.c (include_dirs): Make static.
2891 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
2893 Hard coded _gfor_'s should not show up anymore.
2894 * g95.h (PREFIX): New macro.
2895 * iresolve.c (g95_resolve_cpu_time): Use PREFIX, not
2897 (g95_resolve_random_number): Likewise.
2898 * trans-decl.c (g95_build_intrinsic_function_decls): Likewise.
2899 * trans-io.c: Remove 'prefix' macro. Replace all uses with
2900 the new PREFIX macro from g95.h.
2902 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
2904 The troubles of forking... Andy implemented this just now too.
2905 Let's stick to that and keep the trees close.
2906 * g95.h (g95_st_label): 'format' member is now a g95_expr.
2907 * io.c: Revert previous changes.
2908 (g95_match_format): Match the format string as a character
2910 * match.h (g95_statement_label): Declare external.
2911 * parse.c: Revert previous changes.
2912 * symbol.c (g95_free_st_label): Free a g95_expr instead
2914 * trans-io.c: Revert previous changes.
2915 (build_dt): Use set_string to set the format string.
2917 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
2919 * io.c (format_string): Make non-static.
2920 (g95_match_format): Remember the format string.
2921 (terminate_io): Add I/O termination for empty I/O lists.
2922 * match.h: Declare external format_string.
2923 * parse.c (check_statement_label): Attack the format string
2924 to a format label for FORMAT statements.
2925 * trans-io.c (g95_add_field): Define prefix macro. Replace
2926 all uses of PREFIX define with a use of this macro.
2927 (build_dt): Implement formatted I/O for format labels.
2929 2003-01-20 Steven Bosscher <s.bosscher@student.tudelft.nl>
2931 * lang-options.h: Kill "-std=F".
2932 * options.c: Remove unimplemented "-std=F". Modify
2934 * misc.c (g95_terminal_width): New function.
2935 * error.c (g95_error_init_1): Use g95_terminal_width.
2936 * g95.h: Add prototype for g95_terminal_width, remove
2939 2003-01-19 Steven Bosscher <s.bosscher@student.tudelft.nl>
2941 * Make-lang.in: Fix typo.
2943 2003-01-18 Steven Bosscher <s.bosscher@student.tudelft.nl>
2945 * g95.h (struct g95_case): Remove unused cruft, new member
2946 'where' to keep track of the locus of the default case.
2947 * match.c (g95_match_case): Add locus to the current case.
2948 (match_case_selector): Likewise.
2949 * parse.c (parse_select_block): Move semantics check for
2950 multiple DEFAULT cases out of here to...
2951 * resolve.c (check_case_overlap): ...here. Return sooner
2953 (check_case_expr): Take two g95_cases now, use to sure the
2954 expression kinds are the same.
2955 (resolve_select): Cleanup.
2957 2003-01-18 Paul Brook <paul@nowt.org>
2959 * trans-io.c: Fix typos in ported IO work (set_fla[tg]).
2960 * trans-decl.c (g95_set_symbol_decl): Handle non-array result
2962 (g95_get_extern_function_decl): Put decls in the correct context.
2964 2003-01-18 Steven Bosscher <s.bosscher@student.tudelft.nl>
2966 * trans-io.c: Port changes from Andy to set ERR flag.
2968 2003-01-17 Paul Brook <paul@nowt.org>
2970 * trans-array.c: Add various comments.
2971 (g95_ss_terminator): Declare as const.
2972 (g95_walk_expr): Remove first parameter and update all callers.
2973 (g95_walk_op_expr): Initialize scalar SS properly.
2974 * trans-array.h (g95_walk_expr): Update prototype.
2975 * trans-expr.c: Update for new g95_walk_expr.
2976 * trans-intrinsic.c: Ditto.
2977 * trans-io.c: Ditto.
2978 * trans.h: Various comments for SS chains.
2980 2003-01-17 Paul Brook <paul@nowt.org>
2982 * intrinsic.h (g95_generic_isym_id): Add G95_ISYM_S?_KIND, SPACING
2984 * intrinsic.c (add_functions): Use them.
2985 * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto.
2986 * trans-expr.c (g95_conv_expr_lhs): Abort on impossible error.
2988 2003-01-17 Steven Bosscher <s.bosscher@student.tudelft.nl>
2990 Fallout of a small merge conflict:
2991 * intrinsic.c: Un-revert lost patch (G95_ISYM_SCALE).
2993 2003-01-17 Steven Bosscher <s.bosscher@student.tudelft.nl>
2995 * initrinsic.c: New add_sym_* functions for strong typing.
2996 (add_conv): Make prototype strict.
2997 * dump-parse-tree.c, dependency.c: Include config.h
2998 * resolve.c, trans-io.c: Fix typos.
3000 2003-01-17 Steven Bosscher <s.bosscher@student.tudelft.nl>
3002 * dump-parse-tree.c (g95_show_code_node): Show the
3003 condition for a computed GOTO that was transformed
3004 to a SELECT CASE construct.
3005 * resolve.c (check_case_overlap): Revert previous switch
3006 to treaps, it was too slow and didn't catch all trouble.
3007 (resolve_symbol): Be more flexible about module procedures.
3008 * symbol.c (check_conflict): Point to relevant section in
3009 the standard for dubious conflict. Allow procedure
3010 dummy arguments to be optional again.
3011 * trans-io (add_field): Rename to g95_add_field. Change
3013 * trans-stmt (trans_select): Handle unbounded cases for
3014 integer SELECT CASE constructs. Fix/add more comment.
3016 2003-01-17 Steven Bosscher <s.bosscher@student.tudelft.nl>
3018 * g95.h: Uses GCC's function attribute macros.
3019 * error.c, module.c, parse.c, g95.h: More function attributes.
3021 2003-01-16 Steven Bosscher <s.bosscher@student.tudelft.nl>
3023 * trans-decl.c (get_label_decl): Use TREE_LINENO instead
3024 of DECL_SOURCE_LINE, and TREE_FILENAME instead of
3027 2003-01-16 Steven Bosscher <s.bosscher@student.tudelft.nl>
3029 * f95-lang.c (pushdecl): Use TREE_LINENO instead of
3031 * trans.c (g95_trans_code): Use annotate_all_with_file_line
3032 instead of nowdead wrap_all_with_wfl.
3034 2003-01-14 Steven Bosscher <s.bosscher@student.tudelft.nl>
3036 * parse.c (g95_parse_file): In verbose mode, dump the parse tree
3037 before generating code, so we can still see it even if the code
3038 generation phase dies.
3040 2003-01-14 Steven Bosscher <s.bosscher@student.tudelft.nl>
3042 * decl.c (build_sym): Split out initialization expression parts...
3043 (add_init_expr_to_sym): ...to here.
3044 (variable_decl): Add the symbol following an attribute list to the
3045 symbol tree before parsing the optional initialization expression
3046 if the symbol is not of a derived type.
3047 * primary.c (g95_match_rvalue): Don't assume a symbol always has
3048 a value if it is a PARAMETER.
3050 2003-01-14 Steven Bosscher <s.bosscher@student.tudelft.nl>
3052 * misc.c: Don't #include <mcheck.h>
3053 * module.c: Ditto. Kill uses of mtrace, muntrace. If there
3054 ever was a glibc bug, then either this was never reported to
3055 glibc people, or it has been fixed for so long that there's
3056 no information you can find about it, anywhere.
3058 2003-01-14 Steven Bosscher <s.bosscher@student.tudelft.nl>
3061 * module.c (attr_bits, bt_types, array_spec_types):
3062 Switch 'const' and 'static'.
3063 * iresolve.c (g95_resolve_reshape): Make __resolve0 non-'const'.
3065 GNU'ify source code:
3066 * trans-io.c: Numerous fixes, one fixed warning and a few
3067 TODO markers so that we don't forget about them.
3069 2003-01-13 Paul Brook <paul@nowt.org>
3071 * intrinsic.c (add_functions): Add G95_ISYM_SCALE.
3072 * intrinsic.h (g95_generic_isym_id): Remove bogus G95_ISYM_ANINIT.
3074 * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto
3075 * match.c (g95_match_stop): Fix dumb == -> != error.
3077 2003-01-13 Steven Bosscher <s.bosscher@student.tudelft.nl>
3079 * dump-parse-tree.c (show_indent): Add line breaks. This
3080 whole dumping process needs cleanups.
3081 * f95-lang.c (g95_mark_addressable): Fix prototype to match
3082 the langhook. Fix 'return's accordingly.
3083 * g95-support.h: Adjust prototype.
3084 * g95.h: Add 'no_backend' member to 'g95_option_t' struct.
3085 * lang-options.h: Add '-fsyntax-only'.
3086 * options.c (g95_init_options): Init 'no_backend'.
3087 (g95_parse_arg): Deal with '-fsyntax-only'.
3088 * parse.c (g95_parse_file): Do not generate code if 'no_backend'
3091 2003-01-13 Steven Bosscher <s.bosscher@student.tudelft.nl>
3093 * resolve.c (resolve_symbol): Assumed shape arrays must be dummy
3094 arguments. Also make sure that if a symbol is marked INTRINSIC,
3095 an intrinsic with the symbol's name actually exists.
3096 (check_conflict): Make EXTERNAL and DIMENSION attributes conflict.
3097 Do not allow PROCEDURES to have the SAVE, POINTER, TARGET,
3098 ALLOCATABLE, RESULT, IN_NAMESPACE, OPTIONAL or FUNCTION attribute.
3100 2003-01-13 Steven Bosscher <s.bosscher@student.tudelft.nl>
3102 * resolve.c (resolve_contained_functions): Fix condition, don't
3103 throw internal_error if a child namespace has no name. Apparently
3104 this can be the case?
3106 2003-01-11 Paul Brook <paul@nowt.org>
3108 Port changes from Andy's tree:
3109 * g95.h (g95_code): Add stop_code.
3110 * match.c (g95_match_stop): Detter syntax checking.
3111 * resolve.c (resolve_generic_f0): Return match type.
3112 (resolve_generic_f): Remove dead/duplicated code.
3113 (resolve_specific_f): Ditto.
3114 * dump-parse-tree.c (g95_show_code_node): Handle new STOP format.
3115 * trans-decl.c (gfor_fndel_stop_*): New fndecl nodes.
3116 * trans-stmt.c (g95_trans_stop): Handle new STOP format.
3118 2003-01-11 Paul Brook <paul@nowt.org>
3120 * trans-array.c: Various documentation/comment changes.
3121 * trans-stmt.c: Ditto.
3124 2003-01-10 Paul Brook <paul@nowt.org>
3126 * options.c/h: Add -fdump-parse-tree as alias of -v.
3128 2003-01-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
3130 * dump-parse-tree.c (g95_show_namespace): Fixed another
3131 typo. Sorry, it's Friday...
3133 2003-01-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
3136 * trans-array.c, trans-array.h, trans.c, trans-const.c,
3137 trans-const.h, trans-decl.c, trans-expr.c, trans.h
3138 trans-intrinsic.c, trans-io.c, trans-stmt.c, trans-stmt.h
3139 trans-types.c: Fix bogus copyright years, add 2003.
3140 * trans-types.h: Give copyright header.
3142 2003-01-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
3144 * dump-parse-tree.c (g95_show_namespace): Fixed typo.
3145 * expr.c, options.c, scanner.c: Add some more 'const' markers.
3146 * intrinsic.c: Some constant strings moved to read-only memory.
3147 * io.c (format_asterisk): Move to...
3150 2003-01-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
3152 * dump-parse-tree.c (g95_show_namespace): Dump implicit
3153 types for ranges instead of per-letter. Indent the
3154 'CONTAINS' just like everything else.
3155 * resolve.c (resolve_contained_functions): Clarify comment.
3156 Explain non-obvious conditional expression. Improve
3157 diagnostics if tyoe cannot be resolved.
3158 Port semi-fix from Andy's tree:
3159 (was_declared): Move up before first use.
3160 (generic_sym, specific_sym): New functions. Code moved
3161 out if procedure_kind.
3162 (procedure_kind): Simplify using new functions.
3163 (resolve_generic_f): Make sure the functions we find in
3164 a parent namespace is generic.
3165 (resolve_specific_f): Ditto for specific functions.
3167 2003-01-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
3169 * trans-stmt.c, trans.c: Fix some code style issues. Add
3170 some more comment (but still not enough!).
3172 2003-01-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
3174 * symbol.c (flavors, procedures, intents, acces_types,
3175 access_types, ifsrc_types): Make const.
3176 * misc.c (g95_string2code): Make 'm' param 'const'.
3177 * module.c (find_enum, write_atom, mio_name): Make
3179 (attr_bits, bt_types, array_spec_types, array_ref_types,
3180 ref_types, expr_types): Make const.
3181 * g95.h: Adjust external decls.
3183 2003-01-09 Paul Brook <paul@nowt.org>
3185 * Testsuite: Add a load of new cases.
3187 2003-01-08 Steven Bosscher <s.bosscher@student.tudelft.nl>
3189 * Make-file.in: Add dependency on back end header files;
3190 a parallel build should work now.
3191 * f95-lang-c (lang_identifier): Remove bogus comment.
3192 (g95_be_parse_file): Fix prototype.
3193 (g95_init): Make static.
3194 (g95_finish): Make static.
3195 * error.c (g95_syntax_error): Kill. Make define in...
3196 * g95.h (g95_syntax_error): Define.
3197 (g95.options): Make 'source' member 'const'.
3198 * interface.c (g95_match_interface): Explain
3199 hard-to-read condition.
3200 (g95_match_end_interface): Ditto.
3201 * trans_const.c (g95_build_string_const): Make 's' parameter
3203 * trans_const.h: Adjust protoype accordingly.
3204 * trans-decl.c: Include tree-dump.h
3205 (g95_generate_function_code): Build fixes for recent changes
3206 in the tree-ssa branch.
3208 2003-01-08 Steven Bosscher <s.bosscher@student.tudelft.nl>
3210 * format.c: Kill, move code from here...
3212 * Make-lang.in: Adjust.
3215 * BUGS: Mention where to submit bugs. Move old content...
3216 * TODO: ...to here. New file.
3218 2003-01-08 Steven Bosscher <s.bosscher@student.tudelft.nl>
3219 Fix most warnings, and suppress the ones we can't fix for now.
3220 * Make-lang.in: Suppress warnings about bad proto's in g95.h,
3221 these warnings just clutter the screen and there's not much
3222 we can do about them for now anyway.
3223 * check.c, iresolve.c: Mark unused function parameters.
3224 * dump-parse-tree.c (g95_show_array_spec): Punt on AS_UNKNOWN,
3225 they should be resolved before they get here.
3226 * error.c: Remove unused FILE *status_out.
3227 * f95-lang.c (g95_init): Remove bogus cast.
3228 * Many files: Make things 'const' where required.
3229 * g95.h: Fix prototypes for all modified functions above.
3230 (g95_options): Remove 'object' member.
3232 2003-01-07 Steven Bosscher <s.bosscher@student.tudelft.nl>
3234 * Make-file.in: Cleanup bogus targets. Add more comment.
3235 * lang-options.h: New option '-w'.
3236 * g95.h: add no_options field to struct g95_options.
3237 * options.c (g95_init_options): Default no_warnings to off.
3238 (g95_parse_arg): Recognise the '-w' switch and its alias,
3240 * error.c (g95_warning, g95_warning_now): Don't emit warning if
3241 no_warning option is set.
3242 * iresolve.c (g95_resolve_shape): Fix warning.
3244 2003-01-07 Steven Bosscher <s.bosscher@student.tudelft.nl>
3246 * primary.c (g95_next_string_char): Rename next_string_char, and
3247 make static. Adjust callers accordingly.
3248 * resolve.c (resolve_generic_f0): Return try, not match. Adjust
3249 callers accordingly.
3250 * g95.h: Split out all g95_match* functions to...
3251 * match.h: ...here. New file.
3252 * array.c, decl.c, expr.c, format.c, interface.c, io.c, match.c,
3253 matchexp.c, module.c, parse.c, primary.c: Inlcude match.h
3255 2003-01-07 Steven Bosscher <s.bosscher@student.tudelft.nl>
3257 * symbol.c (g95_clear_new_implicit, g95_add_new_implicit_range,
3258 g95_merge_new_implicit): New functions.
3259 (g95_match_implicit_none, g95_match_implicit): Move from here...
3260 * match.c (g95_match_implicit_none, g95_match_implicit): ... to here.
3261 Modify to use the new functions in symbol.c.
3262 * g95.h: Add and move prototypes.
3264 2003-01-06 Steven Bosscher <s.bosscher@student.tudelft.nl>
3266 * bbt.c (insert): Use a typedef'ed compare_fn prototype for the
3267 node compare function.
3268 (g95_insert_bbt): Likewise.
3269 (g95_insert_bbt_with_overlap): Likewise.
3270 (g95_delete_bbt): Likewise.
3271 (delete_treap): Likewise. Also fix a potential bug when calling it.
3272 * module.c (compare_pointers): Change proto to compare_fn.
3273 (compare_integers): Likewise.
3274 (compare_true_names): Likewise.
3275 (find_true_name): Adjust call to compare_true_names to match proto.
3276 (require_atom, write_atom, mio_name): Fix 'const' warnings.
3277 (init_pi_tree): Make compare a compare_fn instead of (int *).
3278 * resolve.c (compare_cases): Change proto to compare_fn.
3279 * symbol.c (g95_compare_symtree): Change proto to compare_fn, make
3280 it static, and rename to compare_symtree.
3281 (delete_symtree, g95_undo_symbols, g95_new_symtree): Use renamed
3283 * g95.h: Kill g95_compare_symtree prototype. Adjust prototypes
3284 of g95_insert_bbt, g95_insert_bbt_with_overlap, and g95_delete_bbt.
3286 2003-01-06 Steven Bosscher <s.bosscher@student.tudelft.nl>
3287 * Make-lang.in: Fix spaces/tabs issues from previous patch.
3288 * patch.options: Blow away Paul's checkin mistake :-)
3289 * io.c (terminate_io): Fix memory leak (Arnaud).
3291 2003-01-06 Steven Bosscher <s.bosscher@student.tudelft.nl>
3293 * Make-lang.in: Teach about building DVI, info manual.
3294 * g95.texi: New file.
3296 2003-01-02 Paul Brook <paul@nowt.org>
3298 * trans-array.c (g95_reverse_ss): Make static and don't use.
3299 (g95_conv_ss_descriptor): Don't use g95_loopinfo
3300 (g95_conv_array_parameters): Modify for pointer assignments.
3301 (g95_walk_subexpr): New function.
3302 (g95_walk_expr*): Use it.
3303 * trans-array.h (g95_reverse_ss): Remove prototype.
3304 * trans-expr.c (g95_trans_pointer_assign): Implement.
3305 (Many): Set se.want_pointer before calling g95_conv_array_parameter.
3306 * trans-intrinsic.c: Sync with scalarizer changes.
3307 * trans-io.c: Ditto.
3309 2002-12-29 Paul Brook <paul@nowt.org>
3311 * trans-array.c: Document calling convention for arrays.
3313 2002-12-19 Paul Brook <paul@nowt.org>
3315 * trans-intrinsic.c (g95_conv_intrsinsic_function): Remove incorrect
3316 assertion. Remove intrinsic subroutine G95_ISYM_* cases. Always pass
3317 optional parameters for some intrinsics.
3318 (g95_is_intrinsic_libcall): Add G95_ISYM_RESHAPE.
3319 * trans-expr.c (g95_conv_function_call): Pass NULL for absent
3320 optional parameters.
3321 * trans.h (g95_se): Add ignore_optional flag.
3323 2002-12-15 Paul Brook <paul@nowt.org>
3325 * trans-array.c (g95_conv_array_parameter): Fix partial rank sections.
3326 * trans-decl.c (g95_generate_function_code): Use TDI_original.
3328 2002-12-14 Paul Brook <paul@nowt.org>
3330 * trans-stmt.c (g95_trans_call): Use resolved symbol name.
3332 2002-12-12 Paul Brook <paul@nowt.org>
3334 * trans-array.c (g95_trans_array_constructor_subarray): Fully
3335 initialize the scalarizer.
3336 (various): Update to new format of g95_expr->value.constructor.
3338 2002-12-08 Paul Brook <paul@nowt.org>
3340 * trans-array.c (g95_put_offset_into_var): New function.
3341 (g95_trans_array_constructor_subarray): New function.
3342 (g95_trans_array_constructor_value): Use it.
3343 (g95_array_cons_size): Don't abort() on array components.
3345 2002-12-08 Paul Brook <paul@nowt.org>
3347 * Make-lang.in (F95_ADDITIONAL_OBJS): Remove tree-dchain.o.
3348 * support.c: Update #includes.
3349 (statement_code_p, c_size_in_bytes, s_size_type_node): Remove.
3350 * trans-array.c: Update #includes.
3352 * trans-const.c: Ditto.
3353 * trans-io.c: Ditto.
3354 * trans-types.c: Ditto.
3355 (g95_init_types): Set size_type_node.
3356 * trans-decl.c: Update #includes.
3357 (gfor_fndecl_adjust{l,r}): Declare and initialize.
3358 * trans-stmt.c: Update #includes.
3359 (g95_trans_do_while): Generate LABEL_EXPR, not GOTO_EXPR.
3360 (g95_trans_select): Fix check for unbounded ranges.
3361 * trans-expr.c: Update #includes.
3362 (g95_conv_string_tmp): New function.
3363 (g95_conv_concat_op): Use it.
3364 * trans.h (g95_conv_string_tmp, gfor_fndecl_adjust{l,r}): Declare.
3365 * Trans-intrisic.c: Update #includes.
3366 (g95_conv_intrinsic_strcmp): New function.
3367 (g95_conv_intrinsic_adjust): Ditto.
3368 (g95_conv_intrinsic_function: Use them.
3370 2002-11-30 Paul Brook <paul@nowt.org>