Merge from the pain train
[official-gcc.git] / gcc / fortran / ChangeLog
blob846186a3174d649ff6b7e0c0dd4bafb743a114c6
1 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3         * decl.c, resolve.c, trans-array.c, trans.h: Fix comment typo(s).
5 2005-02-24  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
7         Revert yesterday's patch:
8         2005-02-23  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
10                 * gfortran.h (gfc_component, gfc_actual_arglist, ...
11                 ... argument.  Copy string instead of pointing to it.
13 2005-02-23  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
15         * gfortran.h (gfc_get_namespace): Add second argument to prototype.
16         * intrinsic.c (gfc_intrinsic_init_1): Pass second argument to
17         gfc_get_namespace.
18         * module.c (mio_namespace_ref, load_needed): Likewise.
19         * parse.c (parse_interface, parse_contained): Likewise.  Here the
20         correct second argument matters.
21         * symbol.c (gfc_get_namespace): Add parent_types argument, only copy
22         parent's implicit types if this is set.
23         (gfc_symbol_init_2): Pass second argument to gfc_get_namespace.
24         * trans-common.c (build_common_decl): Likewise.
26         * gfortran.h (symbol_attribute): New 'untyped' field, fix comment
27         formatting.
28         * symbol.c (gfc_set_default_type): Issue error only once, by setting
29         and checking 'untyped' attribute.
31         * gfortran.h (gfc_expr): Move 'operator', 'op1', 'op2', and 'uop'
32         fields into new struct 'op' inside the 'value' union.
33         * arith.c (eval_intrinsic): Adapt all users.
34         * dependency.c (gfc_check_dependency): Likewise.
35         * dump-parse-tree.c (gfc_show_expr): Likewise.
36         * expr.c (gfc_get_expr): Don't clear removed fields.
37         (free_expr0, gfc_copy_expr, gfc_type_convert_binary,
38         gfc_is_constant_expr, simplify_intrinsic_op, check_init_expr,
39         check_intrinsic_op): Adapt to new field names.
40         * interface.c (gfc_extend_expr): Likewise.  Also explicitly
41         nullify 'esym' and 'isym' fields of new function call.
42         * iresolve.c (gfc_resolve_dot_product, gfc_resolve_matmul):
43         Adapt to renamed structure fields.
44         * matchexp.c (build_node, match_level_1, match_expr): Likewise.
45         * module.c (mio_expr): Likewise.
46         * resolve.c (resolve_operator): Likewise.
47         (gfc_find_forall_index): Likewise.  Only look through operands
48         if dealing with EXPR_OP
49         * trans-array.c (gfc_walk_op_expr): Adapt to renamed fields.
50         * trans-expr.c (gfc_conv_unary_op, gfc_conv_power_op,
51         gfc_conv_concat_op, gfc_conv_expr_op): Likewise.
53         [ Reverted ]
54         * gfortran.h (gfc_component, gfc_actual_arglist, gfc_user_op): Make
55         'name' a 'const char *'.
56         (gfc_symbol): Likewise, also for 'module'.
57         (gfc_symtree): Make 'name' a 'const char *'.
58         (gfc_intrinsic_sym): Likewise, also for 'lib_name'.
59         (gfc_get_gsymbol, gfc_find_gsymbol): Add 'const' qualifier to
60         'char *' argument.
61         (gfc_intrinsic_symbol): Use 'gfc_get_string' instead of 'strcpy' to
62         initialize 'SYM->module'.
63         * check.c (gfc_check_minloc_maxloc, check_reduction): Check for NULL
64         pointer instead of empty string.
65         * dump-parse-tree.c (gfc_show_actual_arglist): Likewise.
66         * interface.c (gfc_compare_types): Adapt check to account for possible
67         NULL pointer.
68         (compare_actual_formal): Check for NULL pointer instead of empty
69         string.
70         * intrinsic.c (gfc_current_intrinsic, gfc_current_intrinsic_arg):
71         Add 'const' qualifier.  
72         (conv_name): Return a heap allocated string.
73         (find_conv): Add 'const' qualifier to 'target'.
74         (add_sym): Use 'gfc_get_string' instead of 'strcpy'.
75         (make_generic): Check for NULL pointer instead of empty string.
76         (make_alias): Use 'gfc_get_string' instead of 'strcpy'.
77         (add_conv): No need to strcpy result from 'conv_name'.
78         (sort_actual): Check for NULL pointer instead of empty  string.
79         * intrinsic.h (gfc_current_intrinsic, gfc_current_intrinsic_arg):
80         Adapt prototype.
81         * module.c (compare_true_names): Compare pointers instead of strings
82         for 'module' member.
83         (find_true_name): Initialize string fields with gfc_get_string.
84         (mio_pool_string): New function.
85         (mio_internal_string): Adapt comment.
86         (mio_component_ref, mio_component, mio_actual_arg): Use
87         'mio_pool_string' instead of 'mio_internal_string'.
88         (mio_symbol_interface): Add 'const' qualifier to string arguments.
89         Add level of indirection. Use 'mio_pool_string' instead of
90         'mio_internal_string'.
91         (load_needed, read_module): Use 'gfc_get_string' instead of 'strcpy'.
92         (write_common, write_symbol): Use 'mio_pool_string' instead of
93         'mio_internal_string'.
94         (write_symbol0, write_symbol1): Likewise, also check for NULL pointer
95         instead of empty string.
96         (write_operator, write_generic): Pass correct type variable to
97         'mio_symbol_interface'.
98         (write_symtree): Use 'mio_pool_string' instead of
99         'mio_internal_string'.
100         * primary.c (match_keyword_arg): Adapt check to possible
101         case of NULL pointer.  Use 'gfc_get_string' instead of 'strcpy'.
102         * symbol.c (gfc_add_component, gfc_new_symtree, delete_symtree,
103         gfc_get_uop, gfc_new_symbol): Use 'gfc_get_string' instead of
104         'strcpy'.
105         (ambiguous_symbol): Check for NULL pointer instead of empty string.
106         (gfc_find_gsymbol, gfc_get_gsymbol): Add 'const' qualifier on string
107         arguments.
108         * trans-array.c (gfc_trans_auto_array_allocation): Check for NULL
109         pointer instead of empty string.
110         * trans-decl.c (gfc_sym_mangled_identifier,
111         gfc_sym_mangled_function_id, gfc_finish_var_decl, gfc_get_symbol_decl,
112         gfc_get_symbol_decl): Likewise.
113         * trans-io.c (gfc_new_nml_name_expr): Add 'const' qualifier to
114         argument.  Copy string instead of pointing to it.
116 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
118         * intrinsic.h, st.c: Update copyright.
120 2005-02-20  Steven G. Kargl  <kargls@comcast.net>
122         * symbol.c: Typos in comments.
124 2005-02-20  Steven G. Kargl  <kargls@comcast.net>
126         * expr.c (gfc_type_convert_binary): Typo in comment.
128 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
129   
130         * check.c (gfc_check_selected_int_kind): New function.
131         * intrinsic.h: Prototype it.
132         * intrinsic.c (add_function): Use it.
133         * simplify (gfc_simplify_ceiling,gfc_simplify_floor): Change
134           BT_REAL to BT_INTEGER and use gfc_default_integer_kind.
136 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
137   
138         * check.c (gfc_check_int): improve checking of optional kind
139         * simplify.c (gfc_simplify_int): Change BT_REAL to BT_INTEGER
141 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
142   
143         * check.c (gfc_check_achar): New function
144         * intrinsic.h: Prototype it.
145         * intrinsic.c (add_function): Use it.
147 2005-02-13  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
149         * trans-stmt.c (generate_loop_for_temp_to_lhs,
150         generate_loop_for_rhs_to_temp): Remove if whose condition is
151         always true.
153 2005-02-12  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
155         * symbol.c (gfc_use_ha_derived): Remove, fold functionality into ...
156         (gfc_use_derived): ... this function.
158 2005-02-09  Richard Henderson  <rth@redhat.com>
160         * f95-lang.c (gfc_init_builtin_functions): Call
161         build_common_builtin_nodes; do not define any functions handled
162         by it.
164 2005-02-08  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
166         * expr.c (gfc_copy_expr): Don't copy 'op1' and 'op2' for
167         EXPR_SUBSTRING.
168         (gfc_is_constant_expr): Check 'ref' to determine if substring
169         reference is constant.
170         (gfc_simplify_expr): Simplify 'ref' instead of 'op1' and 'op2'.
171         (check_init_expr, check_restricted): Check 'ref' instead of 'op1'
172         and 'op2'.
173         * module.c (mio_expr): Read / write 'ref' instead of 'op1' and 'op2'.
175 2005-02-07  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
177         * gfortran.h (gfc_add_dimension, gfc_add_result, gfc_add_save,
178         gfc_add_dummy, gfc_add_generic, gfc_add_in_common, gfc_add_data,
179         gfc_add_in_namelist, gfc_add_sequence, gfc_add_function,
180         gfc_add_subroutine, gfc_add_access, gfc_add_flavor, gfc_add_entry,
181         gfc_add_procedure): Add argument.
182         * array.c (gfc_set_array_spec), decl.c (var_element, get_proc_name,
183         gfc_match_null, match_type_spec, match_attr_spec,
184         gfc_match_formal_arglist, match_result, gfc_match_function_decl):
185         Update callers to match.
186         (gfc_match_entry) : Likewise, fix comment typo.
187         (gfc_match_subroutine, attr_decl1, gfc_add_dimension,
188         access_attr_decl, do_parm, gfc_match_save, gfc_match_modproc,
189         gfc_match_derived_decl): Update callers.
190         * interface.c (gfc_match_interface): Likewise.
191         * match.c (gfc_match_label, gfc_add_flavor,
192         gfc_match_call, gfc_match_common, gfc_match_block_data,
193         gfc_match_namelist, gfc_match_module, gfc_match_st_function):
194         Likewise.
195         * parse.c (parse_derived, parse_interface, parse_contained),
196         primary.c (gfc_match_rvalue, gfc_match_variable): Likewise.
197         * resolve.c (resolve_formal_arglist, resolve_entries): Update callers.
198         * symbol.c (check_conflict, check_used): Add new 'name' argument,
199         use when printing error message.
200         (gfc_add_dimension, gfc_add_result, gfc_add_save, gfc_add_dummy,
201         gfc_add_generic, gfc_add_in_common, gfc_add_data,
202         gfc_add_in_namelist, gfc_add_sequence, gfc_add_function,
203         gfc_add_subroutine, gfc_add_access, gfc_add_flavor, gfc_add_entry,
204         gfc_add_procedure): Add new 'name' argument.  Pass along to
205         check_conflict and check_used.
206         (gfc_add_allocatable, gfc_add_external, gfc_add_intrinsic,
207         gfc_add_optional, gfc_add_pointer, gfc_add_target, gfc_add_elemental,
208         gfc_add_pure, gfc_add_recursive, gfc_add_intent,
209         gfc_add_explicit_interface, gfc_copy_attr): Pass NULL for new
210         argument in calls to any of the modified functions.
212 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
214         * gfortran.texi: Don't give last update date.
216 2006-01-30  Richard Henderson  <rth@redhat.com>
218         * options.c (gfc_init_options): Zero flag_errno_math.
220 2005-01-29  Paul Brook  <paul@codesourcery.com>
222         PR fortran/18565
223         * check.c (real_or_complex_check): New function.
224         (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc): New functions.
225         * intrinsic.c (add_functions): Use new check functions.
226         * intrinsic.h (gfc_check_fn_c, gfc_check_fn_r, gfc_check_fn_rc):
227         Add prototypes.
229 2005-01-29  Steven G. Kargl  <kargls@comcast.net>
231         PR fortran/19589
232         * expr.c (gfc_check_assign):  Check for conformance of logical operands
234 2004-01-27  Steven Bosscher  <stevenb@suse.de>
236         * trans-decl.c (gfc_build_label_decl): Set DECL_ARTIFICAL and
237         TREE_USED for all labels.
238         (gfc_trans_entry_master_switch): Use it instead of building a
239         label by hand.
240         * trans-io.c (add_case): Likewise.
241         * trans-stmt.c (gfc_trans_integer_select): Likewise.
243 2004-01-23  Paul Brook  <paul@codesourcery.com>
244         Steven G. Kargl  <kargls@comcast.net>
246         PR fortran/17941
247         * arith.c (gfc_convert_real): Remove sign handling.
248         * primary.c (match_digits): Allow whitespace after initial sign.
249         (match_real_const): Handle signs here.  Allow whitespace after
250         initial sign.  Remove dead code.
251         (match_const_complex_part): Remove.
252         (match_complex_part): Use match_{real,integer}_const.
253         (match_complex_constant): Cross-promote integer types.
255 2005-01-23  James A. Morrison  <phython@gcc.gnu.org>
257         PR fortran/19294
258         * iresolve.c (gfc_resolve_transpose): Resolve to transpose_c4 or
259         transpose_c8 for complex types.
261 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
263         * data.c, dependency.c, f95-lang.c, io.c, trans-array.c,
264         trans-decl.c, trans-expr.c, trans-intrinsic.c, trans-io.c,
265         trans-stmt.c, trans-types.c, trans.h: Fix comment typos.
266         Follow spelling conventions.
268 2005-01-22  Bud Davis  <bdavis9659@comcast.net>
270         PR fortran/19313
271         * trans-io.c (gfc_trans_inquire): Added code to support
272         pad.
274 2005-01-22  Steven G. Kargl  <kargls@comcast.net>
276         * intrinsic.c (make_alias):  Add standard argument. 
277         (add_functions): Update make_alias calls.
279 2005-01-22  Paul Brook  <paul@codesourcery.com>
281         * trans-expr.c (gfc_conv_function_call): Remove bogus TODO.
283 2005-01-22  Paul Brook  <paul@codesourcery.com>
285         * gfortran.h (gfc_check_access): Add prototype.
286         * match.c (gfc_match_namelist): Remove TODO.
287         * module.c (check_access): Rename ...
288         (gfc_check_access): ... to this.  Boolify.  Update callers.
289         * resolve.c (resolve_symbol): Check for private objects in public
290         namelists.
292 2005-01-22  Paul Brook  <paul@codesourcery.com>
294         * primary.c (gfc_match_rvalue): Only apply implicit type if variable
295         does not have an explicit type.
296         (gfc_match_variable): Resolve implicit derived types in all cases.
297         Resolve contained function types from their own namespace, not the
298         parent.
299         * resolve.c (resolve_contained_fntype): Remove duplicate sym->result
300         checking.  Resolve from the contained namespace, not the parent.
302 2005-01-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
304         PR fortran/19543
305         * trans-const.c (gfc_conv_constant_to_tree): Give logical
306         constants the correct type.
308         PR fortran/19194
309         * trans-io.c (ADD_STRING): Use gfc_charlen_type_node for string
310         length parameters.
311         (gfc_build_io_library_fndecls): 'rec' and 'recl_in' are not
312         pointer fields.
314 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
316         * arith.c, array.c, check.c, decl.c, expr.c, f95-lang.c,
317         gfortran.h, interface.c, intrinsic.c, io.c, iresolve.c,
318         match.c, matchexp.c, misc.c, module.c, options.c, parse.c,
319         scanner.c, simplify.c, symbol.c, trans-array.c, trans-expr.c,
320         trans-io.c, trans-stmt.c, trans.c: Update copyright.
322 2005-01-17  Ira Rosen  <irar@il.ibm.com>
324         * f95-lang.c (gfc_init_builtin_functions): Call targetm.init_builtins.
326 2005-01-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
328         PR fortran/19182
329         * error.c (error_char): Line-buffer errors / warnings.
331 2005-01-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
333         * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Fix signed /
334         unsigned issue.  Use build_int_cst instead of converting
335         integer_zero_node.  Remove unnecessary conversion.
337         * trans-types.c (gfc_get_character_type_len): : Use
338         gfc_charlen_type_node as basic type for the range field.
340         * trans-intrinsic.c (build_fixbound_expr,
341         gfc_conv_intrinsic_bound, gfc_conv_intrinsic_anyall,
342         gfc_conv_intrinsic_count, gfc_conv_intrinsic_btest,
343         gfc_conv_intrinsic_singlebitop): Use 'build_int_cst' instead
344         of converting 'integer_zero_node' or 'integer_one_node'
345         respectively.
346         (gfc_conv_intrinsic_ishftc): Same, but store in local variable to
347         evade re-building.
348         (gfc_conv_intrinsic_strcmp, gfc_conv_intrinsic_rrspacing,
349         gfc_conv_intrinsic_trim, gfc_conv_intrinsic_iargc): Use
350         'build_int_cst' instead of converting 'integer_zero_node' or
351         'integer_one_node' respectively.
353         * trans-intrinsic.c (gfc_conv_intrinsic_index,
354         gfc_conv_intrinsic_scan, gfc_conv_intrinsic_verify): Remove
355         'gfc'-prefix from local variable, remove dead code, use correct
356         type when inserting argument.
358         * trans-intrinsic.c, trans-types.c: Update copyright years.
360 2005-01-16  Steven G. Kargl  <kargls@comcast.net>
362         PR 19168
363         * resolve.c (check_case_overlap): Typo in comment.
364         (validate_case_label_expr):  Fix up kinds of case values
365         (resolve_select): Properly handle kind mismatches.
367 2004-01-16  Paul Brook  <paul@codesourcery.com>
369         PR fortran/17675
370         * trans-common.c (translate_common): Remove duplicate function call.
371         (finish_equivalences): Preserve alignment when biasing offsets.
373 2005-01-15  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de
375         * primary.c (check_digit): Call 'ISXDIGIT' instead of assuming
376         ASCII-like character encoding.
378 2005-01-14  Steven G. Kargl  <kargls@comcast.net>
380         * resolve.c (compare_case): Cleanup.
382 2005-01-14  Steven G. Kargl  <kargls@comcast.net>
384         * resolve.c (compare_case): Give arguments correct type.
386 2005-01-13  Kazu Hirata  <kazu@cs.umass.edu>
388         * iresolve.c, trans-common.c, trans-types.c: Fix comment
389         typos.
391 2005-01-09  Paul Brook  <paul@codesourcery.com>
393         PR fortran/17675
394         * trans-common.c (current_common, current_offset): Remove.
395         (create_common): Add head argument.
396         (align_segment): New function.
397         (apply_segment_offset): New function.
398         (translate_common): Merge code from new_segment.  Handle alignment.
399         (new_segment): Remove.
400         (finish_equivalences): Ensure proper alignment.
402 2005-01-08  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
404         * trans-const.c: Don't include unused math.h.
406         * trans-intrinsic.c (gfc_get_intrinsic_lib_fndecl,
407         gfc_conv_intrinsic_bound, gfc_conv_intrinsic_minmaxloc,
408         gfc_conv_intrinsic_ishft, gfc_conv_intrinsic_len): Remove
409         trailing whitespace.
410         (prepare_arg_info): Fix formatting, indenting and remove trailing
411         whitespace.
412         (gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_trim): Remove
413         trailing whitespace.
415         * arith.c (arctangent2, gfc_arith_init_1, gfc_arith_done_1,
416         gfc_constant_result, gfc_range_check, gfc_arith_power,
417         eval_type_intrinsic0, eval_intrinsic_f2, gfc_real2real,
418         gfc_real2complex, gfc_complex2int, gfc_complex2real,
419         gfc_complex2complex): Fix whitespace issues.
420         * check.c (must_be, type_check, numeric_check, int_or_real_check,
421         logical_array_check, array_check, scalar_check, nonoptional_check,
422         variable_check, dim_check, check_a_kind, gfc_check_a_ikind,
423         gfc_check_a_xkind, gfc_check_abs, gfc_check_all_any,
424         gfc_check_allocated, gfc_check_a_p, gfc_check_besn,
425         gfc_check_btest, gfc_check_char, gfc_check_cmplx, gfc_check_count,
426         gfc_check_cshift, gfc_check_dcmplx, gfc_check_dble,
427         gfc_check_digits, gfc_check_dot_product, gfc_check_eoshift,
428         gfc_check_fnum, gfc_check_g77_math1, gfc_check_huge, gfc_check_i,
429         gfc_check_iand, gfc_check_ibclr, gfc_check_ibits, gfc_check_ibset,
430         gfc_check_idnint, gfc_check_ieor, gfc_check_index, gfc_check_int,
431         gfc_check_ior, gfc_check_ishft, gfc_check_ishftc, gfc_check_kind,
432         gfc_check_lbound, gfc_check_logical, min_max_args,
433         gfc_check_min_max_integer, gfc_check_min_max_real,
434         gfc_check_min_max_double, gfc_check_matmul,
435         gfc_check_minval_maxval, gfc_check_merge, gfc_check_nearest,
436         gfc_check_pack, gfc_check_precision, gfc_check_radix,
437         gfc_check_range, gfc_check_real, gfc_check_repeat,
438         gfc_check_scale, gfc_check_scan, gfc_check_selected_real_kind,
439         gfc_check_set_exponent): Fix formatting issues.
440         (gfc_check_size, gfc_check_sign): Alphabetize function order,
441         remove whitespace-only line.
442         (gfc_check_fstat, gfc_check_fstat_sub, gfc_check_stat,
443         gfc_check_stat_sub, gfc_check_transfer, gfc_check_transpose,
444         gfc_check_ubound, gfc_check_unpack, gfc_check_verify, gfc_check_x,
445         gfc_check_cpu_time, gfc_check_date_and_time, gfc_check_mvbits,
446         gfc_check_random_number, gfc_check_random_seed,
447         gfc_check_second_sub, gfc_check_system_clock,
448         gfc_check_getcwd_sub, gfc_check_exit, gfc_check_flush,
449         gfc_check_umask, gfc_check_umask_sub, gfc_check_unlink,
450         gfc_check_unlink_sub): Fix formatting issues.
451         
452 2005-01-08  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
454         * gfortran.h: Remove outdated comment.  Don't include stdio.h
455         explicitly.
457 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
459         * gfortranspec.c (lang_specific_driver): Change year to 2005 in
460         output of 'gfortran --version'.
462 2005-01-03  Steven G. Kargl  <kargls@comcast.net>
464         * arith.c: Add system.h; remove string.h
465         * decl.c: Ditto
466         * matchexp.c: Ditto
467         * parse.c: Ditto
468         * resolve.c: Ditto
469         * st.c: Ditto
470         * check.c: Remove stdlib.h and stdarg.h
471         * error.c: Remove stdlib.h, stdarg.h, stdio.h, string.h
472         * expr.c: Add system.h; remove stdarg.h, stdio.h, and string.h
473         * f95-lang.c: Add system.h; remove stdio.h
474         * interface.c: Add system.h; remove stdlib.h and string.h
475         * intrinsic.c: Remove stdarg.h, stdio.h, and string.h
476         * io.c: Remove string.h
477         * simplify.c: Ditto
478         * match.c: Remove stdarg.h and string.h
479         * misc.c: Update copyright; add system.h; remove stdlib.h,
480         string.h, and sys/stat.h
481         * module.c: Add system.h; remove string.h, stdio.h, errno.h,
482         unistd.h, and time.h
483         * option.c: Remove string.h and stdlib.h
484         * primary.c: Ditto
485         * scanner.c: Update copyright; add system.h; remove stdlib.h,
486         stdio.h, string.h, and strings.h
487         * symbol.c: Add system.h; remove stdlib.h, stdio.h, and string.h
488         * trans-array.c: Remove stdio.h and gmp.h
489         * trans-const.c: Ditto
490         * trans-expr.c: Ditto
491         * trans-io.c: Ditto
492         * trans-stmt.c: Ditto
493         * trans.c: Ditto
494         * trans-intrinsic.c: Remove stdio.h and string.h
496 2004-12-29  Steven G. Kargl  <kargls@comcast.net>
498         * gfortran.h (gfc_case): fix typo in comment.
500 2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de> 
502         * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Change to
503         logical shift.  Call fold.  Remove 0-bit shift shortcut.
504         (gfc_conv_intrinsic_ishftc): Convert first argument to at least
505         4 bytes bits.  Convert 2nd and 3rd argument to 4 bytes.  Convert
506         result if width(arg 1) < 4 bytes.  Call fold.
508         PR fortran/19032
509         * trans-intrinsic.c (gfc_conv_intrinsic_mod): Update comment
510         in front of function to match the standard.  Correct handling
511         of MODULO.
513 2004-12-27  Andrew Pinski  <pinskia@physics.uc.edu>
515         * trans-expr.c (gfc_conv_cst_int_power): Only check for
516         flag_unsafe_math_optimizations if we have a float type.
518 2004-12-23  Steven G. Kargl  <kargls@comcast.net>
520         * gfortran.texi: Fix typo.
522 2004-12-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
524         * trans-intrinsic.c (build_fixbound_expr): Clarify comment, fix
525         comment typo.
527 2004-12-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
529         PR fortran/18993
530         * match.c (gfc_match_if): Don't explicitly skip optional whitespace.
531         (gfc_match_nullify): Make sure that ')' is in front of the end of
532         statement.
534         * scanner.c (skip_fixed_comments): Fix typo in comment preceding
535         function.
537 2004-12-14  Richard Henderson  <rth@redhat.com>
539         * gfortran.h (gfc_expr.function.name): Make const.
540         (gfc_iresolve_init_1, gfc_iresolve_done_1): Remove.
541         (gfc_get_string): Update prototype.
542         * iresolve.c: Include tree.h.
543         (string_node, HASH_SIZE, string_head, hash): Remove.
544         (gfc_get_string): Use vsnprintf, get_identifier.
545         (free_strings, gfc_iresolve_init_1, gfc_iresolve_done_1): Remove.
546         * misc.c (gfc_init_1): Don't call gfc_iresolve_init_1.
547         (gfc_done_1): Don't call gfc_iresolve_done_1.
548         * module.c (mio_allocated_string): Take and return const char *,
549         instead of modifying char**.
550         (mio_expr): Update to match.
551         * resolve.c (pure_function): Constify name argument.
552         (resolve_function): Constify name.
553         * trans-intrinsic.c (gfc_conv_intrinsic_function): Likewise.
555 2004-12-12  Richard Henderson  <rth@redhat.com>
557         * iresolve.c (gfc_resolve_all, gfc_resolve_any, gfc_resolve_count,
558         gfc_resolve_cshift, gfc_resolve_dot_product, gfc_resolve_eoshift,
559         gfc_resolve_matmul, gfc_resolve_maxloc, gfc_resolve_maxval,
560         gfc_resolve_minloc, gfc_resolve_minval, gfc_resolve_pack,
561         gfc_resolve_product, gfc_resolve_reshape, gfc_resolve_shape,
562         gfc_resolve_spread, gfc_resolve_sum, gfc_resolve_transpose,
563         gfc_resolve_unpack: Use PREFIX.
565 2004-12-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
567         PR fortran/18869
568         * match.c (gfc_match_common): Skip whitespace.
570 2004-12-12  Steven G. Kargl  <kargls@comcast.net>
572         PR fortran/16581
573         * check.c (gfc_check_iand, gfc_check_ibclr, gfc_check_ibits,
574         gfc_check_ibset, gfc_check_ieor, gfc_check_ior): Remove default
575         integer kind check; Issue error for -std=f95 when needed.
576         * intrinsic.c (add_functions): Change ieor from GFC_STD_GNU to
577         GFC_STD_F95.
578         * iresolve.c (gfc_resolve_iand, gfc_resolve_ieor, gfc_resolve_ior):
579         Promote arguments to same kind.
581 2004-12-12  Steven G. Kargl  <kargls@comcast.net>
582         Paul Brook  <paul@codesourcery.com>
584         PR fortran/16222
585         * resolve.c (gfc_resolve_iterator_expr): New function.
586         (gfc_resolve_iterator): Use it.  Add real_ok argument.  Convert
587         start, end and stride to correct type.
588         (resolve_code): Pass extra argument.
589         * array.c (resolve_array_list): Pass extra argument.
590         * gfortran.h (gfc_resolve): Add prototype.
591         * trans-stmt.c (gfc_trans_do): Remove redundant type conversions.
592         Handle real type iterators.
594 2004-12-11  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
596         PR fortran/17175
597         * iresolve.c (gfc_resolve_scale): Convert 'I' argument if not of
598         same kind as C's 'int'.
599         (gfc_resolve_set_exponent): Convert 'I' argument if not of kind 4.
601 2004-12-08  Richard Henderson  <rth@redhat.com>
603         * intrinsic.c (gfc_convert_type_warn): Propagate the input shape
604         to the output expression.
605         * iresolve.c (gfc_resolve_cshift, gfc_resolve_eoshift): Suppress
606         warning conversion.
607         (gfc_resolve_reshape): Force convert SHAPE and ORDER parameters
608         to index kind.
610 2004-12-08  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
612         PR fortran/18826
613         * resolve.c (resolve_code): Impose correct restrictions on
614         assigned variable.
616         * decl.c (gfc_match_end): Use locus of END when eos is an error.
618 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
619         Paul Brook  <paul@codesourcery.com>
621         * check.c (gfc_check_flush, gfc_check_fnum): New functions.
622         (gfc_check_fstat, gfc_check_fstat_sub): New functions.
623         (gfc_check_stat, gfc_check_stat_sub): New functions.
624         * gfortran.h (GFC_ISYM_FNUM,GFC_ISYM_FSTAT,GFC_ISYM_STAT): New symbols
625         * intrinsic.c (add_functions,add_subroutines): Add flush, fnum,
626         fstat, and stat to intrinsics symbol tables.
627         * intrinsic.h (gfc_check_flush, gfc_resolve_stat_sub): Add prototypes.
628         (gfc_resolve_fstat_sub, gfc_resolve_stat): Ditto.
629         * iresolve.c (gfc_resolve_fnum, gfc_resolve_fstat): New functions.
630         (gfc_resolve_stat, gfc_resolve_flush): New functions.
631         (gfc_resolve_stat_sub,gfc_resolve_fstat_sub): New functions
632         * trans-intrinsic.c (gfc_conv_intrinsic_function): Add new intrinsics.
634 2004-12-02  Steven G. Kargl  <kargls@comcast.net>
636         * intrinsic.c: Fix and add comments, fix function declarations
637         (OPTIONAL,REQUIRED): New symbols
638         (add_functions,add_subroutines): Use symbols
639         (gmp.h): Remove unused include
641 2004-11-25  Joseph S. Myers  <joseph@codesourcery.com>
643         * f95-lang.c, gfortranspec.c, trans-decl.c: Avoid ` as left quote
644         in diagnostics.
646 2004-11-24  Steven Bosscher  <stevenb@suse.de>
648         * options.c (gfc_post_options): Don't clear flag_inline_functions.
650 2004-11-20  Steven G. Kargl  <kargls@comcast.net>
652         * check.c (gfc_check_getcwd_sub): Fix seg fault.
654         * check.c (gfc_check_exit,gfc_check_umask,gfc_check_umask_sub,
655         gfc_check_unlink,gfc_check_unlink_sub): New functions
656         * gfortran.h (GFC_ISYM_UMASK,GFC_ISYM_UNLINK): New symbols
657         * intrinsic.c (add_functions,add_subroutines): Add umask, unlink,
658         exit to intrinsics symbol tables.
659         * intrinsic.h (gfc_check_umask,gfc_check_unlink,gfc_check_exit,
660         gfc_check_umask_sub,gfc_check_unlink_sub,gfc_resolve_umask,
661         gfc_resolve_unlink,gfc_resolve_exit,gfc_resolve_umask_sub,
662         gfc_resolve_unlink_sub): Add and sort prototypes.
663         * iresolve.c (gfc_resolve_umask,gfc_resolve_unlink,gfc_resolve_exit,
664         gfc_resolve_umask_sub,gfc_resolve_unlink_sub): New functions
665         * trans-intrinsic.c (gfc_conv_intrinsic_function): Use symbols
667 2004-11-16  Paul Brook  <paul@codesourcery.com>
669         PR fortran/13010
670         * trans-array.c (gfc_trans_allocate_temp_array): Use gfc_get_dtype.
671         (gfc_array_init_size, gfc_conv_expr_descriptor): Ditto.
672         * trans-types.c (gfc_get_dtype): Accept array type rather than element
673         type.
674         (gfc_get_nodesc_array_type): Don't set GFC_TYPE_ARRAY_DTYPE.
675         (gfc_get_array_type_bounds): Ditto.
676         (gfc_get_derived_type): Recurse into derived type pointers.
677         * trans-types.h (gfc_get_dtype): Add prototype.
678         * trans.h (GFC_TYPE_ARRAY_DTYPE): Add comment.
680 2004-11-15  Paul Brook  <paul@codesourcery.com>
682         * trans-types.c (gfc_get_dtype): Remove obsolete TODO.
684 2004-11-10  Paul Brook  <paul@codesourcery.com>
686         PR fortran/18375
687         * trans-expr.c (gfc_trans_subarray_assign): Free shape before ss.
688         * trans-io.c (transfer_array_component): Ditto.
690 2004-11-10  Paul Brook  <paul@codesourcery.com>
692         * invoke.texi: Fix typo.
694 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
696         * arith.c, array.c, decl.c, expr.c, f95-lang.c, gfortran.h,
697         gfortranspec.c, interface.c, intrinsic.c, iresolve.c, match.c,
698         module.c, parse.c, parse.h, primary.c, resolve.c, scanner.c,
699         trans-array.c, trans-array.h, trans-expr.c, trans-intrinsic.c,
700         trans-io.c, trans-stmt.c, trans.h: Fix comment formatting.
702 2004-11-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
704         PR fortran/18023
705         * io.c (resolve_tag): Tighten up exception for assigned FORMAT.
707 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
709         * gfortranspec.c: Replace GNU CC with GCC.
711 2004-11-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
713         * gfortranspec.c (lang_specific_driver): Change year to 2004.
715 2004-11-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
717         PR fortran/18111
718         *  trans-decl.c (create_function_arglist): Set DECL_ARTIFICIAL for
719         hidden parameters.
721 2004-11-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
723         PR fortran/15164
724         * trans-decl.c (gfc_finish_var_decl): Don't declare arguments to
725         module procedures as if they were module variables.
727 2004-11-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
729         PR fortran/17535
730         PR fortran/17583
731         PR fortran/17713
732         * module.c (write_symbol1): Set module_name for dummy arguments.
734 2004-11-02  Paul Brook  <paul@codesourcery.com>
736         * intrinsic.c (check_intrinsic_standard): Include error locus.
737         Remove VLA.
738         (gfc_intrinsic_func_interface, gfc_intrinsic_sub_interface): Pass
739         locus to check_intrinsic_standard.
741 2004-10-31  Janne Blomqvist  <jblomqvi@cc.hut.fi>
743         PR fortran/17590
744         * gfortran.h: Change GFC_STD_* flags to more appropriate
745         ones. (struct gfc_intrinsic_isym): Add field for standard. (struct
746         gfc_option_t): Add field for warning about use of nonstandard
747         intrinsics.
748         * intrinsic.c (add_sym): Add parameter for standard version, check
749         this against current standard.
750         (add_sym_0): Pass standard parameter to add_sym.
751         (add_sym_1, add_sym_0s, add_sym_1s, add_sym_1m, add_sym_2): Ditto.
752         (add_sym_2s, add_sym_3, add_sym_3ml, add_sym_3red, add_sym_3s): Ditto.
753         (add_sym_4, add_sym_4s, add_sym_5, add_sym_5s): Ditto.
754         (make_generic): Add parameter for standard, check this
755         against currently selected standard.
756         (add_functions, add_subroutines): Add parameter to tell which
757         standard an intrinsic belongs to.
758         (check_intrinsic_standard): New function.
759         (gfc_intrinsic_func_interface): Add call to check_intrinsic_standard.
760         (gfc_intrinsic_sub_interface): Ditto.
761         * lang.opt: Add Wnonstd-intrinsics option.
762         * options.c (gfc_init_options): Change to use new GFC_STD_* flags,
763         init new warning.
764         (set_Wall): Add warning about nonstd intrinsics.
765         (gfc_handle_option): Change to use new GFC_STD_* flags,
766         handle new warning.
767         * invoke.texi: Update manual to include -Wnonstd-intrinsics.
769 2004-10-30  Andrew Pinski  <pinskia@physics.uc.edu>
771         * f95-lang.c (lang_tree_node): Add chain_next to be the TREE_CHAIN.
773 2004-10-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
775         * simplify.c (twos_complement): Calculate mask in GMP arithmetic.
777 2004-10-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
779         * trans.c (gfc_trans_code): Set global locus after recursing. Fix
780         comment typo.
782 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
784         * check.c (gfc_check_rand): Allow missing optional argument. 
785         (gfc_check_irand): Ditto.
786         * intrinsic.c (add_functions): Set arg optional flag for {i,}rand.
788 2004-10-28  Scott Robert Ladd  <scott.ladd@coyotegulch.com>
790         PR fortran/13490, PR fortran/17912
791         * gcc/fortran/gfortran.h: Added pedantic_min_int to gfc_integer_info
792         * gcc/fortran/gfortran.h: Added ARITH_ASYMMETRIC to arith
793         * gcc/fortran/arith.c: Added support for an "asymmetric integer"
794         warning when compiling with pedantic.
795         * gcc/fortran/arith.c: Set minimum integer values to reflect
796         realities of two's complement signed integers. Added
797         pedantic minimum.
799 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
801         * Make-lang.in (F95_ADDITIONAL_OBJS): Kill.
802         (f951): Do not depend on F95_ADDITIONAL_OBJS and don't
803         link it in.
805 2004-10-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
807         * trans-decl.c (generate_local_decl): Simplify logic, fix comment
808         typo.
809         (gfc_generate_function_code): Fix formatting issue.
811 2004-10-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
813         * module.c: Fix formatting issues.
815 2004-10-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
817         * module.c (mio_interface_rest): Set where member of interface
818         while loading.
820 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
822         PR fortran/17901
823         * options.c (gfc_handle_option): Add break after handing the
824         J/M option.
826 2004-10-08  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
828         * arith.c: Fix formatting issues.
829         
830 2004-10-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
832         PR fortran/17676
833         * resolve.c (resolve_operator): Use correct operator name in message.
835 2004-10-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
837         * primary.c (match_boz_constant): Allow kind parameter suffixes.
838         Move standard warning further to the front.
840 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
842         * trans-stmt.c: Fix a comment typo.
844 2004-10-07  Paul Brook  <paul@codesourcery.com>
846         PR fortran/17678
847         * trans-array.c (gfc_trans_deferred_array): Leave use associated
848         variables alone.
850 2004-10-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
852         PR fortran/17568
853         * simplify.c (twos_complement): New function.
854         (gfc_simplify_ishft, gfc_simplify_ishftc): Revise.
856         * simplify.c (gfc_simplify_abs): Use mpfr_hypot for CABS.
858 2004-10-06  Paul Brook  <paul@codesourcery.com>
860         * trans-stmt.c (gfc_trans_simple_do): New function.
861         (gfc_trans_do): Use it.  Evaluate iteration bounds before entering
862         loop.  Update comments.
864 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
866         PR fortran/17283
867         * iresolve.c (gfc_resolve_pack): Choose function depending if mask
868         is scalar.
870         PR fortran/17631
871         * intrinsic.c (add_sym_5): Remove.
872         (add_subroutines): Add resolution function for MVBITS.
873         * intrinsic.h (gfc_resolve_mvbits): Declare resolution function for
874         MVBITS
875         * iresolve.c (gfc_resolve_mvbits): New function.
876         (gfc_resolve_random_number): Remove empty line at end of function.
878         * trans-const.c (gfc_build_cstring_const): New function.
879         (gfc_init_cst): Use new function.
880         * trans-const.h (gfc_build_cstring_const): Add prototype.
881         * trans-io.c (set_string, set_error_locus): Use new function.
882         * trans-stmt.c (gfc_trans_goto): Use new function.
883         
884         PR fortran/17708
885         * parse.c (accept_statement): Don't treat END DO like END IF and
886         END SELECT.
887         (parse_do_block): Generate possible END DO label inside END DO
888         block.
890         PR fortran/17776
891         * check.c (gfc_check_system_sub): New function.
892         * gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SYSTEM.
893         * intrinsic.c (add_functions): Add 'system'.
894         (add_subroutines): Add 'system'.
895         * intrinsic.h (gfc_check_etime_sub, gfc_check_getcwd_sub):
896         Move prototypes to other suborutines.
897         (gfc_check_system_sub, gfc_resolve_system, gfc_resolve_system_sub):
898         Add prototype.
899         (gfc_resolve_system_clock): Fix formatting of prototype.
900         * iresolve.c (gfc_resolve_system, gfc_resolve_system_sub): New
901         functions.
902         * trans-intrinsic.c (gfc_conv_intrinsic_function): Deal with
903         GFC_ISYM_SYSTEM.
905 2004-10-04  Erik Schnetter  <schnetter@aei.mpg.de>
907         * scanner.c (preprocessor_line): Accept preprocessor lines without
908         file names.  Check file names for closing quotes.  Handle escaped
909         quotes in file names.
911 2004-10-04  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
912         Paul Brook  <paul@codesourcery.com>
914         * trans-array.c (gfc_conv_expr_descriptor): Check for substriungs.
915         Use gfc_get_expr_charlen.
916         * trans-expr.c (gfc_get_expr_charlen): New function.
917         * trans.h (gfc_get_expr_charlen): Add prototype.
919 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
921         * trans-intrinsic.c: Fix a comment typo.
923 2004-10-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
925         * simplify.c (range_check): Remove blank line at beginning of function.
926         (gfc_simplify_dint): Same at end of function.
927         (gfc_simplify_exponent, gfc_simplify_fraction): Simplify calculations.
928         (gfc_simplify_bound): Fix indentation.
929         (gfc_simplify_log10): Simplify calculation.
930         (gfc_simplify_min, gfc_simplify_max): Remove blank line at beginning
931         of function.
932         (gfc_simplify_nearest): Same at end of function.
933         (gfc_simplify_nint, gfc_simplify_idnint): Same at beginning of
934         function.
935         (gfc_simplify_rrspacing, gfc_simplify_set_exponent,
936         gfc_simplify_spacing): Simplify calulations.
938 2004-10-03  Feng Wang  <fengwang@nudt.edu.cn>
940         * trans-intrinsic.c: Fix comments on spacing and rrspacing
941         (gfc_conv_intrinsic_rrspacing): Add fold on constant trees.
943 2004-10-01  Jan Hubicka  <jh@suse.cz>
945         * f95-lang.c (gfc_expand_function): Update call of
946         tree_rest_of_compilation.
947         * trans-decl.c (gfc_generate_constructors): Likewise.
949 2004-09-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
951         * trans-intrinsic.c: Comment fixes.
953 2004-09-25  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
955         * decl.c (add_init_expr_to_sym, variable_decl): Comment fixes.
957 2004-09-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
959         * trans-types.c (gfc_return_by_reference): Remove superfluous
960         assertion.
962         * intrinsic.h (gfc_resolve_getcwd): Update prototype.
963         * iresolve.c (gfc_resolve_getcwd): Add second argument to function.
965         PR fortran/17615
966         * trans-expr.c (gfc_trans_arrayfunc_assign): Look at resolved
967         function to determine return type.
968         
969 2004-09-20  Jan Hubicka  <jh@suse.cz>
971         * trans-decl.c (build_entry_thunks): Finalize the function; do not lower
972         tree.
973         (gfc_generate_function_code): Likewise.
975 2004-09-20  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
977         PR fortran/15957
978         * simplify.c (gfc_simplify_reshape): Set shape of return value
979         correctly.
981 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
982             Zack Weinberg  <zack@codesourcery.com>
984         * f95-lang.c, trans-expr.c, trans.c: Update for new tree-class
985         enumeration constants.
987 2004-09-17  Paul Brook  <paul@codesourcery.com>
989         * gfortran.h (struct gfc_linebuf): Don't use C99 empty arrays.
990         (gfc_linebuf_header_size): Define.
991         * scanner.c (load_file): Use it.
993 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
995         * array.c, data.c, decl.c, dependency.c, error.c, f95-lang.c,
996         interface.c, intrinsic.c, io.c, misc.c, module.c, parse.h,
997         resolve.c, scanner.c, trans-array.c, trans-array.h,
998         trans-common.c, trans-const.h, trans-decl.c, trans-expr.c,
999         trans-intrinsic.c, trans-stmt.c, trans-types.c, trans.c,
1000         trans.h: Fix comment typos.  Follow spelling conventions.
1002 2004-09-16  Victor Leikehman  <lei@il.ibm.com>
1004         PR/15364
1005         * trans-io.c (transfer_array_component): New function.
1006         (transfer_expr): For array fields, call transfer_array_component.
1008 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
1010         * gfortran.texi: Fix a typo.
1012 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1014         * parse.c (eof_buf): Rename eof to eof_buf.
1015         (unexpected_eof): Same.
1016         (gfc_parse_file): Same.
1018 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
1020         * check.c (gfc_check_getcwd_sub): New function.
1021         * gfortran.h (GFC_ISYM_GETCWD): New symbol.
1022         * intrinsic.c (add_functions): Add function definition;
1023         Use symbol.
1024         * intrinsic.c (add_subroutines): Add subroutine definitions.
1025         * intrinsic.h: Add prototypes.
1026         * iresolve.c (gfc_resolve_getcwd, gfc_resolve_getcwd_sub):
1027         New functions.
1028         * trans-intrinsic.c (gfc_conv_intrinsic_function): Use symbol.
1030 2004-09-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1032         PR fortran/16485
1033         * module.c (write_symbol): Don't fill in module name here.
1034         (write_symbol0): Fill in here instead.
1036 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1038         * data.c, decl.c, f95-lang.c, gfortran.h, match.c,
1039         trans-array.c, trans-common.c, trans-expr.c,
1040         trans-intrinsic.c, trans-stmt.c, trans-types.c, trans.h: Fix
1041         comment typos.  Follow spelling conventions.
1043 2004-09-09  Paul Brook  <paul@codesourcery.com>
1045         * scanner.c (get_file): Add ATTRIBUTE_UNUSED.
1047 2004-09-08  Paul Brook  <paul@codesourcery.com>
1049         * array.c: Don't include assert.h.
1050         * data.c: Don't include assert.h.  Replace assert and abort with
1051         gcc_assert and gcc_unreachable.
1052         * dependency.c: Ditto.
1053         * f95-lang.c: Ditto.
1054         * iresolve.c: Ditto.
1055         * resolve.c: Ditto.
1056         * simplify.c: Ditto.
1057         * symbol.c: Ditto.
1058         * trans-array.c: Ditto.
1059         * trans-common.c: Ditto.
1060         * trans-const.c: Ditto.
1061         * trans-decl.c: Ditto.
1062         * trans-expr.c: Ditto.
1063         * trans-intrinsic.c: Ditto.
1064         * trans-io.c: Ditto.
1065         * trans-stmt.c: Ditto.
1066         * trans-types.c: Ditto.
1067         * trans.c: Ditto.
1069 2004-09-07  Per Bothner  <per@bothner.com>
1070         Paul Brook  <paul@codesourcery.com>
1072         * error.c (show_locus): Handle mapped locations.
1073         * f95-lang.c (gfc_be_parse_file): Initialize mapped locations.
1074         * gfortran.h: Include input.h.
1075         (struct gfc_linebuf): Use source_location.
1076         * scanner.c (get_file): Initialize linemap.
1077         (preprocessor_line): Pass extra argument to get_file.
1078         (load_file): Ditto.  Setup linemap.
1079         (gfc_new_file): Handle mapped locations.
1080         * trans-common.c (build_field, build_equiv_decl, build_common_decl):
1081         Set decl source locations.
1082         (gfc_trans_common): Set blank common block location.
1083         * trans-decl.c (gfc_set_decl_location): New function.
1084         (gfc_get_label_decl, gfc_get_symbol_decl): Use it.
1085         (trans_function_start): Move call to gfc_set_backend_locus..
1086         (build_function_decl): ... to here.
1087         (build_entry_thunks): Set and restore the backend locus.
1088         (gfc_generate_constructors): Remove excess arguments to
1089         init_function_start.
1090         (gfc_generate_block_data): Add comments.  Set the decl locus.
1091         * trans-io.c (set_error_locus): Handle mapped locations.
1092         * trans.c (gfc_get_backend_locus, gfc_get_backend_locus): Ditto.
1093         (gfc_trans_code): Use SET_EXPR_LOCATION.
1094         (gfc_generate_code): Override the location of the new symbol.
1095         * trans.h (gfc_set_decl_location): Add prototype.
1097 2004-08-31  Paul Brook  <paul@codesourcery.com>
1099         * trans-types.c (gfc_type_for_mode): Return NULL for unknown modes.
1101 2004-09-01  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1103         PR fortran/15327
1104         * trans-intrinsic.c (gfc_conv_intrinsic_merge): Do the right thing for
1105         strings.
1107 2004-09-01  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1109         PR fortran/16400
1110         PR fortran/16404
1111         (port from g95)
1112         * resolve.c (resolve_transfer): New function.
1113         (resolve_code): Call resolve_transfer in case of EXEC_TRANSFER.
1115 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1117         PR fortran/16579
1118         * trans-types.c (gfc_init_types): Make gfc_character1_type_node an
1119         unsigned char.
1121 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1123         * CONTRIB, NEWS, README, TODO: Remove obsolete files.
1125 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1127         PR fortran/17244
1128         * trans-types.c (gfc_return_by_reference): Remove TODO error,
1129         add comment pointing out possible issue WRT compatibility with g77.
1131 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1133         * trans-decl.c, trans-expr.c, trans-io.c, trans-types.c: Replace
1134         all occurences of 'gfc_strlen_type_node' by
1135         'gfc_charlen_type_node'.
1136         * trans-types.h: Same. Also update comment accordingly.
1138 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1140         * primary.c: Update copyright boilerplate to say GCC.
1141         * f95-lang.c: Change initial comment to say gfortran.
1143 2004-08-31  Paul Brook  <paul@codesourcery.com>
1145         * trans-types.h: Add comments.
1146         (intmax_type_node, string_type_node, const_string_type_node): Remove.
1148 2004-08-30  Richard Henderson  <rth@redhat.com>
1150         * Make-lang.in (fortran/f95-lang.o): Update dependencies.
1151         (fortran/trans-decl.o, fortran/trans-types.o): Likewise.
1152         * gfortran.h (gfc_integer_info): Add c_char, c_short, c_int,
1153         c_long, c_long_long.
1154         (gfc_logical_info): Add c_bool.
1155         (gfc_real_info): Add mode_precision, c_float, c_double, c_long_double.
1156         * trans-array.c (gfc_array_allocate): Use TYPE_PRECISION
1157         rather than gfc_int[48]_type_node for allocate choice.
1158         * trans-decl.c (gfc_build_intrinsic_function_decls): Cache
1159         local copies of some kind type nodes.
1160         (gfc_build_builtin_function_decls): Likewise.
1161         * trans-expr.c (gfc_conv_power_op): Likewise.
1162         * trans-intrinsic.c (gfc_conv_intrinsic_index,
1163         gfc_conv_intrinsic_scan, gfc_conv_intrinsic_verify,
1164         gfc_conv_intrinsic_trim, gfc_conv_intrinsic_repeat): Likewise.
1165         * trans-stmt.c (gfc_trans_pause, gfc_trans_stop,
1166         gfc_trans_character_select, gfc_trans_allocate): Likewise.
1167         * trans-io.c (gfc_pint4_type_node): Move into ...
1168         (gfc_build_io_library_fndecls): ... here.  Cache local copies of
1169         some kind type nodes.
1170         * trans-types.c (gfc_type_nodes): Remove.
1171         (gfc_character1_type_node, gfc_strlen_type_node): New.
1172         (gfc_integer_types, gfc_logical_types): New.
1173         (gfc_real_types, gfc_complex_types): New.
1174         (gfc_init_kinds): Fill in real mode_precision.
1175         (gfc_build_int_type, gfc_build_real_type): New.
1176         (gfc_build_complex_type, gfc_build_logical_type): New.
1177         (c_size_t_size): New.
1178         (gfc_init_types): Loop over kinds.
1179         (gfc_get_int_type, gfc_get_real_type): Use gfc_validate_kind.
1180         (gfc_get_complex_type, gfc_get_logical_type): Likewise.
1181         (gfc_get_character_type_len): Likewise.
1182         (gfc_type_for_size): Loop over kinds; use a reduced set of
1183         unsigned type nodes.
1184         (gfc_type_for_mode): Loop over kinds.
1185         (gfc_signed_or_unsigned_type): Use gfc_type_for_size.
1186         (gfc_unsigned_type, gfc_signed_type): Use gfc_signed_or_unsigned_type.
1187         * trans-types.h (F95_INT1_TYPE, F95_INT2_TYPE, F95_INT4_TYPE,
1188         F95_INT8_TYPE, F95_INT16_TYPE, F95_REAL4_TYPE, F95_REAL8_TYPE,
1189         F95_REAl16_TYPE, F95_COMPLEX4_TYPE, F95_COMPLEX8_TYPE,
1190         F95_COMPLEX16_TYPE, F95_LOGICAL1_TYPE, F95_LOGICAL2_TYPE,
1191         F95_LOGICAL4_TYPE, F95_LOGICAL8_TYPE, F95_LOGICAL16_TYPE,
1192         F95_CHARACTER1_TYPE, NUM_F95_TYPES, gfc_type_nodes,
1193         gfc_int1_type_node, gfc_int2_type_node, gfc_int4_type_node,
1194         gfc_int8_type_node, gfc_int16_type_node, gfc_real4_type_node,
1195         gfc_real8_type_node, gfc_real16_type_node, gfc_complex4_type_node,
1196         gfc_complex8_type_node, gfc_complex16_type_node,
1197         gfc_logical1_type_node, gfc_logical2_type_node,
1198         gfc_logical4_type_node, gfc_logical8_type_node,
1199         gfc_logical16_type_node, gfc_strlen_kind): Remove.
1200         (gfc_character1_type_node): Turn in to a variable.
1201         (gfc_strlen_type_node): Likewise.
1203 2004-08-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1205         * gfortran.h (gfc_namespace): Add new field is_block_data.
1206         * parse.c (accept_statement): Remove special handling for BLOCK DATA.
1207         (parse_block_data): Record BLOCK DATA name, set is_block_data field.
1208         * trans.c (gfc_generate_code): Handle BLOCK DATA units.
1209         * trans.h (gfc_generate_block_data): Add prototype.
1210         * trans-decl.c (gfc_generate_block_data): New function.
1212 2004-08-29  Richard Henderson  <rth@redhat.com>
1214         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_export.
1215         * trans-types.c (gfc_init_kinds): Reject integer kinds larger
1216         than two HOST_WIDE_INT.
1218 2004-08-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1220         PR fortran/13910
1221         * decl.c (free_variable, free_value, gfc_free_data, var_list,
1222         var_element, top_var_list, match_data_constant, top_val_list,
1223         gfc_match_data): Move here from match.c.
1224         (match_old_style_init): New function.
1225         (variable_decl): Match old-style initialization.
1226         * expr.c (gfc_get_variable_expr): New function.
1227         * gfortran.h (gfc_get_variable_expr): Add prototype.
1228         * gfortran.texi: Start documentation for supported extensions.
1229         * match.c: Remove the functions moved to decl.c.
1230         * match.h (gfc_match_data): Move prototype to under decl.c.
1231         * symbol.c (gfc_find_sym_tree, gfc_find_symbol): Add/correct
1232         comments.
1234 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
1235         Paul Brook  <paul@codesourcery.com>
1237         * check.c (gfc_check_besn, gfc_check_g77_math1): New functions.
1238         * f95-lang.c (DO_DEFINE_MATH_BUILTIN): Define.
1239         (DEFINE_MATH_BUILTIN, DEFINE_MATH_BUILTIN_C): Use it.
1240         (build_builtin_fntypes): New function.
1241         (gfc_init_builtin_functions): Use it.
1242         * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_{J,Y}{0,1,N}
1243         and GFC_ISYM_ERF{,C}.
1244         (gfc_c_int_kind): Declare.
1245         * intrinsic.c (add_functions): Add [d]bes* and [d]erf*.
1246         * intrinsic.h (gfc_check_besn, gfc_check_g77_math1, gfc_resolve_besn,
1247         gfc_resolve_g77_math1): Add prototypes.
1248         * resolve.c (gfc_resolve_besn, gfc_resolve_g77_math1): New functions.
1249         * mathbuiltins.def: Add comment.  Change third argument.  Use
1250         DEFINE_MATH_BUILTIN_C.  Add bessel and error functions.
1251         * trans-intrinsic.c (BUILT_IN_FUNCTION): Define.
1252         (DEFINE_MATH_BUILTIN, DEFINE_MATH_BUILTIN_C): Use it.
1253         * trans-types.c (gfc_c_int_kind): Declare.
1254         (gfc_init_kinds): Set it.
1256 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
1257         Paul Brook  <paul@codesourcery.com>
1259         * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_GET?ID.
1260         (gfc_check_f, gfc_simplify_f): Add f0.
1261         * intrinsic.c (do_check): Call f0.  Flatten.
1262         (add_sym_0): Fix prototype.  Set f0.
1263         (add_functions): Add getgid, getgid and getuid.
1264         (resolve_intrinsic): Remove obsolete comment.
1265         (do_simplify): Call f0.
1266         * intrinsic.h (gfc_resolve_getgid, gfc_resolve_getpid,
1267         gfc_resolve_getuid): Add prototypes.
1268         * iresolve.c (gfc_resolve_getgid, gfc_resolve_getpid,
1269         gfc_resolve_getuid): New functions.
1270         * trans-intrinsic.c (gfc_conv_intrinsic_function): Handle
1271         GFC_ISYM_GET?ID.
1273 2004-08-28  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1275         * error.c (gfc_error_init_1): Remove blank line in front of
1276         function body. Add missing blank.
1277         (gfc_buffer_error, error_char, error_string): Remove blank line in
1278         front of function body.
1279         (show_locus): Add comma in comment.
1280         (gfc_clear_warning, gfc_warning_check, gfc_clear_error,
1281         gfc_push_error, gfc_pop_error): Remove blank line in front of
1282         function body.
1283         (gfc_get_errors): Typo fix in comment in front of function. Remove
1284         blank line in front of function body.
1286 2004-08-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1288         * gfortran.h (gfc_default_*_kind): Remove prototypes, add extern
1289         variable declaration of same name.
1290         * arith.c, check.c, decl.c, dump_parse_tree.c, expr.c,
1291         intrinsic.c, io.c, iresolve.c, match.c, options.c, primary.c,
1292         resolve.c, simplify.c, symbol.c, trans-const.c, trans-io.c:
1293         Replace all calls to gfc_default_*_kind with variable accesses.
1294         * trans-types.c: Same as above.
1295         (gfc_default_*_kind_1): Rename to gfc_default_*_kind, remove
1296         static qualifier. Replace all occurences.
1297         (gfc_default_*_kind): Remove functions.
1299 2004-08-26  Richard Henderson  <rth@redhat.com>
1301         * arith.c: Include system.h, not real system headers.
1302         (MPZ_NULL, MPF_NULL, DEF_GFC_INTEGER_KIND, DEF_GFC_LOGICAL_KIND,
1303         DEF_GFC_REAL_KIND, GFC_SP_KIND, GFC_SP_PREC, GFC_SP_EMIN, GFC_SP_EMAX,
1304         GFC_DP_KIND, GFC_DP_PREC, GFC_DP_EMIN, GFC_DP_EMAX, GFC_QP_KIND,
1305         GFC_QP_PREC, GFC_QP_EMIN, GFC_QP_EMAX): Remove.
1306         (gfc_integer_kinds, gfc_logical_kinds, gfc_real_kinds,
1307         gfc_index_integer_kind, gfc_default_integer_kind,
1308         gfc_default_real_kind,gfc_default_double_kind,
1309         gfc_default_character_kind, gfc_default_logical_kind,
1310         gfc_default_complex_kind, validate_integer, validate_real,
1311         validate_logical, validate_character,
1312         gfc_validate_kind): Move to trans-types.c.
1313         (gfc_set_model_kind): Use gfc_validate_kind.
1314         (gfc_set_model): Just copy the current precision to default.
1315         (gfc_arith_init_1): Use mpfr precision 128 for integer setup.
1316         * f95-lang.c (gfc_init_decl_processing): Invoke gfc_init_kinds.
1317         * gfortran.h: Update file commentary.
1318         * trans-types.c (MAX_INT_KINDS, MAX_REAL_KINDS): New.
1319         (gfc_default_integer_kind_1, gfc_default_real_kind_1,
1320         gfc_default_double_kind_1, gfc_default_character_kind_1,
1321         gfc_default_logical_kind_1, gfc_default_complex_kind_1): New.
1322         (gfc_init_kinds): New.
1323         (gfc_init_types): Don't set gfc_index_integer_kind here.
1324         * trans-types.h (gfc_init_kinds): Declare.
1325         * doc/invoke.texi: Clarify DOUBLE PRECISION behaviour wrt -r8.
1327 2004-08-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1329         * check.c (gfc_check_atan2): New function.
1330         * intrinsic.c (add_functions): Use gfc_check_atan2 for ATAN2
1331         * intrinsic.h (gfc_check_atan2): Add prototype.
1333 2004-08-25  Richard Henderson  <rth@redhat.com>
1335         * arith.c (gfc_validate_kind): Add may_fail argument; abort if
1336         false and we don't validate the kind.
1337         (gfc_check_integer_range, gfc_check_real_range): Update to match.
1338         * check.c (kind_check): Likewise.
1339         * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Likewise.
1340         (match_char_spec, match_logical_spec): Likewise.
1341         * gfortran.h (gfc_validate_kind): Likewise.
1342         * options.c (gfc_handle_option): Likewise.
1343         * primary.c (match_integer_constant, match_real_constant,
1344         match_string_constant, match_logical_constant,
1345         match_const_complex_part): Likewise.
1346         * simplify.c (get_kind, gfc_simplify_bit_size, gfc_simplify_digits,
1347         gfc_simplify_epsilon, gfc_simplify_huge, gfc_simplify_ibclr,
1348         gfc_simplify_ibset, gfc_simplify_ishft, gfc_simplify_ishftc,
1349         gfc_simplify_maxexponent, gfc_simplify_minexponent,
1350         gfc_simplify_nearest, gfc_simplify_not, gfc_simplify_precision,
1351         gfc_simplify_radix, gfc_simplify_range, gfc_simplify_rrspacing,
1352         gfc_simplify_scale, gfc_simplify_spacing, gfc_simplify_tan,
1353         gfc_simplify_tiny): Likewise.
1354         * trans-intrinsic.c (gfc_conv_intrinsic_aint, gfc_conv_intrinsic_mod,
1355         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
1356         prepare_arg_info): Likewise.
1358 2004-08-25  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1360         * expr.c (gfc_check_assign): Add comment. Add new warning.
1361         * trans-expr.c (gfc_conv_function_call): Correctly dereference
1362         result of pointer valued function when not in pointer assignment.
1364 2004-08-25  Paul Brook  <paul@codesourcery.com>
1366         * config-lang.in: Remove dead commented line.
1367         * module.c: Replace g95 with gfortran in comment.
1369 2004-08-25  Paul Brook  <paul@codesourcery.com>
1371         PR fortran/17190
1372         * arith.c (gfc_mpfr_to_mpz): Workaround mpfr bug.
1374 2004-08-25  Paul Brook  <paul@codesourcery.com>
1376         PR fortran/17144
1377         * trans-array.c (gfc_trans_allocate_temp_array): Remove
1378         string_length argument.
1379         (gfc_trans_array_ctor_element): New function.
1380         (gfc_trans_array_constructor_subarray): Use it.
1381         (gfc_trans_array_constructor_value): Ditto.  Handle constant
1382         character arrays.
1383         (get_array_ctor_var_strlen, get_array_ctor_strlen): New functions.
1384         (gfc_trans_array_constructor): Use them.
1385         (gfc_add_loop_ss_code): Update to new gfc_ss layout.
1386         (gfc_conv_ss_descriptor): Remember section string length.
1387         (gfc_conv_scalarized_array_ref): Ditto.  Remove dead code.
1388         (gfc_conv_resolve_dependencies): Update to new gfc_ss layout.
1389         (gfc_conv_expr_descriptor): Ditto.
1390         (gfc_conv_loop_setup): Ditto.  Spelling fixes.
1391         * trans-array.h (gfc_trans_allocate_temp_array): Update prototype.
1392         * trans-const.c (gfc_conv_constant):  Update to new gfc_ss layout.
1393         * trans-expr.c (gfc_conv_component_ref): Turn error into ICE.
1394         (gfc_conv_variable): Set string_length from section.
1395         (gfc_conv_function_call): Remove extra argument.
1396         (gfc_conv_expr, gfc_conv_expr_reference): Update to new gfc_ss layout.
1397         * trans-types.c (gfc_get_character_type_len): New function.
1398         (gfc_get_character_type): Use it.
1399         (gfc_get_dtype): Return zero for internal types.
1400         * trans-types.h (gfc_get_character_type_len): Add prototype.
1401         * trans.h (struct gfc_ss): Move string_length out of union.
1403 2004-08-25  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1405         * trans.h (build2_v, build3_v): New macros.
1406         (build_v): Remove.
1407         * f95-lang.c (gfc_truthvalue_conversion): Use build2 instead of
1408         build.
1409         * trans-array.c (gfc_conv_descriptor_data,
1410         gfc_conv_descriptor_offset, gfc_conv_descriptor_dimension,
1411         gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound,
1412         gfc_conv_descriptor_ubound, gfc_trans_allocate_array_storage,
1413         gfc_trans_allocate_temp_array,
1414         gfc_trans_array_constructor_subarray,
1415         gfc_trans_array_constructor_value, gfc_conv_array_index_ref,
1416         gfc_trans_array_bound_check, gfc_conv_array_index_offset,
1417         gfc_conv_scalarized_array_ref, gfc_conv_array_ref,
1418         gfc_conv_array_ref, gfc_trans_preloop_setup,
1419         gfc_trans_scalarized_loop_end, gfc_conv_ss_startstride,
1420         gfc_conv_loop_setup, gfc_array_init_size,
1421         gfc_conv_array_initializer, gfc_trans_array_bounds,
1422         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
1423         gfc_conv_expr_descriptor, gfc_conv_array_parameter,
1424         gfc_trans_deferred_array): Use buildN and buildN_v macros instead
1425         of build and build_v as appropriate.
1426         * trans-common.c (create_common): Same.
1427         * trans-decl.c (gfc_trans_auto_character_variable,
1428         gfc_trans_entry_master_switch, gfc_generate_function_code): Same.
1429         * trans-expr.c (gfc_conv_expr_present, gfc_conv_substring,
1430         gfc_conv_component_ref, gfc_conv_unary_op, gfc_conv_powi,
1431         gfc_conv_cst_int_power, gfc_conv_string_tmp, gfc_conv_concat_op,
1432         gfc_conv_expr_op, gfc_conv_function_call,
1433         gfc_trans_structure_assign): Same.
1434         * trans-intrinsic.c (build_fixbound_expr, build_round_expr,
1435         gfc_conv_intrinsic_aint, gfc_conv_intrinsic_bound,
1436         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
1437         gfc_conv_intrinsic_dim, gfc_conv_intrinsic_sign,
1438         gfc_conv_intrinsic_dprod, gfc_conv_intrinsic_minmax,
1439         gfc_conv_intrinsic_anyall, gfc_conv_intrinsic_count,
1440         gfc_conv_intrinsic_arith, gfc_conv_intrinsic_minmaxloc,
1441         gfc_conv_intrinsic_minmaxval, gfc_conv_intrinsic_btest,
1442         gfc_conv_intrinsic_bitop, gfc_conv_intrinsic_singlebitop,
1443         gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
1444         gfc_conv_intrinsic_merge, gfc_conv_intrinsic_strcmp,
1445         gfc_conv_allocated, gfc_conv_associated, prepare_arg_info,
1446         gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
1447         gfc_conv_intrinsic_trim, gfc_conv_intrinsic_repeat,
1448         gfc_conv_intrinsic_iargc): Same.
1449         * trans-io.c (set_parameter_value, set_parameter_ref, set_string,
1450         set_flag, add_case, io_result, transfer_namelist_element,
1451         transfer_expr): Same.
1452         * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_if_1,
1453         gfc_trans_arithmetic_if, gfc_trans_do, gfc_trans_do_while,
1454         gfc_trans_integer_select, gfc_trans_logical_select,
1455         gfc_trans_character_select, gfc_trans_forall_loop,
1456         gfc_trans_nested_forall_loop, gfc_do_allocate,
1457         generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
1458         compute_inner_temp_size, compute_overall_iter_number,
1459         allocate_temp_for_forall_nest, gfc_trans_pointer_assign_need_temp,
1460         gfc_trans_forall_1, gfc_evaluate_where_mask,
1461         gfc_trans_where_assign, gfc_trans_allocate): Same.
1462         * trans-types.c (gfc_get_dtype, gfc_get_array_type_bounds): Same.
1463         * trans.c (gfc_add_modify_expr, gfc_finish_block,
1464         gfc_build_array_ref, gfc_build_function_call,
1465         gfc_trans_runtime_check): Same.
1467 2004-08-25  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1469         * trans-const.c (gfc_conv_mpz_to_tree): Change call to
1470         build_int_cst to build_int_cst_wide in accordance to Nathan's
1471         previous patch.
1473 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
1475         * trans-array.c (gfc_trans_array_constructor_value): Adjust
1476         build_int_cst calls.
1477         * trans-const.c (gfc_build_string_const, gfc_init_constants,
1478         gfc_conv_mpz_to_tree, gfc_conv_constant_to_tree): Likewise.
1479         * trans-decl.c (gfc_get_symbol_decl, build_entry_thunks,
1480         gfc_trans_entry_master_switch): Likewise.
1481         * trans-intrinsic.c (gfc_conv_intrinsic_ibits,
1482         gfc_conv_intrinsic_len, prepare_arg_info): Likewise.
1483         * trans-io.c (add_case, set_error_locus,
1484         transfer_namelist_element, transfer_expr): Likewise.
1485         * trans-stmt.c (gfc_trans_label_assign, gfc_trans_pause,
1486         gfc_trans_stop, gfc_trans_character_select): Likewise.
1487         * trans-types.c (gfc_init_types, gfc_get_dtype): Likewise.
1488         * trans.c (gfc_trans_runtime_check): Likewise.
1490 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1492         * trans-decl.c, trans-types.c: Add and remove blank lines as
1493         required.
1495 2004-08-24  Richard Henderson  <rth@redhat.com>
1497         * trans-const.c (gfc_conv_mpz_to_tree): Fix 64-bit shift warning.
1499 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1501         * resolve.c (merge_argument_lists): Revert unintentionally
1502         committed change.
1504 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1506         * trans-decl.c (build_function_decl): Fix spelling in comment.
1507         (build_entry_thunks): Remove code with no function.
1508         (gfc_build_intrinsic_function_decls): Remove empty line.
1510         * resolve.c (resolve_entries): Fix a bunch of comment typos.
1512 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
1514         * f95-lang.c (gfc_init_decl_processing): Adjust
1515         build_common_tree_nodes call.
1517 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1519         * trans-types.c: Spelling and formatting fixes.
1521 2004-08-23  Richard Henderson  <rth@redhat.com>
1523         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_getlimbn instead
1524         of going through an intermediate string.  Fix 32/64 int/long bug.
1526 2004-08-23  Eric Christopher  <echristo@redhat.com>
1528         * trans-types.c (gfc_type_for_mode): Remove VECTOR_TYPE_SUPPORTED_P
1529         usage. Use build_vector_type_for_mode for vector types.
1531 2004-08-22  Richard Henderson  <rth@redhat.com>
1533         PR 13465
1534         * data.c (find_con_by_offset): Search ordered list; handle
1535         elements with repeat counts.
1536         (gfc_assign_data_value_range): New.
1537         * gfortran.h (struct gfc_data_value): Make repeat unsigned.
1538         (gfc_assign_data_value_range): Declare.
1539         * match.c (top_val_list): Extract repeat count into a temporary.
1540         * resolve.c (values): Make left unsigned.
1541         (next_data_value): Don't decrement left.
1542         (check_data_variable): Use gfc_assign_data_value_range.
1544 2004-08-22  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1546         * trans-const.c, trans-decl.c, trans-expr.c: Spelling fixes.
1548 2004-08-22  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1550         * check.c (gfc_check_reduction): Rename to ...
1551         (check_reduction): ... this. Make static. Don't check type of
1552         first argument.
1553         (gfc_check_minval_maxval, gfc_check_prodcut_sum): New functions.
1554         * intrinsic.c (add_functions): Change MAXVAL, MINVAL, PRODUCT and
1555         SUM to use new check functions.
1556         (check_specific): Change logic to call new functions.
1557         * intrinsic.h (gfc_check_minval_maxval, gfc_check_product_sum):
1558         Add prototypes.
1559         (gfc_check_reduction): Remove prototype.
1561 2004-08-20  Paul Brook  <paul@codesourcery.com>
1562         Canqun Yang  <canqun@nudt.edu.cn>
1564         PR fortran/17077
1565         * trans-array.c (gfc_conv_array_parameter): Pass correct pointer
1566         for automatic arrays.
1567         * trans-types.c (gfc_get_nodesc_array_type): Add comment.
1569 2004-08-19  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1570         (Port from g95)
1572         PR fortran/17074
1573         * match.c (match_simple_forall, match_simple_where): Forward-declare.
1574         (gfc_match_if): Order statement list alphabetically, add WHERE and
1575         FORALL, remove double PAUSE.
1576         (gfc_match_simple_where, match_forall_header,
1577         gfc_match_simple_forall): New functions.
1578         (gfc_match_forall): Use match_forall_header.
1580 2004-08-19  Paul Brook  <paul@codesourcery.com>
1582         PR fortran/17091
1583         * gfortran.h (gfc_access): Give ACCESS_UNKNOWN value 0.
1584         * symbol.c (gfc_clear_attr): Use memset.
1586 2004-08-19  Paul Brook  <paul@codesourcery.com>
1588         PR fortran/14976
1589         PR fortran/16228
1590         * data.c (assign_substring_data_value): Remove.
1591         (create_character_intializer): New function.
1592         (gfc_assign_data_value): Track the typespec for the current
1593         subobject.  Use create_character_intializer.
1595 2004-08-19  Erik Schnetter  <schnetter@aei.mpg.de>
1597         PR fortran/16946
1598         * check.c (gfc_check_reduction): New function.
1599         (gfc_check_minval_maxval): Removed.
1600         (gfc_check_product): Removed.
1601         (gfc_check_sum): Removed.
1602         * intrinsic.h: Add/remove declarations for these.
1603         * gfortran.h: Add field f3red to union gfc_check_f.
1604         * intrinsic.c (add_sym_3red): New function.
1605         (add_functions): Register maxval, minval, product, and sum intrinsics
1606         through add_sym_3red.
1607         (check_specific): Handle f3red union field.
1608         * iresolve.c: Whitespace change.
1610 2004-08-18  Paul Brook  <paul@codesourcery.com>
1612         * trans-types.c (gfc_sym_type): Use pointer types for optional args.
1614 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
1616         PR fortran/13278
1617         * trans-io.c (transfer_namelist_element): New. Recursively handle
1618         derived-type variables.  Pass string lengths.
1619         (build_dt): Code moved to build_namelist, with some
1620         changes and additions.
1621         (gfc_build_io_library_fndecls): Declare the fifth
1622         argument in st_set_nml_var_char -- string_length.
1624 2004-08-17  Paul Brook  <paul@codesourcery.com>
1625         Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1627         PR fortran/13082
1628         * decl.c (get_proc_name): Update mystery comment.
1629         (gfc_match_entry): Check for errors earlier.  Add entry point to list.
1630         * dump-parse-tree.c (gfc_show_code_node): Print EXEC_ENTRY nodes.
1631         * gfortran.h (symbol_attribute): Add entry_master.  Document entry.
1632         (struct gfc_entry_list): Define.
1633         (gfc_get_entry_list): Define.
1634         (struct gfc_namespace): Add refs and entries.
1635         (enum gfc_exec_op): Add EXEC_ENTRY.
1636         (struct gfc_code): Add ext.entry.
1637         * module.c (ab_attribute, attr_bits): Remove AB_ENTRY.
1638         (mio_symbol_attribute): Don't save/reture addr->entry.
1639         (mio_namespace_ref): Refcount namespaces.
1640         * parse.c (accept_statement): Handle ST_ENTRY.
1641         (gfc_fixup_sibling_symbols): Mark symbol as referenced.
1642         (parse_contained): Fixup sibling references to entry points
1643         after parsing the procedure body.
1644         * resolve.c (resolve_contained_fntype): New function.
1645         (merge_argument_lists, resolve_entries): New functions.
1646         (resolve_contained_functions): Use them.
1647         (resolve_code): Handle EXEC_ENTRY.
1648         (gfc_resolve): Call resolve_entries.
1649         * st.c (gfc_free_statement): Handle EXEC_ENTRY.
1650         * symbol.c (gfc_get_namespace): Refcount namespaces.
1651         (gfc_free_namespace): Ditto.
1652         * trans-array.c (gfc_trans_dummy_array_bias): Treat all args as
1653         optional when multiple entry points are present.
1654         * trans-decl.c (gfc_get_symbol_decl): Remove incorrect check.
1655         (gfc_get_extern_function_decl): Add assertion.  Fix coment.
1656         (create_function_arglist, trans_function_start, build_entry_thunks):
1657         New functions.
1658         (gfc_build_function_decl): Rename ...
1659         (build_function_decl): ... to this.
1660         (gfc_create_function_decl): New function.
1661         (gfc_generate_contained_functions): Use it.
1662         (gfc_trans_entry_master_switch): New function.
1663         (gfc_generate_function_code): Use new functions.
1664         * trans-stmt.c (gfc_trans_entry): New function.
1665         * trans-stmt.h (gfc_trans_entry): Add prototype.
1666         * trans-types.c (gfc_get_function_type): Add entry point argument.
1667         * trans.c (gfc_trans_code): Handle EXEC_ENTRY.
1668         (gfc_generate_module_code): Call gfc_create_function_decl.
1669         * trans.h (gfc_build_function_decl): Remove.
1670         (gfc_create_function_decl): Add prototype.
1672 2004-08-15  Andrew Pinski  <apinski@apple.com>
1674         PR fortran/17030
1675         * f95-lang.c (gfc_init_builtin_functions): Initialize the builtins
1676         for cabs{,f} and copysign{,f}.
1677         * trans-decl.c (gfor_fndecl_math_cabsf): Delete.
1678         (gfor_fndecl_math_cabs): Delete.
1679         (gfor_fndecl_math_sign4): Delete.
1680         (gfor_fndecl_math_sign8): Delete.
1681         (gfc_build_intrinsic_function_decls): Remove the
1682         initializing of cabs{,f} and copysign{,f} functions.
1683         * trans-intrinsic.c (gfc_conv_intrinsic_abs): Use the builtins
1684         instead of the functions definitions.
1685         (gfc_conv_intrinsic_sign): Likewise.
1686         * trans.h (gfor_fndecl_math_cabsf): Delete.
1687         (gfor_fndecl_math_cabs): Delete.
1688         (gfor_fndecl_math_sign4): Delete.
1689         (gfor_fndecl_math_sign8): Delete.
1691 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
1693         * trans-array.c (gfc_trans_array_constructor_value): Use
1694         build_int_cst.
1695         * trans-const.c (gfc_build_string_const,
1696         gfc_init_constants, gfc_conv_mpz_to_tree,
1697         gfc_conv_constant_to_tree): Likewise.
1698         * trans-decl.c (gfc_get_symbol_decl): Likewise.
1699         * trans-intrinsic.c (gfc_conv_intrinsic_ibits,
1700         gfc_conv_intrinsic_len, prepare_arg_info): Likewise.
1701         * trans-io.c (add_case, set_error_locus, build_dt,
1702         transfer_expr): Likewise.
1703         * trans-stmt.c (gfc_trans_label_assign, gfc_trans_pause,
1704         gfc_trans_stop, gfc_trans_character_select): Likewise.
1705         * trans-types.c (gfc_init_types, gfc_get_dtype): Likewise.
1706         * trans.c (gfc_trans_runtime_check): Likewise.
1708 2004-08-14  Paul Brook  <paul@codesourcery.com>
1710         * trans-decl.c (gfc_build_function_decl): Remove dead code.
1712 2004-08-14  Paul Brook  <paul@codesourcery.com>
1714         * trans-arry.c (gfc_trans_auto_array_allocation): Remove unused var.
1716 2004-08-13  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1718         * gfortran.h: Add comments.
1719         * parse.c (parse_contained): Fix comment typo.
1720         * resolve.c (was_declared): Ditto.
1721         * symbol.c: Ditto.
1723 2004-08-11  Paul Brook  <paul@codeourcery.com>
1725         PR fortran/16917
1726         * intrinsic.c (add_functions): Add dfloat as an alias for dble.
1728 2004-08-10  Richard Henderson  <rth@redhat.com>
1730         * f95-lang.c (gfc_init_builtin_functions): Remove
1731          __builtin_stack_alloc, add __builtin_alloca.
1732         * trans-array.c (gfc_trans_auto_array_allocation): Use DECL_EXPR.
1733         * trans-decl.c (gfc_trans_auto_character_variable): Likewise.
1735 2004-08-10  Paul Brook  <paul@codesourcery.com>
1737         * trans-io.c (transfer_expr): Handle pointters.
1739 2004-08-10  Paul Brook  <paul@codesourcery.com>
1741         PR fortran/16919
1742         * trans-array.c (gfc_add_loop_ss_code): Handle GFC_SS_COMPONENT.
1743         (gfc_conv_array_index_offset): Allow "temporary" with nonzero delta.
1744         (gfc_trans_preloop_setup, gfc_trans_scalarized_loop_boundary):
1745         Handle GFC_SS_COMPONENT.
1746         (gfc_conv_ss_startstride): Ditto.  Set ss->shape.
1747         (gfc_conv_loop_setup): Tweak commends. Remove dead code.
1748         Use ss->shape.
1749         (gfc_conv_array_initializer): Call specific initializer routines.
1750         * trans-expr.c (gfc_trans_structure_assign): New function.
1751         (gfc_trans_subarray_assign): New function.
1752         (gfc_trans_subcomponent_assign): New fucntion
1753         (gfc_conv_structure): Use them.
1754         * trans.h (gfc_ss_type): Add GFC_SS_COMPONENT.
1755         (gfc_ss): Add shape.
1757 2004-08-08  Victor Leikehman  <lei@il.ibm.com>
1759         * simplify.c (gfc_simplify_shape): Bugfix.
1760         * expr.c (gfc_copy_shape_excluding): New function.
1761         * gfortran.h (gfc_get_shape): Bugfix.
1762         (gfc_copy_shape_excluding): Added declaration.
1763         * iresolve.c (gfc_resolve_all, gfc_resolve_any, gfc_resolve_count,
1764         gfc_resolve_cshift, gfc_resolve_eoshift, gfc_resolve_lbound,
1765         gfc_resolve_ubound, gfc_resolve_transpose): Added compile
1766         time resolution of shape.
1768 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1770         * intrinsic.c (add_subroutines): Add getenv and
1771         get_environment_variable. (add_sym_5s): New function.
1772         * intrinsic.h (gfc_resolve_get_environment_variable): Add
1773         prototype.
1774         * iresolve.c (gfc_resolve_get_environment_variable): New
1775         function.
1777 2004-08-06  Feng Wang  <fengwang@nudt.edu.cn>
1779         * f95-lang.c (gfc_init_builtin_functions): Fix the number of
1780         __builtin_pow[f] arguments.
1782 2004-08-06  Steven G. Kargl  <kargls@comcast.net>
1784         * arith.c: Add #define for model numbers.  Remove global GMP variables.
1785         (natural_logarithm,common_logarithm,exponential,sine,
1786         cosine,arctangent,hypercos,hypersine ): Remove.
1787         (gfc_mpfr_to_mpz,gfc_set_model_kind,gfc_set_model): New functions.
1788         (arctangent2,gfc_arith_init_1,gfc_arith_done_1
1789         gfc_check_real_range, gfc_constant_result, gfc_range_check,
1790         gfc_arith_uminus,gfc_arith_plus, gfc_arith_minus, gfc_arith_times,
1791         gfc_arith_divide,complex_reciprocal,complex_pow_ui,
1792         gfc_arith_power,gfc_compare_expr,compare_complex,gfc_convert_real,
1793         gfc_convert_complex,gfc_int2real,gfc_int2complex,
1794         gfc_real2int,gfc_real2real,gfc_real2complex,
1795         gfc_complex2int,gfc_complex2real,gfc_complex2complex): Convert GMP
1796         to MPFR, use new functions.
1797         * arith.h: Remove extern global variables.
1798         (natural_logarithm,common_logarithm,exponential, sine, cosine,
1799         arctangent,hypercos,hypersine): Remove prototypes.
1800         (arctangent2): Update prototype from GMP to MPFR.
1801         (gfc_mpfr_to_mpz, gfc_set_model_kind,gfc_set_model): Add prototypes.
1802         * dump-parse-tree.c (gfc_show_expr): Convert GMP to MPFR.
1803         * expr.c (free_expr0,gfc_copy_expr): Convert GMP to MPFR.
1804         * gfortran.h (GFC_REAL_BITS): Remove.
1805         (arith): Add ARITH_NAN.
1806         Include mpfr.h.  Define GFC_RND_MODE.
1807         Rename GCC_GFORTRAN_H GFC_GFC_H.
1808         (gfc_expr): Convert GMP to MPFR.
1809         * module.c: Add arith.h, correct type in comment.
1810         (mio_gmp_real): Convert GMP to MPFR.
1811         (mio_expr):  Use gfc_set_model_kind().
1812         * primary.c:  Update copyright date with 2004.
1813         (match_real_constant,match_const_complex_part): Convert GMP to MPFR.
1814         * simplify.c: Remove global GMP variables
1815         (gfc_simplify_abs,gfc_simplify_acos,gfc_simplify_aimag,
1816         gfc_simplify_aint,gfc_simplify_dint,gfc_simplify_anint,
1817         gfc_simplify_dnint,gfc_simplify_asin,gfc_simplify_atan,
1818         gfc_simplify_atan2,gfc_simplify_ceiling,simplify_cmplx,
1819         gfc_simplify_conjg,gfc_simplify_cos,gfc_simplify_cosh,
1820         gfc_simplify_dim,gfc_simplify_dprod,gfc_simplify_epsilon,
1821         gfc_simplify_exp,gfc_simplify_exponent,gfc_simplify_floor,
1822         gfc_simplify_fraction,gfc_simplify_huge,gfc_simplify_int,
1823         gfc_simplify_ifix,gfc_simplify_idint,gfc_simplify_log,
1824         gfc_simplify_log10,simplify_min_max,gfc_simplify_mod,
1825         gfc_simplify_modulo,gfc_simplify_nearest,simplify_nint,
1826         gfc_simplify_rrspacing,gfc_simplify_scale,
1827         gfc_simplify_set_exponent,gfc_simplify_sign,gfc_simplify_sin,
1828         gfc_simplify_sinh,gfc_simplify_spacing,gfc_simplify_sqrt,
1829         gfc_simplify_tan,gfc_simplify_tanh,gfc_simplify_tiny,
1830         gfc_simplify_init_1,gfc_simplify_done_1):  Convert GMP to MPFR.
1831         Use new functions.
1832         * trans-const.c (gfc_conv_mpfr_to_tree): Rename from
1833         gfc_conv_mpf_to_tree.  Convert it to use MPFR
1834         (gfc_conv_constant_to_tree): Use it.
1835         * trans-const.h: Update prototype for gfc_conv_mpfr_to_tree().
1836         * trans-intrinsic.c: Add arith.h, remove gmp.h
1837         (gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod): Convert GMP to MPFR.
1839 2004-08-06  Victor Leikehman  <lei@il.ibm.com>
1840         Paul Brook  <paul@codesourcery.com>
1842         * trans-array.c (gfc_trans_allocate_array_storage,
1843         gfc_trans_allocate_temp_array, gfc_add_loop_ss_code,
1844         gfc_conv_loop_setup): For functions, if the shape of the result
1845         is not known in compile-time, generate an empty array descriptor for
1846         the result and let the callee to allocate the memory.
1847         (gfc_trans_dummy_array_bias): Do nothing for pointers.
1848         (gfc_conv_expr_descriptor): Use function return values directly.
1849         * trans-expr.c (gfc_conv_function_call): Always add byref call
1850         insn to pre chain.
1851         (gfc_trans_pointer_assignment): Add comments.
1852         (gfc_trans_arrayfunc_assign): Don't chain on expression.
1854 2004-08-01  Roger Sayle  <roger@eyesopen.com>
1856         * options.c (gfc_init_options): Don't warn about the use GNU
1857         extensions by default.
1858         (gfc_post_options): Warn about GNU extensions with -pedantic.
1859         (gfc_handle_option): Don't warn about GNU extensions with -std=gnu.
1861 2004-07-30  Richard Henderson  <rth@redhat.com>
1863         * trans-expr.c (gfc_conv_expr_reference): Create a CONST_DECL
1864         for TREE_CONSTANTs.
1866 2004-07-25  Richard Henderson  <rth@redhat.com>
1868         * trans-decl.c (gfc_build_function_decl): Set DECL_ARTIFICIAL
1869         and DECL_IGNORED_P on RESULT_DECL.
1870         (gfc_generate_constructors): Likewise.
1872 2004-07-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1874         PR fortran/16465
1875         * lang.opt (ffixed-line-length-none, ffixed-line-length-): New
1876         options.
1877         (ffixed-line-length-80, ffixed-line-length-132): Remove.
1878         * options.c (gfc_handle_options): Deal with changed options.
1879         * scanner.c (load_line): Change second arg to 'char **',
1880         allocate if pointing to NULL. Keep track of buffer's length.
1881         Adapt buffer size to overlong lines. Pad lines to full length
1882         in fixed form.
1883         (load_file): Adapt to new interface of load_line.
1885 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1887         * trans.h (builtin_function): Declare.
1889 2004-07-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1891         PR fortran/16404
1892         (parts ported from g95)
1893         * parse.h (gfc_state_data): New field do_variable.
1894         (gfc_check_do_variable): Add prototype.
1895         * parse.c (push_state): Initialize field 'do_variable'.
1896         (gfc_check_do_variable): New function.
1897         (parse_do_block): Remember do iterator variable.
1898         (parse_file): Initialize field 'do_variable'.
1899         * match.c (gfc_match_assignment, gfc_match_do,
1900         gfc_match_allocate, gfc_match_nullify, gfc_match_deallocate):
1901         Add previously missing checks.
1902         (gfc_match_return): Reformat error message.
1903         * io.c (match_out_tag): New function.
1904         (match_open_element, match_close_element,
1905         match_file_element, match_dt_element): Call match_out_tag
1906         instead of match_vtag where appropriate.
1907         (match_io_iterator, match_io_element): Add missing check.
1908         (match_io): Reformat error message.
1909         (match_inquire_element): Call match_out_tag where appropriate.
1911         * parse.c (gfc_check_do_variable): Fix error locus.
1913 2004-07-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1915         PR fortran/15129
1916         * trans-decl.c (gfc_build_function_decl): Create a new chardecl
1917         for every assumed length character dummy argument.
1919         PR fortran/15140
1920         * trans-decl.c (gfc_trans_deferred_vars): Remove bogus assertion.
1922         PR fortran/13792
1923         * simplify.c (gfc_simplify_bound): Copy the bound expression.
1925 2004-07-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1927         PR fortran/15324
1928         * trans-array.c gfc_trans_g77_array,
1929         gfc_trans_dummy_array_bias): Don't call gfc_trans_string_init
1930         for assumed length characters.
1931         (gfc_conv_expr_descriptor): Set se->string_length if dealing
1932         with a character expression.
1933         (gfc_cvonv_array_parameter): Pass string length when passing
1934         character array according to g77 conventions.
1936 2004-07-12  Paul Brook  <paul@codesourcery.com>
1938         * expr.c (gfc_check_assign_symbol): Handle pointer assignments.
1939         * trans-array.c (gfc_trans_auto_array_allocation): Remove
1940         initialization code.
1941         * trans-common.c (create_common): Use gfc_conv_initializer.
1942         * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_initializer.
1943         * trans-expr.c (gfc_conv_initializer): New function.
1944         (gfc_conv_structure): Use it.
1945         * trans.h (gfc_conv_initializer): Add prototype.
1947 2004-07-11  Paul Brook  <paul@codesourcery.com>
1949         PR fortran/15986
1950         * parse.c (gfc_fixup_sibling_symbols): Also look for untyped
1951         variables.
1952         (parse_contained): Mark contained symbols as referenced.
1954 2004-07-11  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1956         PR fortran/16455
1957         * module.c (gfc_dump_module, gfc_use_module): Print locus
1958         when opening of module file fails.
1960         PR fortran/16404
1961         * io.c (match_io): Flag 'WRITE(...), ...' as extension.
1963         PR fortran/16404
1964         * match.c (gfc_match_program): A program name is obligatory.
1965         (gfc_match_return): RETURN in main program is an extension.
1966         (gfc_match_block_data): A space is required before a block data
1967         name.
1969         PR fortran/16433
1970         * primary.c (match_boz_constant): Call gfc_notify_std only if
1971         we actually have a non-standard boz-literal-constant.
1973         PR fortran/15754
1974         * expr.c (gfc_check_assign): Print ranks if incompatible. Issue
1975         warning if assigning NULL().
1977 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1979         * f95-lang.c (set_block): Remove.
1980         (gfc_clear_binding_stack): New.
1981         (LANG_HOOKS_CLEAR_BINDING_STACK): Define.
1982         (struct binding_level): Remove block_created_by_back_end.
1983         (clear_binding_level): Likewise.
1984         (poplevel): Don't handle block_created_by_back_end.
1986 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1988         * trans-decl.c (gfc_create_module_variable): Nothing to do if
1989         symbol is in common, because we ...
1990         (gfc_generate_module_vars): Call gfc_trans_common.
1992 2004-07-10  Paul Brook  <paul@codesourcery.com>
1994         * trans-array.c (gfc_build_null_descriptor): New function.
1995         (gfc_trans_static_array_pointer): Use it.
1996         * trans-array.h (gfc_build_null_descriptor): Add prototype.
1997         * trans-expr.c (gfc_conv_structure): Handle array pointers.
1999 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2001         PR fortran/16336
2002         * decl.c (gfc_match_save): Use-associated common block
2003         doesn't collide.
2004         * gfortran.h (gfc_common_head): Add new field 'name'.
2005         Fix typo in comment after #endif.
2006         * match.c (gfc_get_common): Add new argument from_common,
2007         mangle name if flag is set, fill in new field in structure
2008         gfc_common_head.
2009         (match_common): Set new arg in call to gfc_get_common,
2010         use-associated common block doesn't collide.
2011         * match.h (gfc_get_common): Adapt prototype.
2012         * module.c (load_commons): Set new arg in call to
2013         gfc_get_common.
2014         * symbol.c (free_common_tree): New function.
2015         (gfc_free_namespace): Call new function.
2016         * trans-common.c (several functions): Remove argument
2017         'name', use name from gfc_common_head instead.
2019 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2021         * expr.c (gfc_check_pointer_assign): Verify that rank of the LHS
2022         and RHS match. Return early if the RHS is NULL().
2024         PR fortran/16336
2025         * match.c (match_common): Fix error reporting for used common.
2027         PR fortran/15969
2028         * trans-expr.c (gfc_conv_structure): Handle initialization
2029         of scalar pointer components.
2031         * parse.c (decode_statement): Fix matching of BLOCK DATA.
2033         * trans-decl.c (generate_local_decl): Remove workaround obsoleted
2034         by fix for PR 15481.
2036 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2038         * trans-common.c: Fix whitespace issues, make variable names
2039         more readable.
2040         (create_common): Additionally, make loop logic more obvious.
2042 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2043         Paul Brook  <paul@codesourcery.com>
2045         PR fortran/13415
2046         * trans-common.c (calculate_length): Remove ...
2047         (get_segment_info): Merge into here.  Save field type.
2048         (build_field): Use saved type.
2049         (create_common, new_condition, new_segment, finish_equivalences):
2050         Use new get_segment_info.
2051         * trans-types.c: Update comment.
2053 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2055         PR fortran/14077
2056         * moduele.c (mio_symbol): Don't I/O initial values unless
2057         symbol is a parameter.
2059 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2061         PR fortran/13201
2062         * resolve.c (resolve_symbol): Verify that the shape of a
2063         parameter array is not only explicit, but also constant.
2064         * array.c (gfc_is_compile_time_shape): New function.
2065         * gfortran.h (gfc_is_compile_time_shape): Add prototype.
2067 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2069         PR fortran/15481
2070         PR fortran/13372
2071         PR fortran/13575
2072         PR fortran/15978
2073         * module.c (write_symbol, write_symtree): Remove workaround.
2074         * primary.c (match_actual_arglist): Enhance comment.
2075         (gfc_match_rvalue): Handle function call with first argument
2076         a keyword argument correctly.
2077         * resolve.c (resolve_symbol): Change call to
2078         gfc_set_default_type to issue error if no implicit type
2079         can be found.
2080         * trans-decl.c (gfc_create_module_variable): Remove workaround.
2082 2004-07-08  Paul Brook  <paul@codesourcery.com>
2084         * intrinsic.c (add_sym_4s): New function.
2085         (add_subroutines): Change gfc_add_sym_? to gfc_add_sym_?s.
2087 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2088         Paul Brook  <paul@codesourcery.com>
2090         PR fortran/15280
2091         PR fortran/15665
2092         * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_IARGC and
2093         GFC_ISYM_COMMAND_ARGUMENT_COUNT.
2094         * intrinsic.c (add_functions):  Identify iargc.  Add
2095         command_argument_count.
2096         (add_subroutines): Resolve getarg.  Add get_command and
2097         get_command_argument.
2098         * intrinsic.h (gfc_resolve_getarg, gfc_resolve_get_command,
2099         gfc_resolve_get_command_argument): Add prototypes.
2100         * iresolve.c (gfc_resolve_getarg, gfc_resolve_get_command,
2101         gfc_resolve_get_command_argument): New functions.
2102         * trans-decl.c (gfor_fndecl_iargc): New variable.
2103         (gfc_build_intrinsic_function_decls): Set it.
2104         * trans-intrinsic.c (gfc_conv_intrinsic_iargc): New function.
2105         (gfc_conv_intrinsic_function): Use it.
2106         * trans.h (gfor_fndecl_iargc): Declare.
2108 2004-07-04  Matthias Klose  <doko@debian.org>
2110         * Make-lang.in: Generate and install gfortran man page.
2111         * invoke.texi: Remove extra '@c man end'.
2113 2004-07-04  Richard Henderson  <rth@redhat.com>
2115         * f95-lang.c (gfc_mark_addressable): Don't put_var_into_stack.
2117 2004-07-04  Paul Brook  <paul@codesourcery.com>
2119         * decl.c (gfc_match_implicit_range): Don't use typespec.
2120         (gfc_match_implicit): Handle character selectors.
2121         * gfortran.h (gfc_set_implicit): Remove prototype.
2122         (gfc_add_new_implicit_range, gfc_merge_new_implicit): Update.
2123         * parse.c (accept_statement): Don't call gfc_set_implicit.
2124         * symbol.c (new_ts): Remove.
2125         (gfc_set_implicit_none): Use same loop bounds as other functions.
2126         (gfc_set_implicit): Remove.
2127         (gfc_clear_new_implicit, gfc_add_new_implicit_range): Only set flags.
2128         (gfc_merge_new_implicit): Combine with gfc_set_implicit.
2130 2004-06-30  Richard Henderson  <rth@redhat.com>
2132         * match.c (var_element): Remove unused variable.
2134         * trans-decl.c (gfc_generate_function_code): Don't set
2135         x_whole_function_mode_p.
2136         (gfc_generate_constructors): Likewise.
2138 2004-06-30  Richard Henderson  <rth@redhat.com>
2140         * trans-decl.c (gfc_generate_function_code): Don't set
2141         immediate_size_expand.
2142         (gfc_generate_constructors): Likewise.
2144 2004-06-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2146         PR fortran/16161
2147         * decl.c (gfc_match_type_spec): Rename second argument to
2148         'implicit_flag', reverse meaning. Don't match_char_spec if
2149         'implicit_flag' is set. Rename to ...
2150         (match_type_spec): ... this.
2151         (gfc_match_implicit_none, match_implicit_range): Move here
2152         from match.c.
2153         (gfc_match_implicit): Move here from match.c, try to
2154         match_char_len if match_implicit_range doesn't succeed for
2155         CHARACTER implicits. Call renamed fucntion match_type_spec.
2156         (gfc_match_data_decl, match_prefix): Call renamed function
2157         match_type_spec.
2158         * match.c (gfc_match_implicit_none, match_implicit_range,
2159         gfc_match_implicit): Move to decl.c.
2160         * match.h (gfc_match_implicit_none, gfc_match_implicit):
2161         Move protoypes to section 'decl.c'.
2162         (gfc_match_type_spec): Remove prototype.
2164 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2166         * decl.c, interface.c, symbol.c, trans-common.c: Add 2004 to
2167         copyright years.
2169 2004-06-29  Steven Bosscher  <stevenb@suse.de>
2171         Make sure types in assignments are compatible.  Mostly mechanical.
2172         * trans-const.h (gfc_index_one_node): New define.
2173         * trans-array.c (gfc_trans_allocate_array_storage,
2174         gfc_trans_allocate_temp_array, gfc_trans_array_constructor_subarray,
2175         gfc_trans_array_constructor_value, gfc_trans_array_constructor,
2176         gfc_conv_array_ubound, gfc_conv_array_ref,
2177         gfc_trans_scalarized_loop_end, gfc_conv_section_startstride,
2178         gfc_conv_ss_startstride, gfc_conv_loop_setup, gfc_array_init_size,
2179         gfc_trans_array_bounds, gfc_trans_dummy_array_bias,
2180         gfc_conv_expr_descriptor, gfc_trans_deferred_array): Use the correct
2181         types in assignments, conversions and conditionals for expressions.
2182         * trans-expr.c (gfc_conv_expr_present, gfc_conv_substring,
2183         gfc_conv_unary_op, gfc_conv_cst_int_power, gfc_conv_string_tmp,
2184         gfc_conv_function_call, gfc_trans_pointer_assignment,
2185         gfc_trans_scalar_assign): Likewise.
2186         * trans-intrinsic.c (build_fixbound_expr, gfc_conv_intrinsic_bound,
2187         gfc_conv_intrinsic_anyall, gfc_conv_intrinsic_count,
2188         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_btest,
2189         gfc_conv_intrinsic_singlebitop, gfc_conv_intrinsic_ishft,
2190         gfc_conv_intrinsic_ishftc, gfc_conv_intrinsic_strcmp,
2191         gfc_conv_allocated, gfc_conv_associated,
2192         gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_trim): Likewise.
2193         * trans-io.c (set_string): Likewise.
2194         * trans-stmt.c (gfc_trans_do, gfc_trans_forall_loop,
2195         gfc_do_allocate, generate_loop_for_temp_to_lhs,
2196         generate_loop_for_rhs_to_temp, compute_inner_temp_size,
2197         compute_overall_iter_number, gfc_trans_assign_need_temp,
2198         gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
2199         gfc_evaluate_where_mask, gfc_trans_where_assign,
2200         gfc_trans_where_2): Likewise.
2201         * trans-types.c (gfc_get_character_type, gfc_build_array_type,
2202         gfc_get_nodesc_array_type, gfc_get_array_type_bounds): Likewise.
2204         * trans.c (gfc_add_modify_expr): Add sanity check that types
2205         for the lhs and rhs are the same for scalar assignments.
2207 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2209         * dump-parse-tree.c (show_common): New function.
2210         (gfc_show_namespace): Show commons.
2212 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2213         Andrew Vaught  <andyv@firstinter.net>
2215         PR fortran/13249
2216         PR fortran/15481
2217         * decl.c (gfc_match_save): Adapt to new common structures,
2218         don't allow saving USE-associated common.
2219         * dump-parse-tree (gfc_show_attr): (saved_)common are not
2220         symbol attributes any longer.
2221         (gfc_show_symbol): Don't show old-style commons any longer.
2222         (gfc_show_namespace): Adapt call to gfc_traverse_symtree to new
2223         interface.
2224         * gfortran.h (symbol_attribute): Remove common and saved_common
2225         attributes.
2226         (gfc_symbol): Remove common_head element.
2227         (gfc_common_head): New struct.
2228         (gfc_get_common_head): New macro.
2229         (gfc_symtree): Add field 'common' to union.
2230         (gfc_namespace): Add field 'common_root'; change type of field
2231         'blank_common' to blank_common.
2232         (gfc_add_data): New prototype.
2233         (gfc_traverse_symtree): Expect a symtree as first argument
2234         instead of namespace.
2235         * match.c (gfc_get_common): New function.
2236         (match_common_name): Change to take char * as argument, adapt,
2237         fix bug with empty name.
2238         (gfc_match_common): Adapt to new data structures. Disallow
2239         redeclaration of USE-associated COMMON-block. Fix bug with
2240         empty common.
2241         (var_element): Adapt to new common structures.
2242         * match.h (gfc_get_common): Declare.
2243         * module.c: Add 2004 to copyright years, add commons to module
2244         file layout description.
2245         (ab_attribute, attr_bits, mio_symbol_attributes): Remove code
2246         for removed attributes.
2247         (mio_symbol): Adapt to new way of storing common relations.
2248         (load_commons): New function.
2249         (read_module): Skip common list on first pass, load_commons at
2250         second.
2251         (write_commons): New function.
2252         (write_module): Call write_commons().
2253         * symbol.c (gfc_add_saved_comon, gfc_add_common): Remove
2254         functions related to removed attributes.
2255         (gfc_add_data): New function.
2256         (gfc_clear_attr): Don't set removed attributes.
2257         (gfc_copy_attr): Don't copy removed attributes.
2258         (traverse_symtree): Remove.
2259         (gfc_traverse_symtree): Don't traverse symbol
2260         tree of the passed namespace, but require a symtree to be passed
2261         instead. Unify with traverse_symtree.
2262         (gfc_traverse_ns): Call gfc_traverse_symtree according to new
2263         interface.
2264         (save_symbol): Remove setting of removed attribute.
2265         * trans-common.c (gfc_sym_mangled_common_id): Change to
2266         take 'char *' argument instead of 'gfc_symbol'.
2267         (build_common_decl, new_segment, translate_common): Adapt to new
2268         data structures, add new
2269         argument name.
2270         (create_common): Adapt to new data structures, add new
2271         argument name. Fix typo in intialization of derived types.
2272         (finish_equivalences): Add second argument in call to
2273         create_common.
2274         (named_common): take 'gfc_symtree' instead of 'gfc_symbol'.
2275         (gfc_trans_common): Adapt to new data structures.
2276         * trans-decl.c (gfc_create_module_variables): Remove test for
2277         removed attribute.
2279 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2281         * io.c: Add 2004 to copyright years.
2283 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2284         Andrew Vaught  <andyv@firstinter.net>
2286         * gfortran.h (gfc_gsymbol): New typedef.
2287         (gfc_gsym_root): New variable.
2288         (gfc_get_gsymbol, gfc_find_gsym): New prototypes.
2289         * parse.c (global_used): New function.
2290         (parse_block_data): Check for double empty BLOCK DATA,
2291         use global symbol table.
2292         (parse_module): Use global symbol table.
2293         (add_global_procedure, add_global_program): New functions.
2294         (gfc_parse_file): Use global symbol table.
2295         * symbol.c (gfc_gsym_root): New variable.
2296         (gfc_find_gsym, gsym_compare, gfc_get_gsymbol): New
2297         functions.
2299 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2301         * module.c (mio_gmp_real): Correct writing of negative numbers.
2303 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2305         PR fortran/15963
2306         * expr.c (check_intrinsic_op): Allow comparison of characters.
2307         Make logic easier.
2309 2004-06-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2310         Andrew Vaught  <andyv@firstinter.net>
2312         * decl.c (contained_procedure): New function.
2313         (match_end): Verify correctness of END STATEMENT in
2314         all cases.
2316 2004-06-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2317         Andrew Vaught  <andyv@firstinter.net>
2319         PR fortran/15190
2320         * decl.c (gfc_match_type_spec), io.c (match_io), parse.c
2321         (decode_statement): Enforce required space in free-form.
2323 2004-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2325         * f95-lang.c (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Deleted.
2326         * trans-array.c (gfc_conv_descriptor_data): Add operand
2327         for COMPONENT_REF.
2328         (gfc_conv_descriptor_offset, gfc_conv_descriptor_dtype): Likewise.
2329         (gfc_conv_descriptor_dimension, gfc_conv_descriptor_stride): Likewise.
2330         (gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound): Likewise.
2331         * trans-common.c (create_common): Likewise.
2332         * trans-expr.c (gfc_conv_component_ref): Likewise.
2333         * trans-io.c (set_parameter_value): Likewise.
2334         (set_parameter_ref, set_string, set_flag, io_result): Likewise.
2335         (transfer_expr): Likewise.
2336         * trans-decl.c (gfc_trans_auto_character_variable):
2337         Set up to get DECL_SIZE and DECL_SIZE_UNIT gimplified.
2338         (gfc_gimplify_function): New function.
2339         (gfc_generate_function-code): Properly handle nested functions.
2340         * trans.c (gfc_build_array_ref): Add two new operands for ARRAY_REF.
2342 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
2344         PR fortran/15750
2345         * io.c (gfc_match_inquire): Bugfix for iolength related stuff.
2346         (gfc_resolve_inquire): Resolve the iolength tag.  Return
2347         SUCCESS at end of function if no failure has occured.
2348         * resolve.c (resolve_code): Resolve if iolength is encountered.
2349         * trans-io.c: (ioparm_iolength, iocall_iolength,
2350         iocall_iolength_done): New variables.
2351         (last_dt): Add IOLENGTH.
2352         (gfc_build_io_library_fndecls ): Set iolength related variables.
2353         (gfc_trans_iolength): Implement.
2354         (gfc_trans_dt_end): Treat iolength as a third form of data transfer.
2356 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de
2358         PR fortran/15511
2359         * scanner.c (load_line): Don't truncate preprocessor lines.
2360         Reformat error message.
2361         (preprocessor_line): Issue warning in case of malformed
2362         preprocessor line.
2364 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2366         * resolve.c (resolve_symbol): Add comment in function body.
2367         (check_data_variable): Change type of mark to ar_type, adapt code
2368         accordingly.
2370 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2372         * array.c (gfc_insert_constructor): Avoid redundant call to
2373         mpz_comp. Add 2004 to copyright years.
2375 2004-06-21  Joseph S. Myers  <jsm@polyomino.org.uk>
2377         * trans.h (stmtblock_t): Change has_scope to unsigned int.
2379 2004-06-20  Steven G. Kargl  <kargls@comcast.net>
2381         * arith.c (gfc_range_check): correct complex underflow.
2383 2004-06-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2385         PR fortran/15962
2386         * match.c (match_case_selector): Call gfc_match_init_expr
2387         instead of gfc_match_expr.
2388         * resolve.c (validate_case_label_expr): No need to check for
2389         constant, since it wouldn't have been matched with the fix to
2390         match.c.
2392 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2394         PR fortran/15211
2395         * trans-intrinsic.c (gfc_conv_intrinsic_len): Deal with arrays
2396         of strings.
2398 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2400         PR fortran/15510
2401         * trans-deecl.c (generate_local_decl): Do not issue warning for
2402         unused variables if they're use associated.
2404 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2405         Andrew Vaught <andyv@firstinter.net>
2407         PR fortran/14928
2408         * gfortran.h (gfc_check_f): Add new field f3ml.
2409         * check.c (gfc_check_minloc_maxloc): Take argument list instead
2410         of individual arguments, reorder if necessary.
2411         * intrinsic.h (gfc_check_minloc_maxloc): ... adapt prototype.
2412         * intrinsic.c (add_sym_3ml): New function.
2413         (add_functions): Change to add_sym_3ml for MINLOC, MAXLOC.
2414         (check_specific): Catch special case MINLOC, MAXLOC.
2416 2004-06-14  Paul Brook  <paul@codesourcery.com>
2418         * intrinsic.c (add_sym_2s): Use correct function types.
2420 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2422         * Make-lang.in (F95_OBJS, F95_PARSER_OBJS): Alphabetize.  Move data.c
2423         * data.c (gfc_get_section_index):  Remove dependency on trans.h.
2425 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
2427         * check.c (gfc_check_second_sub, gfc_check_irand, gfc_check_rand
2428         gfc_check_srand, gfc_check_etime, gfc_check_etime_sub): New functions.
2429         * gfortran.h (gfc_generic_isym_id): New symbols GFC_ISYM_ETIME,
2430         GFC_ISYM_IRAND, GFC_ISYM_RAND, GFC_ISYM_SECOND.
2431         * trans-intrinsic.c:  Use symbols.
2432         * intrinsic.c (add_sym_2s): New function.
2433         * intrinsic.c: Add etime, dtime, irand, rand, second, srand.
2434         * intrinsic.h: Function prototypes.
2435         * iresolve.c (gfc_resolve_etime_sub, gfc_resolve_second_sub
2436         gfc_resolve_srand):  New functions.
2438 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2440         PR fortran/14957
2441         * decl.c (gfc_match_end): Require END {SUBROUTINE|FUNCTION} for
2442         contained procedure.
2444 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2446         PR fortran/12841
2447         * interface.c (compare_parameter, compare_actual_formal): Don't
2448         check types and array shapes for NULL()
2449         * trans-expr.c (conv_function_call): No double indirection for
2450         NULL()
2452 2004-06-09  Toon Moene  <toon@moene.indiv.nluug.nl>
2454         * trans-expr.c (gfc_conv_cst_int_power): Compute
2455         x**(-n) by converting it to (1/x)**n instead of
2456         1/x**n.
2458 2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2460         PR fortran/13372
2461         * module.c (write_symbol, write_symtree): Don't write symbols
2462         wrongly added to namespace.
2463         * trans-decl.c (gfc_create_module_variable): Don't create a
2464         backend decl for a symbol incorrectly added to namespace.
2466 2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2468         PR fortran/13201
2469         * resolve.c (resolve_symbol): Verify that parameter array has an
2470         explicit shape. Fix typos and coding style issues in surrounding
2471         lines.
2473 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2475         PR fortran/15478
2476         * gfortran.texi: The documentation doesn't contain infomration on
2477         how to report bugs, and shouldn't, so remove the line which
2478         says it does.
2480 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2482         * intrinsic.c (sort_actual): Keep track of type of missing
2483         arguments. (Missing from previous commit.)
2485 2004-06-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2487         * gfortran.h (gfc_actual_arglist): New field missing_arg_type.
2488         * interface.c (compare_actual_formal): Keep type of omitted
2489         optional arguments.
2490         * trans-expr.c (gfc_conv_function_call): Add string length
2491         argument for omitted string argument.
2493 2004-06-03  Paul Brook  <paul@codesourcery.com>
2495         * trans.c (gfc_finish_block, gfc_add_expr_to_block): Build statement
2496         lists instead of compound expr chains.
2497         (gfc_trans_code): Annotate statement lists.
2499 2004-06-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2501         * trans-array.c: Fix spelling in comments.
2503 2004-06-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2505         PR fortran/15557
2506         * data.c (assign_substring_data_value): New function.
2507         (gfc_assign_data_value): Call the new function if we're dealing
2508         with a substring LHS.
2510 2004-06-01  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2512         PR fortran/15477
2513         * gfortran.h (GFC_VERSION): Remove.
2514         * gfortran.texi (version-gfortran): Remove, replace by version-GCC
2515         where used.
2517 2004-05-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2519         * trans-types.c: Fix spelling & layout in comments.
2521 2004-05-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2523         PR fortran/14067
2524         * trans-const.c (gfc_conv_string_init): Allow variable string
2525         length lower than initialization string length.
2527 2004-05-30  Paul Brook  <paul@codesourcery.com>
2529         PR fortran/15620
2530         * trans-decl.c (gfc_shadow_sym, gfc_restore_sym): New functions.
2531         * trans-expr.c (gfc_trans_string_copy): New function.
2532         (gfc_conv_statement_function): Use them.  Create temp vars.  Enforce
2533         character lengths.
2534         (gfc_conv_string_parameter): Use gfc_trans_string_copy.
2535         * trans-stmt.c (gfc_trans_forall_1): Use gfc_{shadow,restore}_sym.
2536         * trans.h (struct gfc_saved_var): Define.
2537         (gfc_shadow_sym, gfc_restore_sym): Add prototypes.
2539 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
2541         * iresolve.c (gfc_resolve_random_number): Clean up conditional.
2543 2004-05-29  Steven G. Kargl  <kargls@comcast.net>
2545         * simplify.c (gfc_simplify_log): Remove useless line of code.
2547 2004-05-29  Paul Brook  <paul@codesourcery.com>
2549         * trans-common.c (find_equivalence): Find multiple rules.
2551 2004-05-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2553         * gfortran.h (gfc_current_locus, gfc_set_locus): Remove.
2554         (gfc_current_locus): Declare new global variable.
2555         * scanner.c (gfc_current_locus, gfc_set_locus): Remove.
2556         (gfc_current_locus1): Rename ...
2557         (gfc_current_locus): ... to this.
2558         (gfc_at_eof, gfc_at_bol, gfc_at_eol, gfc_advance_line, next_char,
2559         skip_fixed_comments, skip_free_comments, gfc_next_char_literal,
2560         gfc_peek_char, gfc_gobble_whitespace, gfc_new_file): Use
2561         gfc_current_locus instead of gfc_current_locus1, gfc_set_locus()
2562         and gfc_current_locus(), respectively.
2563         * array.c (match_subscript, gfc_match_array_ref, match_array_list,
2564         match_array_cons_element, gfc_match_array_constructor):
2565         Read/modify gfc_current_locus instead of calling gfc_set_locus()
2566         and gfc_current_locus().
2567         * decl.c (gfc_match_null, variable_decl, gfc_match_kind_spec,
2568         match_attr_spec, gfc_match_function_decl, gfc_match_end,
2569         attr_decl1, gfc_match_save): Likewise.
2570         * error.c (error_print, gfc_internal_error): Likewise.
2571         * expr.c (gfc_int_expr, gfc_default_logical_kind): Likewise.
2572         * interface.c (gfc_add_interface): Likewise.
2573         * io.c (gfc_match_format, match_dt_format, match_dt_element,
2574         match_io_iterator, match_io): Likewise.
2575         * match.c (gfc_match_space, gfc_match_eos,
2576         gfc_match_small_literal_int, gfc_match_st_label,
2577         gfc_match_strings, gfc_match_name, gfc_match_iterator,
2578         gfc_match_char, gfc_match, gfc_match_assignment,
2579         gfc_match_pointer_assignment, gfc_match_if, gfc_match_do,
2580         gfc_match_nullify, gfc_match_call, match_implicit_range,
2581         gfc_match_implicit, gfc_match_data, match_case_selector,
2582         gfc_match_case, match_forall_iterator): Likewise.
2583         * matchexp.c (gfc_match_defined_op_name, next_operator,
2584         match_level_1, match_mult_operand, match_ext_mult_operand,
2585         match_add_operand, match_ext_add_operand, match_level_2,
2586         match_level_3, match_level_4, match_and_operand, match_or_operand,
2587         match_equiv_operand, match_level_5, gfc_match_expr): Likewise.
2588         * module.c (gfc_match_use, mio_array_ref, mio_expr): Likewise.
2589         * parse.c (match_word, decode_statement, next_free, next_fixed,
2590         add_statement, verify_st_order, parse_if_block, gfc_parse_file):
2591         Likewise.
2592         * primary.c (match_digits, match_integer_constant,
2593         match_boz_constant, match_real_constant, match_substring,
2594         next_string_char, match_charkind_name, match_string_constant,
2595         match_logical_constant, match_const_complex_part,
2596         match_complex_constant, match_actual_arg, match_keyword_arg,
2597         gfc_match_actual_arglist, gfc_match_structure_constructor,
2598         gfc_match_rvalue, gfc_match_variable): Likewise.
2599         * st.c (gfc_get_code): Likewise.
2600         * symbol.c (check_conflict, check_used, check_done,
2601         duplicate_attr, add_flavor, gfc_add_procedure, gfc_add_intent,
2602         gfc_add_access, gfc_add_explicit_interface, gfc_add_type,
2603         gfc_add_component, gfc_reference_st_label, gfc_new_symbol): Likewise.
2605 2004-05-26  Roger Sayle  <roger@eyesopen.com>
2607         * io.c (format_asterisk): Silence compiler warnings by correcting
2608         the number of elements of a "locus" initializer.
2610 2004-05-25  Roger Sayle  <roger@eyesopen.com>
2612         PR fortran/13912
2613         * matchexp.c: Allow unary operators after arithmetic operators
2614         as a GNU extension.
2615         (match_ext_mult_operand, match_ext_add_operand): New functions.
2616         (match_mult_operand): Tweak to call match_ext_mult_operand.
2617         (match_add_operand): Tweak to call match_ext_mult_operand.
2618         (match_level_2): Rearrange to call match_ext_add_operand.
2620 2004-05-25  Paul Brook  <paul@codesourcery.com>
2622         * expr.c (check_inquiry): Remove bogus tests.
2624 2004-05-23  Paul Brook  <paul@codesourcery.com>
2626         PR fortran/13773
2627         * expr.c (restricted_args): Remove redundant checks/argument.
2628         (external_spec_function): Update to match.
2629         (restricted_intrinsic): Rewrite.
2631 2004-05-23  Paul Brook  <paul@codesourcery.com>
2632         Victor Leikehman  <lei@haifasphere.co.il>
2634         * gfortran.h (struct gfc_symbol): Add equiv_built.
2635         * trans-common.c: Change int to HOST_WIDE_INT.  Capitalize error
2636         messages.
2637         (current_length): Remove.
2638         (add_segments): New function.
2639         (build_equiv_decl): Create initialized common blocks.
2640         (build_common_decl): Always add decl to bindings.
2641         (create_common): Create initializers.
2642         (find_segment_info): Reformat to match coding conventions.
2643         (new_condition): Use add_segments.
2644         (add_condition, find_equivalence, add_equivalences): Move iteration
2645         inside functions.  Only process each segment once.
2646         (new_segment, finish_equivalences, translate_common): Simplify.
2648 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
2650         * check.c (gfc_check_random_seed): Issue for too many arguments.
2652 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
2654         * intrinsic.c (add_subroutines): Use add_sym_3s for random_seed.
2656 2004-05-22  Paul Brook  <paul@codesourcery.com>
2658         * dump-parse-tree.c (gfc_show_equiv): New function.
2659         (gfc_show_namespace): Use it.
2661 2004-05-22  Victor Leikehman  <lei@haifasphere.co.il>
2663         PR fortran/13249
2664         * symbol.c (gfc_add_common): Disable checks to work around other more
2665         fundamental inadequacies.
2667 2004-05-22  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
2669         * trans-decl.c (gfc_get_extern_function_decl): Set DECL_IS_PURE
2670         only for functions.
2671         (gfc_build_function_decl): Likewise.
2673 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
2675         * check.c (gfc_check_system_clock): New function.
2676         * intrinsic.c (add_sym_3s): New function.
2677         (add_subroutines): Use it.
2678         * intrinsic.h (gfc_check_system_clock, gfc_resolve_system_clock):
2679         Add prototypes.
2680         * iresolve.c (gfc_resolve_system_clock): New function.
2682 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
2684         * invoke.texi: Document -Wunderflow and spell check.
2685         * lang.opt: Add Wunderflow.
2686         * gfortran.h (gfc_option_t): Add warn_underflow option.
2687         * options.c (gfc_init_options, set_Wall): Use it.
2688         * primary.c (match_real_constant): Explicitly handle UNDERFLOW.
2689         * arith.c (gfc_arith_uminus, gfc_arith_plus, gfc_arith_minus,
2690         gfc_arith_times, gfc_arith_divide, gfc_arith_power, gfc_real2real,
2691         gfc_real2complex, gfc_complex2real, gfc_complex2complex): Ditto.
2692         * arith.c (common_logarithm): Fix typo in comment.
2694 2004-05-21  Roger Sayle  <roger@eyesopen.com>
2696         * io.c (check_format): As a GNU extension, allow the comma after a
2697         string literal to be optional in a format.  Use gfc_notify_std to
2698         issue an error/warning as appropriate.
2700 2004-05-21  Roger Sayle  <roger@eyesopen.com>
2702         * io.c (check_format): Use gfc_notify_std to determine whether to
2703         issue an error/warning for omitting the digits from the X format.
2705 2004-05-20  Roger Sayle  <roger@eyesopen.com>
2707         * io.c (check_format): Allow the number before the X format to
2708         be optional when not -pedantic.
2710 2004-05-18  Feng Wang  <fengwang@nudt.edu.cn>
2711         Paul Brook  <paul@codesourcery.com>
2713         * f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.
2714         Create decls for __builtin_pow{,f}.
2715         * gfortran.h (PREFIX_LEN): Define.
2716         * trans-decl.c (gfor_fndecl_math_powi): Add.
2717         (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
2718         (gfc_build_intrinsic_function_decls): Create decls for powi.
2719         * trans-expr.c (powi_table): Add.
2720         (gfc_conv_integer_power): Remove.
2721         (gfc_conv_powi): New function.
2722         (gfc_conv_cst_int_power): New function.
2723         (gfc_conv_power_op): Use new powi routines.
2724         * trans.h (struct gfc_powdecl_list): Add.
2725         (gfor_fndecl_math_powi): Add.
2726         (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
2728 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2730         * trans.c, trans-decl.c: Fix comment typos.
2732 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2734         * trans-const.c (gfc_conv_mpf_to_tree): Fix typo.
2736 2004-05-18  Steve Kargl  <kargls@comcast.net>
2738         * arith.c (gfc_int2complex): Fix incorrect range checking.
2740 2004-05-18  Paul Brook  <paul@codesourcery.com>
2742         PR fortran/13930
2743         * decl.c (add_init_expr_to_sym): Remove incorrect check.
2744         (default_initializer): Move to expr.c.
2745         (variable_decl): Don't assign default initializer to variables.
2746         * expr.c (gfc_default_initializer): Move to here.
2747         * gfortran.h (gfc_default_initializer): Add prototype.
2748         * resolve.c (resolve_symbol): Check for illegal initializers.
2749         Assign default initializer.
2751 2004-05-17  Steve Kargl  <kargls@comcast.net>
2753         * arith.c (gfc_arith_power): Complex number raised to 0 power is 1.
2755 2004-05-17  Steve Kargl  <kargls@comcast.net>
2757         * arith.c (gfc_real2complex): Range checking wrong part of complex
2758         number.
2760 2004-05-16  Paul Brook  <paul@codesourcery.com>
2762         * options.c (gfc_handle_module_path_options): Fix buffer overrun.
2764 2004-05-16  Paul Brook  <paul@codesourcery.com>
2766         * arith.c (gfc_range_check): Fix logic error.
2768 2004-05-16  Steve Kargl  <sgk@troutmask.apl.washington.edu>
2770         * arith.c: Fix comment typos.
2772 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
2774         PR fortran/13742
2775         * decl.c (add_init_expr_to_sym): Verify that COMMON variable is
2776         not initialized in a disallowed fashion.
2777         * match.c (gfc_match_common): Likewise.
2778         (var_element): Verify that variable is not in the blank COMMON,
2779         if it is in a common.
2781 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
2783         * Make-lang.in (f95.generated-manpages): Remove.
2784         (f95.srcextra): New.
2785         (f95.info, fortran/gfortran.info, fortran/gfortran.dvi,
2786         f95.maintainer-clean): Generate info and dvi files in objdir/doc.
2787         (f95.dvi): Remove.
2788         (dvi): New.
2789         (f95.install-info): Remove.
2790         (install-info): New.
2792 2004-05-15  Victor Leikehman  <lei@haifasphere.co.il>
2794         * decl.c (add_init_expr_to_sym): Check for variable size arrays.
2796 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2798         * primary.c (match_boz_constant): Use gfc_notify_std() for
2799         issuing a warning or an error.
2801 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2803         PR fortran/13826
2804         * primary.c (match_structure_constructor): Rename ...
2805         (gfc_match_structure_constructor): ... to this. Make non-static.
2806         (gfc_match_rvalue): Call renamed function.
2807         * match.h (gfc_match_structure_constructor): Declare.
2808         * match.c (gfc_match_data_constant): Handle structure
2809         constructor.
2811 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2813         PR fortran/13702
2814         (Port from g95)
2815         * gfortran.h (gfc_linebuf): New typedef.
2816         (linebuf): Remove.
2817         (gfc_file): Revamped, use new gfc_linebuf.
2818         (locus): Revamped, use new types.
2819         (gfc_current_file): Remove.
2820         (gfc_current_form, gfc_source_file): New global variables.
2821         * match.c (gfc_match_space, gfc_match_strings): Use
2822         gfc_current_form to find source form.
2823         * module.c (gfc_dump_module): Use gfc_source_file when printing
2824         module header.
2825         * error.c (show_locus, show_loci) Use new data structures to print
2826         locus.
2827         * scanner.c (first_file, first_duplicated_file, gfc_current_file):
2828         Remove.
2829         (file_head, current_file, gfc_current_form, line_head, line_tail,
2830         gfc_current_locus1, gfc_source_file): New global variables.
2831         (gfc_scanner_init1): Set new global variables.
2832         (gfc_scanner_done1): Free new data structures.
2833         (gfc_current_locus): Return pointer to gfc_current_locus1.
2834         (gfc_set_locus): Set gfc_current_locus1.
2835         (gfc_at_eof): Set new variables.
2836         (gfc_at_bol, gfc_at_eol, gfc_advance_line, gfc_next_char): Adapt
2837         to new locus structure.
2838         (gfc_check_include): Remove.
2839         (skip_free_comments, skip_fixed_comments): Use gfc_current_locus1.
2840         (gfc_skip_comments): Use gfc_current_form, find locus with
2841         gfc_current_locus1.
2842         (gfc_next_char): Use gfc_current_form.
2843         (gfc_peek_char, gfc_gobble_whitespace): Use gfc_current_locus1.
2844         (load_line): Use gfc_current_form. Recognize ^Z as EOF. Fix
2845         comment formatting.
2846         (get_file): New function.
2847         (preprocessor_line, include_line): New functions.
2848         (load_file): Move down, rewrite to match new data structures.
2849         (gfc_new_file): Rewrite to match new data structures.
2850         * parse.c (next_statement): Remove code which is now useless. Use
2851         gfc_source_form and gfc_source_file where appropriate.
2852         * trans-decl.c (gfc_get_label_decl): adapt to new data structures
2853         when determining locus of frontend code.
2854         * trans-io.c (set_error_locus): Same.
2855         * trans.c (gfc_get_backend_locus, gfc_set_backend_locus): Likewise.
2856         * lang-specs.h (@f77-cpp-input, @f95-cpp-input): Remove '-P' from
2857         preprocessor flags.
2858         (all): Add missing initializers.
2860 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2862         * Make-lang.in (trans-common.o): Remove redundant dependency.
2863         (data.c): Replace object file name ...
2864         (data.o): ... by the correct one.
2866 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2868         * dump-parse-tree.c (gfc_show_array_ref): Print colon only
2869         for ranges when dumping array references.
2871 2004-05-14  Victor Leikehman  <lei@haifasphere.co.il>
2873         * decl.c (variable_decl): Always apply default initializer.
2875 2004-05-08  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
2877         PR fortran/15206
2878         * trans-intrinsic.c (gfc_conv_intrinsic_rrspacing): Fixed to
2879         handle zero correctly.
2881 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2883         * match.c (gfc_match): Eliminate dead code.
2885 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2887         * parse.c (gfc_statement_next_fixed): (Change from Andy's tree)
2888         Detect bad continuation line in fixed form sources.
2890 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2892         PR fortran/15205
2893         * iresolve.c (gfc_resolve_nearest): Add new function.
2894         * intrinsic.h: ... declare it here.
2895         * intrinsic.c (add_functions): ... add it as resolving function
2896         for NEAREST.
2898 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2900         PR fortran/14066
2901         * match.c (gfc_match_do): Allow infinite loops with
2902         label-do-stmt. Do not enforce space after comma.
2904 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2906         PR fortran/15051
2907         * parse.c (parse_interface): Allow empty INTERFACE, remove
2908         seen_body.
2910 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2912         * Make-lang.in, arith.c, arith.h, array.c, bbt.c, check.c,
2913         decl.c, dependency.c, dependency.h, dump-parse-tree.c, error.c,
2914         expr.c, f95-lang.c, gfortran.h, interface.c, intrinsic.c,
2915         intrinsic.h, io.c, iresolve.c, lang-specs.h, match.c, match.h,
2916         matchexp.c, misc.c, module.c, options.c, parse.c, parse.h,
2917         primary.c, resolve.c, scanner.c, simplify.c, st.c, symbol.c,
2918         trans-array.c, trans-array.h, trans-common.c, trans-const.c,
2919         trans-const.h, trans-decl.c, trans-expr.c, trans-intrinsic.c,
2920         trans-io.c, trans-stmt.c, trans-stmt.h, trans-types.c,
2921         trans-types.h, trans.c, trans.h: Update copyright years and
2922         boilerplate.
2923         * data.c: Likewise, also removed two whitespace-only lines.
2924         * gfortranspec.c, lang.opt: Update copyright years.
2926 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
2928         PR fortran/14568
2929         * trans-decl.c (generate_local_decl): Don't warn for unused
2930         variables which are in common blocks.
2932 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
2934         * Make-lang.in, f95-lang.c, trans-array.c, trans-decl.c,
2935         trans-expr.c, trans-intrinsic.c, trans-io.c, trans-stmt.c,
2936         trans.c: Rename tree-simple.[ch] to tree-gimple.[ch].
2938 2004-05-13  Victor Leikehman  <lei@haifasphere.co.il>
2940         PR fortran/15314
2941         * trans-expr.c (gfc_conv_structure): Use field type, not expr type.
2943 2004-05-13  Joseph S. Myers  <jsm@polyomino.org.uk>
2945         * gfortran.texi: Use @table @emph instead of @itemize @emph.
2946         Remove "set DEVELOPMENT".
2947         (Compiling GFORTRAN): Remove.
2949 2004-05-09  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
2951         * array.c (match_subscript, match_array_ref): Add comments
2952         explaining argument 'init'.
2953         * decl.c, f95-lang.c, match.c, resolve.c, trans-array.c,
2954         trans-expr.c, trans.c: Fix some typos in comments.
2955         * dump-parse-tree.c (gfc_show_expr): Remove wrong comment.
2956         * primary.c (match_digits, match_integer_constant): Add comment
2957         explaining signflag.
2959 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
2961         PR fortran/13940
2962         * primary.c: Include system.h and flags.h, needed for pedantic.
2963         (match_boz_constant): Allow "x" for hexadecimal constants, warn if
2964         pedantic is set.
2966 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
2968         PR fortran/13940
2969         * match.c (match_data_constant): Handle case where
2970         gfc_find_symbol sets sym to NULL
2972 2004-04-28  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
2974         * Make-lang.in (f95-lang.o, trans-intrinsic.o): Add missing
2975         dependency on mathbuiltins.def
2977 2004-04-24  Victor Leikehman  <lei@il.ibm.com>
2979         * trans-io.c (transfer_expr): Implemented recursive printing
2980         of derived types.
2982 2004-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
2984         * gfortranspec.c: Do not include multilib.h.
2986 2004-04-24  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
2988         * trans-intrinsic.c: Fix comment, this is not trans-expr.c. Add
2989         2004 to copyright years.
2990         * trans-expr.c, trans-decl.c: Comment update, we now generate
2991         GENERIC, not SIMPLE. Add 2004 to copyright years.
2993 2004-04-24  Paul Brook  <paul@codesourcery.com>
2995         * Make-lang.in (gfortranspec.o): Add dependency on $(TM_H).
2997 2004-04-24  Feng Wang  <fengwang@nudt.edu.cn>
2999         PR 14817
3000         * arith.c (gfc_arith_divide): Fix complex divide.
3002 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
3004         * gfortranspec.c: Include the target headers.
3006 2004-04-18  Feng Wang  <fengwang@nudt.edu.cn>
3008         PR fortran/14921
3009         PR fortran/14540
3010         * arith.c (arctangent2): New function.
3011         * arith.h (arctangent2): Add function prototype.
3012         * simplify.c (gfc_simplify_atan2): Use it.
3013         (gfc_simplify_log): Use it.
3015 2004-04-12  Diego Novillo  <dnovillo@redhat.com>
3017         * fortran/f95-lang.c (gfc_expand_stmt): Remove.
3018         (LANG_HOOKS_RTL_EXPAND_STMT): Remove.
3020 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
3022         PR fortran/14872
3023         * trans-io.c (build_dt): Change REC to value.
3025 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
3027         PR 14394
3028         * trans-const.c (gfc_conv_mpf_to_tree): Loosen the maximum digits of
3029         the real value when converting mpf to string.
3031 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
3033         PR 14395
3034         * trans-intrinsic.c (gfc_conv_intrinsic_cmplx): Fix the imag part of
3035         the result.
3037 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
3039         PR fortran/14377
3040         * simplify.c (simplify_min_max): Convert the type of the result.
3042 2004-04-11  Paul Brook  <paul@codesourcery.com>
3044         * gfortran.texi: Use full target triplet.
3046 2004-04-11  Paul Brook  <paul@codesourcery.com>
3048         * Make-lang.in (GFORTRAN_TEXI): Set it.
3049         (fortran/dfortran.dvi): Use it.  Add fortran to include paths.
3050         (fortran/gfortran.info): Ditto.
3051         * gfortran.texi: Major update.
3052         * invoke.texi: New file.
3054 2004-04-10  Paul Brook  <paul@codesourcery.com>
3056         * trans-array.c (gfc_trans_allocate_temp_array,
3057         gfc_conv_tmp_array_ref): Don't use GFC_DECL_STRING.
3058         * trans-decl.c (gfc_build_dummy_array_decl,
3059         gfc_get_symbol_decl, gfc_build_function_decl,
3060         gfc_create_module_variable): Ditto.
3061         * trans-expr.c (gfc_conv_variable): Ditto.
3062         * trans-intrinsic.c (gfc_conv_intrinsic_len): Ditto.
3063         * trans.h (GFC_DECL_STRING): Remove.
3064         (GFC_DECL_PACKED_ARRAY, GFC_DECL_PARTIAL_PACKED_ARRAY,
3065         GFC_DECL_ASSIGN): Renumber flags.
3067 2004-04-05  Paul Brook  <paul@codesourcery.com>
3069         PR 13252
3070         PR 14081
3071         * f95-lang.c (gfc_init_builtin_functions): Add stack_alloc, stack_save
3072         and stack_restore.
3073         * gfortran.h (struct gfc_charlen): Add backend_decl.
3074         * trans-array.c (gfc_trans_allocate_temp_array,
3075         gfc_conv_temp_array_ref, gfc_conv_resolve_dependencies,
3076         (gfc_conv_loop_setup, gfc_array_allocate, gfc_conv_array_init_size):
3077         Remove old, broken string handling.
3078         (gfc_trans_auto_array_allocation, gfc_trans_g77_array,
3079         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
3080         gfc_trans_deferred_array): Handle character arrays.
3081         * trans-const.c (gfc_conv_const_charlen): New function.
3082         * trans-const.h (gfc_conv_const_charlen): Add prototype.
3083         * trans-decl.c (gfc_finish_var_decl): Don't mark automatic variables
3084         as static.
3085         (gfc_build_dummy_array_decl): Handle arrays with unknown element size.
3086         (gfc_create_string_length): New function.
3087         (gfc_get_symbol_decl): Create lengths for character variables.
3088         (gfc_get_fake_result_decl): Ditto.
3089         (gfc_build_function_decl): Only set length for assumed length
3090         character arguments.
3091         (gfc_trans_dummy_character): New function.
3092         (gfc_trans_auto_character_variable): Rewrite.
3093         (gfc_trans_deferred_vars): Handle more types of character variable.
3094         (gfc_create_module_variable): String lengths have moved.
3095         (gfc_generate_function_code): Initialize deferred var chain earlier.
3096         * trans-expr.c (gfc_conv_init_string_length): Rename ...
3097         (gfc_trans_init_string_length):  ... to this.
3098         (gfc_conv_component_ref, gfc_conv_variable, gfc_conv_concat_op,
3099         gfc_conv_function_call): Update to new format for character variables.
3100         (gfc_conv_string_length): Remove.
3101         (gfc_conv_string_parameter): Update assertion.
3102         * trans-intrinsic.c (gfc_conv_intrinsic_len): Use new location.
3103         * trans-io.c (set_string): Use new macro names.
3104         * trans-stmt.c (gfc_trans_label_assign. gfc_trans_goto): Ditto.
3105         * trans-types.c (gfc_get_character_type): Use existing length expr.
3106         (gfc_is_nodesc_array): Make public.
3107         (gfc_get_dtype_cst): Rename ...
3108         (gfc_get_dtype): ... to this.  Handle unknown size arrays.
3109         (gfc_get_nodesc_array_type): Use new name.
3110         (gfc_sym_type): New character variable code.
3111         (gfc_get_derived_type): Ditto.
3112         (gfc_get_function_type): Evaluate character variable lengths.
3113         * trans-types.h (gfc_strlen_kind): Define.
3114         (gfc_is_nodesc_array): Add prototype.
3115         * trans.h: Update prototypes.
3116         (struct lang_type): Update comments.
3117         (GFC_DECL_STRING_LEN): New name for GFC_DECL_STRING_LENGTH.
3118         (GFC_KNOWN_SIZE_STRING_TYPE): Remove.
3120 2004-04-04  Paul Brook  <paul@codesourcery.com>
3122         * gfortran.h (struct gfc_option_t): Remove flag_g77_calls.
3123         * options.c (gfc_init.options, gfc_handle_option): Ditto.
3124         * trans-expr.c (gfc_conv_function_call): Ditto.
3125         * trans-types.c (gfc_is_nodesc_array): Ditto
3126         * lang.opt (fg77-calls): Remove.
3128 2004-04-04  Paul Brook  <paul@codesourcery.com>
3130         * trans-array.c (OFFSET_FIELD): Rename from BASE_FIELD.
3131         (gfc_conv_descriptor_base): Rename ...
3132         (gfc_conv_descriptor_offset): ... to this.
3133         (gfc_trans_allocate_array_storage): Set offset to zero.
3134         (gfc_conv_array_base): Rename ...
3135         (gfc_conv_array_offset): ... to this.
3136         (gfc_conv_array_index_ref): Add offset parameter.
3137         (gfc_conv_array_ref): Include offset.
3138         (gfc_trans_preloop_setup): Use existing offset.
3139         (gfc_trans_allocate_temp_array,  gfc_array_allocate,
3140         gfc_trans_auto_array_allocation, gfc_trans_g77_array,
3141         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
3142         gfc_conf_ss_descriptor): Set offset.
3143         * trans-array.h: Rename prototypes.
3144         * trans-const.h (gfc_index_zero_node): Define.
3145         * trans-decl.c (gfc_build_qualified_array): Change base to offset.
3146         * trans-types.c (gfc_get_array_type_bounds): Ditto.
3147         (gfc_get_nodesc_array_type): Calculate offset before upper bound.
3149 2004-03-25  Diego Novillo  <dnovillo@redhat.com>
3151         * convert.c (convert): Don't handle WITH_RECORD_EXPR.
3153 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3155         PR 14055
3156         * arith.c (gfc_convert_integer,gfc_convert_real):  Removed leading '+'
3157         before conversion by gmp library call.
3159 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
3161         PR 12921
3162         * trans-io.c (gfc_trans_open): Change RECL= to a value parameter.
3164 2004-02-24  Richard Henderson  <rth@redhat.com>
3166         * trans-array.c (gfc_trans_dummy_array_bias): Fix typo.
3168 2004-02-19  Loren J. Rittle  <ljrittle@acm.org>
3170         * Make-lang.in ($(srcdir)/fortran/gfortran.info): Move...
3171         (fortran/gfortran.info): ... to here.
3172         (f95.srcinfo): New.
3174 2004-02-16  Richard Henderson  <rth@redhat.com>
3176         * Make-lang.in (f95-lang.o, trans-decl.o): Depend on cgraph.h.
3177         * f95-lang.c (LANG_HOOKS_EXPAND_DECL): Remove.
3178         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): New.
3179         (gfc_expand_function): Rename from expand_function_body, make static,
3180         don't do anything except invoke tree_rest_of_compilation.
3181         (gfc_be_parse_file): Invoke cgraph.
3182         (gfc_expand_decl): Remove.
3183         (gfc_init_builtin_functions): Add __builtin_init_trampoline and
3184         __builtin_adjust_trampoline.
3185         * trans-decl.c (gfc_get_extern_function_decl): Don't set DECL_CONTEXT.
3186         (gfc_finalize): New.
3187         (gfc_generate_function_code): Use it.  Lower nested functions.
3188         * trans-expr.c (gfc_conv_function_call): Add static chain operand
3189         to call_expr.
3190         * trans.c (gfc_build_function_call): Likewise.
3191         * trans.h (expand_function_body): Remove.
3193 2004-02-15  Victor Leikehman  <lei@il.ibm.com>
3195         PR gfortran/13433
3196         * trans-decl.c (gfc_build_function_decl) For functions
3197         returning CHARACTER pass an extra length argument,
3198         following g77 calling conventions.
3199         * trans-types.c (gfc_get_function_type) Ditto.
3200         * trans-expr.c (gfc_conv_function_call) Ditto.
3202 2004-02-14  Paul Brook  <paul@codesourcery.com>
3204         * f95-lang.c (gfc_init_builtin_functions): Build chain properly.
3206 2004-02-12  Paul Brook  <paul@nowt.org>
3208         * BUGS: Remove.
3210 2004-02-08  Steve Kargl  <sgk@troutmask.apl.washington.edu>
3212         * gfortran.texi: Fix typos.
3214 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
3216         PR gfortran/13909
3217         * intrinsic.c (add_conversions) Use logical conversion instead
3218         of real.
3219         * trans-types.c (gfc_get_logical_type) implemented logical*1
3220         and logical*2.
3222 2004-01-17  Paul Brook  <paul@codesourcery.com>
3224         * lang-specs.h: Remove %<fixed-form.
3226 2004-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>
3228         * lang-specs.h: Enable preprocessing of source files
3229         ending in .F, .fpp, .FPP, .F90 and .F95.
3231 2004-01-13  Toon Moene  <toon@moene.indiv.nluug.nl>
3233         PR fortran/12912
3234         * lang-specs.h: Enable compilation of files ending
3235         in .f, .for and .FOR.
3237 2004-01-11  Paul Brook  <paul@codesourcery.com>
3239         * trans-stmt.c (gfc_trans_if_1): New function.
3240         (gfc_trans_if): Use it.
3242 2004-01-11  Erik Schnetter  <schnetter@uni-tuebingen.de>
3244         * gfortran.h (GFC_MAX_SYMBOL_LEN): Increase.
3245         (gfc_option_t): Add max_identifier_length.
3246         * lang.opt: Add fmax-identifier-length.
3247         * match.c (parse_name): Use limit.
3248         * options.c (gfc_init_options): Set max_identifier_length.
3249         (gfc_handle_option): Ditto.
3251 2004-01-11  Feng Wang  <fengwang@nudt.edu.cn>
3253         * intrinsic.c (add_functions): Add resolve function to dcmplx.
3254         * intrinsic.h (gfc_resolve_dcmplx): Add prototype.
3255         * iresolve.c (gfc_resolve_dcmplx): New function.
3257 2004-01-10  Paul Brook  <paul@codesourcery.com>
3259         * trans-decl.c (gfc_get_symbol_decl): Don't set subroutine attr.
3260         * trans-types.c (gfc_sym_type): Handle external dummy procedures.
3261         (gfc_return_by_reference): Correct condition.
3262         (gfc_get_function_type): Ditto.
3264 2004-01-10  Paul Brook  <paul@codesourcery.com>
3266         * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Convert mismatched
3267         types.
3269 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
3271         * iresolve.c: Use correct kind.
3273 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
3275         PR fortran/13467
3276         * trans-decl.c (gfc_create_module_variable):  Output array valued
3277         parameters.
3279 2004-01-10  Paul Brook  <paul@codesourcery.com>
3281         * resolve.c (resolve_branch): Get error message right way round.
3283 2004-01-10  Canqun Yang <canqun@nudt.edu.cn>
3285         * trans-array (gfc_conv_loop_setup): Adjust comment to track
3286         reality.
3287         (gfc_array_allocate): Don't count size of element twice.
3289 2004-01-04  Paul Brook  <paul@codesourcery.com>
3291         * lang.opt (i8, r8, std=*): Remove RejectNegative.
3293 2004-01-04  Paul Brook  <paul@codesourcery.com>
3295         * error.c (gfc_notify_std): New function.
3296         * gfortran.h (gfc_notify_std): Declare.
3297         (GFC_STD_*): Define.
3298         (gfc_option_t): Add warn_std and allow_std.
3299         * intrinsic.c (gfc_init_expr_extensions): Fix logic.
3300         (gfc_intrinsic_func_interface): Use gfc_notify_std.
3301         * check.c (check_rest): Use gfc_notify_std.
3302         * match.c (gfc_match_pause): Ditto.
3303         (gfc_match_assign): Ditto.
3304         (gfc_match_goto): Ditto.
3305         * resolve.c (resolve_branch): Ditto.
3306         * lang.opt: Add std=<foo> and w.
3307         * options.c (gfc_init_options): Set allow_std and warn_std.
3308         (gfc_handle_option): Handle OPT_std_* and OPT_w.
3310 2004-01-01  Paul Brook  <paul@codesourcery.com>
3312         * array.c (gfc_append_constructor): Take constructor, not expression.
3313         * data.c (struct gfc_expr_stack): Remove.
3314         (expr_stack): Remove.
3315         (find_con_by_offset): Rename from find_expr_in_con.
3316         (find_con_by_component): Rename from find_component_in_con.
3317         (gfc_get_expr_stack): Remove.
3318         (gfc_assign_data_value): Rewrite.
3319         (gfc_expr_push): Remove.
3320         (gfc_expr_pop): Remove.
3321         (gfc_advance_section): Rename from
3322         gfc_modify_index_and_calculate_offset.  Handle unbounded sections.
3323         (gfc_get_section_index): Handle unbounded sections.
3324         * gfortran.h: Update prototypes.
3325         * resolve.c (check_data_variable): Array section maight not be the
3326         last ref.
3328 2004-01-01  Paul Brook  <paul@codesourcery.com>
3330         PR fortran/13432
3331         * resolve.c (resolve_symbol): Allow assumed length function results.
3333 2004-01-01  Steve Kargl  <sgk@troutmask.apl.washington.edu>
3335         * match.c (gfc_match_pause): Fix spelling.
3337 2004-01-01  Steven Bosscher  <stevenb@suse.de>
3339         PR fortran/13251
3340         * trans-expr.c (gfc_conv_variable): Take the type kind of a substring
3341         reference from the expression.
3343 2003-12-26  Feng Wang  <fengwang@nudt.edu.cn>
3345         * dump-parse-tree.c (gfc_show_code_node): Add ASSIGN and ASSIGNED GOTO
3346         dumping.
3347         * gfortran.h (gfc_statement): New ST_LABEL_ASSIGNMENT.
3348         (gfc_exec_op): New EXEC_LABEL_ASSIGN.
3349         (symbol_attribute):New variable attribute: assign.
3350         * io.c (resolve_tag):Integer variable is allowed.
3351         (match_dt_format): Add ASSIGN statement. Set assign flag.
3352         * match.c (gfc_match_if): Change ST_NONE to ST_LABEL_ASSIGNMENT.
3353         (gfc_match_assign): Add ASSIGN statement. Set assign flag.
3354         (gfc_match_goto): Add ASSIGNED GOTO statement. Set assign flag.
3355         * parse.c (decode_statement): Add ST_LABEL_ASSIGNMENT.
3356         (next_statement): Add ST_LABEL_ASSIGNMENT.
3357         (gfc_ascii_statement): Add ST_LABEL_ASSIGNMENT.
3358         * resolve.c (resolve_code): Resolve ASSIGN and ASSIGNED GOTO statement.
3359         (resolve_blocks): Resolve ASSIGNED GOTO statement label list.
3360         * st.c (gfc_free_statement): Add EXEC_LABEL_ASSIGN.
3361         * trans-decl.c (gfc_get_symbol_decl): Create the shadow variable for
3362         assign.  Put them into the stuct lang_decl.
3363         * trans-io.c (set_string): Add the assign statement.
3364         * trans-stmt.c (gfc_trans_label_assign): New function.
3365         (gfc_trans_goto): Translate ASSIGNED GOTO statement.
3366         * trans-stmt.h (gfc_trans_label_assign): Added function prototype.
3367         * trans.c (gfc_trans_code): Add EXEC_LABEL_ASSIGN.
3368         * trans.h (lang_decl):Add shadow variable decl tree needed by assign.
3369         (GFC_DECL_ASSIGN_ADDR(node)): New macro to access this.
3370         (GFC_DECL_ASSIGN(node)): New macro to access flag.
3372 2003-12-31  Huang Chun <chunhuang73@hotmail.com>
3374         PR fortran/13434
3375         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Fixed bug in
3376         minval/maxval.
3378 2003-12-22  Toon Moene  <toon@moene.indiv.nluug.nl>
3380         * options.c (gfc_init_options): Set flag_argument_noalias to 2, to indicate
3381         that arguments to subroutines/functions can't alias themselves, nor global
3382         memory.
3384 2003-12-20  Steven Bosscher  <stevenb@suse.de>
3386         * trans-expr.c (gfc_conv_expr_op): Fold the result expression.
3387         * trans.c (gfc_add_modify_expr, gfc_add_expr_to_block): Likewise.
3389 2003-12-12  Huang Chun <chunhuang73@hotmail.com>
3391         * primary.c (match_substring): Fix substring bug for start point
3392         or end point is NULL.
3393         * trans-expr.c (gfc_conv_substring): Ditto
3394         * trans-types.c (gfc_sym_type): Get correct type of scalar
3395         character variables.
3396         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle character in
3397         derived type.
3399 2003-12-10  Richard Henderson  <rth@redhat.com>
3401         * options.c (gfc_post_options): Don't ever use rtl inlining.
3403 2003-12-05  Canqun Yang  <canqun@nudt.edu.cn>
3405         * trans-common.c: Re-implement COMMON blocks and EQUIVALENCE lists.
3406         * trans-equivalence.c: Remove.
3407         * trans-decl.c (gfc_get_symbol_decl): Update to match.
3408         (gfc_generate_function_code): Ditto.
3409         * trans-array.c (gfc_conv_array_parameter): Ditto.
3410         * Make-lang.in (F95_OBJS): Remove fortran/trans-equivalence.o
3411         (F95_ADDITIONAL_OBJS): Add stor-layout.o
3412         * trans.h (gfc_trans_equivalence): Remove.
3413         * gfortran.h (struct gfc_equiv): Add used field.
3414         (struct gfc_symbol): Remove addr_base, addr_offset, equiv_ring,
3415         equiv_offset fields.
3417 2003-12-05  Richard Henderson  <rth@redhat.com>
3419         * trans.c (gfc_build_addr_expr): New.
3420         (gfc_build_indirect_ref, gfc_build_array_ref): New.
3421         * trans.h: Declare them.
3422         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-io.c,
3423         trans-stmt.c, trans.c (*): Use them.
3425         * f95-lang.c (gfc_post_options): Remove dead prototype.
3426         * trans-array.c (gfc_trans_deferred_vars): Remove unused variable.
3427         * trans-stmt.c (gfc_evaluate_where_mask): Fix temporary_list
3428         allocation size.
3430 2003-12-01  Feng Wang  <fengwang@nudt.edu.cn>
3432         * io.c (gfc_match_format): Check for missing format label.
3434 2003-11-30 Huang Chun <chunhuang73@hotmail.com>
3436         PR fortran/13155
3437         * trans-decl.c (gfc_sym_mangled_function_id): Don't mangle symbols
3438         from interfaces in modules.
3440 2003-11-30  Paul Brook  <paul@nowt.org>
3442         * trans-array.c (gfc_trans_g77_array): Make non-static.
3443         (gfc_trans_assumed_size): Remove.
3444         (gfc_trans_dummy_array_bias): Explicitly free temporary.
3445         * trans-array.h (gfc_trans_g77_array): Add prototype.
3446         (gfc_trans_assumed_size): Remove.
3447         * trans-decls.c (gfor_fndecl_push_context): Remove.
3448         (gfor_fndecl_pop_context): Remove.
3449         (gfc_build_function)decls): Don't create them.
3450         (gfc_trans_deferred_vars): Update to match. Remove dead code.
3451         * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Free temp.
3453 2003-11-30  Kejia Zhao  <kejia_zh@nudt.edu.cn>
3455         * trans-array.c (gfc_conv_array_parameter): Simplify
3456         array argument passing for array name actual argument.
3457         * trans-expr.c (gfc_conv_function_call): Ditto
3458         * trans-types.c (gfc_is_nodesc_array):Ditto.
3460 2003-11-30  Paul Brook  <paul@nowt.org>
3462         * f95-lang.c (gfc_post_options): Move ...
3463         * options.c (gfc_post_options): .. to here.  Handle inlining options.
3464         * gfortran.h (gfc_post_options): Add prototype.
3466 2003-11-28  Richard Henderson  <rth@redhat.com>
3468         * trans.c (gfc_create_var_np): Use create_tmp_var_raw.
3470 2003-11-28 Huang Chun <chunhuang73@hotmail.com>
3472         * trans.h (has_alternate_specifier): New global variable.
3473         * match.c (gfc_match_call): Handle actual arguments associated with
3474         alternate return indicators.
3475         * trans-expr.c (gfc_conv_function_call): Ditto
3476         * trans-stmt.c (gfc_trans_call): Ditto
3477         (gfc_trans_return): Handle return statement with value.
3478         * trans-decl.c (gfc_generate_function_code): Handle functions with
3479         asterisk dummy.
3480         (gfc_get_fake_result_decl): Ditto
3481         * trans-types.c (gfc_get_function_type): Ditto
3482         * resolve.c (resolve_actual_arglist): Check alternate return indicators.
3483         (resolve_formal_arglist): Check asterisk dummy.
3485 2003-11-27  Paul Brook  <paul@nowt.org>
3487         * trans-array.c (gfc_tran_allocate_array_storage): Use new memory
3488         allocation interface.
3489         (gfc_conv_ array_parameter): Ditto.
3490         (gfc_trans_auto_array_allocation): Ditto. Also free the memory.
3491         * trans-array.c: Update prototype.
3492         * trans-decl.c (gfc_build_builtin_function_decls): Update prototypes.
3493         (gfc_trans_auto_character_variable): Use new memory alloc interface.
3494         * trans-expr.c (gfc_conv_string_tmp): Ditto.
3495         (gfc_conv_function_call): Use gfc_conv_string_tmp.
3496         * trans-stmt.c (gfc_do_allocate):  Use new memory alloc interface.
3497         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Ditto.
3498         * trans.h (gfc_ss_info): Remove unused pdata field.
3499         * trans.c (gfc_create_var_np): Change T to V.
3501 2003-11-26  Richard Henderson  <rth@redhat.com>
3503         * mathbuiltins.def: Move acos, asin, cosh, log10, sinh, tanh from ...
3504         * trans-intrinsic.c (gfc_intrinsic_map): ... here.  Add SCALE,
3505         FRACTION, NEAREST, SET_EXPONENT.
3506         (gfc_intrinsic_map_t): Add libm_name, complex_available, is_constant.
3507         Fix GTY marking.  Remove unnecessary const's.
3508         (LIBM_FUNCTION): Rename from I_LIB.
3509         (LIBF_FUNCTION): New.
3510         (gfc_get_intrinsic_lib_fndecl): Handle libm and libgfortran naming
3511         conventions.  Assume the expr signature is correct.  Mark const.
3512         (gfc_conv_intrinsic_exponent): Use library functions.
3513         (gfc_conv_intrinsic_set_exponent): Remove.
3514         (gfc_conv_intrinsic_scale): Remove.
3515         (gfc_conv_intrinsic_nearest): Remove.
3516         (gfc_conv_intrinsic_fraction): Remove.
3517         (gfc_conv_intrinsic_function): Update.
3518         * trans-decl.c (gfor_fndecl_math_exponent4): New.
3519         (gfor_fndecl_math_exponent8): New.
3520         (gfc_build_intrinsic_function_decls): Set them.
3521         * trans.h: Declare them.
3523 2003-11-25  Canqun Yang  <canqun@nudt.edu.cn>
3525         * trans-common.c (gfc_layout_global_equiv): Locate the error for
3526         underflow COMMON block.
3527         (gfc_trans_one_common): Fix bug for size of COMMON block containing
3528         EQUIVALENCE object. Also fix typo in an error message.
3530 2003-11-25  Diego Novillo  <dnovillo@redhat.com>
3532         * Make-lang.in: Add check-gfortran to lang_checks.
3533         (check-f95): Alias for check-gfortran.
3535 2003-11-25  Jason Merrill  <jason@redhat.com>
3537         * Make-lang.in (f95.tags): Create TAGS.sub files in each
3538         directory and TAGS files that include them for each front end.
3540 2003-11-24  Paul Brook  <paul@nowt.org>
3542         PR fortran/13154
3543         * trans-decl.c (gfc_greate_module_variable): Skip COMMON blocks.
3545 2003-11-24  Paul Brook  <paul@nowt.org>
3547         * expr.c (simplify_const_ref): Return SUCCESS for things we don't
3548         handle.
3549         * resolve.c (gfc_resolve_expr): Resolve contents before rank/shape.
3551 2003-11-24  Paul Brook  <paul@nowt.org>
3553         PR fortran/13105
3554         * array.c (gfc_array_ref_shape): Handle elemental dimensions.
3555         * trans-array.c (gfc_trans_preloop_setup): Use correct dim lookup.
3557 2003-11-20  Richard Henderson  <rth@redhat.com>
3559         * trans-array.c (gfc_trans_allocate_array_storage): Use convert.
3560         (gfc_conv_array_base): Likewise.
3561         * trans-decl.c (gfc_trans_auto_character_variable): Likewise.
3562         * trans-expr.c (gfc_conv_string_tmp): Likewise.
3563         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Likewise.
3564         * trans-stmt.c (gfc_trans_character_select): Likewise.
3566 2003-11-13  Paul Brook  <paul@nowt.org>
3568         * trans-decl.c (gfc_sym_mangled_function_id): Dont mangle externals.
3570 2003-11-13  Canqun Yang  <canqun@nudt.edu.cn>
3572         * resolve.c (gfc_resolve): Also resolve EQUIVALENCE objects.
3573         (resolve_equivalence): New function.
3574         (resolve_equivalence_derived): New function.
3576 2003-11-12  Richard Henderson  <rth@redhat.com>
3578         * trans.c (gfc_trans_code): Use annotate_with_locus instead of
3579         annotate_all_with_locus.
3581 2003-11-11  Canqun Yang  <canqun@nudt.edu.cn>
3583         * options.c (gfc_init_options): Set flag_max_stack_var_size as 32768.
3584         * trans-decl.c (gfc_finish_var_decl): Modified.
3586 2003-11-08  Paul Brook  <paul@nowt.org>
3588         PR fortran/12704
3589         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Handle zero-size
3590         arrays.
3592 2003-11-06  Paul Brook  <paul@nowt.org>
3594         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Initialize pos.
3596 2003-11-02  Canqun Yang  <canqun@nudt.edu.cn>
3598         * match.c (gfc_match_stopcode): Assign '0' to stop_code.
3600 2003-10-27  Anthony Green  <green@redhat.com>
3602         * Make-lang.in (f95.stageprofile): Use tabs, not spaces.
3603         (f95.stagefeedback): Ditto.
3605 2003-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
3607         PR fortran/12682
3608         * Make-lang.in (f95.stageprofile): Add.
3609         (f95.stagefeedback): Add.
3611 2003-10-23  Richard Henderson  <rth@redhat.com>
3613         * f96-lang.c (gfc_gimplify_expr): Remove.
3614         (LANG_HOOKS_GIMPLIFY_EXPR): Remove.
3615         (LANG_HOOKS_GIMPLE_BEFORE_INLINING): New.
3617 2003-10-23  Richard Henderson  <rth@redhat.com>
3619         * f95-lang.c (gfc_gimplify_expr): Return gimplify_status.
3621 2003-10-20  Paul Brook  <paul@nowt.org>
3623         * trans-expr.c (gfc_conv_integer_power): Use boolean_type_node.
3624         * trans-stmt.c (gfc_trans_do_while): Ditto.
3626 2003-10-17  Paul Brook  <paul@nowt.org>
3628         * simplify.c (gfc_simplify_shape): Use gfc_array_dimen_size.
3630 2003-10-17  Paul Brook  <paul@nowt.org>
3632         * trans-io.c (gfc_build_io_library_fndecls): Set TREE_PUBLIC.
3634 2003-10-17  Feng Wang  <wf_cs@yahoo.com>
3636         * iresolve.c (gfc_resolve_maxloc): Change the result's kind and type.
3637         (gfc_resolve_minloc): Ditto.
3638         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use correct types.
3639         Return the value after subtracting the lower bound.
3641 2003-10-16  Richard Henderson  <rth@redhat.com>
3643         * f95-lang.c (expand_function_body): Don't check flag_disable_gimple.
3645 2003-10-16  Steven Bosscher  <steven@gcc.gnu.org>
3647         * lang.c: Remove -M option for now, it's in the way for C.
3649 2003-10-14  Jason Merrill  <jason@redhat.com>
3651         * Make-lang.in (f95.tags): New rule.
3653 2003-10-13  Richard Henderson  <rth@redhat.com>
3655         * trans.c (gfc_trans_code): Use annotate_all_with_locus.
3657 2003-10-13  Paul Brook  <paul@nowt.org>
3659         * trans-decl.c (generate_local_decl): Don't create junk variables.
3661 2003-10-13  Paul Brook  <paul@nowt.org>
3663         * resolve.c (resolve_formal_arglist): Use function result decl in
3664         preference to function decl.
3666 2003-10-12  Richard Henderson  <rth@redhat.com>
3668         * f95-lang.c (gfc_define_builtin): New const_p argument.  Set
3669         TREE_READONLY.  Update all callers.
3671 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
3673         * iresolve.c (gfc_resolve_cshift): Change to match implementation.
3674         * trans-intrinsic.c (gfc_conv_intrinsic_function): Remove CSHIFT.
3675         (gfc_is_intrinsic_libcall): Add CSHIFT.
3677 2003-10-12  Richard Henderson  <rth@redhat.com>
3679         * trans-array.c (gfc_trans_static_array_pointer): Set TREE_INVARIANT.
3680         (gfc_trans_array_constructor_value): Likewise.
3681         (gfc_conv_array_initializer): Likewise.
3682         * trans-stmt.c (gfc_trans_character_select): Likewise.
3684 2003-11-12  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3686         * trans-intrinsic.c (integer_kind_info, real_kind_info): Remove.
3688 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
3690         * check.c (gfc_check_repeat): Check arguments are scalar.
3691         (gfc_check_trim): New function.
3692         * intrinsic.h (gfc_check_trim): Add prototype.
3693         * intrinsic.c (add_functions): Use it.
3694         * trans.h (gfor_fndecl_string_trim, gfor_fndecl_string_repeat):
3695         Decalare.
3696         * trans-decl.c: Ditto.
3697         (gfc_build_intrinsic_fucntion_decls): Set them.
3698         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle result vars.
3699         (gfc_conv_intrinsic_trim): New function.
3700         (gfc_conv_intrinsic_repeat): New function.
3701         (gfc_conv_intrinsic_function): Use them.
3703 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
3705         * trans-types.c (gfc_sym_type): Handle result variables.
3707 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
3709         * trans-intrinsic.c (gfc_conv_intrinsic_char): Don't use
3710         gfc_get_character_type.
3712 2003-10-11  Feng Wang  <wf_cs@yahoo.com>
3714         * trans-expr.c (gfc_conv_variable): Check sym->ts, not the decl.
3716 2003-10-11  Paul Brook  <paul@nowt.org>
3718         * iresolve.c (gfc_resolve_dint, gfc_resolve_dnint): New functions.
3719         (gfc_resolve_dprod): New function.
3720         (gfc_resolve_aint, gfc_resolve_anint): Only base name on arg type.
3721         * intrinsic.h (gfc_resolve_dint, gfc_resolve_dnint): Declare.
3722         (gfc_resolve_dprod): Declare.
3723         * intrinsic.c (add_functions): Use them.
3724         * trans-decl.c (gfc_get_extern_function_decl): Only pass one arg.
3726 2003-10-06  Richard Henderson  <rth@redhat.com>
3728         * f95-lang.c (gfc_init_builtin_functions): Add clzll.
3729         * trans-intrinsic.c (call_builtin_clz): Use it.
3731 2003-10-05  Paul Brook  <paul@nowt.org>
3733         * f95-lang.c (expand_function_body): Call (push|pop)_function_context.
3734         * trans-decl.c (gfc_generate_function_code): Set
3735         cfun->function_end_locus.
3737 2003-09-24  Jason Merrill  <jason@redhat.com>
3739         * f95-lang.c, trans-decl.c: Use DECL_SOURCE_LOCATION instead of
3740         TREE_LOCUS.
3742 2003-09-21  Lifang Zeng  <zlf605@hotmail.com>
3743         Paul Brook  <paul@nowt.org>
3745         * Make-lang.in (F95_OBJS): Add fortran/data.o.
3746         * array.c (gfc_inser_constructor): New function.
3747         (gfc_get_constructor): New function.
3748         (gfc_free_constructor): Initialize offset and repeat.
3749         (iterator_stack): Remove.
3750         (expand_info): Add offset, component and repeat fields.
3751         (expand_constructor): Set them.
3752         (expand): Set new fields.
3753         (gfc_copy_constructor): Ditto. Avoid recursion.
3754         * gfortran.h: Add prototypes for new functions.
3755         (gfc_constructor): Add offset, component and repeat.
3756         (iteratio_stack): Move to here.
3757         * resolve.c (check_data_variable): Convert data values into variable
3758         initializers.
3759         (traverse_data_list): Build implicit loop chain.
3760         (gfc_resolve): Ditto.
3761         * trans-array.c (gfc_conv_array_intializer): Handle repeat count.
3762         * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_structure.
3763         * trans-expr.c (gfc_conv_structure): Handle array initializers.
3764         (gfc_conv_expr): Update to match.
3765         * trans.h (gfc_conv_structure): Declare.
3766         * data.c: New file.
3768 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3770         * trans.h: Add declarations for gfor_fndecl_si_kind and
3771         gfor_fndecl_sr_kind.
3772         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
3773         * trans-intrinsic.c (g95_conv_intrinsic_si_kind): New function.
3774         (g95_conv_intrinsic_sr_kind): New function.
3775         (g95_conv_intrinsic_function): Add SELECTED_INT_KIND and
3776         SELECTED_REAL_KIND.
3778 2003-09-17  Lars Segerlund  <Lars.Segerlund@comsys.se>
3780         * iresolve.c (gfc_resolve_random_number): Generate _r4 & _r8
3781         instead of _4 and _8 as postfix for libgfortran calls.
3783 2003-09-16  Paul Brook  <paul@nowt.org>
3785         * array.c (compare_bounds): New function.
3786         (gfc_compare_array_spec): Use it.
3788 2003-09-14  Paul Brook  <paul@nowt.org>
3790         * primary.c (gfc_match_rvalue): Make sure sym->result is set.
3791         * trans-expr.c (gfc_conv_string_parameter): Also allow PRAM_DECLs.
3793 2003-09-14  Paul Brook  <paul@nowt.org>
3795         * check.c (dim_rank_check): Allow assumed bounds if requested.
3796         (gfc_check_lbound): Call it.
3797         (gfc_check_ubound): Ditto.
3798         (gfc_check_size): Change to match.
3799         * simplify.c (gfc_simplify_bound): New function.
3800         (gfc_simplify_lbound): New function.
3801         (gfc_simplify_ubound): New function.
3802         * intrinsic.h: Declare them.
3803         * intrinsic.c (add_functions): Use them.
3805 2003-09-14  Paul Brook  <paul@nowt.org>
3807         * io.c (format_lex): Initialize negative_flag.
3808         (check_format): Intialize repeat.
3809         * trans-io.c (gfc_new_nml_name_expr): Declare static.
3810         (gfc_new_var_expr): Ditto.
3812 2003-09-14  Paul Brook  <paul@nowt.org>
3814         * trans-array.c (gfc_conv_array_initializer): Handle derived types.
3815         * trans-decl.c (gfc_get_symbol_decl): Only do local scalar values.
3817 2003-09-12  Paul Brook  <paul@nowt.org>
3819         * trans-intrinsic.c (gfc_conv_intrinsic_sign): Call fold.
3821 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3823         * fortran/trans.c (gfc_finish_block): Call rationalize_compound_expr
3824         for a correct expression.
3826 2003-09-10  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3828         * trans-intrinsic.c (real_compnt_info): New struct.
3829         (prepare_arg_info): New function.
3830         (gfc_conv_intrinsic_set_exponent): New function.
3831         (gfc_conv_intrinsic_scale): New function.
3832         (gfc_conv_intrinsic_nearest): New function.
3833         (gfc_conv_intrinsic_fraction): New function.
3834         (gfc_conv_intrinsic_exponent): New function.
3835         (gfc_conv_intrinsic_spacing): New function.
3836         (gfc_conv_intrinsic_rrspacing): New function.
3837         (gfc_conv_intrinsic_function): Use them.
3839 2003-08-24 XiaoQiang Zhang  (zhangapache@yahoo.com>
3841         * trans-const.c (gfc_conv_mpz_to_tree): Fix bug, parameter for
3842         build_int_2 changed from (high, low) to (low, high).
3843         * trans-io.c (ioparm_namelist_name, ioparm_namelist_name_len,
3844         ioparm_namelist_read_mode, iocall_set_nml_val_int,
3845         iocall_set_nml_val_float, iocall_set_nml_val_char,
3846         iocall_set_nml_val_complex, iocall_set_nml_val_log): New declaration.
3847         (gfc_build_io_library_fndecls): Add variable initialization.
3848         (gfc_new_nml_name_expr, get_new_var_expr): New function.
3849         (build_dt): Add namelist support.
3850         * io.c (value): New variable.
3851         (check_format): Support FMT_H now.
3853 2003-09-07  Paul Brook  <paul@nowt.org>
3855         * io.c (gfc_resolve_dt): Error if format label is not defined.
3857 2003-09-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3859         * trans-intrinsic.c (gfc_conv_intrinsic_aint): Fix two bugs. One is
3860         about case_switch's break. The other is about building the condition
3861         statement tree, which judges the argument in the range of the
3862         corresponding integer type.
3863         * trans-intrinsic.c (gfc_conv_intrinsic_mod): MOD and MODULO can work
3864         for the large values.
3866 2003-09-05  Paul Brook  <paul@nowt.org>
3868         * f95-lang.c (expand_function_body): Gimplify the function.
3870 2003-09-04  Jeff Law  <law@redhat.com>
3872         * f95-lang.c (DEFINE_MATH_BUILTIN): C arrays start at
3873         index zero!
3875 2003-09-04  Paul Brook  <paul@nowt.org>
3877         * f95-lang.c (gfc_define_builtin): Also set implicit_built_in_decls.
3878         (gfc_expand_stmt): New function.
3879         (LANG_HOOKS_RTL_EXPAND_STMT): Define.
3880         (expand_function_body): Use tree_rest_of_compilation.
3881         * trans-decl.c (gfc_generate_function_code): Don't free cfun.
3883 2003-09-03  Jeff Law  <law@redhat.com>
3885         * f95-lang.c (gfc_init_builtin_functions): C arrays start at
3886         index zero!
3888 2003-08-30  Paul Brook  <paul@nowt.org>
3890         * f95-lang.c (builtin_function): Remove #if 0 code.
3891         (gfc_define_builtin): New function.
3892         (gfc_init_builtin_functions): Use mathbuiltins.def not ../builtins.def.
3893         * mathbuiltins.def: New file.
3894         * trans-intrinsic.c (gfc_intrinsic_map_t): Add builtin code fields.
3895         (gfc_intrinsic_map): Use mathbuiltins.def.
3896         (gfc_intrinsic_builtin_t): Remove.
3897         (gfc_build_intrinsic_lib_fndecls): Update.
3898         * trans-types.c (gfc_init_types): Remove redundant initilaization of
3899         signed_size_type_node.
3901 2003-08-29  Paul Brook  <paul@nowt.org>
3903         * arith.c (gfc_real_kinds): Use correct minimum exponents.
3905 2003-08-22  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3907         * trans-instinsic.c (gfc_conv_intrinsic_mod): Also do MODULO.
3908         (gfc_conv_intrinsic_function): Add MODULO.
3910 2003-08-22  Jason Merrill  <jason@redhat.com>
3912         * trans-array.c (gfc_conv_expr_descriptor): Update use of predicates.
3914 2003-08-22  Andreas Jaeger  <aj@suse.de>
3916         * Make-lang.in (f95.install-common): Add DESTDIR support.
3917         * (f95.install-info): Likewise.
3918         (f95.uninstall): Likewise.
3920 2003-08-19  Diego Novillo  <dnovillo@redhat.com>
3922         * trans-types.c (gfc_init_types): Initialize
3923         signed_size_type_node with size_type_node.
3925 2003-08-18  Paul Brook  <paul@nowt.org>
3927         * dependency.c (gfc_dependency): New enum.
3928         (check_another_array_ref): Remove.
3929         (gfc_get_array_from_component): Remove.
3930         (get_x): Remove.
3931         (get_range): Remove.
3932         (get_no_of_elements): Use mpz_t, not mpf_t.
3933         (transform_sections): New function.
3934         (gfc_check_range_range): Rename ...
3935         (gfc_check_section_vs_section): ... to this.  Use new function.
3936         (gfc_is_inside_range): Rewrite to match.
3937         (gfc_check_element_vs_section): Ditto.
3938         (gfc_check_element_vs_element): Ditto.
3939         (get_deps): Ditto.
3940         (gfc_dep_resolver): Ditto.  Remove unused parameter.
3941         * Dependency.h (gfc_check_range_range, gfc_check_element_vs_section,
3942         gfc_check_element_vs_element, gfc_is_inside_range,
3943         gfc_get_array_from_component): Remove prototypes for static functions.
3944         (gfc_dep_resolver): Update prototype.
3945         * trans-array.c (gfc_conv_resolve_dependencies): Change to match.
3947 2003-08-15  Paul Brook  <paul@nowt.org>
3949         * trans-decl.c (gfc_build_qualified_array): Don't add symbols for
3950         return values to parent scope.
3951         (gfc_build_dummy_array_decl): Ditto.
3953 2003-08-14  Paul Brook  <paul@nowt.org>
3955         * trans-stmt.c (gfc_trans_allocate): Handle NULL refs. Allocate the
3956         size of the type, not the pointer.
3957         * resolve.c (resolve_symbol): Give more accurate error message.
3959 2003-08-10  Paul Brook  <paul@nowt.org>
3961         * trans-decl.c (gfc_build_function_decl): Only mangle global symbols.
3963 2003-08-10  Paul Brook  <paul@nowt.org>
3965         * trans-stmt.c (gfc_trans_allocate): Correctly handle non-array derived
3966         type components.
3968 2003-08-10  Chun Huang  <compiler@sohu.com>
3970         * resolve.c (resolve_formal_arglist): Resolve STATEMENT function.
3971         (resolve_symbol): Ditto.
3972         * trans-expr.c (gfc_conv_statement_function): New function.
3973         (gfc_conv_function_expr): Use it.
3975 2003-08-10  Paul Brook  <paul@nowt.org>
3977         * trans-array.c (gfc_conv_ss_startstride): Handle functions.
3978         (walk_function_expr): Set section rank.
3979         * trans-intrinsic.c (gfc_walk_intrinsic_libfunc): Ditto.
3981 2003-08-10  Paul Brook  <paul@nowt.org>
3983         * intrinsic.c (add_sym): Prefix names with correct string.
3984         (add_sym_0s): New function.
3985         (add_subroutines): Register abort.
3987 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
3989         * gfortran.h: Introduce options to control the mangling.
3990         * lang.opt: Likewise.
3991         * options.c (gfc_init_options): Handle the options.
3992         * trans-common.c (gfc_sym_mangled_common_id): New function.
3993         (gfc_build_common_decl): Call it.
3994         * trans-decl.c (gfc_sym_mangled_function_id): New function.
3995         (gfc_get_extern_function_decl, gfc_build_function_decl): Call it.
3997 2003-08-09  Paul Brook  <paul@nowt.org>
3999         * module.c (mio_symbol): Always ouput a namespace for formal args.
4000         (load_needed): Namespace now belong to their proper symbol.
4001         (gfc_dump_module): Change G95=>GFORTRAN.
4003 2003-08-05  Paul Brook  <paul@nowt.org>
4005         * options.c: Force -fg77-calls.
4007 2003-08-02  Paul Brook  <paul@nowt.org>
4009         * Makelang.in: Rename G95_* to GFORTRAN_*.
4010         * All sources: Rename G95_* to GFC_*.
4012 2003-08-01  Paul Brook  <paul@nowt.org>
4014         * fortran/Make-lang.in: Use GMPLIBS.
4015         * fortran/config-lang.in: Set need_gmp.
4016         * trans-expr.c (gfc_conv_variable): Remove incorrect assertion.
4018 2003-07-27  Andreas Jaeger  <aj@suse.de>
4020         * trans-decl.c (gfc_generate_constructors): Convert prototype to
4021         ISO C90.
4022         * trans-const.c (gfc_init_constants): Likewise.
4023         * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Likewise.
4025         * gfortranspec.c: Convert to ISO C90.
4026         (lang_specific_driver): Correct copyright, remove ALT_LIBM usage.
4028 2003-07-26  Paul Brook  <paul@nowt.org>
4030         * lang.opt: Add -fdump-parse-tree.
4031         * options.c (gfc_handle_option): Ditto.
4032         * resolve.c (resolve_forall_iterators): Convert to proper type.
4033         * trans-stmt.c (gfc_trans_forall_1): Create temp var with correct type.
4035 2003-07-26  Paul Brook  <paul@nowt.org>
4037         * Makefile.in: Add build dependencies on files common with rest of gcc.
4039 2003-07-26  Lifang Zeng  <zlf605@hotmail.com>
4041         * trans.h: Declare g95_trans_pointer_assignment.
4042         * trans-expr.c (g95_trans_pointer_assignment): New function.
4043         (g95_trans_pointer_assign): Use it.
4044         * trans-stmt.c (g95_trans_forall_1): Handle pointer assignment.
4045         (g95_trans_pointer_assign_need_temp): New function.
4047 2003-07-26  Paul Brook  <paul@nowt.org>
4049         * gfortran.texi: Replace references to g95.
4051 2003-07-26  Paul Brook  <paul@nowt.org>
4053         Rename g95_* to gfc_*.
4055 2003-07-25  Paul Brook  <paul@nowt.org>
4057         * gfortran.h: Rename from g95.h.
4058         * trans-types.c (boolean_type_node, booelan_true_node,
4059         boolean_false_node): Remove.
4060         * trans-types.h: Ditto.
4062 2003-07-25  Chun Huang  <compiler@sohu.com>
4064         * parse.c (accept_statement): Implement BLOCK DATA statement.
4065         * trans-expr.c (g95_conv_variable): Fix bug for dereference pointer
4066         variables.
4068 2003-07-24  Lifang Zeng  <zlf605@hotmail.com>
4070         * trans-stmt.c (temporary_list): Define.
4071         (g95_trans_assign_need_temp): New function.
4072         (g95_trans_forall_1): Modified for WHERE.
4073         (g95_trans_where_assign): Modified.
4074         (g95_trans_where_2): Modified.
4075         (g95_evaluate_where_mask): Modified.
4076         (g95_trans_where): Modified.
4077         (g95_get_temp_expr): Removed.
4078         (g95_add_to_where_stmt_list): Removed.
4079         (compute_overall_iter_number): Modified for WHERE.
4080         * trans.h: Remove where_stmt_list.
4082 2003-07-24  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4084         * lang.opt: Correct description of options -J and -M.
4086 2003-07-23  Steven Bosscher   <steven@gcc.gnu.org>
4088         * lang.opt: Move help text to here.
4089         * lang-options.h: Remove.
4091 2003-07-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4092         * iresolve.c (g95_resolve_transpose): Proper variable in switch.
4093         * simplify.c (g95_simplify_nearest): Fix typo and use a correct test
4094         on kind.
4096 2003-07-22  Steven Bosscher  <steven@gcc.gnu.org>
4097         Paul Brook  <paul@nowt.org>
4099         * check.c (check_rest): Use global pedantic flag.
4100         * io.c (data_desc): Ditto.
4101         * error.c (g95_warning, g95_warning_now): Use global flag.
4102         * f95-lang.c (LANG_HOOKS_HANDLE_OPTION): Rename from DECODE.
4103         (expand_function_body): Update to new prototypes.
4104         (g95_init): Use new option names.
4105         * g95.h (g95_option_t): Standardize names.
4106         (g95_init_options, g95_handle_option): Update prototypes.
4107         * interface.c: Use new option names.
4108         * match.c: Ditto.
4109         * module.c: Ditto.
4110         * parse.c: Ditto.
4111         * primary.c: Ditto.
4112         * resolve.c: Ditto.
4113         * scanner.c: Ditto.
4114         * simplify.c: Ditto.
4115         * symbol.c: Ditto.
4116         * trans-array.c: Ditto.
4117         * trans-expr.c: Ditto.
4118         * trans-types.c: Ditto.
4119         * trans-decl.c: Ditto.
4120         (g95_build_library_function_decl): Remove obsolete VPARAMS.
4121         * trans.h: Ditto.
4122         * options.c (g95_display_help): Remove.
4123         (g95_init_options): Convert to new scheme.
4124         (set_Wall): Ditto
4125         (g95module_option): Ditto, rename from g95_parse_arg.
4126         (g95_handle_module_path_options): New function.
4127         * trans-equivalence.c: Fix error message.
4128         * lang.opt: Corrections.
4130 2003-07-21  Steven Bosscher  <steven@gcc.gnu.org>
4132         * lang.opt: New file.
4134 2003-07-21  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4136         * decl.c (match_attr_spec): Set colon_seen.
4138 2003-07-14  Paul Brook  <paul@nowt.org>
4140         * trans-array.c: Update comment.
4141         (g95_trans_array_constructor_subarray): Cleanup loopinfo data.
4142         * trans-intrinsic.c (g95_conv_intrinsic_anyall,count,arith,
4143         minmaxloc,minmaxval): Ditto.
4144         * trans-io.c (g95_trans_transfer): Ditto.
4145         * trans-stmt.c: Remove unneeded prototypes.
4146         (generate_loop_for_lhs_to_rhs): Rename vars. Add loop post chain.
4147         (generate_loop_for_rhs_to_temp): Rename vars. Don't share loopinfo.
4148         (compute_inner_temp_size): Remove bits of dead code. Add comments.
4149         Don't share loopinfo.
4150         (compute_overall_iter_number): Declare as static.
4151         (allocate_temp_for_forall_nest): Ditto.
4152         (g95_trans_forall_1): Don't pass shared loopinfo.
4153         * trans.c (g95_start_block): Expand comment.
4155 2003-07-12  Paul Brook  <paul@nowt.org>
4157         * arith.c (g95_index_integer_kind): Remove unused initializer.
4158         * trans-stmt.c (generate_loop_for_temp_to_lhs): Don't multiply array
4159         index by size of element.
4160         (generate_loop_for_rhs_to_temp): Ditto.
4161         (allocate_temp_for_forall_nest): Use element size, not index size.
4163 2003-07-11  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4165         * arith.c (g95_index_integer_kind): Add a TODO.
4166         * simplify.c (g95_simplify_nearest): Add a TODO.
4168 2003-07-09  Chun Huang  <compiler@sohu.com>
4170         * trans.h: Add declarations for gfor_fndecl_string_scan and
4171         gfor_fndecl_string_verify.
4172         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
4173         * trans-intrinsic.c (g95_conv_intrinsic_scan): New function.
4174         (g95_conv_intrinsic_verify): New function.
4175         (g95_conv_intrinsic_function): Add SCAN and VERIFY.
4176         * simplify.c (g95_simplify_scan, g95_simplify_verify): Fix bug in case
4177         of parameter 'BACK=.TRUE.'
4179 2003-07-05  Lifang Zeng  <zlf605@hotmail.com>
4181         * trans-stmt.c (iter_info, forall_info): Define.
4182         (g95_trans_forall_block): Remove.
4183         (g95_trans_forall_loop): Use forall info blocks.
4184         (g95_trans_nested_forall_loop): New function.
4185         (g95_do_allocate): Handle things other than logical masks.
4186         (generate_loop_for_temp_to_lhs): New function.
4187         (generate_loop_for_rsh_to_temp): New function.
4188         (compute_inner_temp_size): New function.
4189         (compute_overall_iter_number): New function.
4190         (allocate_temp_for_forall_nest): New function.
4191         (g95_trans_forall): Move body ...
4192         (g95_trans_forall_1): ... to here.  Handle loops with temporaries.
4194 2003-07-02  Paul Brook  <paul@nowt.org>
4196         * trans-decl.c (create_index_var, g95_build_qualified_array): Put vars
4197         in correct scope.  Change callers to match.
4198         * trans-types.c (g95_get_dtype_cst): Allow rank 7 arrays.
4199         * iresolve.c (g95_resolve_reshape): Only use constant shapes.
4201 2003-07-02  Paul Brook  <paul@nowt.org>
4203         * trans-array.c (g95_conv_loop_setup): Remove dead var.  Use
4204         expression shape for all expressions.
4205         * trans-decl.c (g95_symbol_init): Allow adding at very end of list.
4207 2003-07-03  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4209         * g95.h (g95_option_t), lang-options.h, options.c (g95_init_options,
4210         g95_parse_arg), intrinsic.c (g95_convert_type): support of
4211         -Wconversion.
4212         * intrinsic.c, g95.h: Add g95_convert_type_warn,
4213         * resolve.c (g95_resolve_index): Call it.
4215 2003-07-02  Paul Brook  <paul@nowt.org>
4217         * iresolve.c (g95_resolve_reshape): Set expression shape.
4218         (g95_resolve_shape): Ditto.
4219         * simplify.c (g95_simplify_shape): Move common code outside condition.
4220         * trans-array.c (g95_conv_array_initializer): Teach it how to count.
4222 2003-07-01  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4224         * array.c (g95_array_dimen_size): Deal with EXPR_ARRAY to improve
4225         conformance checks.
4227 2003-06-29  Paul Brook  <paul@nowt.org>
4229         * array.c (g95_simplify_iterator_var): Don't bother with return value.
4230         * expr.c (find_array_element, find_component_ref): New functions.
4231         (remove_subobject_ref): New function.
4232         (simplify_const_ref): Use them.  Rename from simplify_component_ref.
4233         (simplify_ref_chain): New function.
4234         (g95_simplify_expr): Use it.  Simplify parameter variable subobjects.
4235         (g95_specification_expr): Simplify the expression.
4236         * resolve.c (resolve_operator): Check simplifications return code.
4237         (g95_resolve_expr): Ditto.
4239 2003-06-26  Paul Brook  <paul@nowt.org>
4241         * expr.c (simplify_component_ref): New function.
4242         (g95_simplify_expr): Use it.
4243         * resolve.c (resolve_structure_cons): Handle references.
4245 2003-06-25  Paul Brook  <paul@nowt.org>
4247         * trans-io.c (build_dt): Handle internal units.
4249 2003-06-25  Canqun Yang  <canqun@yahoo.com.cn>
4251         * trans-common.c (g95_build_common_decl): Array index range starts at 0.
4252         (g95_build_common_decl, g95_layout_global_equiv, g95_trans_one_common):
4253         Use g95_array_index_type instead of integer_type_node.
4254         (g95_build_common_decl, g95_set_common_master_type): Use
4255         g95_character1_type_node instead of char_type_node.
4256         * trans-equivalence.c (g95_layout_local_equiv): As above.
4258 2003-06-24  Steven G. Kargl  <kargls@attbi.com>
4260         * g95.h (g95_option_t), options.c (g95_init_options, g95_parse_arg):
4261         remove last remains of -fquiet.
4263 2003-06-22  Paul Brook  <paul@nowt.org>
4265         * resolve.c (resolve_operator): Don't fail if we can't simplify.
4266         (g95_resolve_expr): Ditto.
4267         (resolce_code): Mark as static.
4268         * trans-stmt.c (g95_trans_chaaracter_select): Mark labels because the
4269         gimplifer doesn't (yet).
4271 2003-06-20  Paul Brook  <paul@nowt.org>
4273         * g95.h: Add ST_PAUSE and EXEC_PAUSE.
4274         * match.c (g95_match_if): Add ST_PAUSE.
4275         (g95_match_stopcode): New function.
4276         (g95_match_pause, g95_match_stop): Use it.
4277         * parse.c (g95_ascii_statement): Handle ST_PAUSE.
4278         (decode_stmt, next_statement, parse_executable): Ditto.
4279         * resolve.c (resolve_code): Ditto.
4280         * st.c (g95_free_statement): Ditto.
4281         * trans-stmt.c (g95_trans_pause): New function.
4282         * trans-stmt.h: Declare it.
4283         * trans.c (g95_trans_code): Use it.
4284         * trans-decl.c (gfor_fndecl_pause_numeric, gfor_fndecl_pause_string):
4285         Declare.
4286         (g95_build_builtin_function_decls): Initialize them.
4287         * trans.h: Ditto.
4288         * dump-parse-tree.c (g95_show_code_node): Handle EXEC_PAUSE.
4290 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4292         * io.c (g95_match_open , g95_match_close, g95_match_inquire,
4293         match_filepos): Fix error handling.
4295 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4297         * array.c (spec_dimen_size, ref_dimen_size, g95_array_dimen_size):
4298         Add assertions on arguments.
4299         * resolve.c (expression_shape): Remove useless &.
4300         * simplify.c (get_kind, g95_simplify_bit_size, g95_simplify_digits,
4301         g95_simplify_ibclr, g95_simplify_ibits, g95_simplify_ibset,
4302         g95_simplify_ishft,g95_simplify_ishftc, g95_simplify_maxexponent,
4303         g95_simplify_minexponent, g95_simplify_radix, g95_simplify_range
4304         g95_simplify_rrspacing, g95_simplify_scale, g95_simplify_spacing,
4305         g95_simplify_tan, g95_simplify_tiny): Clean predicates and assertions.
4306         (g95_simplify_not, g95_simplify_scale): Add assertions.
4308 2003-06-15  Paul Brook  <paul@nowt.org>
4310         Clean up stuff to work with the ssa optimizers.
4311         * convert.c (convert): Handle BOOLEAN_TYPEs.
4312         * f95-lang.c (g95_truthvalue_conversion): Implement.
4313         * trans-array.c (g95_trans_array_constructor_value): Group multiple
4314         scalar values.
4315         * trans.h (g95_truthvalue_conversion): Declare.
4316         * trans-intrinsic.c (g95_conv_intrinsic_anyall): Use bool constants.
4317         * trans-stmt.c (g95_trans_character_select): Don't create array
4318         assignments.  Mark labels as indirect jump targets.
4319         * trans-types.h (g95_init_types): Use BOOLEAN_TYPE nodes.
4320         (g95_get_dtype_cst): Handle LOGICAL types.
4322 2003-06-14  Paul Brook  <paul@nowt.org>
4324         * f95-lang.c (g95_gimplify_expr): New function.
4325         * trans-array.c (g95_trans_array_constructor_value): Don't create
4326         array assignments.
4327         (g95_conv_expr_descriptor): Rename simple->gimple.
4328         * trans-expr.c (conv_expr_op): Use proper logical operators.
4329         * trans-intrinsic.c (build_fixbound_expr): New function.
4330         (build_fix_expr): Ditto.
4331         (g95_conv_intinsic_aint): Use them. Use builtin functions.
4332         (g95_conv_intrinsic_function): Add FLOOR and CEILING.
4334 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4336         * array.c (g95_compare_array_spec): Remove unreachable code.
4337         * expr.c (g95_copy_expr): Likewise.
4338         * intrinsic.c (g95_convert_type): Likewise.
4339         * misc.c (g95_code2string): Likewise.
4340         * simplify.c (g95_simplify_ishft, g95_simplify_real,
4341         g95_simplify_reshape, g95_simplify_sign, g95_simplify_sqrt): Likewise.
4342         * trans-stmt.c (g95_trans_select): Likewise.
4343         * primary.c (extend_ref): Add an assertion.
4344         * simplify.c (g95_convert_constant): Add const.
4345         * intrinsic.h: Remove g95_check_x_ni.
4346         * f95-lang.c (g95_finish): Call g95_release_include_path.
4348 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4350         * resolve.c (resolve_contained_functions): Fix typo introduced on
4351         2003-01-13.
4353 2003-06-09  Paul Brook  <paul@nowt.org>
4355         * g95.h: Include system.h not hwint.h.
4356         * many: use safe-ctype.h not ctype.h.  Change isalpha -> ISALPHA, etc.
4357         * misc.c (g95_getmem): Use xmalloc/memset instead of calloc.
4359 2003-06-09  Paul Brook  <paul@nowt.org>
4361         * g95.h (g95_symbol): Add fields for COMMON and EQUIVALENCE variables.
4362         * Make-lang.in (F95_OBJS): Add files for COMMON and EQUIVALENCE.
4363         * trans-decl.c (g95_add_decl_to_functions): Make non-static.
4364         (g95_get_symbol_decl): Handle COMMON and EQUIVALENCE objects.
4365         (g95_generate_function_code): Translate COMMON and EQUIVALENCE
4366         objects.
4367         * trans.h (g95_trans_equivalence, g95_trans_common,
4368         g95_add_decl_to_function): Declare.
4369         * trans-common.c, trans-equivalence.c: New files.
4371 2003-06-08  Steven Bosscher  <steven@gcc.gnu.org>
4373         * intrinsic.c (g95_intrinsic_extension): Remove.
4374         (add_functions): Substitute g95_check_x for g95_check_x_ni
4375         everywhere.
4376         (g95_init_expr_extensions): New function.
4377         (g95_intrinsic_func_interface): Use it.
4378         * intrinsic.h: Remove extern decl for g95_intrinsic_extension.
4379         * check.c (g95_check_digit, g95_check_huge, g95_check_kind,
4380         g95_check_precision, g95_check_present, g95_check_radix,
4381         g95_check_range, g95_check_selected_real_kind): Do not set
4382         g95_intrinsic_extension.
4383         (g95_check_x_ni): Remove now duplicate of g95_check_x.
4385         * expr.c (check_inquiry): Add FIXME, fixup some code style.
4387 2003-06-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4389         * g95.h (ref_type): Name this type explicitly.
4390         * module.c (MIO_NAME): Add specialisations of mio_name.
4391         (mio_symbol_attribute, mio_typespec, mio_array_ref,
4392         mio_array_spec, mio_ref, mio_expr, mio_symbol): Use them.
4393         (ab_attribute): Name this type explicitly.
4394         (mio_symbol_attribute, mio_expr): Add cast to call to find_enum.
4396 2003-06-05  Kejia Zhao  <kejia_zh@yahoo.com.cn>
4398         * trans-intrinsic.c (g95_conv_allocated): New function.
4399         (g95_conv_intrinsic_function): Make G95_ISYM_ALLOCATED work.
4401 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4403         * f95-lang.c: Don't include g95-support.h
4404         (g95_mark_addressable): Add prototype.
4405         (g95_init_decl_processing): Remove C front end hack.
4406         * f95-tree.c: Remove file.
4407         * support.c: Remove file.
4408         * g95-support.h: Remove file.
4409         * trans-types.c (g95_init_types): Set up boolean
4410         type related tree nodes.
4411         * Make-lang.in: Remove rules for dead files and
4412         dependencies on them.
4414 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4416         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove the final
4417         C front end dependency.  Also, convert.c does not depend on
4418         g95-support.h anymore.
4419         * convert.c: Don't include c-common.h and g95-support.h
4420         * f95-lang.c: Don't inlude c-common.h and c-common.def (3x).
4421         (g95_stmt_tree, g95_scope_stmt_stack, anon_aggr_type_p,
4422         stmts_are_full_exprs_p, current_stmt_tree,
4423         current_scope_stmt_stack): Remove.
4424         * g95-support.h (unsigned_conversion_warning): Kill proto.
4425         (boolean_type_node, boolean_true_node, boolean_false_node):
4426         Don't define here.  Instead, make then true tree nodes in
4427         trans-types.
4428         * support.c (c_global_trees): Die, C front end, die!!!
4429         (g95_init_c_decl_hacks): Don't touch intmax_type_node,
4430         uintmax_type_node, string_type_node and const_string_type_node.
4431         (decl_constant_value, overflow_warning): Make static functions.
4432         They are in death row too, though.
4433         (default_conversion, c_expand_asm_operands): Remove.
4434         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-stmt.c,
4435         trans.c: Don't include c-common.h.
4436         * trans-types.c (boolean_type_node, boolean_true_node,
4437         boolean_false_node): Make them real tree nodes.
4438         * trans-types.h (intmax_type_node, string_type_node,
4439         const_string_type_node): Hack to work around C dependencies
4440         in builtin-types.def.
4442 2003-06-04  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4444         * decl.c (decl_types): Add some iterators-like sentinels.
4445         * decl.c (match_attr_spec): Use them.
4446         Use "decl_types" instead of "int".
4447         Add cast in call to g95_match_strings.
4448         * dump-parse-tree.c (g95_show_namespace):  Use "g95_intrinsic_op"
4449         instead of "int".
4450         * g95.h (g95_intrinsic_op): Add some iterators-like sentinels.
4451         (g95_interface_info): Use "g95_intrinsic_op".
4452         * dump-parse-tree.c (g95_show_namespace): Use them.
4453         * interface.c (g95_check_interfaces): Use them.
4454         * module.c (read_module, write_module): Use them.
4455         * symbol.c (g95_get_namespace, g95_free_namespace): Use them.
4456         Use "g95_intrinsic_op".
4457         * interface.c (check_operator_interface): Use "g95_intrinsic_op".
4458         Add a default case in switch statement.
4459         * intrinsic.h (g95_generic_isym_id): Moved to...
4460         * g95.h (g95_generic_isym_id): here.
4461         (g95_intrinsic_sym): Use "g95_generic_isym_id".
4462         * intrinsic.c (make_generic): Use "g95_generice_isym_id".
4463         * trans-intrinsic.c (g95_intrinsic_map_t,
4464          g95_conv_intrinsic_lib_funtion): Use "g95_generice_isym_id".
4465         * match.c (g95_match_intrinsic_op): Add cast in call to
4466         g95_match_strings.
4468 2003-06-03  Steven Bosscher  <steven@gcc.gnu.org>
4470         * support.c (skip_evaluation, warn_conversion, lvalue_p,
4471         lvalue_or_else, pedantic_lvalue_warning, warn_for_assignment,
4472         constant_fits_type_p, convert_and_check,
4473         unsigned_conversion_warning): Remove these ugly remnants
4474         we inherited from the C front end.
4475         (function_types_compatible): Remove '#if 0'-edcode.
4476         (build_modify_expr): Likewise.
4477         (convert_for_assignment): Don't use the deceased functions.
4478         The parameter fundecl is now unused.
4479         (decl_constant_value): Always just return decl.  In fact
4480         this function is not used at present, but it might be in
4481         the future, when we start using the tree inliner.
4482         (overflow_warning, default_conversion, c_expand_asm_operands):
4483         Abort when these are called, they are part of the C type
4484         checking implementation and therefore poison to Fortran.
4486 2003-06-04  Steven Bosscher  <steven@gcc.gnu.org>
4488         * Make-lang.in (F95_ADDITIONAL_OBJS): Don't depend on
4489         c-pretty-print.o and c-dump.o.  Add a comment on why we
4490         depend on c-semantics.c.
4491         * f95-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN):
4492         Don't use the C front end tree dumper hook to dump the
4493         language specific tree representation -- we don't have
4494         one.  So instead, inherit the default langhook.
4496 2003-06-02  Paul Brook  <paul@nowt.org>
4498         * trans-expr.c (g95_conv_variable): Remove incorrent assertion.
4500 2003-06-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4502         * check.c (g95_check_associated): Use proper types.  Remove
4503         extraneous argument in call to g95_error().
4505 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
4507         * resolve.c (resolve_operator): Make logical operands convert to the
4508         type with higher kind.
4510 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
4512         * check.c (g95_check_associated): Make sure both pointer and target has
4513         the same type and rank. Null pointer or array section with vector
4514         subscript as target are not allowed.
4515         * trans.h: Declare gfor_fndecl_associated.
4516         * trans-decl.c: (g95_build_builtin_function_decls): Initialize
4517         gfor_fndecl_associated.
4518         * trans-intrinsic.c (g95_conv_associated): New function.
4519         (g95_conv_intrinsic_function): Make G95_ISYM_ASSOCIATED work.
4521 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
4523         * trans-array.c (g95_conv_expr_descriptor): Set the base of POINTER
4524         according to POINTER itself rather than TARGET.
4525         (g95_conv_expr_descriptor): Make lbound start at 1.
4526         * trans-expr.c (g95_trans_pointer_assign): Fix a bug for Nullify.
4528 2003-06-01  Paul Brook  <paul@nowt.org>
4530         * expr.c (g95_type_convert_binary): Make it match the standard.
4531         * g95.texi: Remove dead link.
4533 2003-06-01  Steven Bosscher  <steven@gcc.gnu.org>
4535         * g95.texi: Cleanup somewhat in preparation for inclusion
4536         in GCC CVS.
4538 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4539             Canqun Yang  <canqun@yahoo.com.cn>
4541         * resolve.c (compare_bound_int, resolve_where_shape): Proper return
4542         type.
4543         (g95_find_forall_index): Return proper value.
4544         (g95_resolve_assign_in_forall, g95_resolve_forall): Use proper type to
4545         compare the return value from g95_find_forall_index.
4547 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4548         * g95.h, io.c (g95_st_label): Remove "length".
4549         (g95_symtree): Remove "link".
4550         (g95_case): Remove "code".
4551         * arith.c, arith.h (g95_compare_string, g95_convert_integer,
4552         g95_convert_real): Make an argument pointer to const.
4553         * decl.c (colon_seen): Add a TODO.
4554         * interface.c (g95_compare_types): Fix typo.
4555         * interface.c (compare_interfaces): Preserve value of "p".
4556         * intrinsic.c (sort_actual): Remove "i".
4557         * match.c (g95_match_assign): Proper type in call to g95_match().
4558         * parse.c (next_free): Avoid duplicate call due to macro.
4559         * parse.c (check_statement_label): wrong type in call to g95_error.
4560         * primary.c (match_real_constant): Add a TODO.
4561         * resolve.c (resolve_select):  Remove useless conditional.
4562         * simplify.c (g95_simplify_repeat): Proper assignment to
4563         "value.character.string".
4564         * simplify.c (g95_simplify_reshape): Wrong variable in call to
4565         g95_error.
4567 2003-05-20  Canqun Yang  <canqun@yahoo.com.cn>
4569         * trans-stmt.c: Remove unnecessary include file defaults.h.
4571 2003-05-19  Lifang Zeng  <zlf605@hotmail.com>
4573         * trans-stmt.c (g95_trans_forall_loop): Handle FORALL with negative
4574         stride.
4575         (g95_trans_forall): Allow arbitrary number of FORALL indexes and
4576         actual variables used as FORALL indexes.
4578 2003-05-15  Paul Brook  <paul@nowt.org>
4580         * trans-array.c (g95_trans_static_array_pointer): Use
4581         null_pointer_node.
4582         (g95_trans_deferred_array): Initialize static array pointers.
4583         * trans-expr.c (g95_conv_function_call): Use formal arglist to
4584         correctly pass POINTER and absent CHARACTER arguments.
4586 2003-05-14  Lifang Zeng  <zlf605@hotmail.com>
4588         * resolve.c (g95_resolve_forall): Resolve FORALL construct/statement.
4589         (g95_resolve_forall_body): Resolve FORALL body.
4590         (g95_resolve_where_code_in_forall): Resolve WHERE inside FORALL.
4591         (g95_resolve_assign_in_forall): Resolve assignment inside FORALL.
4592         (g95_find_forall_index): Check whether the FORALL index appears in
4593         the expression or not.
4594         (resolve_code): Modified.
4596 2003-05-14  Paul Brook  <paul@nowt.org>
4598         * iresolve.c (g95_resolve_spread): Convert ncopies to index_type.
4600 2003-05-13  Paul Brook  <paul@nowt.org>
4602         * trans-types.c (g95_max_array_element_size): Now a tree node.
4603         (g95_init_types): Work out max size properly.
4604         (g95_get_dtype_cst): Modify to match.
4606 2003-05-11  Paul Brook  <paul@nowt.org>
4608         * trans-io.c (add_case): Create a label decl for case labels.
4610 2003-05-11  Paul Brook  <paul@nowt.org>
4612         * arith.c (g95_integer_index_kind): New variable.
4613         * f95-lang.c (g95_init): Move frontend initialization here ...
4614         (g95_post_options): ... from here.
4615         * g95.h (g95_index_integer_kind, g95_resolve_index): Declare.
4616         * intrinsic.c (add_functions): Use index kinds.
4617         * iresolve.c: Convert to index_kind where needed.
4618         * resolve.c (g95_resolve_index): Make public, use index_kind.
4619         (resolve_array_ref): Adjust to match.
4620         * trans-array.c: Rename g95_array_index_kind to g95_index_integer_kind.
4621         * trans-stmt.c: Ditto.
4622         * trans-types.c: Ditto.
4623         * trans-types.h (g95_array_index_kind): Remove declaration.
4624         * trans-expr.c (g95_conv_expr_present): Use null_pointer_node.
4626 2003-05-07  Paul Brook  <paul@nowt.org>
4628         * trans-const.c (g95_conv_mpz_to_tree): Typecast constant.
4629         * trans-intrinsic.c (g95_conv_intrinsic_bound): Convert type
4630         of bound indices.
4632 2003-05-07  Paul Brook  <paul@nowt.org>
4634         * trans-array.c (trans_static_array_pointer,
4635         g95_trans_array_constructor_value, g95_conv_array_initializer,
4636         g95_conv_structure): CONSTRUCTOR nodes only have one operand.
4637         (g95_add_loop_ss_code): Convert subscripts to the correct type.
4638         * trans-stmt.c (g95_trans_character_select): Ditto.
4639         * trans-types.c (g95_init_types): Ditto.
4641 2003-05-07  Steven Bosscher  <steven@gcc.gnu.org>
4643         * f95-lang.c (expand_function_body): Use input_line, not lineno.
4644         * trans-decl.c (g95_generate_function_code,
4645         g95_generate_constructors): Likewise.
4646         * trans.c (g95_trans_runtime_check, g95_add_block_to_block,
4647         g95_get_backend_locus, g95_set_backend_locus, g95_trans_code):
4648         Likewise.
4650 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
4651         * trans-types.c (g95_get_derived_type): Fix bug for DERIVED type
4652         with components point to the DERIVED type itself, and two DERIVED
4653         type with components point to each other.
4654         * trans-expr.c (g95_conv_componet_ref): Modified
4656 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
4657         * trans-expr.c (g95_conv_expr): Translate EXPR_NULL into
4658         null_pointer_node.
4659         (g95_trans_pointer_assign): Implement Nullify.
4661 2003-05-01  Paul Brook  <paul@nowt.org>
4663         * trans-array.c (g95_walk_function_expr): Cope with NULL esym.
4664         * trans-decl.c (g95_get_symbol_decl): Don't mangle dummy functions.
4666 2003-05-01  Paul Brook  <paul@nowr.org>
4668         * trans-array.c, trans.c, trans-expr.c, trans-intrinsic.c,
4669         trans-stmt.c: Replace empty_stmt_node with build_empty_stmt () and
4670         IS_EMPTY_STMT.
4672 2003-05-01  Canqun Yang  <canqun@yahoo.com.cn>
4674         * trans-stmt.c (g95_trans_integer_select): Add a parameter to build
4675         CASE_LABEL_EXPR.
4677 2003-04-28  Paul Brook  <paul@nowt.org>
4679         * iresolve.c (g95_resolve_transpose): COMPLEX types are twice as big
4680         as their kind suggests.
4681         (g95_resolve_reshape): Ditto.
4683 2003-04-28  Chun Huang  <compiler@sohu.com>
4685         * trans-expr.c (g95_conv_substring_expr): New function.
4686         (g95_conv_expr): Use it.
4688 2003-04-28  Paul Brook  <paul@nowt.org>
4690         * iresolve.c (g95_resolve_transpose): Make it match the
4691         implementation.
4692         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add TRANSPOSE.
4694 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
4696         * trans-types.c (g95_add_field_to_struct): New function to
4697         add a field to a UNION_TYPE or RECORD_TYPE.
4698         * trans-types.h (g95_add_field_to_struct): Prototype.
4699         (g95_get_derived_type): Use g95_add_field_to_struct to add
4700         components.
4701         * trans-io.c (g95_add_field): Remove.
4702         (ADD_FIELD): Use new g95_add_field_to_struct function.
4703         (ADD_STRING): Likewise.
4704         * trans-stmt.c (g95_trans_select): Likewise.
4705         (g95_add_field): Remove duplicated function.
4707 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
4709         Port implementation for CHARACTER SELECT from Andy's tree.
4710         * trans-stmt.c (g95_trans_character_select): Implement character
4711         select. (g95_add_field): New function.
4712         * trans-decl.c: Declare 'gfor_gndecl_select_string'.
4713         (g95_build_builtin_function_decls): Add 'gfor_fndecl_select_string'.
4714         * g95.h (struct g95_case): Add field 'int n'.
4715         * trans.h: Declare 'gfor_fndecl_select_string'.
4717 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
4719         * bbt.c (duplicate_key, g95_insert_bbt_with_overlap): Remove.
4720         (g95_insert_bbd): Die on duplicates.
4721         * g95.h (g95_insert_bbt_with_overlap): Delete prototype.
4723 2003-04-14  Steven Bosscher  <steven@gcc.gnu.org>
4725         * g95.texi: Require GMP 4.0 -- like we actually
4726         do.  Explain the testsuite and what-goes-where.
4727         Don't use undefined texinfo symbol.  Break very
4728         long line.  Remove finished item from the list
4729         of open projects.
4731 2003-04-11  Canqun Yang  <canqun@yahoo.com.cn>
4733         * trans-stmt.c (g95_evaluate_where_mask): Give mask temporaries
4734         LOGICAL type.
4736 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
4738         * trans-stmt.c (g95_trans_forall): Implement WHERE inside FORALL.
4739         (g95_trans_forall_body): New function.
4741 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
4743         * resolve.c (resove_where): New function.
4744         (resolve_where_shape): New function.
4745         (resolve_code): Add call to 'resolve_where'
4746         * trans-stmt.c (g95_trans_where): Modified.
4747         (g95_trans_where_2): New function.
4748         (g95_trans_where_assign): New function.
4749         (g95_evaluate_where_mask): New function.
4750         (g95_add_to_stmt_list): New function.
4751         (g95_get_temp_expr): New function.
4752         * trans.h (where_stmt_list): New structure.
4754 2003-04-10  Paul Brook  <paul@nowt.org>
4756         * g95spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
4757         (DEFAULT_WORD_SWITCH_TAKES_ARG): Ditto.
4759 2003-04-10  Steven Bosscher  <steven@gcc.gnu.org>
4761         Update after mainline -> tree-ssa-branch merge.
4762         * f95-lang.c (g95_mark_addressable): Update put_var_into_stack
4763         call.
4764         (g95_init): Update for new lang_hooks definition.
4765         (g95_post_options): New langhook.
4766         (LANG_HOOK_POST_OPTIONS): Clear, then define to g95_post_options.
4767         * scanner.c (g95_new_file): Comment update.
4769 2003-04-09  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4771         * g95.h, lang-options.h: Add -Wimplicit-interface.
4772         * options.c (g95_init_options, g95_parse_arg): Set it.
4773         * interface.c (check_intents): Warn about call with implicit
4774         interface.
4775         * resolve.c (resolve_unknown_f, resolve_unknown_s): Call
4776         g95_procedure_use.
4778 2003-04-05  Paul Brook  <paul@nowt.org>
4780         * iresolve.c (g95_resolve_spread): Don't resole based on type.
4781         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_SPREAD.
4783 2003-03-29  Paul Brook  <paul@nowt.org>
4785         * iresolve.c (g95_resolve_pack): Don't bother resolving based on type.
4786         (g95_resolve_unpack): Ditto.
4787         * trans-intrinsic.c (g95_conv_intrinsic_merge): New Function.
4788         (g95_conv_intrinsic_function): Use it.  Remove PACK and UNPACK.
4789         (g95_is_intrinsic_libcall): Add PACK and UNPACK.
4791 2003-03-25  Paul Brook  <paul@nowt.org>
4793         * arith.c (g95_unary_user, g95_user): Remove dead functions.
4794         * arith.h: Ditto.
4795         * array.c (g95_free_array_ref): Ditto.
4796         * g95.h: Ditto.
4797         * symbol.c (g95_use_derived_tree): Ditto.
4798         * intrinsic.c (add_functions): Use simplification for SCALE.
4799         * primary.c (g95_match_rvalue): Test sym, not symtree.
4801 2003-03-25  Paul Brook  <paul@nowt.org>
4803         * trans-decl.c (build_function_decl): Add parameter before it gets
4804         turned into a constant.
4805         * iresolve.c (g95_resolve_eoshift): Resolve to a useful name.
4806         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_EOSHIFT.
4807         * trans-decl.c (g95_create_module_variable): Don't pushdecl constants.
4809 2003-03-22  Paul Brook  <paul@nowt.org>
4811         * trans-array.c (g95_conv_array_initializer): Allow scalar
4812         expressions.
4813         * trans-decl.c (g95_finish_var_decl): Result variables are not
4814         module variables.
4815         * trans-intrinsic.c (g95_conv_intrinsic_transfer): New function.
4816         (g95_conv_intrinsic_function): Use it.
4817         * trans-types.h (g95_type_spec): Remove dead declaration.
4819 2003-03-21  Paul Brook  <paul@nowt.org>
4821         * trans-decl.c (g95_build_function_decl): Mark string parameters.
4823 2003-03-20  Paul Brook  <paul@nowt.org>
4825         * trans-decl.c (g95_build_function_decl): Put character length
4826         parameters at the end of the function declaration.
4827         * trans-expr.c (g95_conv_function_call): Ditto.
4828         * trans-types.c (g95_get_function_type): Ditto.
4830 2003-03-20  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4832         * resolve.c (resolve_formal_arglist): Don't impose intent for
4833         procedure arguments of pure functions.
4834         (resolve_select): Remove redundant assignment.
4836 2003-03-19  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4838         * arith.c (validate_logical), g95.h, options.c (g95_init_options):
4839         Remove option l1.
4840         * g95.h, intrinsic.c(g95_get_intrinsic_sub_symbol): Add const.
4841         * iresolve.c(g95_resolve_cpu_time, g95_resolve_random_number): Add
4842         const.
4843         * lang-options.h: Remove -finline-repack-arrays. Add -fg77-calls.
4844         Order list.
4845         * symbol.c (g95_add_type): Fix typo in comment.
4848 2003-03-16  Paul Brook  <paul@nowt.org>
4850         * dump-parse-tree.c (g95_show_code_node): Print resolved sym name.
4851         * expr.c (g95_build_call): Remove.
4852         * f95-lang.c (puchdecl_top_level): New function.
4853         * g95.h (g95_code): Store resolved symbol, not just the name.
4854         * intrinsic.c (g95_intrinsic_namespace): New global namespace.
4855         (g95_intirinsic_init_1, g95_intrinsic_done_1): Use it.
4856         (g95_get_intrinsic_sub_symbol): New function.
4857         * iresolve.c (g95_resolve_cpu_time): Use it.
4858         (g95_resolve_random_number): Ditto.
4859         * resolve.c: Set code->resolved_sym instead of code->sub_name.
4860         * trans-decl.c (g95_get_extern_function_decl): Give external decls
4861         the correct DECL_CONTEXT.  Add global symbold to the global scope.
4862         * trans-stmt.c (g95_trans_code): Remove hacks now the fronted is
4863         fixed.
4865 2003-03-16  Paul Brook  <paul@nowt.org>
4867         * g95.h (g95_option_t): Add g77_calls. Remove inline_repack_arrays.
4868         * options.c (g95_parse_arg): Ditto.
4869         * module.c (mio_symbol_attribute): Handle the always_explicit bit.
4870         * resolve.c (resolve_formal_arglist): The always_explicit sould be set
4871         for the procedure, not the parameter.
4872         * trans-array.c (g95_trans_g77_array): New function.
4873         (g95_trans_assumed_size): Use it.
4874         (g95_trans_dummy_array_bias): Ditto.
4875         (g95_conv_array_parameter): Handle g77 arrays. Move existing body ...
4876         (g95_conv_expr_descriptor): ... to here.  Update callers.
4877         * trans-decl.c (g95_build_dummy_array_decl): Handle g77 arrays.
4878         (g95_get_symbol_decl): Avoid processing g77 arrays multiple times.
4879         * trans-expr.c (g95_conv_function_call): Handle g77 arrays.
4880         * trans-intrinsic.c (g95_get_symbol_for_expr): Never use g77 arrays.
4881         * trans-types.c (g95_is_nodesc_array): Handle g77 arrays.
4882         (g95_sym_type): Ditto.
4884 2003-03-15  Paul Brook  <paul@nowt.org>
4886         * trans-array.c (g95_walk_elemental_function_args): Don't amputate the
4887         first chain.
4888         * trans-expr.c (g95_conv_function_call): Use the resolved symbol.
4890 2003-03-14  Paul Brook  <paul@nowt.org>
4892         * trans-array.c (g95_array_is_packed): Remove.
4893         (g95_conv_array_base): Correctly handle all descriptorless cases.
4894         (g95_conv_array_stride): Use descriptorless strides.
4895         (g95_trans_dummy_array_bias): Don't always repack the array.
4896         (g95_build_dummy_array_decl): Automatic dummy arrays are only partial
4897         packed.
4898         * trans-types.c (g95_get_nodesc_array_type): Differentiate between
4899         dummy and non-dummy arrays...
4900         (g95_sym_type, g95_get_derived_type): ... like these.
4901         (g95_get_array_type_bounds): Allow discontiguous arrays.
4903 2003-03-12  Paul Brook  <paul@nowt.org>
4905         * array.c (g95_resolve_array_spec): Fix comment.
4906         * g95.h (symbol_attributes): New flag always_explicit.
4907         * resolve.c (resolve_formal_arglist): Set it always_explicit.
4908         * iresolve.c (g95_resolve_lbound, g95_resolve_ubound): Simplify.
4909         * trans-array.c (g95_conv_descriptor_dimension): Remove dead assert.
4910         (g95_trans_array_bounds): Allow assumed shape arrays.
4911         (g95_trans_repack_array): Remove.
4912         (g95_trans_dummy_array_bias): Rewite to use descriptorless arrays.
4913         * trans-decl.c (g95_build_qualified_array): Only ignore absent
4914         bounds for assumed size arrays.
4915         (g95_build_dummy_array_decl): Use descriptorless arrays.
4916         * trans-expr.c (g95_conv_expr_present): Allow descriptorless arrays.
4917         (g95_trans_pointer_assign): Fix typo.
4918         * trans-intrinsic.c (g95_conv_intrinsic_function_args): Remove dead
4919         code.
4920         (g95_conv_intrinsic_bound): Rewrite to handle descriptorless arrays.
4921         * trans-types.c (g95_get_nodesc_array_type): Allow non-packed arrays.
4922         Also modify callers.
4923         * trans-types.h (g95_get_nodesc_array_type): Modify prototype.
4925 2003-03-08  Paul Brook  <paul@nowt.org>
4927         * trans-array.c (g95_walk_elemental_functions): Don't reverse the SS.
4928         (g95_conv_array_ubound): Provide dummy value for assumed size arrays.
4929         * resolve.c (compare_spec_to_ref): Allow full array sections.
4931 2003-03-08  Paul Brook  <paul@nowt.org>
4933         * expr.c (g95_simplify_expr): Also simplify array index and
4934         substring expressions.
4935         * resolve.c (compare_spec_to_ref): Check for assumed size bounds.
4936         * trans-array.c (g95_trans_array_bounds): New function.
4937         (g95_trans_auto_array_allocation): Use it.
4938         (g95_trans_assumed_size): Rewrite.
4939         * trans-decl.c (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
4940         (gfor_fndecl_repack): Remove.
4941         (g95_build_qualified_array): Handle absent upper bounds.
4942         (g95_build_dummy_array_decl): Assumed shape arrays are descriptorless.
4943         (g95_get_symbol_decl): Update.
4944         (g95_build_intrinsic_function_decls): Initialize new decls.
4945         * trans.h (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
4946         (gfor_fndecl_repack): Remove.
4947         * trans-io.c (g95_build_io_library_fndecls): Correct prototypes.
4948         * trans-types.c: (g95_build_array_type): Merge duplicated code..
4949         (g95_get_nodesc_array_type): Handle absent bounds.
4950         * trans-types.h (g95_get_nodesc_array_type): Declare.
4952 2003-03-04  Paul Brook  <paul@nowt.org>
4954         * f95-lang.c (DEF_FUNCTION_TYPE_VAR_3): Define before including
4955         builtin-types.def.
4957 2003-03-02  Paul Brook  <paul@nowt.org>
4959         * options.c (g95_init_options): Drfault to 1.
4960         (g95_pasrse_arg): Add -frepack-arrays, use strcmp.
4961         * trans-array.c (g95_conv_array_data, g95_conv_array_base,
4962         g95_conv_array_stride,g95_conv_array_lbound, g95_conv_array_ubound):
4963         Handle non-constant size automatic arrays.
4964         (g95_conv_section_upper_bound, g95_conv_section_startstride): Use
4965         generic bound functions.
4966         (g95_trans_auto_array_allocation): Don't create a descriptor.
4967         (g95_trans_assumed_size): New function (broken).
4968         (g95_trans_dummy_array_bias): Remove unused var.
4969         * trans-array.h (g95_trans_assumed_size): Declare.
4970         * trans-decl.c (create_index_var): New fuction.
4971         (g95_build_qualified_array): New function.
4972         (g95_get_symbol_decl): Use it.
4973         (g95_trans_deferred_vars): Handle assumed shape seperately.
4974         * trans-types.c (get_element_type): Handle heap allocated arrays.
4975         (g95_is_nodesc_array): Include non-const size arrays.
4976         (g95_get_nodesc_array_type): Ditto.
4978 2003-02-23  Paul Brook  <paul@nowt.org>
4980         * trans-array.c (g95_array_init_size): Should use stride, not size of
4981         last dimension.
4983 2003-02-18  Paul Brook  <paul@nowt.org>
4985         * trans-expr.c (g95_trans_arrayfunc_assign): Nove elemental check
4986         after intrinsic function check.
4988 2003-02-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4990         * io.c (match_io): Fix missing return value and remove useless
4991         assignment.
4992         * match.c (g95_match): Remove useless assignment.
4993         * module.c (parse_string):  Remove useless post increment.
4994         * simplify.c (g95_simplify_verify): Remove useless assignment.
4996 2003-02-15  Paul Brook  <paul@nowt.org>
4998         * expr.c (restricted_intrinsic): Handle bad values gracefully.
4999         * g95.h (symbol_attribute): Add referenced member.
5000         (g95_symbol): Add dummy_order member.
5001         (g95_set_sym_referenced): Declare.
5002         * match.c (g95_match_assignment, g95_match_call): Use it
5003         * primary.c (match_actual_arg, g95_match_rvalue,
5004         g95_match_variable): Ditto.
5005         * symbol.c (next_dummy_order): New variable.
5006         (g95_set_sym_referenced): New function.
5007         (check_done): New function.
5008         (g95_add_*): Use it.
5009         * trans-decl.c: Make formatting conform to GCC standards.
5010         (g95_defer_symbol_init): Add dummy variables in the right order.
5011         (g95_get_symbol_decl): Only accept referenced variables.
5012         (g95_create_module_variable): Module variables are always required.
5013         (generatr_local_decls): New function.
5014         (generate_local_vars): New function.
5015         (g95_generate_function_code): Use it.
5017 2003-02-13  Paul Brook  <paul@nowt.org>
5019         * trans-decl.c (g95_conv_struct_cons): Remove.
5020         (g95_get_symbol_decl): Use g95_conv_expr for structure initializers.
5021         * trans-expr.c (g95_conv_structure): New function.
5022         (g95_conv_expr): Use it.
5024 2003-02-09  Paul Brook  <paul@nowt.org>
5026         * trans-array.c (g95_array_init_size): Don't evaluate the linit
5027         expressions multiple times.
5028         (g95_trans_auto_arry_allocation): Use pointer not tmp.
5030 2003-02-08  Paul Brook  <paul@nowt.org>
5032         * module.c (mio_symtree_ref): Declare as static.
5033         (mio_expr): Remove dead code.
5034         (read_module): Set the symtree link for fixups.
5035         * trans-intrinsic.c (g95_conv_intrinsic_round): Rename...
5036         (build_round_expr): ... to this.
5037         (g95_conv_intrinsic_aint): New function.
5038         (g95_conv_intrinsic_function): Use it.
5040 2003-02-08  Paul Brook  <paul@nowt.org>
5042         * trans-array.c (g95_trans_array_constructor_value): Use the acutal
5043         offset after modificaton, not the increment expression.
5044         * dependency.c: Kill excess whitespace.
5046 2003-02-07  Sanjiv Gupta  <sanjivg@noida.hcltech.com>
5048         * dependency.h: Remove some function declarations.
5049         * dependency.c (get_no_of_elements): Change this function not to
5050         return int.
5051         * other: Add comments for all modified functions.
5053 2003-02-06  Paul Brook  <paul@nowt.org>
5055         * g95spec.c (lang_specific_functions): Fix initializer warning.
5056         * dump-parse-tree.c (g95_show_expr): Use typespec instead of symtree
5057         for structure type names.
5058         * trans-decl.c (g95_cons_structure_cons): New function.
5059         (g95_get_symbol_decl): Use it.
5060         * trans-expr.c (g95_conv_component_ref): Remove duplicate pointer
5061         referencing code.
5063 2003-02-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
5065         * resolve.c (compare_cases): Add const to casts.
5067 2003-01-30  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
5069         * g95.h (g95_check_f): Change a1 to f1m.
5070         * intrinsic.c (add_sym_1m, check_specific,
5071         g95_intrinsic_func_interface): Use it.
5073         * module.c (init_pi_tree): Remove useless cast.
5074         (fp2): Fix argument type.
5076         * parse.c (parse_select_block): Add comment.
5078 2003-02-05  Toon Moene  <toon@moene.indiv.nluug.nl>
5080         * lang-options.h: Fix warning involving C90 concatenated
5081         strings.
5083 2003-02-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5084             Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
5086         * io.c (format_asterisk): Complete initializer to kill warning.
5087         * arith.c (DEF_G95_INTEGER_KIND, DEF_G95_LOGICAL_KIND,
5088         DEF_G95_REAL_KIND, MPZ_NULL, MPF_NULL): New #defines.
5089         (g95_integer_kinds, g95_logical_kinds, g95_real_kinds): Use the
5090         new defines to complete initializers.  Kills all warnings.
5092         * Make-lang.in: Comment cleanup.
5094 2003-02-05  Paul Brook  <paul@nowt.org>
5096         * array.c (g95_free_constructor): Handle NULL expressions.
5097         * resolve.c (resolve_structure_cons): Ditto.
5098         * decl.c (g95_match_null): New Function.
5099         (variable_decl): Use it.
5100         * module.c (mio_expr): Don't bother saving symtree for EXPR_STRUCTURE.
5101         * primary.c (g95_match_runtime): Don't use symtree for EXPR_STRUCTURE.
5102         * trans-types.c (g95_set_decl_attributes): Remove empty function.
5104 2003-02-05  Paul Brook  <paul@nowt.org>
5106         * trans.h (build1_v): New macro.
5107         (build_v): Remove pointless and incorrect prototype.
5108         * various: Use build1_v for GOTO_EXPR and LABEL_EXPRs.
5109         * f95-lang.c (g95_init_builtin_decls): DEF_BUILTIN takes 10 args.
5111 2003-02-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5113         * Make-lang.in (F95_OBJS): Remove one more dead file.
5115 2003-02-01  Paul Brook  <paul@nowt.org>
5117         * lang-specs.h: Don't pass -ffixed-form to the linker.
5118         * trans-decl.c (g95_generate_function_code): Clear saved decl chain.
5120 2003-02-01  Paul Brook  <paul@nowt.org>
5122         * Make-lang.in (F95_OBJS): Remove dead files.
5123         * trans-array.c (g95_array_init_size): Do the right thing when
5124         ubound=NULL.
5125         * trans-decl.c (g95_generate_function_code): Initialize deffered
5126         symbol list before translating contained subroutines.
5127         * trans-expr.c (g95_conv_expr, g95_conv_expr_reference): Substitute
5128         scalar invariant values here...
5129         (g95_conv_variable, g95_conv_function_call): ... instead of here ...
5130         * trans-intrinsic.c (g95_conv_intrinsic_function_args): .. and here.
5132 2003-01-29  Paul Brook  <paul@nowt.org>
5134         * trans-array.c (g95_add_loop_code): Put pre code in the right block.
5135         (g95_walk_elemental_function_args): Reverse chains before adding.
5136         (g95_reverse_ss): Move about a bit.
5137         * trans-expr.c (g95_conv_function_call): Handle scalar intrinsic
5138         function arguments.
5140 2003-01-28  Paul Brook  <paul@nowt.org>
5142         * intrinsic.c (resolve_intrinsic): Use correct union member.
5143         * trans-array.c (g95_trans_dummy_array_bias): Don't touch absent
5144         parameters.
5145         * trans-decl.c (g95_get_symbol_decl): Don't translate initializers for
5146         use associated variables.
5147         * trans-intrinsic.c (g95_conv_intrinsic_present): Move body ...
5148         * trans-expr.c (g95_conv_expr_present): ... to here.
5149         * trans.h: Declare it.
5150         * trans-types.c (g95_sym_type): Assume subroutine if not specified.
5152 2003-01-28  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
5154         * array.c (expand_iterator): Suppress useless assignment.
5155         * decl.c (match_char_spec): Ditto.
5156         * io.c (match_io_iterator): Ditto.
5157         * primary.c (match_real_constant): Ditto.
5158         * interface.c (fold_unary, g95_free_interface, g95_extend_expr):
5159         Ditto.  Also, use g95_intrinsic_op not int for intrinsic operators.
5160         * matchexp.c (match_add_operand, match_level_5): Likewise.
5161         * module.c (parse_atom, find_enum): Likewise.
5162         * resolve.c: move #include <string.h>
5163         (resolve_select): Fix serious typo.
5165 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.n>
5167         * Make-lang.in: Don't build with broken tree-ssa-pre.
5169 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5171         * resolve.c (resolve_index): Add a TODO.
5172         * symbol.c: Remove useless "#include <ctype.h>".
5174 2003-01-27  Paul Brook  <paul@nowt.org>
5176         * check.c (check_rest): Allow different type kinds as an extension.
5177         * g95.h (g95_resolve_f): Add f1m.
5178         * intrinsic.c (add_sym_1m, resolve_intrinsic): Use it.
5179         * intrinsic.h: Chenge prototypes for MIN and MAX.
5180         * iresolve.c (g95_resolve_minmax): New function.
5181         (g95_resolve_min, g95_resolve_max): Use it.
5182         * trans-intrinsic.c (g95_trans_intrinsic_minmax): Only evaluate
5183         arguments once.
5184         (g95_conv_intrinsic_present): Fix logic.
5186 2003-01-27  Steven Bossche  <s.bosscher@student.tudelft.nl>
5188         * g95.h (g95_case): Don't be a tree, be a double linked list.
5189         * match.c (match_case_selector): Remove redundant semantics check.
5190         Clean up a few goto's to make it a tiny little bit faster.
5191         * resolve.c (case_tree): Die.
5192         (compare_cases): Accept and compare unbounded cases too.
5193         (check_case_overlap): Don't build a tree.  Instead, merge-sort the
5194         whole list of g95_cases passed from resolve_select.
5195         (sane_logical_select): Die.
5196         (check_case_expr): Return FAILURE if a CASE label is of the wrong
5197         type kind.
5198         (resolve_select): Fixup case expression for computed GOTOs, put it
5199         in expr, not expr2, for easier handing in the parse tree dumper and
5200         the code generator.  Rewrite the rest of the function: Kill
5201         unreachable case labels and unreachable case blocks.
5202         * dump-parse-tree.c (g95_show_code_node): Always dump expr for
5203         an EXEC_SELECT, not case2 anymore.
5204         * trans-const.c (g95_conv_constant_to_tree): New function.
5205         (g95_conv_constant): Use it.
5206         * trans-const.h: Declare prototype for the new function.
5207         * trans-stmt.c (g95_trans_integer_select, g95_trans_logical_select,
5208         g95_trans_character_select): New static functions.
5209         (g95_trans_select): Rewrite.
5211 2003-01-26  Paul Brook  <paul@nowt.org>
5213         * intrinsic.c (add_fnctions): Properly add dreal.
5214         * trans-intrinsic.c (g95_conv_intrinsic_present): New function.
5215         (g95_conv_intrinsic_function): Use it.
5216         * trans-io.c (build_dt): Abort on internal files (unimplemented).
5218 2003-01-26  Paul Brook  <paul@nowt.org>
5220         Widespread changes to the handling of symbols in expressions.  These
5221         are now linked via g95_symtree nodes.
5222         * parse.c (g95_fixup_sibling symbols): New function.
5223         (parse_contained): Use it.
5224         * g95.h (symbol_attribute): Add contained.  Indicates a symbol is a
5225         contained procedure that has bee correctly fixed up.
5226         (g95_code, g95_expr): Point to a g95_symtree, not a g95_symbol.
5228 2003-01-24  Paul Brook  <paul@nowt.org>
5230         * trans-array.c (g95_walk_expr): Function result attributes are in
5231         sym->result.
5232         * trans-expr.c (g95_conv_function_call,
5233         g95_trans_arrayfunc_assign): Ditto.
5234         * trans-decl.c (g95_get_symbol_for_expr): Set sym->result.
5236 2003-01-23  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5238         * expr.c (check_restricted): Fix error message.
5239         * symbol.c (free_st_labels): Plug memleak.
5241 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5243         * arith.c (reduce_unary, reduce_binary_ac, reduce_binary_ca,
5244         reduce_binary_aa, reduce_binary, eval_intrinsic,
5245         eval_intrinsic_f2): Use typesafe prototypes for eval functions.
5246         * g95.h (g95_check_f, g95_simplify_f, g95_resolve_f): New unions
5247         for typesafe intrinsics helper functions.
5248         (g95_intrinsic_sym): Use them.
5249         * intrinsic.c (do_check, add_sym, add_sym_0, add_sym_1,
5250         add_sym_1s, add_sym_1m, add_sym_2, add_sym_3, add_sym_4,
5251         add_sym_5, add_conv, resolve_intrinsic, do_simplify,
5252         check_specific, g95_intrinsic_func_interface,
5253         g95_intrinsic_sub_interface): Adjust all calls to intrinsics
5254         helper functions.
5255         * trans-decl.c (g95_get_extern_function_decl): Likewise.
5256         * Make-lang.in: Don't disable warnings for strict prototypes
5257         any longer, everything is typesafe now.
5259 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5261         * bbt.c (duplicate_node): Make static.
5262         * module.c (module_name): Make static.
5263         * scanner.c (include_dirs): Make static.
5265 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5267         Hard coded _gfor_'s should not show up anymore.
5268         * g95.h (PREFIX): New macro.
5269         * iresolve.c (g95_resolve_cpu_time): Use PREFIX, not
5270         hard-coded "_gfor".
5271         (g95_resolve_random_number): Likewise.
5272         * trans-decl.c (g95_build_intrinsic_function_decls): Likewise.
5273         * trans-io.c: Remove 'prefix' macro.  Replace all uses with
5274         the new PREFIX macro from g95.h.
5276 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5278         The troubles of forking... Andy implemented this just now too.
5279         Let's stick to that and keep the trees close.
5280         * g95.h (g95_st_label): 'format' member is now a g95_expr.
5281         * io.c: Revert previous changes.
5282         (g95_match_format): Match the format string as a character
5283         literal expression.
5284         * match.h (g95_statement_label): Declare external.
5285         * parse.c: Revert previous changes.
5286         * symbol.c (g95_free_st_label): Free a g95_expr instead
5287         if a 'char *'.
5288         * trans-io.c: Revert previous changes.
5289         (build_dt): Use set_string to set the format string.
5291 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5293         * io.c (format_string): Make non-static.
5294         (g95_match_format): Remember the format string.
5295         (terminate_io): Add I/O termination for empty I/O lists.
5296         * match.h: Declare external format_string.
5297         * parse.c (check_statement_label): Attack the format string
5298         to a format label for FORMAT statements.
5299         * trans-io.c (g95_add_field): Define prefix macro.  Replace
5300         all uses of PREFIX define with a use of this macro.
5301         (build_dt): Implement formatted I/O for format labels.
5303 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5305         * lang-options.h: Kill "-std=F".
5306         * options.c: Remove unimplemented "-std=F".  Modify
5307         web address.
5308         * misc.c (g95_terminal_width): New function.
5309         * error.c (g95_error_init_1): Use g95_terminal_width.
5310         * g95.h: Add prototype for g95_terminal_width, remove
5311         fmode flag.
5313 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5315         * Make-lang.in: Fix typo.
5317 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5319         * g95.h (struct g95_case): Remove unused cruft, new member
5320         'where' to keep track of the locus of the default case.
5321         * match.c (g95_match_case): Add locus to the current case.
5322         (match_case_selector): Likewise.
5323         * parse.c (parse_select_block): Move semantics check for
5324         multiple DEFAULT cases out of here to...
5325         * resolve.c (check_case_overlap): ...here.  Return sooner
5326         when possible.
5327         (check_case_expr): Take two g95_cases now, use to sure the
5328         expression kinds are the same.
5329         (resolve_select): Cleanup.
5331 2003-01-18  Paul Brook  <paul@nowt.org>
5333         * trans-io.c: Fix typos in ported IO work (set_fla[tg]).
5334         * trans-decl.c (g95_set_symbol_decl): Handle non-array result
5335         variables.
5336         (g95_get_extern_function_decl): Put decls in the correct context.
5338 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5340         * trans-io.c: Port changes from Andy to set ERR flag.
5342 2003-01-17  Paul Brook  <paul@nowt.org>
5344         * trans-array.c: Add various comments.
5345         (g95_ss_terminator): Declare as const.
5346         (g95_walk_expr): Remove first parameter and update all callers.
5347         (g95_walk_op_expr): Initialize scalar SS properly.
5348         * trans-array.h (g95_walk_expr): Update prototype.
5349         * trans-expr.c: Update for new g95_walk_expr.
5350         * trans-intrinsic.c: Ditto.
5351         * trans-io.c: Ditto.
5352         * trans.h: Various comments for SS chains.
5354 2003-01-17  Paul Brook  <paul@nowt.org>
5356         * intrinsic.h (g95_generic_isym_id): Add G95_ISYM_S?_KIND, SPACING
5357         and RRSPACING.
5358         * intrinsic.c (add_functions): Use them.
5359         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto.
5360         * trans-expr.c (g95_conv_expr_lhs): Abort on impossible error.
5362 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5364         Fallout of a small merge conflict:
5365         * intrinsic.c: Un-revert lost patch (G95_ISYM_SCALE).
5367 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5369         * initrinsic.c: New add_sym_* functions for strong typing.
5370         (add_conv): Make prototype strict.
5371         * dump-parse-tree.c, dependency.c: Include config.h
5372         * resolve.c, trans-io.c: Fix typos.
5374 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5376         * dump-parse-tree.c (g95_show_code_node): Show the
5377         condition for a computed GOTO that was transformed
5378         to a SELECT CASE construct.
5379         * resolve.c (check_case_overlap): Revert previous switch
5380         to treaps, it was too slow and didn't catch all trouble.
5381         (resolve_symbol): Be more flexible about module procedures.
5382         * symbol.c (check_conflict): Point to relevant section in
5383         the standard for dubious conflict.  Allow procedure
5384         dummy arguments to be optional again.
5385         * trans-io (add_field): Rename to g95_add_field.  Change
5386         all callers.
5387         * trans-stmt (trans_select): Handle unbounded cases for
5388         integer SELECT CASE constructs.  Fix/add more comment.
5390 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5392         * g95.h: Uses GCC's function attribute macros.
5393         * error.c, module.c, parse.c, g95.h: More function attributes.
5395 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5396         Forgot a file...
5397         * trans-decl.c (get_label_decl): Use TREE_LINENO instead
5398         of DECL_SOURCE_LINE, and TREE_FILENAME instead of
5399         DECL_SOURCE_FILE.
5401 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5403         * f95-lang.c (pushdecl): Use TREE_LINENO instead of
5404         DECL_SOURCE_LINE.
5405         * trans.c (g95_trans_code): Use annotate_all_with_file_line
5406         instead of nowdead wrap_all_with_wfl.
5408 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5410         * parse.c (g95_parse_file): In verbose mode, dump the parse tree
5411         before generating code, so we can still see it even if the code
5412         generation phase dies.
5414 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5416         * decl.c (build_sym): Split out initialization expression parts...
5417         (add_init_expr_to_sym): ...to here.
5418         (variable_decl): Add the symbol following an attribute list to the
5419         symbol tree before parsing the optional initialization expression
5420         if the symbol is not of a derived type.
5421         * primary.c (g95_match_rvalue): Don't assume a symbol always has
5422         a value if it is a PARAMETER.
5424 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5426         * misc.c: Don't #include <mcheck.h>
5427         * module.c: Ditto.  Kill uses of mtrace, muntrace.  If there
5428         ever was a glibc bug, then either this was never reported to
5429         glibc people, or it has been fixed for so long that there's
5430         no information you can find about it, anywhere.
5432 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5434         Fix warnings:
5435         * module.c (attr_bits, bt_types, array_spec_types):
5436         Switch 'const' and 'static'.
5437         * iresolve.c (g95_resolve_reshape): Make __resolve0 non-'const'.
5439         GNU'ify source code:
5440         * trans-io.c: Numerous fixes, one fixed warning and a few
5441         TODO markers so that we don't forget about them.
5443 2003-01-13  Paul Brook  <paul@nowt.org>
5445         * intrinsic.c (add_functions): Add G95_ISYM_SCALE.
5446         * intrinsic.h (g95_generic_isym_id): Remove bogus G95_ISYM_ANINIT.
5447         Add G95_ISYM_SCALE.
5448         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto
5449         * match.c (g95_match_stop): Fix dumb == -> != error.
5451 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5453         * dump-parse-tree.c (show_indent): Add line breaks.  This
5454         whole dumping process needs cleanups.
5455         * f95-lang.c (g95_mark_addressable): Fix prototype to match
5456         the langhook.  Fix 'return's accordingly.
5457         * g95-support.h: Adjust prototype.
5458         * g95.h: Add 'no_backend' member to 'g95_option_t' struct.
5459         * lang-options.h: Add '-fsyntax-only'.
5460         * options.c (g95_init_options): Init 'no_backend'.
5461         (g95_parse_arg): Deal with '-fsyntax-only'.
5462         * parse.c (g95_parse_file): Do not generate code if 'no_backend'
5463         is set.
5465 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5466         Patch from Arnaud
5467         * resolve.c (resolve_symbol): Assumed shape arrays must be dummy
5468         arguments.  Also make sure that if a symbol is marked INTRINSIC,
5469         an intrinsic with the symbol's name actually exists.
5470         (check_conflict): Make EXTERNAL and DIMENSION attributes conflict.
5471         Do not allow PROCEDURES to have the SAVE, POINTER, TARGET,
5472         ALLOCATABLE, RESULT, IN_NAMESPACE, OPTIONAL or FUNCTION attribute.
5474 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5476         * resolve.c (resolve_contained_functions): Fix condition, don't
5477         throw internal_error if a child namespace has no name.  Apparently
5478         this can be the case?
5480 2003-01-11  Paul Brook  <paul@nowt.org>
5482         Port changes from Andy's tree:
5483         * g95.h (g95_code): Add stop_code.
5484         * match.c (g95_match_stop): Detter syntax checking.
5485         * resolve.c (resolve_generic_f0): Return match type.
5486         (resolve_generic_f): Remove dead/duplicated code.
5487         (resolve_specific_f): Ditto.
5488         * dump-parse-tree.c (g95_show_code_node): Handle new STOP format.
5489         * trans-decl.c (gfor_fndel_stop_*): New fndecl nodes.
5490         * trans-stmt.c (g95_trans_stop): Handle new STOP format.
5492 2003-01-11  Paul Brook  <paul@nowt.org>
5494         * trans-array.c: Various documentation/comment changes.
5495         * trans-stmt.c: Ditto.
5498 2003-01-10  Paul Brook  <paul@nowt.org>
5500         * options.c/h: Add -fdump-parse-tree as alias of -v.
5502 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5504         * dump-parse-tree.c (g95_show_namespace): Fixed another
5505         typo.  Sorry, it's Friday...
5507 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5509         Spotted by Tobi:
5510         * trans-array.c, trans-array.h, trans.c, trans-const.c,
5511         trans-const.h, trans-decl.c, trans-expr.c, trans.h
5512         trans-intrinsic.c, trans-io.c, trans-stmt.c, trans-stmt.h
5513         trans-types.c: Fix bogus copyright years, add 2003.
5514         * trans-types.h: Give copyright header.
5516 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5518         * dump-parse-tree.c (g95_show_namespace): Fixed typo.
5519         * expr.c, options.c, scanner.c: Add some more 'const' markers.
5520         * intrinsic.c: Some constant strings moved to read-only memory.
5521         * io.c (format_asterisk): Move to...
5522         * g95.h: ...here.
5524 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5526         * dump-parse-tree.c (g95_show_namespace): Dump implicit
5527         types for ranges instead of per-letter.  Indent the
5528         'CONTAINS' just like everything else.
5529         * resolve.c (resolve_contained_functions): Clarify comment.
5530         Explain non-obvious conditional expression.  Improve
5531         diagnostics if tyoe cannot be resolved.
5532         Port semi-fix from Andy's tree:
5533         (was_declared): Move up before first use.
5534         (generic_sym, specific_sym): New functions.  Code moved
5535         out if procedure_kind.
5536         (procedure_kind): Simplify using new functions.
5537         (resolve_generic_f): Make sure the functions we find in
5538         a parent namespace is generic.
5539         (resolve_specific_f): Ditto for specific functions.
5541 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5543         * trans-stmt.c, trans.c: Fix some code style issues. Add
5544         some more comment (but still not enough!).
5546 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5548         * symbol.c (flavors, procedures, intents, acces_types,
5549         access_types, ifsrc_types): Make const.
5550         * misc.c (g95_string2code): Make 'm' param 'const'.
5551         * module.c (find_enum, write_atom, mio_name): Make
5552         'm' param 'const'.
5553         (attr_bits, bt_types, array_spec_types, array_ref_types,
5554         ref_types, expr_types): Make const.
5555         * g95.h: Adjust external decls.
5557 2003-01-09  Paul Brook  <paul@nowt.org>
5559         * Testsuite: Add a load of new cases.
5561 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5563         * Make-file.in: Add dependency on back end header files;
5564         a parallel build should work now.
5565         * f95-lang-c (lang_identifier): Remove bogus comment.
5566         (g95_be_parse_file): Fix prototype.
5567         (g95_init): Make static.
5568         (g95_finish): Make static.
5569         * error.c (g95_syntax_error): Kill. Make define in...
5570         * g95.h (g95_syntax_error): Define.
5571         (g95.options): Make 'source' member 'const'.
5572         * interface.c (g95_match_interface): Explain
5573         hard-to-read condition.
5574         (g95_match_end_interface): Ditto.
5575         * trans_const.c (g95_build_string_const): Make 's' parameter
5576         'const'.
5577         * trans_const.h: Adjust protoype accordingly.
5578         * trans-decl.c: Include tree-dump.h
5579         (g95_generate_function_code): Build fixes for recent changes
5580         in the tree-ssa branch.
5582 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5584         * format.c: Kill, move code from here...
5585         * io.c: ...to here.
5586         * Make-lang.in: Adjust.
5587         * MANIFEST: Ditto.
5588         * match.h: Ditto.
5589         * BUGS: Mention where to submit bugs.  Move old content...
5590         * TODO: ...to here.  New file.
5592 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5593         Fix most warnings, and suppress the ones we can't fix for now.
5594         * Make-lang.in: Suppress warnings about bad proto's in g95.h,
5595         these warnings just clutter the screen and there's not much
5596         we can do about them for now anyway.
5597         * check.c, iresolve.c: Mark unused function parameters.
5598         * dump-parse-tree.c (g95_show_array_spec): Punt on AS_UNKNOWN,
5599         they should be resolved before they get here.
5600         * error.c: Remove unused FILE *status_out.
5601         * f95-lang.c (g95_init): Remove bogus cast.
5602         * Many files: Make things 'const' where required.
5603         * g95.h: Fix prototypes for all modified functions above.
5604         (g95_options): Remove 'object' member.
5606 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5608         * Make-file.in: Cleanup bogus targets.  Add more comment.
5609         * lang-options.h: New option '-w'.
5610         * g95.h: add no_options field to struct g95_options.
5611         * options.c (g95_init_options): Default no_warnings to off.
5612         (g95_parse_arg): Recognise the '-w' switch and its alias,
5613         '-fno-warnings'.
5614         * error.c (g95_warning, g95_warning_now): Don't emit warning if
5615         no_warning option is set.
5616         * iresolve.c (g95_resolve_shape): Fix warning.
5618 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5620         * primary.c (g95_next_string_char): Rename next_string_char, and
5621         make static.  Adjust callers accordingly.
5622         * resolve.c (resolve_generic_f0): Return try, not match.  Adjust
5623         callers accordingly.
5624         * g95.h: Split out all g95_match* functions to...
5625         * match.h: ...here. New file.
5626         * array.c, decl.c, expr.c, format.c, interface.c, io.c, match.c,
5627         matchexp.c, module.c, parse.c, primary.c: Inlcude match.h
5629 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5631         * symbol.c (g95_clear_new_implicit, g95_add_new_implicit_range,
5632         g95_merge_new_implicit): New functions.
5633         (g95_match_implicit_none, g95_match_implicit): Move from here...
5634         * match.c (g95_match_implicit_none, g95_match_implicit): ... to here.
5635         Modify to use the new functions in symbol.c.
5636         * g95.h: Add and move prototypes.
5638 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5640         * bbt.c (insert): Use a typedef'ed compare_fn prototype for the
5641         node compare function.
5642         (g95_insert_bbt): Likewise.
5643         (g95_insert_bbt_with_overlap): Likewise.
5644         (g95_delete_bbt): Likewise.
5645         (delete_treap): Likewise. Also fix a potential bug when calling it.
5646         * module.c (compare_pointers): Change proto to compare_fn.
5647         (compare_integers): Likewise.
5648         (compare_true_names): Likewise.
5649         (find_true_name): Adjust call to compare_true_names to match proto.
5650         (require_atom, write_atom, mio_name): Fix 'const' warnings.
5651         (init_pi_tree): Make compare a compare_fn instead of (int *).
5652         * resolve.c (compare_cases): Change proto to compare_fn.
5653         * symbol.c (g95_compare_symtree): Change proto to compare_fn, make
5654         it static, and rename to compare_symtree.
5655         (delete_symtree, g95_undo_symbols, g95_new_symtree): Use renamed
5656         function.
5657         * g95.h: Kill g95_compare_symtree prototype. Adjust prototypes
5658         of g95_insert_bbt, g95_insert_bbt_with_overlap, and g95_delete_bbt.
5660 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5661         * Make-lang.in: Fix spaces/tabs issues from previous patch.
5662         * patch.options: Blow away Paul's checkin mistake :-)
5663         * io.c (terminate_io): Fix memory leak (Arnaud).
5665 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
5667         * Make-lang.in: Teach about building DVI, info manual.
5668         * g95.texi: New file.
5670 2003-01-02  Paul Brook  <paul@nowt.org>
5672         * trans-array.c (g95_reverse_ss): Make static and don't use.
5673         (g95_conv_ss_descriptor): Don't use g95_loopinfo
5674         (g95_conv_array_parameters): Modify for pointer assignments.
5675         (g95_walk_subexpr): New function.
5676         (g95_walk_expr*): Use it.
5677         * trans-array.h (g95_reverse_ss): Remove prototype.
5678         * trans-expr.c (g95_trans_pointer_assign): Implement.
5679         (Many): Set se.want_pointer before calling g95_conv_array_parameter.
5680         * trans-intrinsic.c: Sync with scalarizer changes.
5681         * trans-io.c: Ditto.
5683 2002-12-29  Paul Brook  <paul@nowt.org>
5685         * trans-array.c: Document calling convention for arrays.
5687 2002-12-19  Paul Brook  <paul@nowt.org>
5689         * trans-intrinsic.c (g95_conv_intrsinsic_function): Remove incorrect
5690         assertion. Remove intrinsic subroutine G95_ISYM_* cases. Always pass
5691         optional parameters for some intrinsics.
5692         (g95_is_intrinsic_libcall): Add G95_ISYM_RESHAPE.
5693         * trans-expr.c (g95_conv_function_call): Pass NULL for absent
5694         optional parameters.
5695         * trans.h (g95_se): Add ignore_optional flag.
5697 2002-12-15  Paul Brook  <paul@nowt.org>
5699         * trans-array.c (g95_conv_array_parameter): Fix partial rank sections.
5700         * trans-decl.c (g95_generate_function_code): Use TDI_original.
5702 2002-12-14  Paul Brook  <paul@nowt.org>
5704         * trans-stmt.c (g95_trans_call): Use resolved symbol name.
5706 2002-12-12  Paul Brook  <paul@nowt.org>
5708         * trans-array.c (g95_trans_array_constructor_subarray): Fully
5709         initialize the scalarizer.
5710         (various): Update to new format of g95_expr->value.constructor.
5712 2002-12-08  Paul Brook  <paul@nowt.org>
5714         * trans-array.c (g95_put_offset_into_var): New function.
5715         (g95_trans_array_constructor_subarray): New function.
5716         (g95_trans_array_constructor_value): Use it.
5717         (g95_array_cons_size): Don't abort() on array components.
5719 2002-12-08  Paul Brook  <paul@nowt.org>
5721         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove tree-dchain.o.
5722         * support.c: Update #includes.
5723         (statement_code_p, c_size_in_bytes, s_size_type_node): Remove.
5724         * trans-array.c: Update #includes.
5725         * trans.c: Ditto.
5726         * trans-const.c: Ditto.
5727         * trans-io.c: Ditto.
5728         * trans-types.c: Ditto.
5729         (g95_init_types): Set size_type_node.
5730         * trans-decl.c: Update #includes.
5731         (gfor_fndecl_adjust{l,r}): Declare and initialize.
5732         * trans-stmt.c: Update #includes.
5733         (g95_trans_do_while): Generate LABEL_EXPR, not GOTO_EXPR.
5734         (g95_trans_select): Fix check for unbounded ranges.
5735         * trans-expr.c: Update #includes.
5736         (g95_conv_string_tmp): New function.
5737         (g95_conv_concat_op): Use it.
5738         * trans.h (g95_conv_string_tmp, gfor_fndecl_adjust{l,r}): Declare.
5739         * Trans-intrisic.c: Update #includes.
5740         (g95_conv_intrinsic_strcmp): New function.
5741         (g95_conv_intrinsic_adjust): Ditto.
5742         (g95_conv_intrinsic_function: Use them.
5744 2002-11-30  Paul Brook  <paul@nowt.org>
5746         * trans-array.c (g95_walk_function_expr): Handle non-array return by
5747         reference.
5748         * trans-dec.c (g95_build_function_decl): Handle character return
5749         parammeters.
5750         (g95_get_fake_result_decl): Ditto.
5751         (g95_trans_deferred_vars): Ditto.
5752         * trans-expr.c (g95_conv_function_call): Ditto.
5753         (g95_trans_arrayfunc_assign) Limit to array valued functions.
5754         * trans-intrinsic.c (g95_conv_intrinsic_char): New function.
5755         (g95_conv_intrinsic_function): Use it.
5756         * trans-types.c (g95_sym_type): Handle functions returning strings.
5757         (g95_return_by_reference): Ditto.
5758         (g95_get_function_type): Ditto.
5760 2002-11-18  Paul Brook  <paul@nowt.org>
5762         * trans-stmt.c (g95_trans_if): Fix IF statements when the condition
5763         requires a temporary.
5764         (g95_trans_select): Handle computed gotos.
5765         * trans-types.c (g95_build_array_type): Warn about non-functional
5766         assumed shape arrays.
5767         * trans-expr.c (g95_trans_scalar_assign): Correctly handle post
5768         blocks.
5769         * trans-intrinsic.c (g95_conv_intrinsic_round): New function.
5770         (g95_conv_intrinsic_int): New function.
5771         (g95_conv_intrinsic_mod): New function.
5772         (g95_conv_intrinsic_ichar): New function.
5773         (g95_conv_intrinsic_function): Use them.
5774         (g95_conv_intrinsic_dim): Use g95_evaluate_now.
5776 2002-11-17  Toon Moene  <toon@moene.indiv.nluug.nl>
5778         * trans-types.c (g95_build_array_type): Assumed
5779         sized arrays can have rank > 1.
5780         * trans.c (g95_trans_code): Remove erroneous
5781         warning about CONTINUE.
5782         * trans-expr.c (g95_conv_variable): Remove
5783         erroneous assert.
5785 2002-11-15  Paul Brook  <paul@nowt.org>
5787         * trans-array.c (g95_conv_array_parameter): Check for NULL stride.
5789 2002-10-31  Paul Brook  <paul@nowt.org>
5791         * f95-tree.c: Remove tree copying stuff that's now in gimple.c
5792         * trans-expr.c (g95_conv_component_ref): Handle character string
5793         components.
5794         (g95_conv_string_parameter): Ditto.
5795         * trans-types.c (g95_get_derived_type): Add length decl to caracter
5796         string components.
5798 2002-10-10  Paul Brook  <paul@nowt.org>
5800         * trans-decl.c (gfor_fndecl_size?): Declare and initialize.
5801         * trans-expr.c (g95_conv_function_call): Remove unreliable return value
5802         check.
5803         * trans-intrinsic.c (g95_conv_intrinsic_size): New function.
5804         (g95_conv_intrinsic_function): Handle size and shape intrinsics.
5805         (g95_is_intrinsic_libcall): Add G95_ISYM_SHAPE.
5806         * trans-types.c (pvoid_type_node): Declare and initialize.
5807         * trans-array.c: Fix typo COMPONENT_REF->REF_COMPONENT
5808         (g95_array_allocate): Fix when base==data.
5809         (g95_conv_array_parameter): Correctly handle reduced rank sections.
5810         * trans-io.c (g95_trans_write): Correctly handle string modifiers.
5812 2002-10-09  Paul Brook  <paul@nowt.org>
5814         * (g95_conv_expr_reference): Handle character strings correctly.
5816 2002-10-07  Paul Brook  <paul@nowt.org>
5818         (g95_expand_decl): Rename from f95_expand_decl_stmt and use as
5819         langhook.
5820         * trans-array.c (g95_build_array_initializer): Remove.
5821         (g95_conv_array_initializer): New Function.
5822         (g95_trans_auto_arry_allocation): Cleanup.
5823         (g95_trans_init_character_array): Remove.
5824         * g95spec.c: Link in libgforbegin.
5825         * trans.c (g95_generate_code): Rename main function to MAIN__.
5826         (g95_create_var): New function.
5827         (g95_create_var_np): New function.
5828         (g95_evaluate_now): New function.
5829         (g95_start_block): New function.
5830         (g95_finish_block): New function.
5831         (g95_add_expr_to_block): New function.
5832         (g95_add_block_to_block): New function.
5833         * trans-expr.c (g95_conv_componen_ref): New function.
5834         * Make-lang.in (F95_ADDITIONAL_OBJS): Add gimplify.o.
5835         (F95_OBJS): Add dependency.o.
5836         * f95-lang.c (g95_is_simple_stmt): Remove.
5837         * f95-tree.c (mark_not_simple): New function.
5838         (unshare_all_trees): New function.
5839         (create_tmp_var, create_tmp_alias_var): Remove.
5840         * support.c (declare_tmp_vars, tree_last_decl): Remove.
5841         * trans*: Convert to new IR using GENERIC trees.  Don't bother about
5842         SIMPLE/GIMPLE rules, this is now done by Lang-independant code.
5844 2002-10-01  Paul Brook  <paul@nowt.org>
5846         * trans-array.c: Add support for descriptorless arrays.
5847         (g95_conv_array_data): New function.
5848         (g95_conv_array_base): New function.
5849         * trans-array.h: Declare these here.
5850         * trans-decl.c(g95_create_mopdule_variable): Perform variable
5851         initialization and creation here.
5852         (g95_create_module_vars): Instead of here.
5853         * trans.h (G95_TYPE_ARRAY_*: Rename from G95_TYPE_DESCRIPTOR_*.
5854         * trans-intrinsic.c: Ditto.
5855         * trans-types.c (g95_is_nodesc_array): New function.
5856         (g95_get_nodesc_array_type): New function.
5857         (g95_sym_type, g95_get_derived_type): Use them.
5858         * trans-const.c (g95_conv_mpf_to_tree): Remove workaround.
5860 2002-09-28  Paul Brook  <paul@nowt.org>
5862         * trans-const.c (g95_conv_mpf_to_tree): Work around backend bug.
5863         * trans-intrinsic.c (g95_conv_intrinsic_abs): Correctly detect complex
5864         parameters.
5866 2002-09-24  Paul Brook  <paul@nowt.org>
5868         * f95-lang.c (listify): Remove declaration.
5869         (expand_function_body): Use optimize >=1 instead of flag_tree_saa.
5870         (listify)
5871         * f95-tree.c (get_name): New function.
5872         * trans.c (module_namespace): Remove.
5873         * trans-decl.c: Use g95_chainon_list rather than chainon(listify()).
5874         * trans-types.c: Ditto.
5876 2002-09-19  Paul Brook  <paul@nowt.org>
5878         * trans-array.c (g95_get_array_cons_size): New Function.
5879         (g95_con_ss_startstride): Handle Array constructors.
5880         (g95_conv_loop_setup): Ditto.
5881         (g95_conv_array_parameter): Ditto.
5882         * tras-decl.c (g95_finish_var_decl): Make initializes variables
5883         static.
5885 2002-09-19  Paul Brook  <paul@nowt.org>
5887         * trans.c (g95_simple_fold_tmp): Detect variables inside
5888         NON_LVALUE_EXPR.
5889         * trans-stmt.c (g95_trans_arithmetic_if): Implement this.
5891 2002-09-18  Steven Bosscher <s.bosscher@student.tudelft.nl>
5893         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree-ssa-dce.o
5895 2002-09-14  Paul Brook  <paul@nowt.org>
5897         * trans.c (g95_create_module_variable): Move to trans-decl.c.
5898         * trans-const.c (g95_conv_string_init): New Function.
5899         * trans-const.h: Declare it.
5900         * trans-decl.c (g95_get_symbol_decl): Handle initializers for static
5901         variables. Don't bail on intrinsic symbols.
5902         (get_extern_function_decl): Handle specific intrinsic functions.
5903         * trans-types.c (g95_sym_type): Dummy functions don't return
5904         reference types.
5905         * trans-array.c (g95_build_array_initializer): New Function.
5906         (g95_trans_auto_array_allocation): Build initializer for static decls.
5907         Don't use mpz_addmul, it's GMP4 only.
5909 2002-09-12  Paul Brook  <paul@nowt.org>
5911         * trans-decl.c (g95_generate_code): Fix thinko with return variable.
5912         (g95_get_extern_function_decl, g95_build_function_decl): Mangle
5913         assembler names for module procedures.
5915 2002-09-11  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
5917         * trans-array.c,h trans-expr.c, trans-stmt.c: Correct spelling of
5918         dependency/
5920 2002-09-10  Paul Brook  <paul@nowt.org>
5922         * trans-array.c: Change format of G95_SS_TEMP strictures.
5923         (g95_check_fncall_dependancy): New function.
5924         (trans_dummy_array_bias): stride[n], not stride[n-1]. for calculating
5925         offsets.
5926         * trans-decl.c (g95_get_symbol_decl): move assertion after handling of
5927         result variables.
5928         (g95_build_function_decl): Don't assume result arrays are packed.
5929         (g95_trans-deferred-vars): Handle array result variables.
5930         (g95_generate_fuction_code): Clear saved_function_decls.
5931         * trans-expr.c (g95_conv_fnction_call): Handle direct array return by
5932         reference.
5933         (g95_trans_arrayfunc_assign): New function.
5934         (g95_trans_assignment): Use it.
5935         * trans.h (g95_ss): Add temp struct for G95_SS_TEMP.
5936         (g95_se): Add direct_byref.
5937         * trans-types.c: Use sym->result rather than sym where appropriate.
5938         * trans-intrinsic.c (g95_conv_intrinsic_funcall): New function.
5939         Update other functions to use this.
5940         (g95_is_intrinsic_libcall): New function.
5941         (g95_conv_intrinsic_function): Add MATMUL and PRODUCT intrinsics.
5942         (g95_walk_intrinsic_function): Ditto.
5944 2002-09-08  Paul Brook  <paul@nowt.org>
5946         * trans-types.c: Change rank field to dtype field in array descriptor.
5947         * trans-array.c: Implement filling of dtype array descriptor field.
5948         * trans-intrinsic.c: Fix broken LEN intrinsic.
5950 2002-09-07  Paul Brook  <paul@nowt.org>
5952         * trans-intrinsic.c: Remove outdated todo intrinsic list.
5953         (g95_get_symbol_for_expr): Remove hack for fortran based intrinsics.
5954         (g95_walk_intrinsic_function): Add MINLOC and MAXLOC.
5956 2002-09-06  Paul Brook  <paul@nowt.org>
5958         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree_alias_comon.o.
5959         (gt-f95-trans-types.h): Add dependancy information.
5960         * config-lang.in (gtfiles): Add trans-types.c
5961         * f95-lang.c (g95_be_parse_file): Pass error and warning counts
5962         back to top-level code.
5963         * trans-array.c, trans-types.c: Change format of array descriptor.
5964         (g95_conv_descriptor_dimension): New function.
5965         * trans-types.h (g95_conv_descriptor_rank): define.
5966         * trans-intrinsic.c: Implement PRODUCT, COUNT. MINLOC and MAXLOC
5967         intrinsics.
5969 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5971         * trans-array.c, trans-types.c: Add rank information to descriptor.
5973 2002-09-06  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
5975         * trans-stmt.c (g95_trans_allocate): Fix when ref==NULL.
5977 2002-09-04  Paul Brook  <paul@nowt.org>
5979         * f95-lang.c (g95_create_decls): New function.
5980         (g95_init):  Move initialization of external decls to above, and call
5981         from g95_be_parse_file.
5982         * trans.c (g95_finish_stmt): Don't amputate the decl chain.
5983         * trans-types.c (g95_init_types): Always name integer and char types.
5984         (g95_get_array_type_bounds): TYPE_NAME may be a TYPE_DECL.
5986 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5988         * Make-lang.in: Add options.c to F95_PARSER_OBJS
5990 2002-09-02  Paul Brook  <paul@nowt.org>
5992         * g95_generate_code: Clear the attr for __fortran_main.
5993         * trans-types.c (g95_finish_type): New function.
5994         * g95_init_io_state_type: Use g95_finish_type.
5995         * g95_conv_intrinsic_anyall: Fix thinko in result initialization.
5997 2002-09-01  Paul Brook  <paul@nowt.org>
5999         * README.backend: Warn about the dangers of extra config.h files.
6000         Remove obsolete libgfor stuff.
6001         * config-lang.in: Add target-libgfor dependancy.
6002         * g95_conv_mpf_to_tree: Use & free allocated buffer p rather than buff.
6004 2002-09-01  Toon Moene  <toon@moene.indiv.nluug.nl>
6006         * g95_conv_mpz_to_tree: Free storage pointed to by q,
6007         not by buff.
6009 2002-08-30  Paul Brook  <paul@nowt.org>
6011         * trans-intrinsic.c (g95_conv_intrinsic_function,
6012         g95_walk_intrinsic_function): Added ANY and ALL.
6013         (g95_conv_intrinsic_anyall): New function.
6014         * iresolve.c (g95_resolve_any, g95_resolve_all): Include rank in
6015         mangled name