2004-09-15 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
[official-gcc.git] / gcc / fortran / ChangeLog
blob54f069d629447ce230efba1f6284b699e651ed27
1 2004-09-15  Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3         * parse.c (eof_buf): Rename eof to eof_buf.
4         (unexpected_eof): Same.
5         (gfc_parse_file): Same.
7 2004-09-15  Steven G. Kargl  <kargls@comcast.net>
9         * check.c (gfc_check_getcwd_sub): New function.
10         * gfortran.h (GFC_ISYM_GETCWD): New symbol.
11         * intrinsic.c (add_functions): Add function definition;
12         Use symbol.
13         * intrinsic.c (add_subroutines): Add subroutine definitions.
14         * intrinsic.h: Add prototypes.
15         * iresolve.c (gfc_resolve_getcwd, gfc_resolve_getcwd_sub):
16         New functions.
17         * trans-intrinsic.c (gfc_conv_intrinsic_function): Use symbol.
19 2004-09-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
21         PR fortran/16485
22         * module.c (write_symbol): Don't fill in module name here.
23         (write_symbol0): Fill in here instead.
25 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
27         * data.c, decl.c, f95-lang.c, gfortran.h, match.c,
28         trans-array.c, trans-common.c, trans-expr.c,
29         trans-intrinsic.c, trans-stmt.c, trans-types.c, trans.h: Fix
30         comment typos.  Follow spelling conventions.
32 2004-09-09  Paul Brook  <paul@codesourcery.com>
34         * scanner.c (get_file): Add ATTRIBUTE_UNUSED.
36 2004-09-08  Paul Brook  <paul@codesourcery.com>
38         * array.c: Don't include assert.h.
39         * data.c: Don't include assert.h.  Replace assert and abort with
40         gcc_assert and gcc_unreachable.
41         * dependency.c: Ditto.
42         * f95-lang.c: Ditto.
43         * iresolve.c: Ditto.
44         * resolve.c: Ditto.
45         * simplify.c: Ditto.
46         * symbol.c: Ditto.
47         * trans-array.c: Ditto.
48         * trans-common.c: Ditto.
49         * trans-const.c: Ditto.
50         * trans-decl.c: Ditto.
51         * trans-expr.c: Ditto.
52         * trans-intrinsic.c: Ditto.
53         * trans-io.c: Ditto.
54         * trans-stmt.c: Ditto.
55         * trans-types.c: Ditto.
56         * trans.c: Ditto.
58 2004-09-07  Per Bothner  <per@bothner.com>
59         Paul Brook  <paul@codesourcery.com>
61         * error.c (show_locus): Handle mapped locations.
62         * f95-lang.c (gfc_be_parse_file): Initialize mapped locations.
63         * gfortran.h: Include input.h.
64         (struct gfc_linebuf): Use source_location.
65         * scanner.c (get_file): Initialize linemap.
66         (preprocessor_line): Pass extra argument to get_file.
67         (load_file): Ditto.  Setup linemap.
68         (gfc_new_file): Handle mapped locations.
69         * trans-common.c (build_field, build_equiv_decl, build_common_decl):
70         Set decl source locations.
71         (gfc_trans_common): Set blank common block location.
72         * trans-decl.c (gfc_set_decl_location): New function.
73         (gfc_get_label_decl, gfc_get_symbol_decl): Use it.
74         (trans_function_start): Move call to gfc_set_backend_locus..
75         (build_function_decl): ... to here.
76         (build_entry_thunks): Set and restore the backend locus.
77         (gfc_generate_constructors): Remove excess arguments to
78         init_function_start.
79         (gfc_generate_block_data): Add comments.  Set the decl locus.
80         * trans-io.c (set_error_locus): Handle mapped locations.
81         * trans.c (gfc_get_backend_locus, gfc_get_backend_locus): Ditto.
82         (gfc_trans_code): Use SET_EXPR_LOCATION.
83         (gfc_generate_code): Override the location of the new symbol.
84         * trans.h (gfc_set_decl_location): Add prototype.
86 2004-08-31  Paul Brook  <paul@codesourcery.com>
88         * trans-types.c (gfc_type_for_mode): Return NULL for unknown modes.
90 2004-09-01  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
92         PR fortran/15327
93         * trans-intrinsic.c (gfc_conv_intrinsic_merge): Do the right thing for
94         strings.
96 2004-09-01  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
98         PR fortran/16400
99         PR fortran/16404
100         (port from g95)
101         * resolve.c (resolve_transfer): New function.
102         (resolve_code): Call resolve_transfer in case of EXEC_TRANSFER.
104 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
106         PR fortran/16579
107         * trans-types.c (gfc_init_types): Make gfc_character1_type_node an
108         unsigned char.
110 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
112         * CONTRIB, NEWS, README, TODO: Remove obsolete files.
114 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
116         PR fortran/17244
117         * trans-types.c (gfc_return_by_reference): Remove TODO error,
118         add comment pointing out possible issue WRT compatibility with g77.
120 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
122         * trans-decl.c, trans-expr.c, trans-io.c, trans-types.c: Replace
123         all occurences of 'gfc_strlen_type_node' by
124         'gfc_charlen_type_node'.
125         * trans-types.h: Same. Also update comment accordingly.
127 2004-08-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
129         * primary.c: Update copyright boilerplate to say GCC.
130         * f95-lang.c: Change initial comment to say gfortran.
132 2004-08-31  Paul Brook  <paul@codesourcery.com>
134         * trans-types.h: Add comments.
135         (intmax_type_node, string_type_node, const_string_type_node): Remove.
137 2004-08-30  Richard Henderson  <rth@redhat.com>
139         * Make-lang.in (fortran/f95-lang.o): Update dependencies.
140         (fortran/trans-decl.o, fortran/trans-types.o): Likewise.
141         * gfortran.h (gfc_integer_info): Add c_char, c_short, c_int,
142         c_long, c_long_long.
143         (gfc_logical_info): Add c_bool.
144         (gfc_real_info): Add mode_precision, c_float, c_double, c_long_double.
145         * trans-array.c (gfc_array_allocate): Use TYPE_PRECISION
146         rather than gfc_int[48]_type_node for allocate choice.
147         * trans-decl.c (gfc_build_intrinsic_function_decls): Cache
148         local copies of some kind type nodes.
149         (gfc_build_builtin_function_decls): Likewise.
150         * trans-expr.c (gfc_conv_power_op): Likewise.
151         * trans-intrinsic.c (gfc_conv_intrinsic_index,
152         gfc_conv_intrinsic_scan, gfc_conv_intrinsic_verify,
153         gfc_conv_intrinsic_trim, gfc_conv_intrinsic_repeat): Likewise.
154         * trans-stmt.c (gfc_trans_pause, gfc_trans_stop,
155         gfc_trans_character_select, gfc_trans_allocate): Likewise.
156         * trans-io.c (gfc_pint4_type_node): Move into ...
157         (gfc_build_io_library_fndecls): ... here.  Cache local copies of
158         some kind type nodes.
159         * trans-types.c (gfc_type_nodes): Remove.
160         (gfc_character1_type_node, gfc_strlen_type_node): New.
161         (gfc_integer_types, gfc_logical_types): New.
162         (gfc_real_types, gfc_complex_types): New.
163         (gfc_init_kinds): Fill in real mode_precision.
164         (gfc_build_int_type, gfc_build_real_type): New.
165         (gfc_build_complex_type, gfc_build_logical_type): New.
166         (c_size_t_size): New.
167         (gfc_init_types): Loop over kinds.
168         (gfc_get_int_type, gfc_get_real_type): Use gfc_validate_kind.
169         (gfc_get_complex_type, gfc_get_logical_type): Likewise.
170         (gfc_get_character_type_len): Likewise.
171         (gfc_type_for_size): Loop over kinds; use a reduced set of
172         unsigned type nodes.
173         (gfc_type_for_mode): Loop over kinds.
174         (gfc_signed_or_unsigned_type): Use gfc_type_for_size.
175         (gfc_unsigned_type, gfc_signed_type): Use gfc_signed_or_unsigned_type.
176         * trans-types.h (F95_INT1_TYPE, F95_INT2_TYPE, F95_INT4_TYPE,
177         F95_INT8_TYPE, F95_INT16_TYPE, F95_REAL4_TYPE, F95_REAL8_TYPE,
178         F95_REAl16_TYPE, F95_COMPLEX4_TYPE, F95_COMPLEX8_TYPE,
179         F95_COMPLEX16_TYPE, F95_LOGICAL1_TYPE, F95_LOGICAL2_TYPE,
180         F95_LOGICAL4_TYPE, F95_LOGICAL8_TYPE, F95_LOGICAL16_TYPE,
181         F95_CHARACTER1_TYPE, NUM_F95_TYPES, gfc_type_nodes,
182         gfc_int1_type_node, gfc_int2_type_node, gfc_int4_type_node,
183         gfc_int8_type_node, gfc_int16_type_node, gfc_real4_type_node,
184         gfc_real8_type_node, gfc_real16_type_node, gfc_complex4_type_node,
185         gfc_complex8_type_node, gfc_complex16_type_node,
186         gfc_logical1_type_node, gfc_logical2_type_node,
187         gfc_logical4_type_node, gfc_logical8_type_node,
188         gfc_logical16_type_node, gfc_strlen_kind): Remove.
189         (gfc_character1_type_node): Turn in to a variable.
190         (gfc_strlen_type_node): Likewise.
192 2004-08-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
194         * gfortran.h (gfc_namespace): Add new field is_block_data.
195         * parse.c (accept_statement): Remove special handling for BLOCK DATA.
196         (parse_block_data): Record BLOCK DATA name, set is_block_data field.
197         * trans.c (gfc_generate_code): Handle BLOCK DATA units.
198         * trans.h (gfc_generate_block_data): Add prototype.
199         * trans-decl.c (gfc_generate_block_data): New function.
201 2004-08-29  Richard Henderson  <rth@redhat.com>
203         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_export.
204         * trans-types.c (gfc_init_kinds): Reject integer kinds larger
205         than two HOST_WIDE_INT.
207 2004-08-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
209         PR fortran/13910
210         * decl.c (free_variable, free_value, gfc_free_data, var_list,
211         var_element, top_var_list, match_data_constant, top_val_list,
212         gfc_match_data): Move here from match.c.
213         (match_old_style_init): New function.
214         (variable_decl): Match old-style initialization.
215         * expr.c (gfc_get_variable_expr): New function.
216         * gfortran.h (gfc_get_variable_expr): Add prototype.
217         * gfortran.texi: Start documentation for supported extensions.
218         * match.c: Remove the functions moved to decl.c.
219         * match.h (gfc_match_data): Move prototype to under decl.c.
220         * symbol.c (gfc_find_sym_tree, gfc_find_symbol): Add/correct
221         comments.
223 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
224         Paul Brook  <paul@codesourcery.com>
226         * check.c (gfc_check_besn, gfc_check_g77_math1): New functions.
227         * f95-lang.c (DO_DEFINE_MATH_BUILTIN): Define.
228         (DEFINE_MATH_BUILTIN, DEFINE_MATH_BUILTIN_C): Use it.
229         (build_builtin_fntypes): New function.
230         (gfc_init_builtin_functions): Use it.
231         * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_{J,Y}{0,1,N}
232         and GFC_ISYM_ERF{,C}.
233         (gfc_c_int_kind): Declare.
234         * intrinsic.c (add_functions): Add [d]bes* and [d]erf*.
235         * intrinsic.h (gfc_check_besn, gfc_check_g77_math1, gfc_resolve_besn,
236         gfc_resolve_g77_math1): Add prototypes.
237         * resolve.c (gfc_resolve_besn, gfc_resolve_g77_math1): New functions.
238         * mathbuiltins.def: Add comment.  Change third argument.  Use
239         DEFINE_MATH_BUILTIN_C.  Add bessel and error functions.
240         * trans-intrinsic.c (BUILT_IN_FUNCTION): Define.
241         (DEFINE_MATH_BUILTIN, DEFINE_MATH_BUILTIN_C): Use it.
242         * trans-types.c (gfc_c_int_kind): Declare.
243         (gfc_init_kinds): Set it.
245 2004-08-29  Steven G. Kargl  <kargls@comcast.net>
246         Paul Brook  <paul@codesourcery.com>
248         * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_GET?ID.
249         (gfc_check_f, gfc_simplify_f): Add f0.
250         * intrinsic.c (do_check): Call f0.  Flatten.
251         (add_sym_0): Fix prototype.  Set f0.
252         (add_functions): Add getgid, getgid and getuid.
253         (resolve_intrinsic): Remove obsolete comment.
254         (do_simplify): Call f0.
255         * intrinsic.h (gfc_resolve_getgid, gfc_resolve_getpid,
256         gfc_resolve_getuid): Add prototypes.
257         * iresolve.c (gfc_resolve_getgid, gfc_resolve_getpid,
258         gfc_resolve_getuid): New functions.
259         * trans-intrinsic.c (gfc_conv_intrinsic_function): Handle
260         GFC_ISYM_GET?ID.
262 2004-08-28  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
264         * error.c (gfc_error_init_1): Remove blank line in front of
265         function body. Add missing blank.
266         (gfc_buffer_error, error_char, error_string): Remove blank line in
267         front of function body.
268         (show_locus): Add comma in comment.
269         (gfc_clear_warning, gfc_warning_check, gfc_clear_error,
270         gfc_push_error, gfc_pop_error): Remove blank line in front of
271         function body.
272         (gfc_get_errors): Typo fix in comment in front of function. Remove
273         blank line in front of function body.
275 2004-08-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
277         * gfortran.h (gfc_default_*_kind): Remove prototypes, add extern
278         variable declaration of same name.
279         * arith.c, check.c, decl.c, dump_parse_tree.c, expr.c,
280         intrinsic.c, io.c, iresolve.c, match.c, options.c, primary.c,
281         resolve.c, simplify.c, symbol.c, trans-const.c, trans-io.c:
282         Replace all calls to gfc_default_*_kind with variable accesses.
283         * trans-types.c: Same as above.
284         (gfc_default_*_kind_1): Rename to gfc_default_*_kind, remove
285         static qualifier. Replace all occurences.
286         (gfc_default_*_kind): Remove functions.
288 2004-08-26  Richard Henderson  <rth@redhat.com>
290         * arith.c: Include system.h, not real system headers.
291         (MPZ_NULL, MPF_NULL, DEF_GFC_INTEGER_KIND, DEF_GFC_LOGICAL_KIND,
292         DEF_GFC_REAL_KIND, GFC_SP_KIND, GFC_SP_PREC, GFC_SP_EMIN, GFC_SP_EMAX,
293         GFC_DP_KIND, GFC_DP_PREC, GFC_DP_EMIN, GFC_DP_EMAX, GFC_QP_KIND,
294         GFC_QP_PREC, GFC_QP_EMIN, GFC_QP_EMAX): Remove.
295         (gfc_integer_kinds, gfc_logical_kinds, gfc_real_kinds,
296         gfc_index_integer_kind, gfc_default_integer_kind,
297         gfc_default_real_kind,gfc_default_double_kind,
298         gfc_default_character_kind, gfc_default_logical_kind,
299         gfc_default_complex_kind, validate_integer, validate_real,
300         validate_logical, validate_character,
301         gfc_validate_kind): Move to trans-types.c.
302         (gfc_set_model_kind): Use gfc_validate_kind.
303         (gfc_set_model): Just copy the current precision to default.
304         (gfc_arith_init_1): Use mpfr precision 128 for integer setup.
305         * f95-lang.c (gfc_init_decl_processing): Invoke gfc_init_kinds.
306         * gfortran.h: Update file commentary.
307         * trans-types.c (MAX_INT_KINDS, MAX_REAL_KINDS): New.
308         (gfc_default_integer_kind_1, gfc_default_real_kind_1,
309         gfc_default_double_kind_1, gfc_default_character_kind_1,
310         gfc_default_logical_kind_1, gfc_default_complex_kind_1): New.
311         (gfc_init_kinds): New.
312         (gfc_init_types): Don't set gfc_index_integer_kind here.
313         * trans-types.h (gfc_init_kinds): Declare.
314         * doc/invoke.texi: Clarify DOUBLE PRECISION behaviour wrt -r8.
316 2004-08-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
318         * check.c (gfc_check_atan2): New function.
319         * intrinsic.c (add_functions): Use gfc_check_atan2 for ATAN2
320         * intrinsic.h (gfc_check_atan2): Add prototype.
322 2004-08-25  Richard Henderson  <rth@redhat.com>
324         * arith.c (gfc_validate_kind): Add may_fail argument; abort if
325         false and we don't validate the kind.
326         (gfc_check_integer_range, gfc_check_real_range): Update to match.
327         * check.c (kind_check): Likewise.
328         * decl.c (gfc_match_old_kind_spec, gfc_match_kind_spec): Likewise.
329         (match_char_spec, match_logical_spec): Likewise.
330         * gfortran.h (gfc_validate_kind): Likewise.
331         * options.c (gfc_handle_option): Likewise.
332         * primary.c (match_integer_constant, match_real_constant,
333         match_string_constant, match_logical_constant,
334         match_const_complex_part): Likewise.
335         * simplify.c (get_kind, gfc_simplify_bit_size, gfc_simplify_digits,
336         gfc_simplify_epsilon, gfc_simplify_huge, gfc_simplify_ibclr,
337         gfc_simplify_ibset, gfc_simplify_ishft, gfc_simplify_ishftc,
338         gfc_simplify_maxexponent, gfc_simplify_minexponent,
339         gfc_simplify_nearest, gfc_simplify_not, gfc_simplify_precision,
340         gfc_simplify_radix, gfc_simplify_range, gfc_simplify_rrspacing,
341         gfc_simplify_scale, gfc_simplify_spacing, gfc_simplify_tan,
342         gfc_simplify_tiny): Likewise.
343         * trans-intrinsic.c (gfc_conv_intrinsic_aint, gfc_conv_intrinsic_mod,
344         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
345         prepare_arg_info): Likewise.
347 2004-08-25  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
349         * expr.c (gfc_check_assign): Add comment. Add new warning.
350         * trans-expr.c (gfc_conv_function_call): Correctly dereference
351         result of pointer valued function when not in pointer assignment.
353 2004-08-25  Paul Brook  <paul@codesourcery.com>
355         * config-lang.in: Remove dead commented line.
356         * module.c: Replace g95 with gfortran in comment.
358 2004-08-25  Paul Brook  <paul@codesourcery.com>
360         PR fortran/17190
361         * arith.c (gfc_mpfr_to_mpz): Workaround mpfr bug.
363 2004-08-25  Paul Brook  <paul@codesourcery.com>
365         PR fortran/17144
366         * trans-array.c (gfc_trans_allocate_temp_array): Remove
367         string_length argument.
368         (gfc_trans_array_ctor_element): New function.
369         (gfc_trans_array_constructor_subarray): Use it.
370         (gfc_trans_array_constructor_value): Ditto.  Handle constant
371         character arrays.
372         (get_array_ctor_var_strlen, get_array_ctor_strlen): New functions.
373         (gfc_trans_array_constructor): Use them.
374         (gfc_add_loop_ss_code): Update to new gfc_ss layout.
375         (gfc_conv_ss_descriptor): Remember section string length.
376         (gfc_conv_scalarized_array_ref): Ditto.  Remove dead code.
377         (gfc_conv_resolve_dependencies): Update to new gfc_ss layout.
378         (gfc_conv_expr_descriptor): Ditto.
379         (gfc_conv_loop_setup): Ditto.  Spelling fixes.
380         * trans-array.h (gfc_trans_allocate_temp_array): Update prototype.
381         * trans-const.c (gfc_conv_constant):  Update to new gfc_ss layout.
382         * trans-expr.c (gfc_conv_component_ref): Turn error into ICE.
383         (gfc_conv_variable): Set string_length from section.
384         (gfc_conv_function_call): Remove extra argument.
385         (gfc_conv_expr, gfc_conv_expr_reference): Update to new gfc_ss layout.
386         * trans-types.c (gfc_get_character_type_len): New function.
387         (gfc_get_character_type): Use it.
388         (gfc_get_dtype): Return zero for internal types.
389         * trans-types.h (gfc_get_character_type_len): Add prototype.
390         * trans.h (struct gfc_ss): Move string_length out of union.
392 2004-08-25  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
394         * trans.h (build2_v, build3_v): New macros.
395         (build_v): Remove.
396         * f95-lang.c (gfc_truthvalue_conversion): Use build2 instead of
397         build.
398         * trans-array.c (gfc_conv_descriptor_data,
399         gfc_conv_descriptor_offset, gfc_conv_descriptor_dimension,
400         gfc_conv_descriptor_stride, gfc_conv_descriptor_lbound, 
401         gfc_conv_descriptor_ubound, gfc_trans_allocate_array_storage,
402         gfc_trans_allocate_temp_array,
403         gfc_trans_array_constructor_subarray,
404         gfc_trans_array_constructor_value, gfc_conv_array_index_ref,
405         gfc_trans_array_bound_check, gfc_conv_array_index_offset,
406         gfc_conv_scalarized_array_ref, gfc_conv_array_ref,
407         gfc_conv_array_ref, gfc_trans_preloop_setup,
408         gfc_trans_scalarized_loop_end, gfc_conv_ss_startstride,
409         gfc_conv_loop_setup, gfc_array_init_size,
410         gfc_conv_array_initializer, gfc_trans_array_bounds,
411         gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
412         gfc_conv_expr_descriptor, gfc_conv_array_parameter,
413         gfc_trans_deferred_array): Use buildN and buildN_v macros instead
414         of build and build_v as appropriate.
415         * trans-common.c (create_common): Same.
416         * trans-decl.c (gfc_trans_auto_character_variable,
417         gfc_trans_entry_master_switch, gfc_generate_function_code): Same.
418         * trans-expr.c (gfc_conv_expr_present, gfc_conv_substring,
419         gfc_conv_component_ref, gfc_conv_unary_op, gfc_conv_powi,
420         gfc_conv_cst_int_power, gfc_conv_string_tmp, gfc_conv_concat_op,
421         gfc_conv_expr_op, gfc_conv_function_call,
422         gfc_trans_structure_assign): Same.
423         * trans-intrinsic.c (build_fixbound_expr, build_round_expr,
424         gfc_conv_intrinsic_aint, gfc_conv_intrinsic_bound,
425         gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_mod,
426         gfc_conv_intrinsic_dim, gfc_conv_intrinsic_sign,
427         gfc_conv_intrinsic_dprod, gfc_conv_intrinsic_minmax,
428         gfc_conv_intrinsic_anyall, gfc_conv_intrinsic_count,
429         gfc_conv_intrinsic_arith, gfc_conv_intrinsic_minmaxloc,
430         gfc_conv_intrinsic_minmaxval, gfc_conv_intrinsic_btest,
431         gfc_conv_intrinsic_bitop, gfc_conv_intrinsic_singlebitop,
432         gfc_conv_intrinsic_ibits, gfc_conv_intrinsic_ishft,
433         gfc_conv_intrinsic_merge, gfc_conv_intrinsic_strcmp,
434         gfc_conv_allocated, gfc_conv_associated, prepare_arg_info,
435         gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
436         gfc_conv_intrinsic_trim, gfc_conv_intrinsic_repeat,
437         gfc_conv_intrinsic_iargc): Same.
438         * trans-io.c (set_parameter_value, set_parameter_ref, set_string,
439         set_flag, add_case, io_result, transfer_namelist_element,
440         transfer_expr): Same.
441         * trans-stmt.c (gfc_trans_goto, gfc_trans_return, gfc_trans_if_1,
442         gfc_trans_arithmetic_if, gfc_trans_do, gfc_trans_do_while,
443         gfc_trans_integer_select, gfc_trans_logical_select,
444         gfc_trans_character_select, gfc_trans_forall_loop,
445         gfc_trans_nested_forall_loop, gfc_do_allocate,
446         generate_loop_for_temp_to_lhs, generate_loop_for_rhs_to_temp,
447         compute_inner_temp_size, compute_overall_iter_number,
448         allocate_temp_for_forall_nest, gfc_trans_pointer_assign_need_temp,
449         gfc_trans_forall_1, gfc_evaluate_where_mask,
450         gfc_trans_where_assign, gfc_trans_allocate): Same.
451         * trans-types.c (gfc_get_dtype, gfc_get_array_type_bounds): Same.
452         * trans.c (gfc_add_modify_expr, gfc_finish_block,
453         gfc_build_array_ref, gfc_build_function_call,
454         gfc_trans_runtime_check): Same.
456 2004-08-25  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
458         * trans-const.c (gfc_conv_mpz_to_tree): Change call to 
459         build_int_cst to build_int_cst_wide in accordance to Nathan's
460         previous patch.
462 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
464         * trans-array.c (gfc_trans_array_constructor_value): Adjust
465         build_int_cst calls.
466         * trans-const.c (gfc_build_string_const, gfc_init_constants,
467         gfc_conv_mpz_to_tree, gfc_conv_constant_to_tree): Likewise.
468         * trans-decl.c (gfc_get_symbol_decl, build_entry_thunks,
469         gfc_trans_entry_master_switch): Likewise.
470         * trans-intrinsic.c (gfc_conv_intrinsic_ibits,
471         gfc_conv_intrinsic_len, prepare_arg_info): Likewise.
472         * trans-io.c (add_case, set_error_locus,
473         transfer_namelist_element, transfer_expr): Likewise.
474         * trans-stmt.c (gfc_trans_label_assign, gfc_trans_pause,
475         gfc_trans_stop, gfc_trans_character_select): Likewise.
476         * trans-types.c (gfc_init_types, gfc_get_dtype): Likewise.
477         * trans.c (gfc_trans_runtime_check): Likewise.
479 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
481         * trans-decl.c, trans-types.c: Add and remove blank lines as 
482         required.
484 2004-08-24  Richard Henderson  <rth@redhat.com>
486         * trans-const.c (gfc_conv_mpz_to_tree): Fix 64-bit shift warning.
488 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
490         * resolve.c (merge_argument_lists): Revert unintentionally 
491         committed change.
492         
493 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
495         * trans-decl.c (build_function_decl): Fix spelling in comment.
496         (build_entry_thunks): Remove code with no function.
497         (gfc_build_intrinsic_function_decls): Remove empty line.
499         * resolve.c (resolve_entries): Fix a bunch of comment typos.
501 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
503         * f95-lang.c (gfc_init_decl_processing): Adjust
504         build_common_tree_nodes call.
506 2004-08-24  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
508         * trans-types.c: Spelling and formatting fixes.
510 2004-08-23  Richard Henderson  <rth@redhat.com>
512         * trans-const.c (gfc_conv_mpz_to_tree): Use mpz_getlimbn instead
513         of going through an intermediate string.  Fix 32/64 int/long bug.
515 2004-08-23  Eric Christopher  <echristo@redhat.com>
517         * trans-types.c (gfc_type_for_mode): Remove VECTOR_TYPE_SUPPORTED_P
518         usage. Use build_vector_type_for_mode for vector types.
520 2004-08-22  Richard Henderson  <rth@redhat.com>
522         PR 13465
523         * data.c (find_con_by_offset): Search ordered list; handle
524         elements with repeat counts.
525         (gfc_assign_data_value_range): New.
526         * gfortran.h (struct gfc_data_value): Make repeat unsigned.
527         (gfc_assign_data_value_range): Declare.
528         * match.c (top_val_list): Extract repeat count into a temporary.
529         * resolve.c (values): Make left unsigned.
530         (next_data_value): Don't decrement left.
531         (check_data_variable): Use gfc_assign_data_value_range.
533 2004-08-22  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
535         * trans-const.c, trans-decl.c, trans-expr.c: Spelling fixes.
537 2004-08-22  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
539         * check.c (gfc_check_reduction): Rename to ...
540         (check_reduction): ... this. Make static. Don't check type of
541         first argument.
542         (gfc_check_minval_maxval, gfc_check_prodcut_sum): New functions.
543         * intrinsic.c (add_functions): Change MAXVAL, MINVAL, PRODUCT and
544         SUM to use new check functions.
545         (check_specific): Change logic to call new functions.
546         * intrinsic.h (gfc_check_minval_maxval, gfc_check_product_sum):
547         Add prototypes.
548         (gfc_check_reduction): Remove prototype.
550 2004-08-20  Paul Brook  <paul@codesourcery.com>
551         Canqun Yang  <canqun@nudt.edu.cn>
553         PR fortran/17077
554         * trans-array.c (gfc_conv_array_parameter): Pass correct pointer
555         for automatic arrays.
556         * trans-types.c (gfc_get_nodesc_array_type): Add comment.
558 2004-08-19  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
559         (Port from g95)
561         PR fortran/17074
562         * match.c (match_simple_forall, match_simple_where): Forward-declare.
563         (gfc_match_if): Order statement list alphabetically, add WHERE and
564         FORALL, remove double PAUSE.
565         (gfc_match_simple_where, match_forall_header,
566         gfc_match_simple_forall): New functions.
567         (gfc_match_forall): Use match_forall_header.
569 2004-08-19  Paul Brook  <paul@codesourcery.com>
571         PR fortran/17091
572         * gfortran.h (gfc_access): Give ACCESS_UNKNOWN value 0.
573         * symbol.c (gfc_clear_attr): Use memset.
575 2004-08-19  Paul Brook  <paul@codesourcery.com>
577         PR fortran/14976
578         PR fortran/16228
579         * data.c (assign_substring_data_value): Remove.
580         (create_character_intializer): New function.
581         (gfc_assign_data_value): Track the typespec for the current
582         subobject.  Use create_character_intializer.
584 2004-08-19  Erik Schnetter  <schnetter@aei.mpg.de>
586         PR fortran/16946
587         * check.c (gfc_check_reduction): New function.
588         (gfc_check_minval_maxval): Removed.
589         (gfc_check_product): Removed.
590         (gfc_check_sum): Removed.
591         * intrinsic.h: Add/remove declarations for these.
592         * gfortran.h: Add field f3red to union gfc_check_f.
593         * intrinsic.c (add_sym_3red): New function.
594         (add_functions): Register maxval, minval, product, and sum intrinsics
595         through add_sym_3red.
596         (check_specific): Handle f3red union field.
597         * iresolve.c: Whitespace change.
599 2004-08-18  Paul Brook  <paul@codesourcery.com>
601         * trans-types.c (gfc_sym_type): Use pointer types for optional args.
603 2004-08-18  Victor Leikehman  <lei@il.ibm.com>
605         PR fortran/13278
606         * trans-io.c (transfer_namelist_element): New. Recursively handle
607         derived-type variables.  Pass string lengths.
608         (build_dt): Code moved to build_namelist, with some
609         changes and additions.
610         (gfc_build_io_library_fndecls): Declare the fifth
611         argument in st_set_nml_var_char -- string_length.
613 2004-08-17  Paul Brook  <paul@codesourcery.com>
614         Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
616         PR fortran/13082
617         * decl.c (get_proc_name): Update mystery comment.
618         (gfc_match_entry): Check for errors earlier.  Add entry point to list.
619         * dump-parse-tree.c (gfc_show_code_node): Print EXEC_ENTRY nodes.
620         * gfortran.h (symbol_attribute): Add entry_master.  Document entry.
621         (struct gfc_entry_list): Define.
622         (gfc_get_entry_list): Define.
623         (struct gfc_namespace): Add refs and entries.
624         (enum gfc_exec_op): Add EXEC_ENTRY.
625         (struct gfc_code): Add ext.entry.
626         * module.c (ab_attribute, attr_bits): Remove AB_ENTRY.
627         (mio_symbol_attribute): Don't save/reture addr->entry.
628         (mio_namespace_ref): Refcount namespaces.
629         * parse.c (accept_statement): Handle ST_ENTRY.
630         (gfc_fixup_sibling_symbols): Mark symbol as referenced.
631         (parse_contained): Fixup sibling references to entry points
632         after parsing the procedure body.
633         * resolve.c (resolve_contained_fntype): New function.
634         (merge_argument_lists, resolve_entries): New functions.
635         (resolve_contained_functions): Use them.
636         (resolve_code): Handle EXEC_ENTRY.
637         (gfc_resolve): Call resolve_entries.
638         * st.c (gfc_free_statement): Handle EXEC_ENTRY.
639         * symbol.c (gfc_get_namespace): Refcount namespaces.
640         (gfc_free_namespace): Ditto.
641         * trans-array.c (gfc_trans_dummy_array_bias): Treat all args as
642         optional when multiple entry points are present.
643         * trans-decl.c (gfc_get_symbol_decl): Remove incorrect check.
644         (gfc_get_extern_function_decl): Add assertion.  Fix coment.
645         (create_function_arglist, trans_function_start, build_entry_thunks):
646         New functions.
647         (gfc_build_function_decl): Rename ...
648         (build_function_decl): ... to this.
649         (gfc_create_function_decl): New function.
650         (gfc_generate_contained_functions): Use it.
651         (gfc_trans_entry_master_switch): New function.
652         (gfc_generate_function_code): Use new functions.
653         * trans-stmt.c (gfc_trans_entry): New function.
654         * trans-stmt.h (gfc_trans_entry): Add prototype.
655         * trans-types.c (gfc_get_function_type): Add entry point argument.
656         * trans.c (gfc_trans_code): Handle EXEC_ENTRY.
657         (gfc_generate_module_code): Call gfc_create_function_decl.
658         * trans.h (gfc_build_function_decl): Remove.
659         (gfc_create_function_decl): Add prototype.
661 2004-08-15  Andrew Pinski  <apinski@apple.com>
663         PR fortran/17030
664         * f95-lang.c (gfc_init_builtin_functions): Initialize the builtins
665         for cabs{,f} and copysign{,f}.
666         * trans-decl.c (gfor_fndecl_math_cabsf): Delete.
667         (gfor_fndecl_math_cabs): Delete.
668         (gfor_fndecl_math_sign4): Delete.
669         (gfor_fndecl_math_sign8): Delete.
670         (gfc_build_intrinsic_function_decls): Remove the
671         initializing of cabs{,f} and copysign{,f} functions.
672         * trans-intrinsic.c (gfc_conv_intrinsic_abs): Use the builtins
673         instead of the functions definitions.
674         (gfc_conv_intrinsic_sign): Likewise.
675         * trans.h (gfor_fndecl_math_cabsf): Delete.
676         (gfor_fndecl_math_cabs): Delete.
677         (gfor_fndecl_math_sign4): Delete.
678         (gfor_fndecl_math_sign8): Delete.
680 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
682         * trans-array.c (gfc_trans_array_constructor_value): Use
683         build_int_cst.
684         * trans-const.c (gfc_build_string_const,
685         gfc_init_constants, gfc_conv_mpz_to_tree,
686         gfc_conv_constant_to_tree): Likewise.
687         * trans-decl.c (gfc_get_symbol_decl): Likewise.
688         * trans-intrinsic.c (gfc_conv_intrinsic_ibits,
689         gfc_conv_intrinsic_len, prepare_arg_info): Likewise.
690         * trans-io.c (add_case, set_error_locus, build_dt,
691         transfer_expr): Likewise.
692         * trans-stmt.c (gfc_trans_label_assign, gfc_trans_pause,
693         gfc_trans_stop, gfc_trans_character_select): Likewise.
694         * trans-types.c (gfc_init_types, gfc_get_dtype): Likewise.
695         * trans.c (gfc_trans_runtime_check): Likewise.
697 2004-08-14  Paul Brook  <paul@codesourcery.com>
699         * trans-decl.c (gfc_build_function_decl): Remove dead code.
701 2004-08-14  Paul Brook  <paul@codesourcery.com>
703         * trans-arry.c (gfc_trans_auto_array_allocation): Remove unused var.
705 2004-08-13  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
707         * gfortran.h: Add comments.
708         * parse.c (parse_contained): Fix comment typo.
709         * resolve.c (was_declared): Ditto.
710         * symbol.c: Ditto.
712 2004-08-11  Paul Brook  <paul@codeourcery.com>
714         PR fortran/16917
715         * intrinsic.c (add_functions): Add dfloat as an alias for dble.
717 2004-08-10  Richard Henderson  <rth@redhat.com>
719         * f95-lang.c (gfc_init_builtin_functions): Remove
720          __builtin_stack_alloc, add __builtin_alloca.
721         * trans-array.c (gfc_trans_auto_array_allocation): Use DECL_EXPR.
722         * trans-decl.c (gfc_trans_auto_character_variable): Likewise.
724 2004-08-10  Paul Brook  <paul@codesourcery.com>
726         * trans-io.c (transfer_expr): Handle pointters.
728 2004-08-10  Paul Brook  <paul@codesourcery.com>
730         PR fortran/16919
731         * trans-array.c (gfc_add_loop_ss_code): Handle GFC_SS_COMPONENT.
732         (gfc_conv_array_index_offset): Allow "temporary" with nonzero delta.
733         (gfc_trans_preloop_setup, gfc_trans_scalarized_loop_boundary):
734         Handle GFC_SS_COMPONENT.
735         (gfc_conv_ss_startstride): Ditto.  Set ss->shape.
736         (gfc_conv_loop_setup): Tweak commends. Remove dead code.
737         Use ss->shape.
738         (gfc_conv_array_initializer): Call specific initializer routines.
739         * trans-expr.c (gfc_trans_structure_assign): New function.
740         (gfc_trans_subarray_assign): New function.
741         (gfc_trans_subcomponent_assign): New fucntion
742         (gfc_conv_structure): Use them.
743         * trans.h (gfc_ss_type): Add GFC_SS_COMPONENT.
744         (gfc_ss): Add shape.
746 2004-08-08  Victor Leikehman  <lei@il.ibm.com>
748         * simplify.c (gfc_simplify_shape): Bugfix.
749         * expr.c (gfc_copy_shape_excluding): New function.
750         * gfortran.h (gfc_get_shape): Bugfix.
751         (gfc_copy_shape_excluding): Added declaration.
752         * iresolve.c (gfc_resolve_all, gfc_resolve_any, gfc_resolve_count,
753         gfc_resolve_cshift, gfc_resolve_eoshift, gfc_resolve_lbound,
754         gfc_resolve_ubound, gfc_resolve_transpose): Added compile
755         time resolution of shape.
757 2004-08-06  Janne Blomqvist  <jblomqvi@cc.hut.fi>
759         * intrinsic.c (add_subroutines): Add getenv and
760         get_environment_variable. (add_sym_5s): New function.
761         * intrinsic.h (gfc_resolve_get_environment_variable): Add
762         prototype.
763         * iresolve.c (gfc_resolve_get_environment_variable): New
764         function.
766 2004-08-06  Feng Wang  <fengwang@nudt.edu.cn>
768         * f95-lang.c (gfc_init_builtin_functions): Fix the number of
769         __builtin_pow[f] arguments.
771 2004-08-06  Steven G. Kargl  <kargls@comcast.net>
773         * arith.c: Add #define for model numbers.  Remove global GMP variables.
774         (natural_logarithm,common_logarithm,exponential,sine,
775         cosine,arctangent,hypercos,hypersine ): Remove.
776         (gfc_mpfr_to_mpz,gfc_set_model_kind,gfc_set_model): New functions.
777         (arctangent2,gfc_arith_init_1,gfc_arith_done_1
778         gfc_check_real_range, gfc_constant_result, gfc_range_check,
779         gfc_arith_uminus,gfc_arith_plus, gfc_arith_minus, gfc_arith_times,
780         gfc_arith_divide,complex_reciprocal,complex_pow_ui,
781         gfc_arith_power,gfc_compare_expr,compare_complex,gfc_convert_real,
782         gfc_convert_complex,gfc_int2real,gfc_int2complex,
783         gfc_real2int,gfc_real2real,gfc_real2complex,
784         gfc_complex2int,gfc_complex2real,gfc_complex2complex): Convert GMP
785         to MPFR, use new functions.
786         * arith.h: Remove extern global variables.
787         (natural_logarithm,common_logarithm,exponential, sine, cosine,
788         arctangent,hypercos,hypersine): Remove prototypes.
789         (arctangent2): Update prototype from GMP to MPFR.
790         (gfc_mpfr_to_mpz, gfc_set_model_kind,gfc_set_model): Add prototypes.
791         * dump-parse-tree.c (gfc_show_expr): Convert GMP to MPFR.
792         * expr.c (free_expr0,gfc_copy_expr): Convert GMP to MPFR.
793         * gfortran.h (GFC_REAL_BITS): Remove.
794         (arith): Add ARITH_NAN.
795         Include mpfr.h.  Define GFC_RND_MODE.
796         Rename GCC_GFORTRAN_H GFC_GFC_H.
797         (gfc_expr): Convert GMP to MPFR.
798         * module.c: Add arith.h, correct type in comment.
799         (mio_gmp_real): Convert GMP to MPFR.
800         (mio_expr):  Use gfc_set_model_kind().
801         * primary.c:  Update copyright date with 2004.
802         (match_real_constant,match_const_complex_part): Convert GMP to MPFR.
803         * simplify.c: Remove global GMP variables
804         (gfc_simplify_abs,gfc_simplify_acos,gfc_simplify_aimag,
805         gfc_simplify_aint,gfc_simplify_dint,gfc_simplify_anint,
806         gfc_simplify_dnint,gfc_simplify_asin,gfc_simplify_atan,
807         gfc_simplify_atan2,gfc_simplify_ceiling,simplify_cmplx,
808         gfc_simplify_conjg,gfc_simplify_cos,gfc_simplify_cosh,
809         gfc_simplify_dim,gfc_simplify_dprod,gfc_simplify_epsilon,
810         gfc_simplify_exp,gfc_simplify_exponent,gfc_simplify_floor,
811         gfc_simplify_fraction,gfc_simplify_huge,gfc_simplify_int,
812         gfc_simplify_ifix,gfc_simplify_idint,gfc_simplify_log,
813         gfc_simplify_log10,simplify_min_max,gfc_simplify_mod,
814         gfc_simplify_modulo,gfc_simplify_nearest,simplify_nint,
815         gfc_simplify_rrspacing,gfc_simplify_scale,
816         gfc_simplify_set_exponent,gfc_simplify_sign,gfc_simplify_sin,
817         gfc_simplify_sinh,gfc_simplify_spacing,gfc_simplify_sqrt,
818         gfc_simplify_tan,gfc_simplify_tanh,gfc_simplify_tiny,
819         gfc_simplify_init_1,gfc_simplify_done_1):  Convert GMP to MPFR.
820         Use new functions.
821         * trans-const.c (gfc_conv_mpfr_to_tree): Rename from
822         gfc_conv_mpf_to_tree.  Convert it to use MPFR
823         (gfc_conv_constant_to_tree): Use it.
824         * trans-const.h: Update prototype for gfc_conv_mpfr_to_tree().
825         * trans-intrinsic.c: Add arith.h, remove gmp.h
826         (gfc_conv_intrinsic_aint,gfc_conv_intrinsic_mod): Convert GMP to MPFR.
828 2004-08-06  Victor Leikehman  <lei@il.ibm.com>
829         Paul Brook  <paul@codesourcery.com>
831         * trans-array.c (gfc_trans_allocate_array_storage,
832         gfc_trans_allocate_temp_array, gfc_add_loop_ss_code,
833         gfc_conv_loop_setup): For functions, if the shape of the result
834         is not known in compile-time, generate an empty array descriptor for
835         the result and let the callee to allocate the memory.
836         (gfc_trans_dummy_array_bias): Do nothing for pointers.
837         (gfc_conv_expr_descriptor): Use function return values directly.
838         * trans-expr.c (gfc_conv_function_call): Always add byref call
839         insn to pre chain.
840         (gfc_trans_pointer_assignment): Add comments.
841         (gfc_trans_arrayfunc_assign): Don't chain on expression.
843 2004-08-01  Roger Sayle  <roger@eyesopen.com>
845         * options.c (gfc_init_options): Don't warn about the use GNU
846         extensions by default.
847         (gfc_post_options): Warn about GNU extensions with -pedantic.
848         (gfc_handle_option): Don't warn about GNU extensions with -std=gnu.
850 2004-07-30  Richard Henderson  <rth@redhat.com>
852         * trans-expr.c (gfc_conv_expr_reference): Create a CONST_DECL
853         for TREE_CONSTANTs.
855 2004-07-25  Richard Henderson  <rth@redhat.com>
857         * trans-decl.c (gfc_build_function_decl): Set DECL_ARTIFICIAL
858         and DECL_IGNORED_P on RESULT_DECL.
859         (gfc_generate_constructors): Likewise.
861 2004-07-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
863         PR fortran/16465
864         * lang.opt (ffixed-line-length-none, ffixed-line-length-): New
865         options.
866         (ffixed-line-length-80, ffixed-line-length-132): Remove.
867         * options.c (gfc_handle_options): Deal with changed options.
868         * scanner.c (load_line): Change second arg to 'char **',
869         allocate if pointing to NULL. Keep track of buffer's length.
870         Adapt buffer size to overlong lines. Pad lines to full length
871         in fixed form.
872         (load_file): Adapt to new interface of load_line.
874 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
876         * trans.h (builtin_function): Declare.
878 2004-07-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
880         PR fortran/16404
881         (parts ported from g95)
882         * parse.h (gfc_state_data): New field do_variable.
883         (gfc_check_do_variable): Add prototype.
884         * parse.c (push_state): Initialize field 'do_variable'.
885         (gfc_check_do_variable): New function.
886         (parse_do_block): Remember do iterator variable.
887         (parse_file): Initialize field 'do_variable'.
888         * match.c (gfc_match_assignment, gfc_match_do,
889         gfc_match_allocate, gfc_match_nullify, gfc_match_deallocate):
890         Add previously missing checks.
891         (gfc_match_return): Reformat error message.
892         * io.c (match_out_tag): New function.
893         (match_open_element, match_close_element,
894         match_file_element, match_dt_element): Call match_out_tag
895         instead of match_vtag where appropriate.
896         (match_io_iterator, match_io_element): Add missing check.
897         (match_io): Reformat error message.
898         (match_inquire_element): Call match_out_tag where appropriate.
900         * parse.c (gfc_check_do_variable): Fix error locus.
902 2004-07-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
904         PR fortran/15129
905         * trans-decl.c (gfc_build_function_decl): Create a new chardecl
906         for every assumed length character dummy argument.
908         PR fortran/15140
909         * trans-decl.c (gfc_trans_deferred_vars): Remove bogus assertion.
911         PR fortran/13792
912         * simplify.c (gfc_simplify_bound): Copy the bound expression.
914 2004-07-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
916         PR fortran/15324
917         * trans-array.c gfc_trans_g77_array,
918         gfc_trans_dummy_array_bias): Don't call gfc_trans_string_init
919         for assumed length characters.
920         (gfc_conv_expr_descriptor): Set se->string_length if dealing
921         with a character expression.
922         (gfc_cvonv_array_parameter): Pass string length when passing
923         character array according to g77 conventions.
925 2004-07-12  Paul Brook  <paul@codesourcery.com>
927         * expr.c (gfc_check_assign_symbol): Handle pointer assignments.
928         * trans-array.c (gfc_trans_auto_array_allocation): Remove
929         initialization code.
930         * trans-common.c (create_common): Use gfc_conv_initializer.
931         * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_initializer.
932         * trans-expr.c (gfc_conv_initializer): New function.
933         (gfc_conv_structure): Use it.
934         * trans.h (gfc_conv_initializer): Add prototype.
936 2004-07-11  Paul Brook  <paul@codesourcery.com>
938         PR fortran/15986
939         * parse.c (gfc_fixup_sibling_symbols): Also look for untyped
940         variables.
941         (parse_contained): Mark contained symbols as referenced.
943 2004-07-11  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
945         PR fortran/16455
946         * module.c (gfc_dump_module, gfc_use_module): Print locus
947         when opening of module file fails.
949         PR fortran/16404
950         * io.c (match_io): Flag 'WRITE(...), ...' as extension.
952         PR fortran/16404
953         * match.c (gfc_match_program): A program name is obligatory.
954         (gfc_match_return): RETURN in main program is an extension.
955         (gfc_match_block_data): A space is required before a block data
956         name.
958         PR fortran/16433
959         * primary.c (match_boz_constant): Call gfc_notify_std only if
960         we actually have a non-standard boz-literal-constant.
962         PR fortran/15754
963         * expr.c (gfc_check_assign): Print ranks if incompatible. Issue
964         warning if assigning NULL().
966 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
968         * f95-lang.c (set_block): Remove.
969         (gfc_clear_binding_stack): New.
970         (LANG_HOOKS_CLEAR_BINDING_STACK): Define.
971         (struct binding_level): Remove block_created_by_back_end.
972         (clear_binding_level): Likewise.
973         (poplevel): Don't handle block_created_by_back_end.
975 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
977         * trans-decl.c (gfc_create_module_variable): Nothing to do if
978         symbol is in common, because we ...
979         (gfc_generate_module_vars): Call gfc_trans_common.
981 2004-07-10  Paul Brook  <paul@codesourcery.com>
983         * trans-array.c (gfc_build_null_descriptor): New function.
984         (gfc_trans_static_array_pointer): Use it.
985         * trans-array.h (gfc_build_null_descriptor): Add prototype.
986         * trans-expr.c (gfc_conv_structure): Handle array pointers.
988 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
990         PR fortran/16336
991         * decl.c (gfc_match_save): Use-associated common block
992         doesn't collide.
993         * gfortran.h (gfc_common_head): Add new field 'name'.
994         Fix typo in comment after #endif.
995         * match.c (gfc_get_common): Add new argument from_common,
996         mangle name if flag is set, fill in new field in structure
997         gfc_common_head.
998         (match_common): Set new arg in call to gfc_get_common,
999         use-associated common block doesn't collide.
1000         * match.h (gfc_get_common): Adapt prototype.
1001         * module.c (load_commons): Set new arg in call to
1002         gfc_get_common.
1003         * symbol.c (free_common_tree): New function.
1004         (gfc_free_namespace): Call new function.
1005         * trans-common.c (several functions): Remove argument
1006         'name', use name from gfc_common_head instead.
1008 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1010         * expr.c (gfc_check_pointer_assign): Verify that rank of the LHS
1011         and RHS match. Return early if the RHS is NULL().
1013         PR fortran/16336
1014         * match.c (match_common): Fix error reporting for used common.
1016         PR fortran/15969
1017         * trans-expr.c (gfc_conv_structure): Handle initialization
1018         of scalar pointer components.
1020         * parse.c (decode_statement): Fix matching of BLOCK DATA.
1022         * trans-decl.c (generate_local_decl): Remove workaround obsoleted
1023         by fix for PR 15481.
1025 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1027         * trans-common.c: Fix whitespace issues, make variable names
1028         more readable.
1029         (create_common): Additionally, make loop logic more obvious.
1031 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1032         Paul Brook  <paul@codesourcery.com>
1034         PR fortran/13415
1035         * trans-common.c (calculate_length): Remove ...
1036         (get_segment_info): Merge into here.  Save field type.
1037         (build_field): Use saved type.
1038         (create_common, new_condition, new_segment, finish_equivalences):
1039         Use new get_segment_info.
1040         * trans-types.c: Update comment.
1042 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1044         PR fortran/14077
1045         * moduele.c (mio_symbol): Don't I/O initial values unless
1046         symbol is a parameter.
1048 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1050         PR fortran/13201
1051         * resolve.c (resolve_symbol): Verify that the shape of a
1052         parameter array is not only explicit, but also constant.
1053         * array.c (gfc_is_compile_time_shape): New function.
1054         * gfortran.h (gfc_is_compile_time_shape): Add prototype.
1056 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1058         PR fortran/15481
1059         PR fortran/13372
1060         PR fortran/13575
1061         PR fortran/15978
1062         * module.c (write_symbol, write_symtree): Remove workaround.
1063         * primary.c (match_actual_arglist): Enhance comment.
1064         (gfc_match_rvalue): Handle function call with first argument
1065         a keyword argument correctly.
1066         * resolve.c (resolve_symbol): Change call to
1067         gfc_set_default_type to issue error if no implicit type
1068         can be found.
1069         * trans-decl.c (gfc_create_module_variable): Remove workaround.
1071 2004-07-08  Paul Brook  <paul@codesourcery.com>
1073         * intrinsic.c (add_sym_4s): New function.
1074         (add_subroutines): Change gfc_add_sym_? to gfc_add_sym_?s.
1076 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1077         Paul Brook  <paul@codesourcery.com>
1079         PR fortran/15280
1080         PR fortran/15665
1081         * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_IARGC and
1082         GFC_ISYM_COMMAND_ARGUMENT_COUNT.
1083         * intrinsic.c (add_functions):  Identify iargc.  Add
1084         command_argument_count.
1085         (add_subroutines): Resolve getarg.  Add get_command and
1086         get_command_argument.
1087         * intrinsic.h (gfc_resolve_getarg, gfc_resolve_get_command,
1088         gfc_resolve_get_command_argument): Add prototypes.
1089         * iresolve.c (gfc_resolve_getarg, gfc_resolve_get_command,
1090         gfc_resolve_get_command_argument): New functions.
1091         * trans-decl.c (gfor_fndecl_iargc): New variable.
1092         (gfc_build_intrinsic_function_decls): Set it.
1093         * trans-intrinsic.c (gfc_conv_intrinsic_iargc): New function.
1094         (gfc_conv_intrinsic_function): Use it.
1095         * trans.h (gfor_fndecl_iargc): Declare.
1097 2004-07-04  Matthias Klose  <doko@debian.org>
1099         * Make-lang.in: Generate and install gfortran man page.
1100         * invoke.texi: Remove extra '@c man end'.
1102 2004-07-04  Richard Henderson  <rth@redhat.com>
1104         * f95-lang.c (gfc_mark_addressable): Don't put_var_into_stack.
1106 2004-07-04  Paul Brook  <paul@codesourcery.com>
1108         * decl.c (gfc_match_implicit_range): Don't use typespec.
1109         (gfc_match_implicit): Handle character selectors.
1110         * gfortran.h (gfc_set_implicit): Remove prototype.
1111         (gfc_add_new_implicit_range, gfc_merge_new_implicit): Update.
1112         * parse.c (accept_statement): Don't call gfc_set_implicit.
1113         * symbol.c (new_ts): Remove.
1114         (gfc_set_implicit_none): Use same loop bounds as other functions.
1115         (gfc_set_implicit): Remove.
1116         (gfc_clear_new_implicit, gfc_add_new_implicit_range): Only set flags.
1117         (gfc_merge_new_implicit): Combine with gfc_set_implicit.
1119 2004-06-30  Richard Henderson  <rth@redhat.com>
1121         * match.c (var_element): Remove unused variable.
1123         * trans-decl.c (gfc_generate_function_code): Don't set
1124         x_whole_function_mode_p.
1125         (gfc_generate_constructors): Likewise.
1127 2004-06-30  Richard Henderson  <rth@redhat.com>
1129         * trans-decl.c (gfc_generate_function_code): Don't set
1130         immediate_size_expand.
1131         (gfc_generate_constructors): Likewise.
1133 2004-06-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1135         PR fortran/16161
1136         * decl.c (gfc_match_type_spec): Rename second argument to
1137         'implicit_flag', reverse meaning. Don't match_char_spec if
1138         'implicit_flag' is set. Rename to ...
1139         (match_type_spec): ... this.
1140         (gfc_match_implicit_none, match_implicit_range): Move here
1141         from match.c.
1142         (gfc_match_implicit): Move here from match.c, try to
1143         match_char_len if match_implicit_range doesn't succeed for
1144         CHARACTER implicits. Call renamed fucntion match_type_spec.
1145         (gfc_match_data_decl, match_prefix): Call renamed function
1146         match_type_spec.
1147         * match.c (gfc_match_implicit_none, match_implicit_range,
1148         gfc_match_implicit): Move to decl.c.
1149         * match.h (gfc_match_implicit_none, gfc_match_implicit):
1150         Move protoypes to section 'decl.c'.
1151         (gfc_match_type_spec): Remove prototype.
1153 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1155         * decl.c, interface.c, symbol.c, trans-common.c: Add 2004 to
1156         copyright years.
1158 2004-06-29  Steven Bosscher  <stevenb@suse.de>
1160         Make sure types in assignments are compatible.  Mostly mechanical.
1161         * trans-const.h (gfc_index_one_node): New define.
1162         * trans-array.c (gfc_trans_allocate_array_storage,
1163         gfc_trans_allocate_temp_array, gfc_trans_array_constructor_subarray,
1164         gfc_trans_array_constructor_value, gfc_trans_array_constructor,
1165         gfc_conv_array_ubound, gfc_conv_array_ref,
1166         gfc_trans_scalarized_loop_end, gfc_conv_section_startstride,
1167         gfc_conv_ss_startstride, gfc_conv_loop_setup, gfc_array_init_size,
1168         gfc_trans_array_bounds, gfc_trans_dummy_array_bias,
1169         gfc_conv_expr_descriptor, gfc_trans_deferred_array): Use the correct
1170         types in assignments, conversions and conditionals for expressions.
1171         * trans-expr.c (gfc_conv_expr_present, gfc_conv_substring,
1172         gfc_conv_unary_op, gfc_conv_cst_int_power, gfc_conv_string_tmp,
1173         gfc_conv_function_call, gfc_trans_pointer_assignment,
1174         gfc_trans_scalar_assign): Likewise.
1175         * trans-intrinsic.c (build_fixbound_expr, gfc_conv_intrinsic_bound,
1176         gfc_conv_intrinsic_anyall, gfc_conv_intrinsic_count,
1177         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_btest,
1178         gfc_conv_intrinsic_singlebitop, gfc_conv_intrinsic_ishft,
1179         gfc_conv_intrinsic_ishftc, gfc_conv_intrinsic_strcmp,
1180         gfc_conv_allocated, gfc_conv_associated,
1181         gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_trim): Likewise.
1182         * trans-io.c (set_string): Likewise.
1183         * trans-stmt.c (gfc_trans_do, gfc_trans_forall_loop,
1184         gfc_do_allocate, generate_loop_for_temp_to_lhs,
1185         generate_loop_for_rhs_to_temp, compute_inner_temp_size,
1186         compute_overall_iter_number, gfc_trans_assign_need_temp,
1187         gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
1188         gfc_evaluate_where_mask, gfc_trans_where_assign,
1189         gfc_trans_where_2): Likewise.
1190         * trans-types.c (gfc_get_character_type, gfc_build_array_type,
1191         gfc_get_nodesc_array_type, gfc_get_array_type_bounds): Likewise.
1193         * trans.c (gfc_add_modify_expr): Add sanity check that types
1194         for the lhs and rhs are the same for scalar assignments.
1196 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1198         * dump-parse-tree.c (show_common): New function.
1199         (gfc_show_namespace): Show commons.
1201 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1202         Andrew Vaught  <andyv@firstinter.net>
1204         PR fortran/13249
1205         PR fortran/15481
1206         * decl.c (gfc_match_save): Adapt to new common structures,
1207         don't allow saving USE-associated common.
1208         * dump-parse-tree (gfc_show_attr): (saved_)common are not
1209         symbol attributes any longer.
1210         (gfc_show_symbol): Don't show old-style commons any longer.
1211         (gfc_show_namespace): Adapt call to gfc_traverse_symtree to new
1212         interface.
1213         * gfortran.h (symbol_attribute): Remove common and saved_common
1214         attributes.
1215         (gfc_symbol): Remove common_head element.
1216         (gfc_common_head): New struct.
1217         (gfc_get_common_head): New macro.
1218         (gfc_symtree): Add field 'common' to union.
1219         (gfc_namespace): Add field 'common_root'; change type of field
1220         'blank_common' to blank_common.
1221         (gfc_add_data): New prototype.
1222         (gfc_traverse_symtree): Expect a symtree as first argument
1223         instead of namespace.
1224         * match.c (gfc_get_common): New function.
1225         (match_common_name): Change to take char * as argument, adapt,
1226         fix bug with empty name.
1227         (gfc_match_common): Adapt to new data structures. Disallow
1228         redeclaration of USE-associated COMMON-block. Fix bug with
1229         empty common.
1230         (var_element): Adapt to new common structures.
1231         * match.h (gfc_get_common): Declare.
1232         * module.c: Add 2004 to copyright years, add commons to module
1233         file layout description.
1234         (ab_attribute, attr_bits, mio_symbol_attributes): Remove code
1235         for removed attributes.
1236         (mio_symbol): Adapt to new way of storing common relations.
1237         (load_commons): New function.
1238         (read_module): Skip common list on first pass, load_commons at
1239         second.
1240         (write_commons): New function.
1241         (write_module): Call write_commons().
1242         * symbol.c (gfc_add_saved_comon, gfc_add_common): Remove
1243         functions related to removed attributes.
1244         (gfc_add_data): New function.
1245         (gfc_clear_attr): Don't set removed attributes.
1246         (gfc_copy_attr): Don't copy removed attributes.
1247         (traverse_symtree): Remove.
1248         (gfc_traverse_symtree): Don't traverse symbol
1249         tree of the passed namespace, but require a symtree to be passed
1250         instead. Unify with traverse_symtree.
1251         (gfc_traverse_ns): Call gfc_traverse_symtree according to new
1252         interface.
1253         (save_symbol): Remove setting of removed attribute.
1254         * trans-common.c (gfc_sym_mangled_common_id): Change to
1255         take 'char *' argument instead of 'gfc_symbol'.
1256         (build_common_decl, new_segment, translate_common): Adapt to new
1257         data structures, add new
1258         argument name.
1259         (create_common): Adapt to new data structures, add new
1260         argument name. Fix typo in intialization of derived types.
1261         (finish_equivalences): Add second argument in call to
1262         create_common.
1263         (named_common): take 'gfc_symtree' instead of 'gfc_symbol'.
1264         (gfc_trans_common): Adapt to new data structures.
1265         * trans-decl.c (gfc_create_module_variables): Remove test for
1266         removed attribute.
1268 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1270         * io.c: Add 2004 to copyright years.
1272 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1273         Andrew Vaught  <andyv@firstinter.net>
1275         * gfortran.h (gfc_gsymbol): New typedef.
1276         (gfc_gsym_root): New variable.
1277         (gfc_get_gsymbol, gfc_find_gsym): New prototypes.
1278         * parse.c (global_used): New function.
1279         (parse_block_data): Check for double empty BLOCK DATA,
1280         use global symbol table.
1281         (parse_module): Use global symbol table.
1282         (add_global_procedure, add_global_program): New functions.
1283         (gfc_parse_file): Use global symbol table.
1284         * symbol.c (gfc_gsym_root): New variable.
1285         (gfc_find_gsym, gsym_compare, gfc_get_gsymbol): New
1286         functions.
1288 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1290         * module.c (mio_gmp_real): Correct writing of negative numbers.
1292 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1294         PR fortran/15963
1295         * expr.c (check_intrinsic_op): Allow comparison of characters.
1296         Make logic easier.
1298 2004-06-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1299         Andrew Vaught  <andyv@firstinter.net>
1301         * decl.c (contained_procedure): New function.
1302         (match_end): Verify correctness of END STATEMENT in
1303         all cases.
1305 2004-06-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1306         Andrew Vaught  <andyv@firstinter.net>
1308         PR fortran/15190
1309         * decl.c (gfc_match_type_spec), io.c (match_io), parse.c
1310         (decode_statement): Enforce required space in free-form.
1312 2004-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1314         * f95-lang.c (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Deleted.
1315         * trans-array.c (gfc_conv_descriptor_data): Add operand
1316         for COMPONENT_REF.
1317         (gfc_conv_descriptor_offset, gfc_conv_descriptor_dtype): Likewise.
1318         (gfc_conv_descriptor_dimension, gfc_conv_descriptor_stride): Likewise.
1319         (gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound): Likewise.
1320         * trans-common.c (create_common): Likewise.
1321         * trans-expr.c (gfc_conv_component_ref): Likewise.
1322         * trans-io.c (set_parameter_value): Likewise.
1323         (set_parameter_ref, set_string, set_flag, io_result): Likewise.
1324         (transfer_expr): Likewise.
1325         * trans-decl.c (gfc_trans_auto_character_variable):
1326         Set up to get DECL_SIZE and DECL_SIZE_UNIT gimplified.
1327         (gfc_gimplify_function): New function.
1328         (gfc_generate_function-code): Properly handle nested functions.
1329         * trans.c (gfc_build_array_ref): Add two new operands for ARRAY_REF.
1331 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
1333         PR fortran/15750
1334         * io.c (gfc_match_inquire): Bugfix for iolength related stuff.
1335         (gfc_resolve_inquire): Resolve the iolength tag.  Return
1336         SUCCESS at end of function if no failure has occured.
1337         * resolve.c (resolve_code): Resolve if iolength is encountered.
1338         * trans-io.c: (ioparm_iolength, iocall_iolength,
1339         iocall_iolength_done): New variables.
1340         (last_dt): Add IOLENGTH.
1341         (gfc_build_io_library_fndecls ): Set iolength related variables.
1342         (gfc_trans_iolength): Implement.
1343         (gfc_trans_dt_end): Treat iolength as a third form of data transfer.
1345 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de
1347         PR fortran/15511
1348         * scanner.c (load_line): Don't truncate preprocessor lines.
1349         Reformat error message.
1350         (preprocessor_line): Issue warning in case of malformed
1351         preprocessor line.
1353 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1355         * resolve.c (resolve_symbol): Add comment in function body.
1356         (check_data_variable): Change type of mark to ar_type, adapt code
1357         accordingly.
1359 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1361         * array.c (gfc_insert_constructor): Avoid redundant call to
1362         mpz_comp. Add 2004 to copyright years.
1364 2004-06-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1366         * trans.h (stmtblock_t): Change has_scope to unsigned int.
1368 2004-06-20  Steven G. Kargl  <kargls@comcast.net>
1370         * arith.c (gfc_range_check): correct complex underflow.
1372 2004-06-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1374         PR fortran/15962
1375         * match.c (match_case_selector): Call gfc_match_init_expr
1376         instead of gfc_match_expr.
1377         * resolve.c (validate_case_label_expr): No need to check for
1378         constant, since it wouldn't have been matched with the fix to
1379         match.c.
1381 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1383         PR fortran/15211
1384         * trans-intrinsic.c (gfc_conv_intrinsic_len): Deal with arrays
1385         of strings.
1387 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1389         PR fortran/15510
1390         * trans-deecl.c (generate_local_decl): Do not issue warning for
1391         unused variables if they're use associated.
1393 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1394         Andrew Vaught <andyv@firstinter.net>
1396         PR fortran/14928
1397         * gfortran.h (gfc_check_f): Add new field f3ml.
1398         * check.c (gfc_check_minloc_maxloc): Take argument list instead
1399         of individual arguments, reorder if necessary.
1400         * intrinsic.h (gfc_check_minloc_maxloc): ... adapt prototype.
1401         * intrinsic.c (add_sym_3ml): New function.
1402         (add_functions): Change to add_sym_3ml for MINLOC, MAXLOC.
1403         (check_specific): Catch special case MINLOC, MAXLOC.
1405 2004-06-14  Paul Brook  <paul@codesourcery.com>
1407         * intrinsic.c (add_sym_2s): Use correct function types.
1409 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1411         * Make-lang.in (F95_OBJS, F95_PARSER_OBJS): Alphabetize.  Move data.c
1412         * data.c (gfc_get_section_index):  Remove dependency on trans.h.
1414 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
1416         * check.c (gfc_check_second_sub, gfc_check_irand, gfc_check_rand
1417         gfc_check_srand, gfc_check_etime, gfc_check_etime_sub): New functions.
1418         * gfortran.h (gfc_generic_isym_id): New symbols GFC_ISYM_ETIME,
1419         GFC_ISYM_IRAND, GFC_ISYM_RAND, GFC_ISYM_SECOND.
1420         * trans-intrinsic.c:  Use symbols.
1421         * intrinsic.c (add_sym_2s): New function.
1422         * intrinsic.c: Add etime, dtime, irand, rand, second, srand.
1423         * intrinsic.h: Function prototypes.
1424         * iresolve.c (gfc_resolve_etime_sub, gfc_resolve_second_sub
1425         gfc_resolve_srand):  New functions.
1427 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1429         PR fortran/14957
1430         * decl.c (gfc_match_end): Require END {SUBROUTINE|FUNCTION} for
1431         contained procedure.
1433 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1435         PR fortran/12841
1436         * interface.c (compare_parameter, compare_actual_formal): Don't
1437         check types and array shapes for NULL()
1438         * trans-expr.c (conv_function_call): No double indirection for
1439         NULL()
1441 2004-06-09  Toon Moene  <toon@moene.indiv.nluug.nl>
1443         * trans-expr.c (gfc_conv_cst_int_power): Compute
1444         x**(-n) by converting it to (1/x)**n instead of
1445         1/x**n.
1447 2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1449         PR fortran/13372
1450         * module.c (write_symbol, write_symtree): Don't write symbols
1451         wrongly added to namespace.
1452         * trans-decl.c (gfc_create_module_variable): Don't create a
1453         backend decl for a symbol incorrectly added to namespace.
1455 2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1457         PR fortran/13201
1458         * resolve.c (resolve_symbol): Verify that parameter array has an
1459         explicit shape. Fix typos and coding style issues in surrounding
1460         lines.
1462 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1464         PR fortran/15478
1465         * gfortran.texi: The documentation doesn't contain infomration on
1466         how to report bugs, and shouldn't, so remove the line which
1467         says it does.
1469 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1471         * intrinsic.c (sort_actual): Keep track of type of missing
1472         arguments. (Missing from previous commit.)
1474 2004-06-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1476         * gfortran.h (gfc_actual_arglist): New field missing_arg_type.
1477         * interface.c (compare_actual_formal): Keep type of omitted
1478         optional arguments.
1479         * trans-expr.c (gfc_conv_function_call): Add string length
1480         argument for omitted string argument.
1482 2004-06-03  Paul Brook  <paul@codesourcery.com>
1484         * trans.c (gfc_finish_block, gfc_add_expr_to_block): Build statement
1485         lists instead of compound expr chains.
1486         (gfc_trans_code): Annotate statement lists.
1488 2004-06-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1490         * trans-array.c: Fix spelling in comments.
1492 2004-06-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1494         PR fortran/15557
1495         * data.c (assign_substring_data_value): New function.
1496         (gfc_assign_data_value): Call the new function if we're dealing
1497         with a substring LHS.
1499 2004-06-01  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1501         PR fortran/15477
1502         * gfortran.h (GFC_VERSION): Remove.
1503         * gfortran.texi (version-gfortran): Remove, replace by version-GCC
1504         where used.
1506 2004-05-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1508         * trans-types.c: Fix spelling & layout in comments.
1510 2004-05-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1512         PR fortran/14067
1513         * trans-const.c (gfc_conv_string_init): Allow variable string
1514         length lower than initialization string length.
1516 2004-05-30  Paul Brook  <paul@codesourcery.com>
1518         PR fortran/15620
1519         * trans-decl.c (gfc_shadow_sym, gfc_restore_sym): New functions.
1520         * trans-expr.c (gfc_trans_string_copy): New function.
1521         (gfc_conv_statement_function): Use them.  Create temp vars.  Enforce
1522         character lengths.
1523         (gfc_conv_string_parameter): Use gfc_trans_string_copy.
1524         * trans-stmt.c (gfc_trans_forall_1): Use gfc_{shadow,restore}_sym.
1525         * trans.h (struct gfc_saved_var): Define.
1526         (gfc_shadow_sym, gfc_restore_sym): Add prototypes.
1528 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
1530         * iresolve.c (gfc_resolve_random_number): Clean up conditional.
1532 2004-05-29  Steven G. Kargl  <kargls@comcast.net>
1534         * simplify.c (gfc_simplify_log): Remove useless line of code.
1536 2004-05-29  Paul Brook  <paul@codesourcery.com>
1538         * trans-common.c (find_equivalence): Find multiple rules.
1540 2004-05-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1542         * gfortran.h (gfc_current_locus, gfc_set_locus): Remove.
1543         (gfc_current_locus): Declare new global variable.
1544         * scanner.c (gfc_current_locus, gfc_set_locus): Remove.
1545         (gfc_current_locus1): Rename ...
1546         (gfc_current_locus): ... to this.
1547         (gfc_at_eof, gfc_at_bol, gfc_at_eol, gfc_advance_line, next_char,
1548         skip_fixed_comments, skip_free_comments, gfc_next_char_literal,
1549         gfc_peek_char, gfc_gobble_whitespace, gfc_new_file): Use
1550         gfc_current_locus instead of gfc_current_locus1, gfc_set_locus()
1551         and gfc_current_locus(), respectively.
1552         * array.c (match_subscript, gfc_match_array_ref, match_array_list,
1553         match_array_cons_element, gfc_match_array_constructor):
1554         Read/modify gfc_current_locus instead of calling gfc_set_locus()
1555         and gfc_current_locus().
1556         * decl.c (gfc_match_null, variable_decl, gfc_match_kind_spec,
1557         match_attr_spec, gfc_match_function_decl, gfc_match_end,
1558         attr_decl1, gfc_match_save): Likewise.
1559         * error.c (error_print, gfc_internal_error): Likewise.
1560         * expr.c (gfc_int_expr, gfc_default_logical_kind): Likewise.
1561         * interface.c (gfc_add_interface): Likewise.
1562         * io.c (gfc_match_format, match_dt_format, match_dt_element,
1563         match_io_iterator, match_io): Likewise.
1564         * match.c (gfc_match_space, gfc_match_eos,
1565         gfc_match_small_literal_int, gfc_match_st_label,
1566         gfc_match_strings, gfc_match_name, gfc_match_iterator,
1567         gfc_match_char, gfc_match, gfc_match_assignment,
1568         gfc_match_pointer_assignment, gfc_match_if, gfc_match_do,
1569         gfc_match_nullify, gfc_match_call, match_implicit_range,
1570         gfc_match_implicit, gfc_match_data, match_case_selector,
1571         gfc_match_case, match_forall_iterator): Likewise.
1572         * matchexp.c (gfc_match_defined_op_name, next_operator,
1573         match_level_1, match_mult_operand, match_ext_mult_operand,
1574         match_add_operand, match_ext_add_operand, match_level_2,
1575         match_level_3, match_level_4, match_and_operand, match_or_operand,
1576         match_equiv_operand, match_level_5, gfc_match_expr): Likewise.
1577         * module.c (gfc_match_use, mio_array_ref, mio_expr): Likewise.
1578         * parse.c (match_word, decode_statement, next_free, next_fixed,
1579         add_statement, verify_st_order, parse_if_block, gfc_parse_file):
1580         Likewise.
1581         * primary.c (match_digits, match_integer_constant,
1582         match_boz_constant, match_real_constant, match_substring,
1583         next_string_char, match_charkind_name, match_string_constant,
1584         match_logical_constant, match_const_complex_part,
1585         match_complex_constant, match_actual_arg, match_keyword_arg,
1586         gfc_match_actual_arglist, gfc_match_structure_constructor,
1587         gfc_match_rvalue, gfc_match_variable): Likewise.
1588         * st.c (gfc_get_code): Likewise.
1589         * symbol.c (check_conflict, check_used, check_done,
1590         duplicate_attr, add_flavor, gfc_add_procedure, gfc_add_intent,
1591         gfc_add_access, gfc_add_explicit_interface, gfc_add_type,
1592         gfc_add_component, gfc_reference_st_label, gfc_new_symbol): Likewise.
1594 2004-05-26  Roger Sayle  <roger@eyesopen.com>
1596         * io.c (format_asterisk): Silence compiler warnings by correcting
1597         the number of elements of a "locus" initializer.
1599 2004-05-25  Roger Sayle  <roger@eyesopen.com>
1601         PR fortran/13912
1602         * matchexp.c: Allow unary operators after arithmetic operators
1603         as a GNU extension.
1604         (match_ext_mult_operand, match_ext_add_operand): New functions.
1605         (match_mult_operand): Tweak to call match_ext_mult_operand.
1606         (match_add_operand): Tweak to call match_ext_mult_operand.
1607         (match_level_2): Rearrange to call match_ext_add_operand.
1609 2004-05-25  Paul Brook  <paul@codesourcery.com>
1611         * expr.c (check_inquiry): Remove bogus tests.
1613 2004-05-23  Paul Brook  <paul@codesourcery.com>
1615         PR fortran/13773
1616         * expr.c (restricted_args): Remove redundant checks/argument.
1617         (external_spec_function): Update to match.
1618         (restricted_intrinsic): Rewrite.
1620 2004-05-23  Paul Brook  <paul@codesourcery.com>
1621         Victor Leikehman  <lei@haifasphere.co.il>
1623         * gfortran.h (struct gfc_symbol): Add equiv_built.
1624         * trans-common.c: Change int to HOST_WIDE_INT.  Capitalize error
1625         messages.
1626         (current_length): Remove.
1627         (add_segments): New function.
1628         (build_equiv_decl): Create initialized common blocks.
1629         (build_common_decl): Always add decl to bindings.
1630         (create_common): Create initializers.
1631         (find_segment_info): Reformat to match coding conventions.
1632         (new_condition): Use add_segments.
1633         (add_condition, find_equivalence, add_equivalences): Move iteration
1634         inside functions.  Only process each segment once.
1635         (new_segment, finish_equivalences, translate_common): Simplify.
1637 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
1639         * check.c (gfc_check_random_seed): Issue for too many arguments.
1641 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
1643         * intrinsic.c (add_subroutines): Use add_sym_3s for random_seed.
1645 2004-05-22  Paul Brook  <paul@codesourcery.com>
1647         * dump-parse-tree.c (gfc_show_equiv): New function.
1648         (gfc_show_namespace): Use it.
1650 2004-05-22  Victor Leikehman  <lei@haifasphere.co.il>
1652         PR fortran/13249
1653         * symbol.c (gfc_add_common): Disable checks to work around other more
1654         fundamental inadequacies.
1656 2004-05-22  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
1658         * trans-decl.c (gfc_get_extern_function_decl): Set DECL_IS_PURE
1659         only for functions.
1660         (gfc_build_function_decl): Likewise.
1662 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
1664         * check.c (gfc_check_system_clock): New function.
1665         * intrinsic.c (add_sym_3s): New function.
1666         (add_subroutines): Use it.
1667         * intrinsic.h (gfc_check_system_clock, gfc_resolve_system_clock):
1668         Add prototypes.
1669         * iresolve.c (gfc_resolve_system_clock): New function.
1671 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
1673         * invoke.texi: Document -Wunderflow and spell check.
1674         * lang.opt: Add Wunderflow.
1675         * gfortran.h (gfc_option_t): Add warn_underflow option.
1676         * options.c (gfc_init_options, set_Wall): Use it.
1677         * primary.c (match_real_constant): Explicitly handle UNDERFLOW.
1678         * arith.c (gfc_arith_uminus, gfc_arith_plus, gfc_arith_minus,
1679         gfc_arith_times, gfc_arith_divide, gfc_arith_power, gfc_real2real,
1680         gfc_real2complex, gfc_complex2real, gfc_complex2complex): Ditto.
1681         * arith.c (common_logarithm): Fix typo in comment.
1683 2004-05-21  Roger Sayle  <roger@eyesopen.com>
1685         * io.c (check_format): As a GNU extension, allow the comma after a
1686         string literal to be optional in a format.  Use gfc_notify_std to
1687         issue an error/warning as appropriate.
1689 2004-05-21  Roger Sayle  <roger@eyesopen.com>
1691         * io.c (check_format): Use gfc_notify_std to determine whether to
1692         issue an error/warning for omitting the digits from the X format.
1694 2004-05-20  Roger Sayle  <roger@eyesopen.com>
1696         * io.c (check_format): Allow the number before the X format to
1697         be optional when not -pedantic.
1699 2004-05-18  Feng Wang  <fengwang@nudt.edu.cn>
1700         Paul Brook  <paul@codesourcery.com>
1702         * f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.
1703         Create decls for __builtin_pow{,f}.
1704         * gfortran.h (PREFIX_LEN): Define.
1705         * trans-decl.c (gfor_fndecl_math_powi): Add.
1706         (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
1707         (gfc_build_intrinsic_function_decls): Create decls for powi.
1708         * trans-expr.c (powi_table): Add.
1709         (gfc_conv_integer_power): Remove.
1710         (gfc_conv_powi): New function.
1711         (gfc_conv_cst_int_power): New function.
1712         (gfc_conv_power_op): Use new powi routines.
1713         * trans.h (struct gfc_powdecl_list): Add.
1714         (gfor_fndecl_math_powi): Add.
1715         (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
1717 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1719         * trans.c, trans-decl.c: Fix comment typos.
1721 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1723         * trans-const.c (gfc_conv_mpf_to_tree): Fix typo.
1725 2004-05-18  Steve Kargl  <kargls@comcast.net>
1727         * arith.c (gfc_int2complex): Fix incorrect range checking.
1729 2004-05-18  Paul Brook  <paul@codesourcery.com>
1731         PR fortran/13930
1732         * decl.c (add_init_expr_to_sym): Remove incorrect check.
1733         (default_initializer): Move to expr.c.
1734         (variable_decl): Don't assign default initializer to variables.
1735         * expr.c (gfc_default_initializer): Move to here.
1736         * gfortran.h (gfc_default_initializer): Add prototype.
1737         * resolve.c (resolve_symbol): Check for illegal initializers.
1738         Assign default initializer.
1740 2004-05-17  Steve Kargl  <kargls@comcast.net>
1742         * arith.c (gfc_arith_power): Complex number raised to 0 power is 1.
1744 2004-05-17  Steve Kargl  <kargls@comcast.net>
1746         * arith.c (gfc_real2complex): Range checking wrong part of complex
1747         number.
1749 2004-05-16  Paul Brook  <paul@codesourcery.com>
1751         * options.c (gfc_handle_module_path_options): Fix buffer overrun.
1753 2004-05-16  Paul Brook  <paul@codesourcery.com>
1755         * arith.c (gfc_range_check): Fix logic error.
1757 2004-05-16  Steve Kargl  <sgk@troutmask.apl.washington.edu>
1759         * arith.c: Fix comment typos.
1761 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
1763         PR fortran/13742
1764         * decl.c (add_init_expr_to_sym): Verify that COMMON variable is
1765         not initialized in a disallowed fashion.
1766         * match.c (gfc_match_common): Likewise.
1767         (var_element): Verify that variable is not in the blank COMMON,
1768         if it is in a common.
1770 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1772         * Make-lang.in (f95.generated-manpages): Remove.
1773         (f95.srcextra): New.
1774         (f95.info, fortran/gfortran.info, fortran/gfortran.dvi,
1775         f95.maintainer-clean): Generate info and dvi files in objdir/doc.
1776         (f95.dvi): Remove.
1777         (dvi): New.
1778         (f95.install-info): Remove.
1779         (install-info): New.
1781 2004-05-15  Victor Leikehman  <lei@haifasphere.co.il>
1783         * decl.c (add_init_expr_to_sym): Check for variable size arrays.
1785 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1787         * primary.c (match_boz_constant): Use gfc_notify_std() for
1788         issuing a warning or an error.
1790 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1792         PR fortran/13826
1793         * primary.c (match_structure_constructor): Rename ...
1794         (gfc_match_structure_constructor): ... to this. Make non-static.
1795         (gfc_match_rvalue): Call renamed function.
1796         * match.h (gfc_match_structure_constructor): Declare.
1797         * match.c (gfc_match_data_constant): Handle structure
1798         constructor.
1800 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1802         PR fortran/13702
1803         (Port from g95)
1804         * gfortran.h (gfc_linebuf): New typedef.
1805         (linebuf): Remove.
1806         (gfc_file): Revamped, use new gfc_linebuf.
1807         (locus): Revamped, use new types.
1808         (gfc_current_file): Remove.
1809         (gfc_current_form, gfc_source_file): New global variables.
1810         * match.c (gfc_match_space, gfc_match_strings): Use
1811         gfc_current_form to find source form.
1812         * module.c (gfc_dump_module): Use gfc_source_file when printing
1813         module header.
1814         * error.c (show_locus, show_loci) Use new data structures to print
1815         locus.
1816         * scanner.c (first_file, first_duplicated_file, gfc_current_file):
1817         Remove.
1818         (file_head, current_file, gfc_current_form, line_head, line_tail,
1819         gfc_current_locus1, gfc_source_file): New global variables.
1820         (gfc_scanner_init1): Set new global variables.
1821         (gfc_scanner_done1): Free new data structures.
1822         (gfc_current_locus): Return pointer to gfc_current_locus1.
1823         (gfc_set_locus): Set gfc_current_locus1.
1824         (gfc_at_eof): Set new variables.
1825         (gfc_at_bol, gfc_at_eol, gfc_advance_line, gfc_next_char): Adapt
1826         to new locus structure.
1827         (gfc_check_include): Remove.
1828         (skip_free_comments, skip_fixed_comments): Use gfc_current_locus1.
1829         (gfc_skip_comments): Use gfc_current_form, find locus with
1830         gfc_current_locus1.
1831         (gfc_next_char): Use gfc_current_form.
1832         (gfc_peek_char, gfc_gobble_whitespace): Use gfc_current_locus1.
1833         (load_line): Use gfc_current_form. Recognize ^Z as EOF. Fix
1834         comment formatting.
1835         (get_file): New function.
1836         (preprocessor_line, include_line): New functions.
1837         (load_file): Move down, rewrite to match new data structures.
1838         (gfc_new_file): Rewrite to match new data structures.
1839         * parse.c (next_statement): Remove code which is now useless. Use
1840         gfc_source_form and gfc_source_file where appropriate.
1841         * trans-decl.c (gfc_get_label_decl): adapt to new data structures
1842         when determining locus of frontend code.
1843         * trans-io.c (set_error_locus): Same.
1844         * trans.c (gfc_get_backend_locus, gfc_set_backend_locus): Likewise.
1845         * lang-specs.h (@f77-cpp-input, @f95-cpp-input): Remove '-P' from
1846         preprocessor flags.
1847         (all): Add missing initializers.
1849 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1851         * Make-lang.in (trans-common.o): Remove redundant dependency.
1852         (data.c): Replace object file name ...
1853         (data.o): ... by the correct one.
1855 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1857         * dump-parse-tree.c (gfc_show_array_ref): Print colon only
1858         for ranges when dumping array references.
1860 2004-05-14  Victor Leikehman  <lei@haifasphere.co.il>
1862         * decl.c (variable_decl): Always apply default initializer.
1864 2004-05-08  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1866         PR fortran/15206
1867         * trans-intrinsic.c (gfc_conv_intrinsic_rrspacing): Fixed to
1868         handle zero correctly.
1870 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1872         * match.c (gfc_match): Eliminate dead code.
1874 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1876         * parse.c (gfc_statement_next_fixed): (Change from Andy's tree)
1877         Detect bad continuation line in fixed form sources.
1879 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1881         PR fortran/15205
1882         * iresolve.c (gfc_resolve_nearest): Add new function.
1883         * intrinsic.h: ... declare it here.
1884         * intrinsic.c (add_functions): ... add it as resolving function
1885         for NEAREST.
1887 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1889         PR fortran/14066
1890         * match.c (gfc_match_do): Allow infinite loops with
1891         label-do-stmt. Do not enforce space after comma.
1893 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1895         PR fortran/15051
1896         * parse.c (parse_interface): Allow empty INTERFACE, remove
1897         seen_body.
1899 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1901         * Make-lang.in, arith.c, arith.h, array.c, bbt.c, check.c,
1902         decl.c, dependency.c, dependency.h, dump-parse-tree.c, error.c,
1903         expr.c, f95-lang.c, gfortran.h, interface.c, intrinsic.c,
1904         intrinsic.h, io.c, iresolve.c, lang-specs.h, match.c, match.h,
1905         matchexp.c, misc.c, module.c, options.c, parse.c, parse.h,
1906         primary.c, resolve.c, scanner.c, simplify.c, st.c, symbol.c,
1907         trans-array.c, trans-array.h, trans-common.c, trans-const.c,
1908         trans-const.h, trans-decl.c, trans-expr.c, trans-intrinsic.c,
1909         trans-io.c, trans-stmt.c, trans-stmt.h, trans-types.c,
1910         trans-types.h, trans.c, trans.h: Update copyright years and
1911         boilerplate.
1912         * data.c: Likewise, also removed two whitespace-only lines.
1913         * gfortranspec.c, lang.opt: Update copyright years.
1915 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1917         PR fortran/14568
1918         * trans-decl.c (generate_local_decl): Don't warn for unused
1919         variables which are in common blocks.
1921 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
1923         * Make-lang.in, f95-lang.c, trans-array.c, trans-decl.c,
1924         trans-expr.c, trans-intrinsic.c, trans-io.c, trans-stmt.c,
1925         trans.c: Rename tree-simple.[ch] to tree-gimple.[ch].
1927 2004-05-13  Victor Leikehman  <lei@haifasphere.co.il>
1929         PR fortran/15314
1930         * trans-expr.c (gfc_conv_structure): Use field type, not expr type.
1932 2004-05-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1934         * gfortran.texi: Use @table @emph instead of @itemize @emph.
1935         Remove "set DEVELOPMENT".
1936         (Compiling GFORTRAN): Remove.
1938 2004-05-09  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
1940         * array.c (match_subscript, match_array_ref): Add comments
1941         explaining argument 'init'.
1942         * decl.c, f95-lang.c, match.c, resolve.c, trans-array.c,
1943         trans-expr.c, trans.c: Fix some typos in comments.
1944         * dump-parse-tree.c (gfc_show_expr): Remove wrong comment.
1945         * primary.c (match_digits, match_integer_constant): Add comment
1946         explaining signflag.
1948 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1950         PR fortran/13940
1951         * primary.c: Include system.h and flags.h, needed for pedantic.
1952         (match_boz_constant): Allow "x" for hexadecimal constants, warn if
1953         pedantic is set.
1955 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1957         PR fortran/13940
1958         * match.c (match_data_constant): Handle case where
1959         gfc_find_symbol sets sym to NULL
1961 2004-04-28  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1963         * Make-lang.in (f95-lang.o, trans-intrinsic.o): Add missing
1964         dependency on mathbuiltins.def
1966 2004-04-24  Victor Leikehman  <lei@il.ibm.com>
1968         * trans-io.c (transfer_expr): Implemented recursive printing
1969         of derived types.
1971 2004-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
1973         * gfortranspec.c: Do not include multilib.h.
1975 2004-04-24  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
1977         * trans-intrinsic.c: Fix comment, this is not trans-expr.c. Add
1978         2004 to copyright years.
1979         * trans-expr.c, trans-decl.c: Comment update, we now generate
1980         GENERIC, not SIMPLE. Add 2004 to copyright years.
1982 2004-04-24  Paul Brook  <paul@codesourcery.com>
1984         * Make-lang.in (gfortranspec.o): Add dependency on $(TM_H).
1986 2004-04-24  Feng Wang  <fengwang@nudt.edu.cn>
1988         PR 14817
1989         * arith.c (gfc_arith_divide): Fix complex divide.
1991 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
1993         * gfortranspec.c: Include the target headers.
1995 2004-04-18  Feng Wang  <fengwang@nudt.edu.cn>
1997         PR fortran/14921
1998         PR fortran/14540
1999         * arith.c (arctangent2): New function.
2000         * arith.h (arctangent2): Add function prototype.
2001         * simplify.c (gfc_simplify_atan2): Use it.
2002         (gfc_simplify_log): Use it.
2004 2004-04-12  Diego Novillo  <dnovillo@redhat.com>
2006         * fortran/f95-lang.c (gfc_expand_stmt): Remove.
2007         (LANG_HOOKS_RTL_EXPAND_STMT): Remove.
2009 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
2011         PR fortran/14872
2012         * trans-io.c (build_dt): Change REC to value.
2014 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
2016         PR 14394
2017         * trans-const.c (gfc_conv_mpf_to_tree): Loosen the maximum digits of
2018         the real value when converting mpf to string.
2020 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
2022         PR 14395
2023         * trans-intrinsic.c (gfc_conv_intrinsic_cmplx): Fix the imag part of
2024         the result.
2026 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
2028         PR fortran/14377
2029         * simplify.c (simplify_min_max): Convert the type of the result.
2031 2004-04-11  Paul Brook  <paul@codesourcery.com>
2033         * gfortran.texi: Use full target triplet.
2035 2004-04-11  Paul Brook  <paul@codesourcery.com>
2037         * Make-lang.in (GFORTRAN_TEXI): Set it.
2038         (fortran/dfortran.dvi): Use it.  Add fortran to include paths.
2039         (fortran/gfortran.info): Ditto.
2040         * gfortran.texi: Major update.
2041         * invoke.texi: New file.
2043 2004-04-10  Paul Brook  <paul@codesourcery.com>
2045         * trans-array.c (gfc_trans_allocate_temp_array,
2046         gfc_conv_tmp_array_ref): Don't use GFC_DECL_STRING.
2047         * trans-decl.c (gfc_build_dummy_array_decl,
2048         gfc_get_symbol_decl, gfc_build_function_decl,
2049         gfc_create_module_variable): Ditto.
2050         * trans-expr.c (gfc_conv_variable): Ditto.
2051         * trans-intrinsic.c (gfc_conv_intrinsic_len): Ditto.
2052         * trans.h (GFC_DECL_STRING): Remove.
2053         (GFC_DECL_PACKED_ARRAY, GFC_DECL_PARTIAL_PACKED_ARRAY,
2054         GFC_DECL_ASSIGN): Renumber flags.
2056 2004-04-05  Paul Brook  <paul@codesourcery.com>
2058         PR 13252
2059         PR 14081
2060         * f95-lang.c (gfc_init_builtin_functions): Add stack_alloc, stack_save
2061         and stack_restore.
2062         * gfortran.h (struct gfc_charlen): Add backend_decl.
2063         * trans-array.c (gfc_trans_allocate_temp_array,
2064         gfc_conv_temp_array_ref, gfc_conv_resolve_dependencies,
2065         (gfc_conv_loop_setup, gfc_array_allocate, gfc_conv_array_init_size):
2066         Remove old, broken string handling.
2067         (gfc_trans_auto_array_allocation, gfc_trans_g77_array,
2068         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
2069         gfc_trans_deferred_array): Handle character arrays.
2070         * trans-const.c (gfc_conv_const_charlen): New function.
2071         * trans-const.h (gfc_conv_const_charlen): Add prototype.
2072         * trans-decl.c (gfc_finish_var_decl): Don't mark automatic variables
2073         as static.
2074         (gfc_build_dummy_array_decl): Handle arrays with unknown element size.
2075         (gfc_create_string_length): New function.
2076         (gfc_get_symbol_decl): Create lengths for character variables.
2077         (gfc_get_fake_result_decl): Ditto.
2078         (gfc_build_function_decl): Only set length for assumed length
2079         character arguments.
2080         (gfc_trans_dummy_character): New function.
2081         (gfc_trans_auto_character_variable): Rewrite.
2082         (gfc_trans_deferred_vars): Handle more types of character variable.
2083         (gfc_create_module_variable): String lengths have moved.
2084         (gfc_generate_function_code): Initialize deferred var chain earlier.
2085         * trans-expr.c (gfc_conv_init_string_length): Rename ...
2086         (gfc_trans_init_string_length):  ... to this.
2087         (gfc_conv_component_ref, gfc_conv_variable, gfc_conv_concat_op,
2088         gfc_conv_function_call): Update to new format for character variables.
2089         (gfc_conv_string_length): Remove.
2090         (gfc_conv_string_parameter): Update assertion.
2091         * trans-intrinsic.c (gfc_conv_intrinsic_len): Use new location.
2092         * trans-io.c (set_string): Use new macro names.
2093         * trans-stmt.c (gfc_trans_label_assign. gfc_trans_goto): Ditto.
2094         * trans-types.c (gfc_get_character_type): Use existing length expr.
2095         (gfc_is_nodesc_array): Make public.
2096         (gfc_get_dtype_cst): Rename ...
2097         (gfc_get_dtype): ... to this.  Handle unknown size arrays.
2098         (gfc_get_nodesc_array_type): Use new name.
2099         (gfc_sym_type): New character variable code.
2100         (gfc_get_derived_type): Ditto.
2101         (gfc_get_function_type): Evaluate character variable lengths.
2102         * trans-types.h (gfc_strlen_kind): Define.
2103         (gfc_is_nodesc_array): Add prototype.
2104         * trans.h: Update prototypes.
2105         (struct lang_type): Update comments.
2106         (GFC_DECL_STRING_LEN): New name for GFC_DECL_STRING_LENGTH.
2107         (GFC_KNOWN_SIZE_STRING_TYPE): Remove.
2109 2004-04-04  Paul Brook  <paul@codesourcery.com>
2111         * gfortran.h (struct gfc_option_t): Remove flag_g77_calls.
2112         * options.c (gfc_init.options, gfc_handle_option): Ditto.
2113         * trans-expr.c (gfc_conv_function_call): Ditto.
2114         * trans-types.c (gfc_is_nodesc_array): Ditto
2115         * lang.opt (fg77-calls): Remove.
2117 2004-04-04  Paul Brook  <paul@codesourcery.com>
2119         * trans-array.c (OFFSET_FIELD): Rename from BASE_FIELD.
2120         (gfc_conv_descriptor_base): Rename ...
2121         (gfc_conv_descriptor_offset): ... to this.
2122         (gfc_trans_allocate_array_storage): Set offset to zero.
2123         (gfc_conv_array_base): Rename ...
2124         (gfc_conv_array_offset): ... to this.
2125         (gfc_conv_array_index_ref): Add offset parameter.
2126         (gfc_conv_array_ref): Include offset.
2127         (gfc_trans_preloop_setup): Use existing offset.
2128         (gfc_trans_allocate_temp_array,  gfc_array_allocate,
2129         gfc_trans_auto_array_allocation, gfc_trans_g77_array,
2130         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
2131         gfc_conf_ss_descriptor): Set offset.
2132         * trans-array.h: Rename prototypes.
2133         * trans-const.h (gfc_index_zero_node): Define.
2134         * trans-decl.c (gfc_build_qualified_array): Change base to offset.
2135         * trans-types.c (gfc_get_array_type_bounds): Ditto.
2136         (gfc_get_nodesc_array_type): Calculate offset before upper bound.
2138 2004-03-25  Diego Novillo  <dnovillo@redhat.com>
2140         * convert.c (convert): Don't handle WITH_RECORD_EXPR.
2142 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2144         PR 14055
2145         * arith.c (gfc_convert_integer,gfc_convert_real):  Removed leading '+'
2146         before conversion by gmp library call.
2148 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
2150         PR 12921
2151         * trans-io.c (gfc_trans_open): Change RECL= to a value parameter.
2153 2004-02-24  Richard Henderson  <rth@redhat.com>
2155         * trans-array.c (gfc_trans_dummy_array_bias): Fix typo.
2157 2004-02-19  Loren J. Rittle  <ljrittle@acm.org>
2159         * Make-lang.in ($(srcdir)/fortran/gfortran.info): Move...
2160         (fortran/gfortran.info): ... to here.
2161         (f95.srcinfo): New.
2163 2004-02-16  Richard Henderson  <rth@redhat.com>
2165         * Make-lang.in (f95-lang.o, trans-decl.o): Depend on cgraph.h.
2166         * f95-lang.c (LANG_HOOKS_EXPAND_DECL): Remove.
2167         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): New.
2168         (gfc_expand_function): Rename from expand_function_body, make static,
2169         don't do anything except invoke tree_rest_of_compilation.
2170         (gfc_be_parse_file): Invoke cgraph.
2171         (gfc_expand_decl): Remove.
2172         (gfc_init_builtin_functions): Add __builtin_init_trampoline and
2173         __builtin_adjust_trampoline.
2174         * trans-decl.c (gfc_get_extern_function_decl): Don't set DECL_CONTEXT.
2175         (gfc_finalize): New.
2176         (gfc_generate_function_code): Use it.  Lower nested functions.
2177         * trans-expr.c (gfc_conv_function_call): Add static chain operand
2178         to call_expr.
2179         * trans.c (gfc_build_function_call): Likewise.
2180         * trans.h (expand_function_body): Remove.
2182 2004-02-15  Victor Leikehman  <lei@il.ibm.com>
2184         PR gfortran/13433
2185         * trans-decl.c (gfc_build_function_decl) For functions
2186         returning CHARACTER pass an extra length argument,
2187         following g77 calling conventions.
2188         * trans-types.c (gfc_get_function_type) Ditto.
2189         * trans-expr.c (gfc_conv_function_call) Ditto.
2191 2004-02-14  Paul Brook  <paul@codesourcery.com>
2193         * f95-lang.c (gfc_init_builtin_functions): Build chain properly.
2195 2004-02-12  Paul Brook  <paul@nowt.org>
2197         * BUGS: Remove.
2199 2004-02-08  Steve Kargl  <sgk@troutmask.apl.washington.edu>
2201         * gfortran.texi: Fix typos.
2203 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
2205         PR gfortran/13909
2206         * intrinsic.c (add_conversions) Use logical conversion instead
2207         of real.
2208         * trans-types.c (gfc_get_logical_type) implemented logical*1
2209         and logical*2.
2211 2004-01-17  Paul Brook  <paul@codesourcery.com>
2213         * lang-specs.h: Remove %<fixed-form.
2215 2004-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>
2217         * lang-specs.h: Enable preprocessing of source files
2218         ending in .F, .fpp, .FPP, .F90 and .F95.
2220 2004-01-13  Toon Moene  <toon@moene.indiv.nluug.nl>
2222         PR fortran/12912
2223         * lang-specs.h: Enable compilation of files ending
2224         in .f, .for and .FOR.
2226 2004-01-11  Paul Brook  <paul@codesourcery.com>
2228         * trans-stmt.c (gfc_trans_if_1): New function.
2229         (gfc_trans_if): Use it.
2231 2004-01-11  Erik Schnetter  <schnetter@uni-tuebingen.de>
2233         * gfortran.h (GFC_MAX_SYMBOL_LEN): Increase.
2234         (gfc_option_t): Add max_identifier_length.
2235         * lang.opt: Add fmax-identifier-length.
2236         * match.c (parse_name): Use limit.
2237         * options.c (gfc_init_options): Set max_identifier_length.
2238         (gfc_handle_option): Ditto.
2240 2004-01-11  Feng Wang  <fengwang@nudt.edu.cn>
2242         * intrinsic.c (add_functions): Add resolve function to dcmplx.
2243         * intrinsic.h (gfc_resolve_dcmplx): Add prototype.
2244         * iresolve.c (gfc_resolve_dcmplx): New function.
2246 2004-01-10  Paul Brook  <paul@codesourcery.com>
2248         * trans-decl.c (gfc_get_symbol_decl): Don't set subroutine attr.
2249         * trans-types.c (gfc_sym_type): Handle external dummy procedures.
2250         (gfc_return_by_reference): Correct condition.
2251         (gfc_get_function_type): Ditto.
2253 2004-01-10  Paul Brook  <paul@codesourcery.com>
2255         * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Convert mismatched
2256         types.
2258 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
2260         * iresolve.c: Use correct kind.
2262 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
2264         PR fortran/13467
2265         * trans-decl.c (gfc_create_module_variable):  Output array valued
2266         parameters.
2268 2004-01-10  Paul Brook  <paul@codesourcery.com>
2270         * resolve.c (resolve_branch): Get error message right way round.
2272 2004-01-10  Canqun Yang <canqun@nudt.edu.cn>
2274         * trans-array (gfc_conv_loop_setup): Adjust comment to track
2275         reality.
2276         (gfc_array_allocate): Don't count size of element twice.
2278 2004-01-04  Paul Brook  <paul@codesourcery.com>
2280         * lang.opt (i8, r8, std=*): Remove RejectNegative.
2282 2004-01-04  Paul Brook  <paul@codesourcery.com>
2284         * error.c (gfc_notify_std): New function.
2285         * gfortran.h (gfc_notify_std): Declare.
2286         (GFC_STD_*): Define.
2287         (gfc_option_t): Add warn_std and allow_std.
2288         * intrinsic.c (gfc_init_expr_extensions): Fix logic.
2289         (gfc_intrinsic_func_interface): Use gfc_notify_std.
2290         * check.c (check_rest): Use gfc_notify_std.
2291         * match.c (gfc_match_pause): Ditto.
2292         (gfc_match_assign): Ditto.
2293         (gfc_match_goto): Ditto.
2294         * resolve.c (resolve_branch): Ditto.
2295         * lang.opt: Add std=<foo> and w.
2296         * options.c (gfc_init_options): Set allow_std and warn_std.
2297         (gfc_handle_option): Handle OPT_std_* and OPT_w.
2299 2004-01-01  Paul Brook  <paul@codesourcery.com>
2301         * array.c (gfc_append_constructor): Take constructor, not expression.
2302         * data.c (struct gfc_expr_stack): Remove.
2303         (expr_stack): Remove.
2304         (find_con_by_offset): Rename from find_expr_in_con.
2305         (find_con_by_component): Rename from find_component_in_con.
2306         (gfc_get_expr_stack): Remove.
2307         (gfc_assign_data_value): Rewrite.
2308         (gfc_expr_push): Remove.
2309         (gfc_expr_pop): Remove.
2310         (gfc_advance_section): Rename from
2311         gfc_modify_index_and_calculate_offset.  Handle unbounded sections.
2312         (gfc_get_section_index): Handle unbounded sections.
2313         * gfortran.h: Update prototypes.
2314         * resolve.c (check_data_variable): Array section maight not be the
2315         last ref.
2317 2004-01-01  Paul Brook  <paul@codesourcery.com>
2319         PR fortran/13432
2320         * resolve.c (resolve_symbol): Allow assumed length function results.
2322 2004-01-01  Steve Kargl  <sgk@troutmask.apl.washington.edu>
2324         * match.c (gfc_match_pause): Fix spelling.
2326 2004-01-01  Steven Bosscher  <stevenb@suse.de>
2328         PR fortran/13251
2329         * trans-expr.c (gfc_conv_variable): Take the type kind of a substring
2330         reference from the expression.
2332 2003-12-26  Feng Wang  <fengwang@nudt.edu.cn>
2334         * dump-parse-tree.c (gfc_show_code_node): Add ASSIGN and ASSIGNED GOTO
2335         dumping.
2336         * gfortran.h (gfc_statement): New ST_LABEL_ASSIGNMENT.
2337         (gfc_exec_op): New EXEC_LABEL_ASSIGN.
2338         (symbol_attribute):New variable attribute: assign.
2339         * io.c (resolve_tag):Integer variable is allowed.
2340         (match_dt_format): Add ASSIGN statement. Set assign flag.
2341         * match.c (gfc_match_if): Change ST_NONE to ST_LABEL_ASSIGNMENT.
2342         (gfc_match_assign): Add ASSIGN statement. Set assign flag.
2343         (gfc_match_goto): Add ASSIGNED GOTO statement. Set assign flag.
2344         * parse.c (decode_statement): Add ST_LABEL_ASSIGNMENT.
2345         (next_statement): Add ST_LABEL_ASSIGNMENT.
2346         (gfc_ascii_statement): Add ST_LABEL_ASSIGNMENT.
2347         * resolve.c (resolve_code): Resolve ASSIGN and ASSIGNED GOTO statement.
2348         (resolve_blocks): Resolve ASSIGNED GOTO statement label list.
2349         * st.c (gfc_free_statement): Add EXEC_LABEL_ASSIGN.
2350         * trans-decl.c (gfc_get_symbol_decl): Create the shadow variable for
2351         assign.  Put them into the stuct lang_decl.
2352         * trans-io.c (set_string): Add the assign statement.
2353         * trans-stmt.c (gfc_trans_label_assign): New function.
2354         (gfc_trans_goto): Translate ASSIGNED GOTO statement.
2355         * trans-stmt.h (gfc_trans_label_assign): Added function prototype.
2356         * trans.c (gfc_trans_code): Add EXEC_LABEL_ASSIGN.
2357         * trans.h (lang_decl):Add shadow variable decl tree needed by assign.
2358         (GFC_DECL_ASSIGN_ADDR(node)): New macro to access this.
2359         (GFC_DECL_ASSIGN(node)): New macro to access flag.
2361 2003-12-31  Huang Chun <chunhuang73@hotmail.com>
2363         PR fortran/13434
2364         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Fixed bug in
2365         minval/maxval.
2367 2003-12-22  Toon Moene  <toon@moene.indiv.nluug.nl>
2369         * options.c (gfc_init_options): Set flag_argument_noalias to 2, to indicate
2370         that arguments to subroutines/functions can't alias themselves, nor global
2371         memory.
2373 2003-12-20  Steven Bosscher  <stevenb@suse.de>
2375         * trans-expr.c (gfc_conv_expr_op): Fold the result expression.
2376         * trans.c (gfc_add_modify_expr, gfc_add_expr_to_block): Likewise.
2378 2003-12-12  Huang Chun <chunhuang73@hotmail.com>
2380         * primary.c (match_substring): Fix substring bug for start point
2381         or end point is NULL.
2382         * trans-expr.c (gfc_conv_substring): Ditto
2383         * trans-types.c (gfc_sym_type): Get correct type of scalar
2384         character variables.
2385         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle character in
2386         derived type.
2388 2003-12-10  Richard Henderson  <rth@redhat.com>
2390         * options.c (gfc_post_options): Don't ever use rtl inlining.
2392 2003-12-05  Canqun Yang  <canqun@nudt.edu.cn>
2394         * trans-common.c: Re-implement COMMON blocks and EQUIVALENCE lists.
2395         * trans-equivalence.c: Remove.
2396         * trans-decl.c (gfc_get_symbol_decl): Update to match.
2397         (gfc_generate_function_code): Ditto.
2398         * trans-array.c (gfc_conv_array_parameter): Ditto.
2399         * Make-lang.in (F95_OBJS): Remove fortran/trans-equivalence.o
2400         (F95_ADDITIONAL_OBJS): Add stor-layout.o
2401         * trans.h (gfc_trans_equivalence): Remove.
2402         * gfortran.h (struct gfc_equiv): Add used field.
2403         (struct gfc_symbol): Remove addr_base, addr_offset, equiv_ring,
2404         equiv_offset fields.
2406 2003-12-05  Richard Henderson  <rth@redhat.com>
2408         * trans.c (gfc_build_addr_expr): New.
2409         (gfc_build_indirect_ref, gfc_build_array_ref): New.
2410         * trans.h: Declare them.
2411         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-io.c,
2412         trans-stmt.c, trans.c (*): Use them.
2414         * f95-lang.c (gfc_post_options): Remove dead prototype.
2415         * trans-array.c (gfc_trans_deferred_vars): Remove unused variable.
2416         * trans-stmt.c (gfc_evaluate_where_mask): Fix temporary_list
2417         allocation size.
2419 2003-12-01  Feng Wang  <fengwang@nudt.edu.cn>
2421         * io.c (gfc_match_format): Check for missing format label.
2423 2003-11-30 Huang Chun <chunhuang73@hotmail.com>
2425         PR fortran/13155
2426         * trans-decl.c (gfc_sym_mangled_function_id): Don't mangle symbols
2427         from interfaces in modules.
2429 2003-11-30  Paul Brook  <paul@nowt.org>
2431         * trans-array.c (gfc_trans_g77_array): Make non-static.
2432         (gfc_trans_assumed_size): Remove.
2433         (gfc_trans_dummy_array_bias): Explicitly free temporary.
2434         * trans-array.h (gfc_trans_g77_array): Add prototype.
2435         (gfc_trans_assumed_size): Remove.
2436         * trans-decls.c (gfor_fndecl_push_context): Remove.
2437         (gfor_fndecl_pop_context): Remove.
2438         (gfc_build_function)decls): Don't create them.
2439         (gfc_trans_deferred_vars): Update to match. Remove dead code.
2440         * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Free temp.
2442 2003-11-30  Kejia Zhao  <kejia_zh@nudt.edu.cn>
2444         * trans-array.c (gfc_conv_array_parameter): Simplify
2445         array argument passing for array name actual argument.
2446         * trans-expr.c (gfc_conv_function_call): Ditto
2447         * trans-types.c (gfc_is_nodesc_array):Ditto.
2449 2003-11-30  Paul Brook  <paul@nowt.org>
2451         * f95-lang.c (gfc_post_options): Move ...
2452         * options.c (gfc_post_options): .. to here.  Handle inlining options.
2453         * gfortran.h (gfc_post_options): Add prototype.
2455 2003-11-28  Richard Henderson  <rth@redhat.com>
2457         * trans.c (gfc_create_var_np): Use create_tmp_var_raw.
2459 2003-11-28 Huang Chun <chunhuang73@hotmail.com>
2461         * trans.h (has_alternate_specifier): New global variable.
2462         * match.c (gfc_match_call): Handle actual arguments associated with
2463         alternate return indicators.
2464         * trans-expr.c (gfc_conv_function_call): Ditto
2465         * trans-stmt.c (gfc_trans_call): Ditto
2466         (gfc_trans_return): Handle return statement with value.
2467         * trans-decl.c (gfc_generate_function_code): Handle functions with
2468         asterisk dummy.
2469         (gfc_get_fake_result_decl): Ditto
2470         * trans-types.c (gfc_get_function_type): Ditto
2471         * resolve.c (resolve_actual_arglist): Check alternate return indicators.
2472         (resolve_formal_arglist): Check asterisk dummy.
2474 2003-11-27  Paul Brook  <paul@nowt.org>
2476         * trans-array.c (gfc_tran_allocate_array_storage): Use new memory
2477         allocation interface.
2478         (gfc_conv_ array_parameter): Ditto.
2479         (gfc_trans_auto_array_allocation): Ditto. Also free the memory.
2480         * trans-array.c: Update prototype.
2481         * trans-decl.c (gfc_build_builtin_function_decls): Update prototypes.
2482         (gfc_trans_auto_character_variable): Use new memory alloc interface.
2483         * trans-expr.c (gfc_conv_string_tmp): Ditto.
2484         (gfc_conv_function_call): Use gfc_conv_string_tmp.
2485         * trans-stmt.c (gfc_do_allocate):  Use new memory alloc interface.
2486         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Ditto.
2487         * trans.h (gfc_ss_info): Remove unused pdata field.
2488         * trans.c (gfc_create_var_np): Change T to V.
2490 2003-11-26  Richard Henderson  <rth@redhat.com>
2492         * mathbuiltins.def: Move acos, asin, cosh, log10, sinh, tanh from ...
2493         * trans-intrinsic.c (gfc_intrinsic_map): ... here.  Add SCALE,
2494         FRACTION, NEAREST, SET_EXPONENT.
2495         (gfc_intrinsic_map_t): Add libm_name, complex_available, is_constant.
2496         Fix GTY marking.  Remove unnecessary const's.
2497         (LIBM_FUNCTION): Rename from I_LIB.
2498         (LIBF_FUNCTION): New.
2499         (gfc_get_intrinsic_lib_fndecl): Handle libm and libgfortran naming
2500         conventions.  Assume the expr signature is correct.  Mark const.
2501         (gfc_conv_intrinsic_exponent): Use library functions.
2502         (gfc_conv_intrinsic_set_exponent): Remove.
2503         (gfc_conv_intrinsic_scale): Remove.
2504         (gfc_conv_intrinsic_nearest): Remove.
2505         (gfc_conv_intrinsic_fraction): Remove.
2506         (gfc_conv_intrinsic_function): Update.
2507         * trans-decl.c (gfor_fndecl_math_exponent4): New.
2508         (gfor_fndecl_math_exponent8): New.
2509         (gfc_build_intrinsic_function_decls): Set them.
2510         * trans.h: Declare them.
2512 2003-11-25  Canqun Yang  <canqun@nudt.edu.cn>
2514         * trans-common.c (gfc_layout_global_equiv): Locate the error for
2515         underflow COMMON block.
2516         (gfc_trans_one_common): Fix bug for size of COMMON block containing
2517         EQUIVALENCE object. Also fix typo in an error message.
2519 2003-11-25  Diego Novillo  <dnovillo@redhat.com>
2521         * Make-lang.in: Add check-gfortran to lang_checks.
2522         (check-f95): Alias for check-gfortran.
2524 2003-11-25  Jason Merrill  <jason@redhat.com>
2526         * Make-lang.in (f95.tags): Create TAGS.sub files in each
2527         directory and TAGS files that include them for each front end.
2529 2003-11-24  Paul Brook  <paul@nowt.org>
2531         PR fortran/13154
2532         * trans-decl.c (gfc_greate_module_variable): Skip COMMON blocks.
2534 2003-11-24  Paul Brook  <paul@nowt.org>
2536         * expr.c (simplify_const_ref): Return SUCCESS for things we don't
2537         handle.
2538         * resolve.c (gfc_resolve_expr): Resolve contents before rank/shape.
2540 2003-11-24  Paul Brook  <paul@nowt.org>
2542         PR fortran/13105
2543         * array.c (gfc_array_ref_shape): Handle elemental dimensions.
2544         * trans-array.c (gfc_trans_preloop_setup): Use correct dim lookup.
2546 2003-11-20  Richard Henderson  <rth@redhat.com>
2548         * trans-array.c (gfc_trans_allocate_array_storage): Use convert.
2549         (gfc_conv_array_base): Likewise.
2550         * trans-decl.c (gfc_trans_auto_character_variable): Likewise.
2551         * trans-expr.c (gfc_conv_string_tmp): Likewise.
2552         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Likewise.
2553         * trans-stmt.c (gfc_trans_character_select): Likewise.
2555 2003-11-13  Paul Brook  <paul@nowt.org>
2557         * trans-decl.c (gfc_sym_mangled_function_id): Dont mangle externals.
2559 2003-11-13  Canqun Yang  <canqun@nudt.edu.cn>
2561         * resolve.c (gfc_resolve): Also resolve EQUIVALENCE objects.
2562         (resolve_equivalence): New function.
2563         (resolve_equivalence_derived): New function.
2565 2003-11-12  Richard Henderson  <rth@redhat.com>
2567         * trans.c (gfc_trans_code): Use annotate_with_locus instead of
2568         annotate_all_with_locus.
2570 2003-11-11  Canqun Yang  <canqun@nudt.edu.cn>
2572         * options.c (gfc_init_options): Set flag_max_stack_var_size as 32768.
2573         * trans-decl.c (gfc_finish_var_decl): Modified.
2575 2003-11-08  Paul Brook  <paul@nowt.org>
2577         PR fortran/12704
2578         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Handle zero-size
2579         arrays.
2581 2003-11-06  Paul Brook  <paul@nowt.org>
2583         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Initialize pos.
2585 2003-11-02  Canqun Yang  <canqun@nudt.edu.cn>
2587         * match.c (gfc_match_stopcode): Assign '0' to stop_code.
2589 2003-10-27  Anthony Green  <green@redhat.com>
2591         * Make-lang.in (f95.stageprofile): Use tabs, not spaces.
2592         (f95.stagefeedback): Ditto.
2594 2003-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
2596         PR fortran/12682
2597         * Make-lang.in (f95.stageprofile): Add.
2598         (f95.stagefeedback): Add.
2600 2003-10-23  Richard Henderson  <rth@redhat.com>
2602         * f96-lang.c (gfc_gimplify_expr): Remove.
2603         (LANG_HOOKS_GIMPLIFY_EXPR): Remove.
2604         (LANG_HOOKS_GIMPLE_BEFORE_INLINING): New.
2606 2003-10-23  Richard Henderson  <rth@redhat.com>
2608         * f95-lang.c (gfc_gimplify_expr): Return gimplify_status.
2610 2003-10-20  Paul Brook  <paul@nowt.org>
2612         * trans-expr.c (gfc_conv_integer_power): Use boolean_type_node.
2613         * trans-stmt.c (gfc_trans_do_while): Ditto.
2615 2003-10-17  Paul Brook  <paul@nowt.org>
2617         * simplify.c (gfc_simplify_shape): Use gfc_array_dimen_size.
2619 2003-10-17  Paul Brook  <paul@nowt.org>
2621         * trans-io.c (gfc_build_io_library_fndecls): Set TREE_PUBLIC.
2623 2003-10-17  Feng Wang  <wf_cs@yahoo.com>
2625         * iresolve.c (gfc_resolve_maxloc): Change the result's kind and type.
2626         (gfc_resolve_minloc): Ditto.
2627         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use correct types.
2628         Return the value after subtracting the lower bound.
2630 2003-10-16  Richard Henderson  <rth@redhat.com>
2632         * f95-lang.c (expand_function_body): Don't check flag_disable_gimple.
2634 2003-10-16  Steven Bosscher  <steven@gcc.gnu.org>
2636         * lang.c: Remove -M option for now, it's in the way for C.
2638 2003-10-14  Jason Merrill  <jason@redhat.com>
2640         * Make-lang.in (f95.tags): New rule.
2642 2003-10-13  Richard Henderson  <rth@redhat.com>
2644         * trans.c (gfc_trans_code): Use annotate_all_with_locus.
2646 2003-10-13  Paul Brook  <paul@nowt.org>
2648         * trans-decl.c (generate_local_decl): Don't create junk variables.
2650 2003-10-13  Paul Brook  <paul@nowt.org>
2652         * resolve.c (resolve_formal_arglist): Use function result decl in
2653         preference to function decl.
2655 2003-10-12  Richard Henderson  <rth@redhat.com>
2657         * f95-lang.c (gfc_define_builtin): New const_p argument.  Set
2658         TREE_READONLY.  Update all callers.
2660 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
2662         * iresolve.c (gfc_resolve_cshift): Change to match implementation.
2663         * trans-intrinsic.c (gfc_conv_intrinsic_function): Remove CSHIFT.
2664         (gfc_is_intrinsic_libcall): Add CSHIFT.
2666 2003-10-12  Richard Henderson  <rth@redhat.com>
2668         * trans-array.c (gfc_trans_static_array_pointer): Set TREE_INVARIANT.
2669         (gfc_trans_array_constructor_value): Likewise.
2670         (gfc_conv_array_initializer): Likewise.
2671         * trans-stmt.c (gfc_trans_character_select): Likewise.
2673 2003-11-12  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2675         * trans-intrinsic.c (integer_kind_info, real_kind_info): Remove.
2677 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
2679         * check.c (gfc_check_repeat): Check arguments are scalar.
2680         (gfc_check_trim): New function.
2681         * intrinsic.h (gfc_check_trim): Add prototype.
2682         * intrinsic.c (add_functions): Use it.
2683         * trans.h (gfor_fndecl_string_trim, gfor_fndecl_string_repeat):
2684         Decalare.
2685         * trans-decl.c: Ditto.
2686         (gfc_build_intrinsic_fucntion_decls): Set them.
2687         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle result vars.
2688         (gfc_conv_intrinsic_trim): New function.
2689         (gfc_conv_intrinsic_repeat): New function.
2690         (gfc_conv_intrinsic_function): Use them.
2692 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
2694         * trans-types.c (gfc_sym_type): Handle result variables.
2696 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
2698         * trans-intrinsic.c (gfc_conv_intrinsic_char): Don't use
2699         gfc_get_character_type.
2701 2003-10-11  Feng Wang  <wf_cs@yahoo.com>
2703         * trans-expr.c (gfc_conv_variable): Check sym->ts, not the decl.
2705 2003-10-11  Paul Brook  <paul@nowt.org>
2707         * iresolve.c (gfc_resolve_dint, gfc_resolve_dnint): New functions.
2708         (gfc_resolve_dprod): New function.
2709         (gfc_resolve_aint, gfc_resolve_anint): Only base name on arg type.
2710         * intrinsic.h (gfc_resolve_dint, gfc_resolve_dnint): Declare.
2711         (gfc_resolve_dprod): Declare.
2712         * intrinsic.c (add_functions): Use them.
2713         * trans-decl.c (gfc_get_extern_function_decl): Only pass one arg.
2715 2003-10-06  Richard Henderson  <rth@redhat.com>
2717         * f95-lang.c (gfc_init_builtin_functions): Add clzll.
2718         * trans-intrinsic.c (call_builtin_clz): Use it.
2720 2003-10-05  Paul Brook  <paul@nowt.org>
2722         * f95-lang.c (expand_function_body): Call (push|pop)_function_context.
2723         * trans-decl.c (gfc_generate_function_code): Set
2724         cfun->function_end_locus.
2726 2003-09-24  Jason Merrill  <jason@redhat.com>
2728         * f95-lang.c, trans-decl.c: Use DECL_SOURCE_LOCATION instead of
2729         TREE_LOCUS.
2731 2003-09-21  Lifang Zeng  <zlf605@hotmail.com>
2732         Paul Brook  <paul@nowt.org>
2734         * Make-lang.in (F95_OBJS): Add fortran/data.o.
2735         * array.c (gfc_inser_constructor): New function.
2736         (gfc_get_constructor): New function.
2737         (gfc_free_constructor): Initialize offset and repeat.
2738         (iterator_stack): Remove.
2739         (expand_info): Add offset, component and repeat fields.
2740         (expand_constructor): Set them.
2741         (expand): Set new fields.
2742         (gfc_copy_constructor): Ditto. Avoid recursion.
2743         * gfortran.h: Add prototypes for new functions.
2744         (gfc_constructor): Add offset, component and repeat.
2745         (iteratio_stack): Move to here.
2746         * resolve.c (check_data_variable): Convert data values into variable
2747         initializers.
2748         (traverse_data_list): Build implicit loop chain.
2749         (gfc_resolve): Ditto.
2750         * trans-array.c (gfc_conv_array_intializer): Handle repeat count.
2751         * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_structure.
2752         * trans-expr.c (gfc_conv_structure): Handle array initializers.
2753         (gfc_conv_expr): Update to match.
2754         * trans.h (gfc_conv_structure): Declare.
2755         * data.c: New file.
2757 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2759         * trans.h: Add declarations for gfor_fndecl_si_kind and
2760         gfor_fndecl_sr_kind.
2761         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
2762         * trans-intrinsic.c (g95_conv_intrinsic_si_kind): New function.
2763         (g95_conv_intrinsic_sr_kind): New function.
2764         (g95_conv_intrinsic_function): Add SELECTED_INT_KIND and
2765         SELECTED_REAL_KIND.
2767 2003-09-17  Lars Segerlund  <Lars.Segerlund@comsys.se>
2769         * iresolve.c (gfc_resolve_random_number): Generate _r4 & _r8
2770         instead of _4 and _8 as postfix for libgfortran calls.
2772 2003-09-16  Paul Brook  <paul@nowt.org>
2774         * array.c (compare_bounds): New function.
2775         (gfc_compare_array_spec): Use it.
2777 2003-09-14  Paul Brook  <paul@nowt.org>
2779         * primary.c (gfc_match_rvalue): Make sure sym->result is set.
2780         * trans-expr.c (gfc_conv_string_parameter): Also allow PRAM_DECLs.
2782 2003-09-14  Paul Brook  <paul@nowt.org>
2784         * check.c (dim_rank_check): Allow assumed bounds if requested.
2785         (gfc_check_lbound): Call it.
2786         (gfc_check_ubound): Ditto.
2787         (gfc_check_size): Change to match.
2788         * simplify.c (gfc_simplify_bound): New function.
2789         (gfc_simplify_lbound): New function.
2790         (gfc_simplify_ubound): New function.
2791         * intrinsic.h: Declare them.
2792         * intrinsic.c (add_functions): Use them.
2794 2003-09-14  Paul Brook  <paul@nowt.org>
2796         * io.c (format_lex): Initialize negative_flag.
2797         (check_format): Intialize repeat.
2798         * trans-io.c (gfc_new_nml_name_expr): Declare static.
2799         (gfc_new_var_expr): Ditto.
2801 2003-09-14  Paul Brook  <paul@nowt.org>
2803         * trans-array.c (gfc_conv_array_initializer): Handle derived types.
2804         * trans-decl.c (gfc_get_symbol_decl): Only do local scalar values.
2806 2003-09-12  Paul Brook  <paul@nowt.org>
2808         * trans-intrinsic.c (gfc_conv_intrinsic_sign): Call fold.
2810 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2812         * fortran/trans.c (gfc_finish_block): Call rationalize_compound_expr
2813         for a correct expression.
2815 2003-09-10  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2817         * trans-intrinsic.c (real_compnt_info): New struct.
2818         (prepare_arg_info): New function.
2819         (gfc_conv_intrinsic_set_exponent): New function.
2820         (gfc_conv_intrinsic_scale): New function.
2821         (gfc_conv_intrinsic_nearest): New function.
2822         (gfc_conv_intrinsic_fraction): New function.
2823         (gfc_conv_intrinsic_exponent): New function.
2824         (gfc_conv_intrinsic_spacing): New function.
2825         (gfc_conv_intrinsic_rrspacing): New function.
2826         (gfc_conv_intrinsic_function): Use them.
2828 2003-08-24 XiaoQiang Zhang  (zhangapache@yahoo.com>
2830         * trans-const.c (gfc_conv_mpz_to_tree): Fix bug, parameter for
2831         build_int_2 changed from (high, low) to (low, high).
2832         * trans-io.c (ioparm_namelist_name, ioparm_namelist_name_len,
2833         ioparm_namelist_read_mode, iocall_set_nml_val_int,
2834         iocall_set_nml_val_float, iocall_set_nml_val_char,
2835         iocall_set_nml_val_complex, iocall_set_nml_val_log): New declaration.
2836         (gfc_build_io_library_fndecls): Add variable initialization.
2837         (gfc_new_nml_name_expr, get_new_var_expr): New function.
2838         (build_dt): Add namelist support.
2839         * io.c (value): New variable.
2840         (check_format): Support FMT_H now.
2842 2003-09-07  Paul Brook  <paul@nowt.org>
2844         * io.c (gfc_resolve_dt): Error if format label is not defined.
2846 2003-09-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2848         * trans-intrinsic.c (gfc_conv_intrinsic_aint): Fix two bugs. One is
2849         about case_switch's break. The other is about building the condition
2850         statement tree, which judges the argument in the range of the
2851         corresponding integer type.
2852         * trans-intrinsic.c (gfc_conv_intrinsic_mod): MOD and MODULO can work
2853         for the large values.
2855 2003-09-05  Paul Brook  <paul@nowt.org>
2857         * f95-lang.c (expand_function_body): Gimplify the function.
2859 2003-09-04  Jeff Law  <law@redhat.com>
2861         * f95-lang.c (DEFINE_MATH_BUILTIN): C arrays start at
2862         index zero!
2864 2003-09-04  Paul Brook  <paul@nowt.org>
2866         * f95-lang.c (gfc_define_builtin): Also set implicit_built_in_decls.
2867         (gfc_expand_stmt): New function.
2868         (LANG_HOOKS_RTL_EXPAND_STMT): Define.
2869         (expand_function_body): Use tree_rest_of_compilation.
2870         * trans-decl.c (gfc_generate_function_code): Don't free cfun.
2872 2003-09-03  Jeff Law  <law@redhat.com>
2874         * f95-lang.c (gfc_init_builtin_functions): C arrays start at
2875         index zero!
2877 2003-08-30  Paul Brook  <paul@nowt.org>
2879         * f95-lang.c (builtin_function): Remove #if 0 code.
2880         (gfc_define_builtin): New function.
2881         (gfc_init_builtin_functions): Use mathbuiltins.def not ../builtins.def.
2882         * mathbuiltins.def: New file.
2883         * trans-intrinsic.c (gfc_intrinsic_map_t): Add builtin code fields.
2884         (gfc_intrinsic_map): Use mathbuiltins.def.
2885         (gfc_intrinsic_builtin_t): Remove.
2886         (gfc_build_intrinsic_lib_fndecls): Update.
2887         * trans-types.c (gfc_init_types): Remove redundant initilaization of
2888         signed_size_type_node.
2890 2003-08-29  Paul Brook  <paul@nowt.org>
2892         * arith.c (gfc_real_kinds): Use correct minimum exponents.
2894 2003-08-22  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2896         * trans-instinsic.c (gfc_conv_intrinsic_mod): Also do MODULO.
2897         (gfc_conv_intrinsic_function): Add MODULO.
2899 2003-08-22  Jason Merrill  <jason@redhat.com>
2901         * trans-array.c (gfc_conv_expr_descriptor): Update use of predicates.
2903 2003-08-22  Andreas Jaeger  <aj@suse.de>
2905         * Make-lang.in (f95.install-common): Add DESTDIR support.
2906         * (f95.install-info): Likewise.
2907         (f95.uninstall): Likewise.
2909 2003-08-19  Diego Novillo  <dnovillo@redhat.com>
2911         * trans-types.c (gfc_init_types): Initialize
2912         signed_size_type_node with size_type_node.
2914 2003-08-18  Paul Brook  <paul@nowt.org>
2916         * dependency.c (gfc_dependency): New enum.
2917         (check_another_array_ref): Remove.
2918         (gfc_get_array_from_component): Remove.
2919         (get_x): Remove.
2920         (get_range): Remove.
2921         (get_no_of_elements): Use mpz_t, not mpf_t.
2922         (transform_sections): New function.
2923         (gfc_check_range_range): Rename ...
2924         (gfc_check_section_vs_section): ... to this.  Use new function.
2925         (gfc_is_inside_range): Rewrite to match.
2926         (gfc_check_element_vs_section): Ditto.
2927         (gfc_check_element_vs_element): Ditto.
2928         (get_deps): Ditto.
2929         (gfc_dep_resolver): Ditto.  Remove unused parameter.
2930         * Dependency.h (gfc_check_range_range, gfc_check_element_vs_section,
2931         gfc_check_element_vs_element, gfc_is_inside_range,
2932         gfc_get_array_from_component): Remove prototypes for static functions.
2933         (gfc_dep_resolver): Update prototype.
2934         * trans-array.c (gfc_conv_resolve_dependencies): Change to match.
2936 2003-08-15  Paul Brook  <paul@nowt.org>
2938         * trans-decl.c (gfc_build_qualified_array): Don't add symbols for
2939         return values to parent scope.
2940         (gfc_build_dummy_array_decl): Ditto.
2942 2003-08-14  Paul Brook  <paul@nowt.org>
2944         * trans-stmt.c (gfc_trans_allocate): Handle NULL refs. Allocate the
2945         size of the type, not the pointer.
2946         * resolve.c (resolve_symbol): Give more accurate error message.
2948 2003-08-10  Paul Brook  <paul@nowt.org>
2950         * trans-decl.c (gfc_build_function_decl): Only mangle global symbols.
2952 2003-08-10  Paul Brook  <paul@nowt.org>
2954         * trans-stmt.c (gfc_trans_allocate): Correctly handle non-array derived
2955         type components.
2957 2003-08-10  Chun Huang  <compiler@sohu.com>
2959         * resolve.c (resolve_formal_arglist): Resolve STATEMENT function.
2960         (resolve_symbol): Ditto.
2961         * trans-expr.c (gfc_conv_statement_function): New function.
2962         (gfc_conv_function_expr): Use it.
2964 2003-08-10  Paul Brook  <paul@nowt.org>
2966         * trans-array.c (gfc_conv_ss_startstride): Handle functions.
2967         (walk_function_expr): Set section rank.
2968         * trans-intrinsic.c (gfc_walk_intrinsic_libfunc): Ditto.
2970 2003-08-10  Paul Brook  <paul@nowt.org>
2972         * intrinsic.c (add_sym): Prefix names with correct string.
2973         (add_sym_0s): New function.
2974         (add_subroutines): Register abort.
2976 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
2978         * gfortran.h: Introduce options to control the mangling.
2979         * lang.opt: Likewise.
2980         * options.c (gfc_init_options): Handle the options.
2981         * trans-common.c (gfc_sym_mangled_common_id): New function.
2982         (gfc_build_common_decl): Call it.
2983         * trans-decl.c (gfc_sym_mangled_function_id): New function.
2984         (gfc_get_extern_function_decl, gfc_build_function_decl): Call it.
2986 2003-08-09  Paul Brook  <paul@nowt.org>
2988         * module.c (mio_symbol): Always ouput a namespace for formal args.
2989         (load_needed): Namespace now belong to their proper symbol.
2990         (gfc_dump_module): Change G95=>GFORTRAN.
2992 2003-08-05  Paul Brook  <paul@nowt.org>
2994         * options.c: Force -fg77-calls.
2996 2003-08-02  Paul Brook  <paul@nowt.org>
2998         * Makelang.in: Rename G95_* to GFORTRAN_*.
2999         * All sources: Rename G95_* to GFC_*.
3001 2003-08-01  Paul Brook  <paul@nowt.org>
3003         * fortran/Make-lang.in: Use GMPLIBS.
3004         * fortran/config-lang.in: Set need_gmp.
3005         * trans-expr.c (gfc_conv_variable): Remove incorrect assertion.
3007 2003-07-27  Andreas Jaeger  <aj@suse.de>
3009         * trans-decl.c (gfc_generate_constructors): Convert prototype to
3010         ISO C90.
3011         * trans-const.c (gfc_init_constants): Likewise.
3012         * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Likewise.
3014         * gfortranspec.c: Convert to ISO C90.
3015         (lang_specific_driver): Correct copyright, remove ALT_LIBM usage.
3017 2003-07-26  Paul Brook  <paul@nowt.org>
3019         * lang.opt: Add -fdump-parse-tree.
3020         * options.c (gfc_handle_option): Ditto.
3021         * resolve.c (resolve_forall_iterators): Convert to proper type.
3022         * trans-stmt.c (gfc_trans_forall_1): Create temp var with correct type.
3024 2003-07-26  Paul Brook  <paul@nowt.org>
3026         * Makefile.in: Add build dependencies on files common with rest of gcc.
3028 2003-07-26  Lifang Zeng  <zlf605@hotmail.com>
3030         * trans.h: Declare g95_trans_pointer_assignment.
3031         * trans-expr.c (g95_trans_pointer_assignment): New function.
3032         (g95_trans_pointer_assign): Use it.
3033         * trans-stmt.c (g95_trans_forall_1): Handle pointer assignment.
3034         (g95_trans_pointer_assign_need_temp): New function.
3036 2003-07-26  Paul Brook  <paul@nowt.org>
3038         * gfortran.texi: Replace references to g95.
3040 2003-07-26  Paul Brook  <paul@nowt.org>
3042         Rename g95_* to gfc_*.
3044 2003-07-25  Paul Brook  <paul@nowt.org>
3046         * gfortran.h: Rename from g95.h.
3047         * trans-types.c (boolean_type_node, booelan_true_node,
3048         boolean_false_node): Remove.
3049         * trans-types.h: Ditto.
3051 2003-07-25  Chun Huang  <compiler@sohu.com>
3053         * parse.c (accept_statement): Implement BLOCK DATA statement.
3054         * trans-expr.c (g95_conv_variable): Fix bug for dereference pointer
3055         variables.
3057 2003-07-24  Lifang Zeng  <zlf605@hotmail.com>
3059         * trans-stmt.c (temporary_list): Define.
3060         (g95_trans_assign_need_temp): New function.
3061         (g95_trans_forall_1): Modified for WHERE.
3062         (g95_trans_where_assign): Modified.
3063         (g95_trans_where_2): Modified.
3064         (g95_evaluate_where_mask): Modified.
3065         (g95_trans_where): Modified.
3066         (g95_get_temp_expr): Removed.
3067         (g95_add_to_where_stmt_list): Removed.
3068         (compute_overall_iter_number): Modified for WHERE.
3069         * trans.h: Remove where_stmt_list.
3071 2003-07-24  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3073         * lang.opt: Correct description of options -J and -M.
3075 2003-07-23  Steven Bosscher   <steven@gcc.gnu.org>
3077         * lang.opt: Move help text to here.
3078         * lang-options.h: Remove.
3080 2003-07-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3081         * iresolve.c (g95_resolve_transpose): Proper variable in switch.
3082         * simplify.c (g95_simplify_nearest): Fix typo and use a correct test
3083         on kind.
3085 2003-07-22  Steven Bosscher  <steven@gcc.gnu.org>
3086         Paul Brook  <paul@nowt.org>
3088         * check.c (check_rest): Use global pedantic flag.
3089         * io.c (data_desc): Ditto.
3090         * error.c (g95_warning, g95_warning_now): Use global flag.
3091         * f95-lang.c (LANG_HOOKS_HANDLE_OPTION): Rename from DECODE.
3092         (expand_function_body): Update to new prototypes.
3093         (g95_init): Use new option names.
3094         * g95.h (g95_option_t): Standardize names.
3095         (g95_init_options, g95_handle_option): Update prototypes.
3096         * interface.c: Use new option names.
3097         * match.c: Ditto.
3098         * module.c: Ditto.
3099         * parse.c: Ditto.
3100         * primary.c: Ditto.
3101         * resolve.c: Ditto.
3102         * scanner.c: Ditto.
3103         * simplify.c: Ditto.
3104         * symbol.c: Ditto.
3105         * trans-array.c: Ditto.
3106         * trans-expr.c: Ditto.
3107         * trans-types.c: Ditto.
3108         * trans-decl.c: Ditto.
3109         (g95_build_library_function_decl): Remove obsolete VPARAMS.
3110         * trans.h: Ditto.
3111         * options.c (g95_display_help): Remove.
3112         (g95_init_options): Convert to new scheme.
3113         (set_Wall): Ditto
3114         (g95module_option): Ditto, rename from g95_parse_arg.
3115         (g95_handle_module_path_options): New function.
3116         * trans-equivalence.c: Fix error message.
3117         * lang.opt: Corrections.
3119 2003-07-21  Steven Bosscher  <steven@gcc.gnu.org>
3121         * lang.opt: New file.
3123 2003-07-21  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3125         * decl.c (match_attr_spec): Set colon_seen.
3127 2003-07-14  Paul Brook  <paul@nowt.org>
3129         * trans-array.c: Update comment.
3130         (g95_trans_array_constructor_subarray): Cleanup loopinfo data.
3131         * trans-intrinsic.c (g95_conv_intrinsic_anyall,count,arith,
3132         minmaxloc,minmaxval): Ditto.
3133         * trans-io.c (g95_trans_transfer): Ditto.
3134         * trans-stmt.c: Remove unneeded prototypes.
3135         (generate_loop_for_lhs_to_rhs): Rename vars. Add loop post chain.
3136         (generate_loop_for_rhs_to_temp): Rename vars. Don't share loopinfo.
3137         (compute_inner_temp_size): Remove bits of dead code. Add comments.
3138         Don't share loopinfo.
3139         (compute_overall_iter_number): Declare as static.
3140         (allocate_temp_for_forall_nest): Ditto.
3141         (g95_trans_forall_1): Don't pass shared loopinfo.
3142         * trans.c (g95_start_block): Expand comment.
3144 2003-07-12  Paul Brook  <paul@nowt.org>
3146         * arith.c (g95_index_integer_kind): Remove unused initializer.
3147         * trans-stmt.c (generate_loop_for_temp_to_lhs): Don't multiply array
3148         index by size of element.
3149         (generate_loop_for_rhs_to_temp): Ditto.
3150         (allocate_temp_for_forall_nest): Use element size, not index size.
3152 2003-07-11  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3154         * arith.c (g95_index_integer_kind): Add a TODO.
3155         * simplify.c (g95_simplify_nearest): Add a TODO.
3157 2003-07-09  Chun Huang  <compiler@sohu.com>
3159         * trans.h: Add declarations for gfor_fndecl_string_scan and
3160         gfor_fndecl_string_verify.
3161         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
3162         * trans-intrinsic.c (g95_conv_intrinsic_scan): New function.
3163         (g95_conv_intrinsic_verify): New function.
3164         (g95_conv_intrinsic_function): Add SCAN and VERIFY.
3165         * simplify.c (g95_simplify_scan, g95_simplify_verify): Fix bug in case
3166         of parameter 'BACK=.TRUE.'
3168 2003-07-05  Lifang Zeng  <zlf605@hotmail.com>
3170         * trans-stmt.c (iter_info, forall_info): Define.
3171         (g95_trans_forall_block): Remove.
3172         (g95_trans_forall_loop): Use forall info blocks.
3173         (g95_trans_nested_forall_loop): New function.
3174         (g95_do_allocate): Handle things other than logical masks.
3175         (generate_loop_for_temp_to_lhs): New function.
3176         (generate_loop_for_rsh_to_temp): New function.
3177         (compute_inner_temp_size): New function.
3178         (compute_overall_iter_number): New function.
3179         (allocate_temp_for_forall_nest): New function.
3180         (g95_trans_forall): Move body ...
3181         (g95_trans_forall_1): ... to here.  Handle loops with temporaries.
3183 2003-07-02  Paul Brook  <paul@nowt.org>
3185         * trans-decl.c (create_index_var, g95_build_qualified_array): Put vars
3186         in correct scope.  Change callers to match.
3187         * trans-types.c (g95_get_dtype_cst): Allow rank 7 arrays.
3188         * iresolve.c (g95_resolve_reshape): Only use constant shapes.
3190 2003-07-02  Paul Brook  <paul@nowt.org>
3192         * trans-array.c (g95_conv_loop_setup): Remove dead var.  Use
3193         expression shape for all expressions.
3194         * trans-decl.c (g95_symbol_init): Allow adding at very end of list.
3196 2003-07-03  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3198         * g95.h (g95_option_t), lang-options.h, options.c (g95_init_options,
3199         g95_parse_arg), intrinsic.c (g95_convert_type): support of
3200         -Wconversion.
3201         * intrinsic.c, g95.h: Add g95_convert_type_warn,
3202         * resolve.c (g95_resolve_index): Call it.
3204 2003-07-02  Paul Brook  <paul@nowt.org>
3206         * iresolve.c (g95_resolve_reshape): Set expression shape.
3207         (g95_resolve_shape): Ditto.
3208         * simplify.c (g95_simplify_shape): Move common code outside condition.
3209         * trans-array.c (g95_conv_array_initializer): Teach it how to count.
3211 2003-07-01  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3213         * array.c (g95_array_dimen_size): Deal with EXPR_ARRAY to improve
3214         conformance checks.
3216 2003-06-29  Paul Brook  <paul@nowt.org>
3218         * array.c (g95_simplify_iterator_var): Don't bother with return value.
3219         * expr.c (find_array_element, find_component_ref): New functions.
3220         (remove_subobject_ref): New function.
3221         (simplify_const_ref): Use them.  Rename from simplify_component_ref.
3222         (simplify_ref_chain): New function.
3223         (g95_simplify_expr): Use it.  Simplify parameter variable subobjects.
3224         (g95_specification_expr): Simplify the expression.
3225         * resolve.c (resolve_operator): Check simplifications return code.
3226         (g95_resolve_expr): Ditto.
3228 2003-06-26  Paul Brook  <paul@nowt.org>
3230         * expr.c (simplify_component_ref): New function.
3231         (g95_simplify_expr): Use it.
3232         * resolve.c (resolve_structure_cons): Handle references.
3234 2003-06-25  Paul Brook  <paul@nowt.org>
3236         * trans-io.c (build_dt): Handle internal units.
3238 2003-06-25  Canqun Yang  <canqun@yahoo.com.cn>
3240         * trans-common.c (g95_build_common_decl): Array index range starts at 0.
3241         (g95_build_common_decl, g95_layout_global_equiv, g95_trans_one_common):
3242         Use g95_array_index_type instead of integer_type_node.
3243         (g95_build_common_decl, g95_set_common_master_type): Use
3244         g95_character1_type_node instead of char_type_node.
3245         * trans-equivalence.c (g95_layout_local_equiv): As above.
3247 2003-06-24  Steven G. Kargl  <kargls@attbi.com>
3249         * g95.h (g95_option_t), options.c (g95_init_options, g95_parse_arg):
3250         remove last remains of -fquiet.
3252 2003-06-22  Paul Brook  <paul@nowt.org>
3254         * resolve.c (resolve_operator): Don't fail if we can't simplify.
3255         (g95_resolve_expr): Ditto.
3256         (resolce_code): Mark as static.
3257         * trans-stmt.c (g95_trans_chaaracter_select): Mark labels because the
3258         gimplifer doesn't (yet).
3260 2003-06-20  Paul Brook  <paul@nowt.org>
3262         * g95.h: Add ST_PAUSE and EXEC_PAUSE.
3263         * match.c (g95_match_if): Add ST_PAUSE.
3264         (g95_match_stopcode): New function.
3265         (g95_match_pause, g95_match_stop): Use it.
3266         * parse.c (g95_ascii_statement): Handle ST_PAUSE.
3267         (decode_stmt, next_statement, parse_executable): Ditto.
3268         * resolve.c (resolve_code): Ditto.
3269         * st.c (g95_free_statement): Ditto.
3270         * trans-stmt.c (g95_trans_pause): New function.
3271         * trans-stmt.h: Declare it.
3272         * trans.c (g95_trans_code): Use it.
3273         * trans-decl.c (gfor_fndecl_pause_numeric, gfor_fndecl_pause_string):
3274         Declare.
3275         (g95_build_builtin_function_decls): Initialize them.
3276         * trans.h: Ditto.
3277         * dump-parse-tree.c (g95_show_code_node): Handle EXEC_PAUSE.
3279 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3281         * io.c (g95_match_open , g95_match_close, g95_match_inquire,
3282         match_filepos): Fix error handling.
3284 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3286         * array.c (spec_dimen_size, ref_dimen_size, g95_array_dimen_size):
3287         Add assertions on arguments.
3288         * resolve.c (expression_shape): Remove useless &.
3289         * simplify.c (get_kind, g95_simplify_bit_size, g95_simplify_digits,
3290         g95_simplify_ibclr, g95_simplify_ibits, g95_simplify_ibset,
3291         g95_simplify_ishft,g95_simplify_ishftc, g95_simplify_maxexponent,
3292         g95_simplify_minexponent, g95_simplify_radix, g95_simplify_range
3293         g95_simplify_rrspacing, g95_simplify_scale, g95_simplify_spacing,
3294         g95_simplify_tan, g95_simplify_tiny): Clean predicates and assertions.
3295         (g95_simplify_not, g95_simplify_scale): Add assertions.
3297 2003-06-15  Paul Brook  <paul@nowt.org>
3299         Clean up stuff to work with the ssa optimizers.
3300         * convert.c (convert): Handle BOOLEAN_TYPEs.
3301         * f95-lang.c (g95_truthvalue_conversion): Implement.
3302         * trans-array.c (g95_trans_array_constructor_value): Group multiple
3303         scalar values.
3304         * trans.h (g95_truthvalue_conversion): Declare.
3305         * trans-intrinsic.c (g95_conv_intrinsic_anyall): Use bool constants.
3306         * trans-stmt.c (g95_trans_character_select): Don't create array
3307         assignments.  Mark labels as indirect jump targets.
3308         * trans-types.h (g95_init_types): Use BOOLEAN_TYPE nodes.
3309         (g95_get_dtype_cst): Handle LOGICAL types.
3311 2003-06-14  Paul Brook  <paul@nowt.org>
3313         * f95-lang.c (g95_gimplify_expr): New function.
3314         * trans-array.c (g95_trans_array_constructor_value): Don't create
3315         array assignments.
3316         (g95_conv_expr_descriptor): Rename simple->gimple.
3317         * trans-expr.c (conv_expr_op): Use proper logical operators.
3318         * trans-intrinsic.c (build_fixbound_expr): New function.
3319         (build_fix_expr): Ditto.
3320         (g95_conv_intinsic_aint): Use them. Use builtin functions.
3321         (g95_conv_intrinsic_function): Add FLOOR and CEILING.
3323 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3325         * array.c (g95_compare_array_spec): Remove unreachable code.
3326         * expr.c (g95_copy_expr): Likewise.
3327         * intrinsic.c (g95_convert_type): Likewise.
3328         * misc.c (g95_code2string): Likewise.
3329         * simplify.c (g95_simplify_ishft, g95_simplify_real,
3330         g95_simplify_reshape, g95_simplify_sign, g95_simplify_sqrt): Likewise.
3331         * trans-stmt.c (g95_trans_select): Likewise.
3332         * primary.c (extend_ref): Add an assertion.
3333         * simplify.c (g95_convert_constant): Add const.
3334         * intrinsic.h: Remove g95_check_x_ni.
3335         * f95-lang.c (g95_finish): Call g95_release_include_path.
3337 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3339         * resolve.c (resolve_contained_functions): Fix typo introduced on
3340         2003-01-13.
3342 2003-06-09  Paul Brook  <paul@nowt.org>
3344         * g95.h: Include system.h not hwint.h.
3345         * many: use safe-ctype.h not ctype.h.  Change isalpha -> ISALPHA, etc.
3346         * misc.c (g95_getmem): Use xmalloc/memset instead of calloc.
3348 2003-06-09  Paul Brook  <paul@nowt.org>
3350         * g95.h (g95_symbol): Add fields for COMMON and EQUIVALENCE variables.
3351         * Make-lang.in (F95_OBJS): Add files for COMMON and EQUIVALENCE.
3352         * trans-decl.c (g95_add_decl_to_functions): Make non-static.
3353         (g95_get_symbol_decl): Handle COMMON and EQUIVALENCE objects.
3354         (g95_generate_function_code): Translate COMMON and EQUIVALENCE
3355         objects.
3356         * trans.h (g95_trans_equivalence, g95_trans_common,
3357         g95_add_decl_to_function): Declare.
3358         * trans-common.c, trans-equivalence.c: New files.
3360 2003-06-08  Steven Bosscher  <steven@gcc.gnu.org>
3362         * intrinsic.c (g95_intrinsic_extension): Remove.
3363         (add_functions): Substitute g95_check_x for g95_check_x_ni
3364         everywhere.
3365         (g95_init_expr_extensions): New function.
3366         (g95_intrinsic_func_interface): Use it.
3367         * intrinsic.h: Remove extern decl for g95_intrinsic_extension.
3368         * check.c (g95_check_digit, g95_check_huge, g95_check_kind,
3369         g95_check_precision, g95_check_present, g95_check_radix,
3370         g95_check_range, g95_check_selected_real_kind): Do not set
3371         g95_intrinsic_extension.
3372         (g95_check_x_ni): Remove now duplicate of g95_check_x.
3374         * expr.c (check_inquiry): Add FIXME, fixup some code style.
3376 2003-06-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3378         * g95.h (ref_type): Name this type explicitly.
3379         * module.c (MIO_NAME): Add specialisations of mio_name.
3380         (mio_symbol_attribute, mio_typespec, mio_array_ref,
3381         mio_array_spec, mio_ref, mio_expr, mio_symbol): Use them.
3382         (ab_attribute): Name this type explicitly.
3383         (mio_symbol_attribute, mio_expr): Add cast to call to find_enum.
3385 2003-06-05  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3387         * trans-intrinsic.c (g95_conv_allocated): New function.
3388         (g95_conv_intrinsic_function): Make G95_ISYM_ALLOCATED work.
3390 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
3392         * f95-lang.c: Don't include g95-support.h
3393         (g95_mark_addressable): Add prototype.
3394         (g95_init_decl_processing): Remove C front end hack.
3395         * f95-tree.c: Remove file.
3396         * support.c: Remove file.
3397         * g95-support.h: Remove file.
3398         * trans-types.c (g95_init_types): Set up boolean
3399         type related tree nodes.
3400         * Make-lang.in: Remove rules for dead files and
3401         dependencies on them.
3403 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
3405         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove the final
3406         C front end dependency.  Also, convert.c does not depend on
3407         g95-support.h anymore.
3408         * convert.c: Don't include c-common.h and g95-support.h
3409         * f95-lang.c: Don't inlude c-common.h and c-common.def (3x).
3410         (g95_stmt_tree, g95_scope_stmt_stack, anon_aggr_type_p,
3411         stmts_are_full_exprs_p, current_stmt_tree,
3412         current_scope_stmt_stack): Remove.
3413         * g95-support.h (unsigned_conversion_warning): Kill proto.
3414         (boolean_type_node, boolean_true_node, boolean_false_node):
3415         Don't define here.  Instead, make then true tree nodes in
3416         trans-types.
3417         * support.c (c_global_trees): Die, C front end, die!!!
3418         (g95_init_c_decl_hacks): Don't touch intmax_type_node,
3419         uintmax_type_node, string_type_node and const_string_type_node.
3420         (decl_constant_value, overflow_warning): Make static functions.
3421         They are in death row too, though.
3422         (default_conversion, c_expand_asm_operands): Remove.
3423         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-stmt.c,
3424         trans.c: Don't include c-common.h.
3425         * trans-types.c (boolean_type_node, boolean_true_node,
3426         boolean_false_node): Make them real tree nodes.
3427         * trans-types.h (intmax_type_node, string_type_node,
3428         const_string_type_node): Hack to work around C dependencies
3429         in builtin-types.def.
3431 2003-06-04  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3433         * decl.c (decl_types): Add some iterators-like sentinels.
3434         * decl.c (match_attr_spec): Use them.
3435         Use "decl_types" instead of "int".
3436         Add cast in call to g95_match_strings.
3437         * dump-parse-tree.c (g95_show_namespace):  Use "g95_intrinsic_op"
3438         instead of "int".
3439         * g95.h (g95_intrinsic_op): Add some iterators-like sentinels.
3440         (g95_interface_info): Use "g95_intrinsic_op".
3441         * dump-parse-tree.c (g95_show_namespace): Use them.
3442         * interface.c (g95_check_interfaces): Use them.
3443         * module.c (read_module, write_module): Use them.
3444         * symbol.c (g95_get_namespace, g95_free_namespace): Use them.
3445         Use "g95_intrinsic_op".
3446         * interface.c (check_operator_interface): Use "g95_intrinsic_op".
3447         Add a default case in switch statement.
3448         * intrinsic.h (g95_generic_isym_id): Moved to...
3449         * g95.h (g95_generic_isym_id): here.
3450         (g95_intrinsic_sym): Use "g95_generic_isym_id".
3451         * intrinsic.c (make_generic): Use "g95_generice_isym_id".
3452         * trans-intrinsic.c (g95_intrinsic_map_t,
3453          g95_conv_intrinsic_lib_funtion): Use "g95_generice_isym_id".
3454         * match.c (g95_match_intrinsic_op): Add cast in call to
3455         g95_match_strings.
3457 2003-06-03  Steven Bosscher  <steven@gcc.gnu.org>
3459         * support.c (skip_evaluation, warn_conversion, lvalue_p,
3460         lvalue_or_else, pedantic_lvalue_warning, warn_for_assignment,
3461         constant_fits_type_p, convert_and_check,
3462         unsigned_conversion_warning): Remove these ugly remnants
3463         we inherited from the C front end.
3464         (function_types_compatible): Remove '#if 0'-edcode.
3465         (build_modify_expr): Likewise.
3466         (convert_for_assignment): Don't use the deceased functions.
3467         The parameter fundecl is now unused.
3468         (decl_constant_value): Always just return decl.  In fact
3469         this function is not used at present, but it might be in
3470         the future, when we start using the tree inliner.
3471         (overflow_warning, default_conversion, c_expand_asm_operands):
3472         Abort when these are called, they are part of the C type
3473         checking implementation and therefore poison to Fortran.
3475 2003-06-04  Steven Bosscher  <steven@gcc.gnu.org>
3477         * Make-lang.in (F95_ADDITIONAL_OBJS): Don't depend on
3478         c-pretty-print.o and c-dump.o.  Add a comment on why we
3479         depend on c-semantics.c.
3480         * f95-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN):
3481         Don't use the C front end tree dumper hook to dump the
3482         language specific tree representation -- we don't have
3483         one.  So instead, inherit the default langhook.
3485 2003-06-02  Paul Brook  <paul@nowt.org>
3487         * trans-expr.c (g95_conv_variable): Remove incorrent assertion.
3489 2003-06-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3491         * check.c (g95_check_associated): Use proper types.  Remove
3492         extraneous argument in call to g95_error().
3494 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3496         * resolve.c (resolve_operator): Make logical operands convert to the
3497         type with higher kind.
3499 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3501         * check.c (g95_check_associated): Make sure both pointer and target has
3502         the same type and rank. Null pointer or array section with vector
3503         subscript as target are not allowed.
3504         * trans.h: Declare gfor_fndecl_associated.
3505         * trans-decl.c: (g95_build_builtin_function_decls): Initialize
3506         gfor_fndecl_associated.
3507         * trans-intrinsic.c (g95_conv_associated): New function.
3508         (g95_conv_intrinsic_function): Make G95_ISYM_ASSOCIATED work.
3510 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3512         * trans-array.c (g95_conv_expr_descriptor): Set the base of POINTER
3513         according to POINTER itself rather than TARGET.
3514         (g95_conv_expr_descriptor): Make lbound start at 1.
3515         * trans-expr.c (g95_trans_pointer_assign): Fix a bug for Nullify.
3517 2003-06-01  Paul Brook  <paul@nowt.org>
3519         * expr.c (g95_type_convert_binary): Make it match the standard.
3520         * g95.texi: Remove dead link.
3522 2003-06-01  Steven Bosscher  <steven@gcc.gnu.org>
3524         * g95.texi: Cleanup somewhat in preparation for inclusion
3525         in GCC CVS.
3527 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3528             Canqun Yang  <canqun@yahoo.com.cn>
3530         * resolve.c (compare_bound_int, resolve_where_shape): Proper return
3531         type.
3532         (g95_find_forall_index): Return proper value.
3533         (g95_resolve_assign_in_forall, g95_resolve_forall): Use proper type to
3534         compare the return value from g95_find_forall_index.
3536 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3537         * g95.h, io.c (g95_st_label): Remove "length".
3538         (g95_symtree): Remove "link".
3539         (g95_case): Remove "code".
3540         * arith.c, arith.h (g95_compare_string, g95_convert_integer,
3541         g95_convert_real): Make an argument pointer to const.
3542         * decl.c (colon_seen): Add a TODO.
3543         * interface.c (g95_compare_types): Fix typo.
3544         * interface.c (compare_interfaces): Preserve value of "p".
3545         * intrinsic.c (sort_actual): Remove "i".
3546         * match.c (g95_match_assign): Proper type in call to g95_match().
3547         * parse.c (next_free): Avoid duplicate call due to macro.
3548         * parse.c (check_statement_label): wrong type in call to g95_error.
3549         * primary.c (match_real_constant): Add a TODO.
3550         * resolve.c (resolve_select):  Remove useless conditional.
3551         * simplify.c (g95_simplify_repeat): Proper assignment to
3552         "value.character.string".
3553         * simplify.c (g95_simplify_reshape): Wrong variable in call to
3554         g95_error.
3556 2003-05-20  Canqun Yang  <canqun@yahoo.com.cn>
3558         * trans-stmt.c: Remove unnecessary include file defaults.h.
3560 2003-05-19  Lifang Zeng  <zlf605@hotmail.com>
3562         * trans-stmt.c (g95_trans_forall_loop): Handle FORALL with negative
3563         stride.
3564         (g95_trans_forall): Allow arbitrary number of FORALL indexes and
3565         actual variables used as FORALL indexes.
3567 2003-05-15  Paul Brook  <paul@nowt.org>
3569         * trans-array.c (g95_trans_static_array_pointer): Use
3570         null_pointer_node.
3571         (g95_trans_deferred_array): Initialize static array pointers.
3572         * trans-expr.c (g95_conv_function_call): Use formal arglist to
3573         correctly pass POINTER and absent CHARACTER arguments.
3575 2003-05-14  Lifang Zeng  <zlf605@hotmail.com>
3577         * resolve.c (g95_resolve_forall): Resolve FORALL construct/statement.
3578         (g95_resolve_forall_body): Resolve FORALL body.
3579         (g95_resolve_where_code_in_forall): Resolve WHERE inside FORALL.
3580         (g95_resolve_assign_in_forall): Resolve assignment inside FORALL.
3581         (g95_find_forall_index): Check whether the FORALL index appears in
3582         the expression or not.
3583         (resolve_code): Modified.
3585 2003-05-14  Paul Brook  <paul@nowt.org>
3587         * iresolve.c (g95_resolve_spread): Convert ncopies to index_type.
3589 2003-05-13  Paul Brook  <paul@nowt.org>
3591         * trans-types.c (g95_max_array_element_size): Now a tree node.
3592         (g95_init_types): Work out max size properly.
3593         (g95_get_dtype_cst): Modify to match.
3595 2003-05-11  Paul Brook  <paul@nowt.org>
3597         * trans-io.c (add_case): Create a label decl for case labels.
3599 2003-05-11  Paul Brook  <paul@nowt.org>
3601         * arith.c (g95_integer_index_kind): New variable.
3602         * f95-lang.c (g95_init): Move frontend initialization here ...
3603         (g95_post_options): ... from here.
3604         * g95.h (g95_index_integer_kind, g95_resolve_index): Declare.
3605         * intrinsic.c (add_functions): Use index kinds.
3606         * iresolve.c: Convert to index_kind where needed.
3607         * resolve.c (g95_resolve_index): Make public, use index_kind.
3608         (resolve_array_ref): Adjust to match.
3609         * trans-array.c: Rename g95_array_index_kind to g95_index_integer_kind.
3610         * trans-stmt.c: Ditto.
3611         * trans-types.c: Ditto.
3612         * trans-types.h (g95_array_index_kind): Remove declaration.
3613         * trans-expr.c (g95_conv_expr_present): Use null_pointer_node.
3615 2003-05-07  Paul Brook  <paul@nowt.org>
3617         * trans-const.c (g95_conv_mpz_to_tree): Typecast constant.
3618         * trans-intrinsic.c (g95_conv_intrinsic_bound): Convert type
3619         of bound indices.
3621 2003-05-07  Paul Brook  <paul@nowt.org>
3623         * trans-array.c (trans_static_array_pointer,
3624         g95_trans_array_constructor_value, g95_conv_array_initializer,
3625         g95_conv_structure): CONSTRUCTOR nodes only have one operand.
3626         (g95_add_loop_ss_code): Convert subscripts to the correct type.
3627         * trans-stmt.c (g95_trans_character_select): Ditto.
3628         * trans-types.c (g95_init_types): Ditto.
3630 2003-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3632         * f95-lang.c (expand_function_body): Use input_line, not lineno.
3633         * trans-decl.c (g95_generate_function_code,
3634         g95_generate_constructors): Likewise.
3635         * trans.c (g95_trans_runtime_check, g95_add_block_to_block,
3636         g95_get_backend_locus, g95_set_backend_locus, g95_trans_code):
3637         Likewise.
3639 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3640         * trans-types.c (g95_get_derived_type): Fix bug for DERIVED type
3641         with components point to the DERIVED type itself, and two DERIVED
3642         type with components point to each other.
3643         * trans-expr.c (g95_conv_componet_ref): Modified
3645 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
3646         * trans-expr.c (g95_conv_expr): Translate EXPR_NULL into
3647         null_pointer_node.
3648         (g95_trans_pointer_assign): Implement Nullify.
3650 2003-05-01  Paul Brook  <paul@nowt.org>
3652         * trans-array.c (g95_walk_function_expr): Cope with NULL esym.
3653         * trans-decl.c (g95_get_symbol_decl): Don't mangle dummy functions.
3655 2003-05-01  Paul Brook  <paul@nowr.org>
3657         * trans-array.c, trans.c, trans-expr.c, trans-intrinsic.c,
3658         trans-stmt.c: Replace empty_stmt_node with build_empty_stmt () and
3659         IS_EMPTY_STMT.
3661 2003-05-01  Canqun Yang  <canqun@yahoo.com.cn>
3663         * trans-stmt.c (g95_trans_integer_select): Add a parameter to build
3664         CASE_LABEL_EXPR.
3666 2003-04-28  Paul Brook  <paul@nowt.org>
3668         * iresolve.c (g95_resolve_transpose): COMPLEX types are twice as big
3669         as their kind suggests.
3670         (g95_resolve_reshape): Ditto.
3672 2003-04-28  Chun Huang  <compiler@sohu.com>
3674         * trans-expr.c (g95_conv_substring_expr): New function.
3675         (g95_conv_expr): Use it.
3677 2003-04-28  Paul Brook  <paul@nowt.org>
3679         * iresolve.c (g95_resolve_transpose): Make it match the
3680         implementation.
3681         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add TRANSPOSE.
3683 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
3685         * trans-types.c (g95_add_field_to_struct): New function to
3686         add a field to a UNION_TYPE or RECORD_TYPE.
3687         * trans-types.h (g95_add_field_to_struct): Prototype.
3688         (g95_get_derived_type): Use g95_add_field_to_struct to add
3689         components.
3690         * trans-io.c (g95_add_field): Remove.
3691         (ADD_FIELD): Use new g95_add_field_to_struct function.
3692         (ADD_STRING): Likewise.
3693         * trans-stmt.c (g95_trans_select): Likewise.
3694         (g95_add_field): Remove duplicated function.
3696 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
3698         Port implementation for CHARACTER SELECT from Andy's tree.
3699         * trans-stmt.c (g95_trans_character_select): Implement character
3700         select. (g95_add_field): New function.
3701         * trans-decl.c: Declare 'gfor_gndecl_select_string'.
3702         (g95_build_builtin_function_decls): Add 'gfor_fndecl_select_string'.
3703         * g95.h (struct g95_case): Add field 'int n'.
3704         * trans.h: Declare 'gfor_fndecl_select_string'.
3706 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
3708         * bbt.c (duplicate_key, g95_insert_bbt_with_overlap): Remove.
3709         (g95_insert_bbd): Die on duplicates.
3710         * g95.h (g95_insert_bbt_with_overlap): Delete prototype.
3712 2003-04-14  Steven Bosscher  <steven@gcc.gnu.org>
3714         * g95.texi: Require GMP 4.0 -- like we actually
3715         do.  Explain the testsuite and what-goes-where.
3716         Don't use undefined texinfo symbol.  Break very
3717         long line.  Remove finished item from the list
3718         of open projects.
3720 2003-04-11  Canqun Yang  <canqun@yahoo.com.cn>
3722         * trans-stmt.c (g95_evaluate_where_mask): Give mask temporaries
3723         LOGICAL type.
3725 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
3727         * trans-stmt.c (g95_trans_forall): Implement WHERE inside FORALL.
3728         (g95_trans_forall_body): New function.
3730 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
3732         * resolve.c (resove_where): New function.
3733         (resolve_where_shape): New function.
3734         (resolve_code): Add call to 'resolve_where'
3735         * trans-stmt.c (g95_trans_where): Modified.
3736         (g95_trans_where_2): New function.
3737         (g95_trans_where_assign): New function.
3738         (g95_evaluate_where_mask): New function.
3739         (g95_add_to_stmt_list): New function.
3740         (g95_get_temp_expr): New function.
3741         * trans.h (where_stmt_list): New structure.
3743 2003-04-10  Paul Brook  <paul@nowt.org>
3745         * g95spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
3746         (DEFAULT_WORD_SWITCH_TAKES_ARG): Ditto.
3748 2003-04-10  Steven Bosscher  <steven@gcc.gnu.org>
3750         Update after mainline -> tree-ssa-branch merge.
3751         * f95-lang.c (g95_mark_addressable): Update put_var_into_stack
3752         call.
3753         (g95_init): Update for new lang_hooks definition.
3754         (g95_post_options): New langhook.
3755         (LANG_HOOK_POST_OPTIONS): Clear, then define to g95_post_options.
3756         * scanner.c (g95_new_file): Comment update.
3758 2003-04-09  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3760         * g95.h, lang-options.h: Add -Wimplicit-interface.
3761         * options.c (g95_init_options, g95_parse_arg): Set it.
3762         * interface.c (check_intents): Warn about call with implicit
3763         interface.
3764         * resolve.c (resolve_unknown_f, resolve_unknown_s): Call
3765         g95_procedure_use.
3767 2003-04-05  Paul Brook  <paul@nowt.org>
3769         * iresolve.c (g95_resolve_spread): Don't resole based on type.
3770         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_SPREAD.
3772 2003-03-29  Paul Brook  <paul@nowt.org>
3774         * iresolve.c (g95_resolve_pack): Don't bother resolving based on type.
3775         (g95_resolve_unpack): Ditto.
3776         * trans-intrinsic.c (g95_conv_intrinsic_merge): New Function.
3777         (g95_conv_intrinsic_function): Use it.  Remove PACK and UNPACK.
3778         (g95_is_intrinsic_libcall): Add PACK and UNPACK.
3780 2003-03-25  Paul Brook  <paul@nowt.org>
3782         * arith.c (g95_unary_user, g95_user): Remove dead functions.
3783         * arith.h: Ditto.
3784         * array.c (g95_free_array_ref): Ditto.
3785         * g95.h: Ditto.
3786         * symbol.c (g95_use_derived_tree): Ditto.
3787         * intrinsic.c (add_functions): Use simplification for SCALE.
3788         * primary.c (g95_match_rvalue): Test sym, not symtree.
3790 2003-03-25  Paul Brook  <paul@nowt.org>
3792         * trans-decl.c (build_function_decl): Add parameter before it gets
3793         turned into a constant.
3794         * iresolve.c (g95_resolve_eoshift): Resolve to a useful name.
3795         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_EOSHIFT.
3796         * trans-decl.c (g95_create_module_variable): Don't pushdecl constants.
3798 2003-03-22  Paul Brook  <paul@nowt.org>
3800         * trans-array.c (g95_conv_array_initializer): Allow scalar
3801         expressions.
3802         * trans-decl.c (g95_finish_var_decl): Result variables are not
3803         module variables.
3804         * trans-intrinsic.c (g95_conv_intrinsic_transfer): New function.
3805         (g95_conv_intrinsic_function): Use it.
3806         * trans-types.h (g95_type_spec): Remove dead declaration.
3808 2003-03-21  Paul Brook  <paul@nowt.org>
3810         * trans-decl.c (g95_build_function_decl): Mark string parameters.
3812 2003-03-20  Paul Brook  <paul@nowt.org>
3814         * trans-decl.c (g95_build_function_decl): Put character length
3815         parameters at the end of the function declaration.
3816         * trans-expr.c (g95_conv_function_call): Ditto.
3817         * trans-types.c (g95_get_function_type): Ditto.
3819 2003-03-20  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3821         * resolve.c (resolve_formal_arglist): Don't impose intent for
3822         procedure arguments of pure functions.
3823         (resolve_select): Remove redundant assignment.
3825 2003-03-19  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3827         * arith.c (validate_logical), g95.h, options.c (g95_init_options):
3828         Remove option l1.
3829         * g95.h, intrinsic.c(g95_get_intrinsic_sub_symbol): Add const.
3830         * iresolve.c(g95_resolve_cpu_time, g95_resolve_random_number): Add
3831         const.
3832         * lang-options.h: Remove -finline-repack-arrays. Add -fg77-calls.
3833         Order list.
3834         * symbol.c (g95_add_type): Fix typo in comment.
3837 2003-03-16  Paul Brook  <paul@nowt.org>
3839         * dump-parse-tree.c (g95_show_code_node): Print resolved sym name.
3840         * expr.c (g95_build_call): Remove.
3841         * f95-lang.c (puchdecl_top_level): New function.
3842         * g95.h (g95_code): Store resolved symbol, not just the name.
3843         * intrinsic.c (g95_intrinsic_namespace): New global namespace.
3844         (g95_intirinsic_init_1, g95_intrinsic_done_1): Use it.
3845         (g95_get_intrinsic_sub_symbol): New function.
3846         * iresolve.c (g95_resolve_cpu_time): Use it.
3847         (g95_resolve_random_number): Ditto.
3848         * resolve.c: Set code->resolved_sym instead of code->sub_name.
3849         * trans-decl.c (g95_get_extern_function_decl): Give external decls
3850         the correct DECL_CONTEXT.  Add global symbold to the global scope.
3851         * trans-stmt.c (g95_trans_code): Remove hacks now the fronted is
3852         fixed.
3854 2003-03-16  Paul Brook  <paul@nowt.org>
3856         * g95.h (g95_option_t): Add g77_calls. Remove inline_repack_arrays.
3857         * options.c (g95_parse_arg): Ditto.
3858         * module.c (mio_symbol_attribute): Handle the always_explicit bit.
3859         * resolve.c (resolve_formal_arglist): The always_explicit sould be set
3860         for the procedure, not the parameter.
3861         * trans-array.c (g95_trans_g77_array): New function.
3862         (g95_trans_assumed_size): Use it.
3863         (g95_trans_dummy_array_bias): Ditto.
3864         (g95_conv_array_parameter): Handle g77 arrays. Move existing body ...
3865         (g95_conv_expr_descriptor): ... to here.  Update callers.
3866         * trans-decl.c (g95_build_dummy_array_decl): Handle g77 arrays.
3867         (g95_get_symbol_decl): Avoid processing g77 arrays multiple times.
3868         * trans-expr.c (g95_conv_function_call): Handle g77 arrays.
3869         * trans-intrinsic.c (g95_get_symbol_for_expr): Never use g77 arrays.
3870         * trans-types.c (g95_is_nodesc_array): Handle g77 arrays.
3871         (g95_sym_type): Ditto.
3873 2003-03-15  Paul Brook  <paul@nowt.org>
3875         * trans-array.c (g95_walk_elemental_function_args): Don't amputate the
3876         first chain.
3877         * trans-expr.c (g95_conv_function_call): Use the resolved symbol.
3879 2003-03-14  Paul Brook  <paul@nowt.org>
3881         * trans-array.c (g95_array_is_packed): Remove.
3882         (g95_conv_array_base): Correctly handle all descriptorless cases.
3883         (g95_conv_array_stride): Use descriptorless strides.
3884         (g95_trans_dummy_array_bias): Don't always repack the array.
3885         (g95_build_dummy_array_decl): Automatic dummy arrays are only partial
3886         packed.
3887         * trans-types.c (g95_get_nodesc_array_type): Differentiate between
3888         dummy and non-dummy arrays...
3889         (g95_sym_type, g95_get_derived_type): ... like these.
3890         (g95_get_array_type_bounds): Allow discontiguous arrays.
3892 2003-03-12  Paul Brook  <paul@nowt.org>
3894         * array.c (g95_resolve_array_spec): Fix comment.
3895         * g95.h (symbol_attributes): New flag always_explicit.
3896         * resolve.c (resolve_formal_arglist): Set it always_explicit.
3897         * iresolve.c (g95_resolve_lbound, g95_resolve_ubound): Simplify.
3898         * trans-array.c (g95_conv_descriptor_dimension): Remove dead assert.
3899         (g95_trans_array_bounds): Allow assumed shape arrays.
3900         (g95_trans_repack_array): Remove.
3901         (g95_trans_dummy_array_bias): Rewite to use descriptorless arrays.
3902         * trans-decl.c (g95_build_qualified_array): Only ignore absent
3903         bounds for assumed size arrays.
3904         (g95_build_dummy_array_decl): Use descriptorless arrays.
3905         * trans-expr.c (g95_conv_expr_present): Allow descriptorless arrays.
3906         (g95_trans_pointer_assign): Fix typo.
3907         * trans-intrinsic.c (g95_conv_intrinsic_function_args): Remove dead
3908         code.
3909         (g95_conv_intrinsic_bound): Rewrite to handle descriptorless arrays.
3910         * trans-types.c (g95_get_nodesc_array_type): Allow non-packed arrays.
3911         Also modify callers.
3912         * trans-types.h (g95_get_nodesc_array_type): Modify prototype.
3914 2003-03-08  Paul Brook  <paul@nowt.org>
3916         * trans-array.c (g95_walk_elemental_functions): Don't reverse the SS.
3917         (g95_conv_array_ubound): Provide dummy value for assumed size arrays.
3918         * resolve.c (compare_spec_to_ref): Allow full array sections.
3920 2003-03-08  Paul Brook  <paul@nowt.org>
3922         * expr.c (g95_simplify_expr): Also simplify array index and
3923         substring expressions.
3924         * resolve.c (compare_spec_to_ref): Check for assumed size bounds.
3925         * trans-array.c (g95_trans_array_bounds): New function.
3926         (g95_trans_auto_array_allocation): Use it.
3927         (g95_trans_assumed_size): Rewrite.
3928         * trans-decl.c (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
3929         (gfor_fndecl_repack): Remove.
3930         (g95_build_qualified_array): Handle absent upper bounds.
3931         (g95_build_dummy_array_decl): Assumed shape arrays are descriptorless.
3932         (g95_get_symbol_decl): Update.
3933         (g95_build_intrinsic_function_decls): Initialize new decls.
3934         * trans.h (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
3935         (gfor_fndecl_repack): Remove.
3936         * trans-io.c (g95_build_io_library_fndecls): Correct prototypes.
3937         * trans-types.c: (g95_build_array_type): Merge duplicated code..
3938         (g95_get_nodesc_array_type): Handle absent bounds.
3939         * trans-types.h (g95_get_nodesc_array_type): Declare.
3941 2003-03-04  Paul Brook  <paul@nowt.org>
3943         * f95-lang.c (DEF_FUNCTION_TYPE_VAR_3): Define before including
3944         builtin-types.def.
3946 2003-03-02  Paul Brook  <paul@nowt.org>
3948         * options.c (g95_init_options): Drfault to 1.
3949         (g95_pasrse_arg): Add -frepack-arrays, use strcmp.
3950         * trans-array.c (g95_conv_array_data, g95_conv_array_base,
3951         g95_conv_array_stride,g95_conv_array_lbound, g95_conv_array_ubound):
3952         Handle non-constant size automatic arrays.
3953         (g95_conv_section_upper_bound, g95_conv_section_startstride): Use
3954         generic bound functions.
3955         (g95_trans_auto_array_allocation): Don't create a descriptor.
3956         (g95_trans_assumed_size): New function (broken).
3957         (g95_trans_dummy_array_bias): Remove unused var.
3958         * trans-array.h (g95_trans_assumed_size): Declare.
3959         * trans-decl.c (create_index_var): New fuction.
3960         (g95_build_qualified_array): New function.
3961         (g95_get_symbol_decl): Use it.
3962         (g95_trans_deferred_vars): Handle assumed shape seperately.
3963         * trans-types.c (get_element_type): Handle heap allocated arrays.
3964         (g95_is_nodesc_array): Include non-const size arrays.
3965         (g95_get_nodesc_array_type): Ditto.
3967 2003-02-23  Paul Brook  <paul@nowt.org>
3969         * trans-array.c (g95_array_init_size): Should use stride, not size of
3970         last dimension.
3972 2003-02-18  Paul Brook  <paul@nowt.org>
3974         * trans-expr.c (g95_trans_arrayfunc_assign): Nove elemental check
3975         after intrinsic function check.
3977 2003-02-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3979         * io.c (match_io): Fix missing return value and remove useless
3980         assignment.
3981         * match.c (g95_match): Remove useless assignment.
3982         * module.c (parse_string):  Remove useless post increment.
3983         * simplify.c (g95_simplify_verify): Remove useless assignment.
3985 2003-02-15  Paul Brook  <paul@nowt.org>
3987         * expr.c (restricted_intrinsic): Handle bad values gracefully.
3988         * g95.h (symbol_attribute): Add referenced member.
3989         (g95_symbol): Add dummy_order member.
3990         (g95_set_sym_referenced): Declare.
3991         * match.c (g95_match_assignment, g95_match_call): Use it
3992         * primary.c (match_actual_arg, g95_match_rvalue,
3993         g95_match_variable): Ditto.
3994         * symbol.c (next_dummy_order): New variable.
3995         (g95_set_sym_referenced): New function.
3996         (check_done): New function.
3997         (g95_add_*): Use it.
3998         * trans-decl.c: Make formatting conform to GCC standards.
3999         (g95_defer_symbol_init): Add dummy variables in the right order.
4000         (g95_get_symbol_decl): Only accept referenced variables.
4001         (g95_create_module_variable): Module variables are always required.
4002         (generatr_local_decls): New function.
4003         (generate_local_vars): New function.
4004         (g95_generate_function_code): Use it.
4006 2003-02-13  Paul Brook  <paul@nowt.org>
4008         * trans-decl.c (g95_conv_struct_cons): Remove.
4009         (g95_get_symbol_decl): Use g95_conv_expr for structure initializers.
4010         * trans-expr.c (g95_conv_structure): New function.
4011         (g95_conv_expr): Use it.
4013 2003-02-09  Paul Brook  <paul@nowt.org>
4015         * trans-array.c (g95_array_init_size): Don't evaluate the linit
4016         expressions multiple times.
4017         (g95_trans_auto_arry_allocation): Use pointer not tmp.
4019 2003-02-08  Paul Brook  <paul@nowt.org>
4021         * module.c (mio_symtree_ref): Declare as static.
4022         (mio_expr): Remove dead code.
4023         (read_module): Set the symtree link for fixups.
4024         * trans-intrinsic.c (g95_conv_intrinsic_round): Rename...
4025         (build_round_expr): ... to this.
4026         (g95_conv_intrinsic_aint): New function.
4027         (g95_conv_intrinsic_function): Use it.
4029 2003-02-08  Paul Brook  <paul@nowt.org>
4031         * trans-array.c (g95_trans_array_constructor_value): Use the acutal
4032         offset after modificaton, not the increment expression.
4033         * dependency.c: Kill excess whitespace.
4035 2003-02-07  Sanjiv Gupta  <sanjivg@noida.hcltech.com>
4037         * dependency.h: Remove some function declarations.
4038         * dependency.c (get_no_of_elements): Change this function not to
4039         return int.
4040         * other: Add comments for all modified functions.
4042 2003-02-06  Paul Brook  <paul@nowt.org>
4044         * g95spec.c (lang_specific_functions): Fix initializer warning.
4045         * dump-parse-tree.c (g95_show_expr): Use typespec instead of symtree
4046         for structure type names.
4047         * trans-decl.c (g95_cons_structure_cons): New function.
4048         (g95_get_symbol_decl): Use it.
4049         * trans-expr.c (g95_conv_component_ref): Remove duplicate pointer
4050         referencing code.
4052 2003-02-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4054         * resolve.c (compare_cases): Add const to casts.
4056 2003-01-30  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4058         * g95.h (g95_check_f): Change a1 to f1m.
4059         * intrinsic.c (add_sym_1m, check_specific,
4060         g95_intrinsic_func_interface): Use it.
4062         * module.c (init_pi_tree): Remove useless cast.
4063         (fp2): Fix argument type.
4065         * parse.c (parse_select_block): Add comment.
4067 2003-02-05  Toon Moene  <toon@moene.indiv.nluug.nl>
4069         * lang-options.h: Fix warning involving C90 concatenated
4070         strings.
4072 2003-02-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4073             Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4075         * io.c (format_asterisk): Complete initializer to kill warning.
4076         * arith.c (DEF_G95_INTEGER_KIND, DEF_G95_LOGICAL_KIND,
4077         DEF_G95_REAL_KIND, MPZ_NULL, MPF_NULL): New #defines.
4078         (g95_integer_kinds, g95_logical_kinds, g95_real_kinds): Use the
4079         new defines to complete initializers.  Kills all warnings.
4081         * Make-lang.in: Comment cleanup.
4083 2003-02-05  Paul Brook  <paul@nowt.org>
4085         * array.c (g95_free_constructor): Handle NULL expressions.
4086         * resolve.c (resolve_structure_cons): Ditto.
4087         * decl.c (g95_match_null): New Function.
4088         (variable_decl): Use it.
4089         * module.c (mio_expr): Don't bother saving symtree for EXPR_STRUCTURE.
4090         * primary.c (g95_match_runtime): Don't use symtree for EXPR_STRUCTURE.
4091         * trans-types.c (g95_set_decl_attributes): Remove empty function.
4093 2003-02-05  Paul Brook  <paul@nowt.org>
4095         * trans.h (build1_v): New macro.
4096         (build_v): Remove pointless and incorrect prototype.
4097         * various: Use build1_v for GOTO_EXPR and LABEL_EXPRs.
4098         * f95-lang.c (g95_init_builtin_decls): DEF_BUILTIN takes 10 args.
4100 2003-02-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4102         * Make-lang.in (F95_OBJS): Remove one more dead file.
4104 2003-02-01  Paul Brook  <paul@nowt.org>
4106         * lang-specs.h: Don't pass -ffixed-form to the linker.
4107         * trans-decl.c (g95_generate_function_code): Clear saved decl chain.
4109 2003-02-01  Paul Brook  <paul@nowt.org>
4111         * Make-lang.in (F95_OBJS): Remove dead files.
4112         * trans-array.c (g95_array_init_size): Do the right thing when
4113         ubound=NULL.
4114         * trans-decl.c (g95_generate_function_code): Initialize deffered
4115         symbol list before translating contained subroutines.
4116         * trans-expr.c (g95_conv_expr, g95_conv_expr_reference): Substitute
4117         scalar invariant values here...
4118         (g95_conv_variable, g95_conv_function_call): ... instead of here ...
4119         * trans-intrinsic.c (g95_conv_intrinsic_function_args): .. and here.
4121 2003-01-29  Paul Brook  <paul@nowt.org>
4123         * trans-array.c (g95_add_loop_code): Put pre code in the right block.
4124         (g95_walk_elemental_function_args): Reverse chains before adding.
4125         (g95_reverse_ss): Move about a bit.
4126         * trans-expr.c (g95_conv_function_call): Handle scalar intrinsic
4127         function arguments.
4129 2003-01-28  Paul Brook  <paul@nowt.org>
4131         * intrinsic.c (resolve_intrinsic): Use correct union member.
4132         * trans-array.c (g95_trans_dummy_array_bias): Don't touch absent
4133         parameters.
4134         * trans-decl.c (g95_get_symbol_decl): Don't translate initializers for
4135         use associated variables.
4136         * trans-intrinsic.c (g95_conv_intrinsic_present): Move body ...
4137         * trans-expr.c (g95_conv_expr_present): ... to here.
4138         * trans.h: Declare it.
4139         * trans-types.c (g95_sym_type): Assume subroutine if not specified.
4141 2003-01-28  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
4143         * array.c (expand_iterator): Suppress useless assignment.
4144         * decl.c (match_char_spec): Ditto.
4145         * io.c (match_io_iterator): Ditto.
4146         * primary.c (match_real_constant): Ditto.
4147         * interface.c (fold_unary, g95_free_interface, g95_extend_expr):
4148         Ditto.  Also, use g95_intrinsic_op not int for intrinsic operators.
4149         * matchexp.c (match_add_operand, match_level_5): Likewise.
4150         * module.c (parse_atom, find_enum): Likewise.
4151         * resolve.c: move #include <string.h>
4152         (resolve_select): Fix serious typo.
4154 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.n>
4156         * Make-lang.in: Don't build with broken tree-ssa-pre.
4158 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4160         * resolve.c (resolve_index): Add a TODO.
4161         * symbol.c: Remove useless "#include <ctype.h>".
4163 2003-01-27  Paul Brook  <paul@nowt.org>
4165         * check.c (check_rest): Allow different type kinds as an extension.
4166         * g95.h (g95_resolve_f): Add f1m.
4167         * intrinsic.c (add_sym_1m, resolve_intrinsic): Use it.
4168         * intrinsic.h: Chenge prototypes for MIN and MAX.
4169         * iresolve.c (g95_resolve_minmax): New function.
4170         (g95_resolve_min, g95_resolve_max): Use it.
4171         * trans-intrinsic.c (g95_trans_intrinsic_minmax): Only evaluate
4172         arguments once.
4173         (g95_conv_intrinsic_present): Fix logic.
4175 2003-01-27  Steven Bossche  <s.bosscher@student.tudelft.nl>
4177         * g95.h (g95_case): Don't be a tree, be a double linked list.
4178         * match.c (match_case_selector): Remove redundant semantics check.
4179         Clean up a few goto's to make it a tiny little bit faster.
4180         * resolve.c (case_tree): Die.
4181         (compare_cases): Accept and compare unbounded cases too.
4182         (check_case_overlap): Don't build a tree.  Instead, merge-sort the
4183         whole list of g95_cases passed from resolve_select.
4184         (sane_logical_select): Die.
4185         (check_case_expr): Return FAILURE if a CASE label is of the wrong
4186         type kind.
4187         (resolve_select): Fixup case expression for computed GOTOs, put it
4188         in expr, not expr2, for easier handing in the parse tree dumper and
4189         the code generator.  Rewrite the rest of the function: Kill
4190         unreachable case labels and unreachable case blocks.
4191         * dump-parse-tree.c (g95_show_code_node): Always dump expr for
4192         an EXEC_SELECT, not case2 anymore.
4193         * trans-const.c (g95_conv_constant_to_tree): New function.
4194         (g95_conv_constant): Use it.
4195         * trans-const.h: Declare prototype for the new function.
4196         * trans-stmt.c (g95_trans_integer_select, g95_trans_logical_select,
4197         g95_trans_character_select): New static functions.
4198         (g95_trans_select): Rewrite.
4200 2003-01-26  Paul Brook  <paul@nowt.org>
4202         * intrinsic.c (add_fnctions): Properly add dreal.
4203         * trans-intrinsic.c (g95_conv_intrinsic_present): New function.
4204         (g95_conv_intrinsic_function): Use it.
4205         * trans-io.c (build_dt): Abort on internal files (unimplemented).
4207 2003-01-26  Paul Brook  <paul@nowt.org>
4209         Widespread changes to the handling of symbols in expressions.  These
4210         are now linked via g95_symtree nodes.
4211         * parse.c (g95_fixup_sibling symbols): New function.
4212         (parse_contained): Use it.
4213         * g95.h (symbol_attribute): Add contained.  Indicates a symbol is a
4214         contained procedure that has bee correctly fixed up.
4215         (g95_code, g95_expr): Point to a g95_symtree, not a g95_symbol.
4217 2003-01-24  Paul Brook  <paul@nowt.org>
4219         * trans-array.c (g95_walk_expr): Function result attributes are in
4220         sym->result.
4221         * trans-expr.c (g95_conv_function_call,
4222         g95_trans_arrayfunc_assign): Ditto.
4223         * trans-decl.c (g95_get_symbol_for_expr): Set sym->result.
4225 2003-01-23  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4227         * expr.c (check_restricted): Fix error message.
4228         * symbol.c (free_st_labels): Plug memleak.
4230 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4232         * arith.c (reduce_unary, reduce_binary_ac, reduce_binary_ca,
4233         reduce_binary_aa, reduce_binary, eval_intrinsic,
4234         eval_intrinsic_f2): Use typesafe prototypes for eval functions.
4235         * g95.h (g95_check_f, g95_simplify_f, g95_resolve_f): New unions
4236         for typesafe intrinsics helper functions.
4237         (g95_intrinsic_sym): Use them.
4238         * intrinsic.c (do_check, add_sym, add_sym_0, add_sym_1,
4239         add_sym_1s, add_sym_1m, add_sym_2, add_sym_3, add_sym_4,
4240         add_sym_5, add_conv, resolve_intrinsic, do_simplify,
4241         check_specific, g95_intrinsic_func_interface,
4242         g95_intrinsic_sub_interface): Adjust all calls to intrinsics
4243         helper functions.
4244         * trans-decl.c (g95_get_extern_function_decl): Likewise.
4245         * Make-lang.in: Don't disable warnings for strict prototypes
4246         any longer, everything is typesafe now.
4248 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4250         * bbt.c (duplicate_node): Make static.
4251         * module.c (module_name): Make static.
4252         * scanner.c (include_dirs): Make static.
4254 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4256         Hard coded _gfor_'s should not show up anymore.
4257         * g95.h (PREFIX): New macro.
4258         * iresolve.c (g95_resolve_cpu_time): Use PREFIX, not
4259         hard-coded "_gfor".
4260         (g95_resolve_random_number): Likewise.
4261         * trans-decl.c (g95_build_intrinsic_function_decls): Likewise.
4262         * trans-io.c: Remove 'prefix' macro.  Replace all uses with
4263         the new PREFIX macro from g95.h.
4265 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4267         The troubles of forking... Andy implemented this just now too.
4268         Let's stick to that and keep the trees close.
4269         * g95.h (g95_st_label): 'format' member is now a g95_expr.
4270         * io.c: Revert previous changes.
4271         (g95_match_format): Match the format string as a character
4272         literal expression.
4273         * match.h (g95_statement_label): Declare external.
4274         * parse.c: Revert previous changes.
4275         * symbol.c (g95_free_st_label): Free a g95_expr instead
4276         if a 'char *'.
4277         * trans-io.c: Revert previous changes.
4278         (build_dt): Use set_string to set the format string.
4280 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4282         * io.c (format_string): Make non-static.
4283         (g95_match_format): Remember the format string.
4284         (terminate_io): Add I/O termination for empty I/O lists.
4285         * match.h: Declare external format_string.
4286         * parse.c (check_statement_label): Attack the format string
4287         to a format label for FORMAT statements.
4288         * trans-io.c (g95_add_field): Define prefix macro.  Replace
4289         all uses of PREFIX define with a use of this macro.
4290         (build_dt): Implement formatted I/O for format labels.
4292 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4294         * lang-options.h: Kill "-std=F".
4295         * options.c: Remove unimplemented "-std=F".  Modify
4296         web address.
4297         * misc.c (g95_terminal_width): New function.
4298         * error.c (g95_error_init_1): Use g95_terminal_width.
4299         * g95.h: Add prototype for g95_terminal_width, remove
4300         fmode flag.
4302 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4304         * Make-lang.in: Fix typo.
4306 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4308         * g95.h (struct g95_case): Remove unused cruft, new member
4309         'where' to keep track of the locus of the default case.
4310         * match.c (g95_match_case): Add locus to the current case.
4311         (match_case_selector): Likewise.
4312         * parse.c (parse_select_block): Move semantics check for
4313         multiple DEFAULT cases out of here to...
4314         * resolve.c (check_case_overlap): ...here.  Return sooner
4315         when possible.
4316         (check_case_expr): Take two g95_cases now, use to sure the
4317         expression kinds are the same.
4318         (resolve_select): Cleanup.
4320 2003-01-18  Paul Brook  <paul@nowt.org>
4322         * trans-io.c: Fix typos in ported IO work (set_fla[tg]).
4323         * trans-decl.c (g95_set_symbol_decl): Handle non-array result
4324         variables.
4325         (g95_get_extern_function_decl): Put decls in the correct context.
4327 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4329         * trans-io.c: Port changes from Andy to set ERR flag.
4331 2003-01-17  Paul Brook  <paul@nowt.org>
4333         * trans-array.c: Add various comments.
4334         (g95_ss_terminator): Declare as const.
4335         (g95_walk_expr): Remove first parameter and update all callers.
4336         (g95_walk_op_expr): Initialize scalar SS properly.
4337         * trans-array.h (g95_walk_expr): Update prototype.
4338         * trans-expr.c: Update for new g95_walk_expr.
4339         * trans-intrinsic.c: Ditto.
4340         * trans-io.c: Ditto.
4341         * trans.h: Various comments for SS chains.
4343 2003-01-17  Paul Brook  <paul@nowt.org>
4345         * intrinsic.h (g95_generic_isym_id): Add G95_ISYM_S?_KIND, SPACING
4346         and RRSPACING.
4347         * intrinsic.c (add_functions): Use them.
4348         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto.
4349         * trans-expr.c (g95_conv_expr_lhs): Abort on impossible error.
4351 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4353         Fallout of a small merge conflict:
4354         * intrinsic.c: Un-revert lost patch (G95_ISYM_SCALE).
4356 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4358         * initrinsic.c: New add_sym_* functions for strong typing.
4359         (add_conv): Make prototype strict.
4360         * dump-parse-tree.c, dependency.c: Include config.h
4361         * resolve.c, trans-io.c: Fix typos.
4363 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4365         * dump-parse-tree.c (g95_show_code_node): Show the
4366         condition for a computed GOTO that was transformed
4367         to a SELECT CASE construct.
4368         * resolve.c (check_case_overlap): Revert previous switch
4369         to treaps, it was too slow and didn't catch all trouble.
4370         (resolve_symbol): Be more flexible about module procedures.
4371         * symbol.c (check_conflict): Point to relevant section in
4372         the standard for dubious conflict.  Allow procedure
4373         dummy arguments to be optional again.
4374         * trans-io (add_field): Rename to g95_add_field.  Change
4375         all callers.
4376         * trans-stmt (trans_select): Handle unbounded cases for
4377         integer SELECT CASE constructs.  Fix/add more comment.
4379 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4381         * g95.h: Uses GCC's function attribute macros.
4382         * error.c, module.c, parse.c, g95.h: More function attributes.
4384 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4385         Forgot a file...
4386         * trans-decl.c (get_label_decl): Use TREE_LINENO instead
4387         of DECL_SOURCE_LINE, and TREE_FILENAME instead of
4388         DECL_SOURCE_FILE.
4390 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4392         * f95-lang.c (pushdecl): Use TREE_LINENO instead of
4393         DECL_SOURCE_LINE.
4394         * trans.c (g95_trans_code): Use annotate_all_with_file_line
4395         instead of nowdead wrap_all_with_wfl.
4397 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4399         * parse.c (g95_parse_file): In verbose mode, dump the parse tree
4400         before generating code, so we can still see it even if the code
4401         generation phase dies.
4403 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4405         * decl.c (build_sym): Split out initialization expression parts...
4406         (add_init_expr_to_sym): ...to here.
4407         (variable_decl): Add the symbol following an attribute list to the
4408         symbol tree before parsing the optional initialization expression
4409         if the symbol is not of a derived type.
4410         * primary.c (g95_match_rvalue): Don't assume a symbol always has
4411         a value if it is a PARAMETER.
4413 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4415         * misc.c: Don't #include <mcheck.h>
4416         * module.c: Ditto.  Kill uses of mtrace, muntrace.  If there
4417         ever was a glibc bug, then either this was never reported to
4418         glibc people, or it has been fixed for so long that there's
4419         no information you can find about it, anywhere.
4421 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4423         Fix warnings:
4424         * module.c (attr_bits, bt_types, array_spec_types):
4425         Switch 'const' and 'static'.
4426         * iresolve.c (g95_resolve_reshape): Make __resolve0 non-'const'.
4428         GNU'ify source code:
4429         * trans-io.c: Numerous fixes, one fixed warning and a few
4430         TODO markers so that we don't forget about them.
4432 2003-01-13  Paul Brook  <paul@nowt.org>
4434         * intrinsic.c (add_functions): Add G95_ISYM_SCALE.
4435         * intrinsic.h (g95_generic_isym_id): Remove bogus G95_ISYM_ANINIT.
4436         Add G95_ISYM_SCALE.
4437         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto
4438         * match.c (g95_match_stop): Fix dumb == -> != error.
4440 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4442         * dump-parse-tree.c (show_indent): Add line breaks.  This
4443         whole dumping process needs cleanups.
4444         * f95-lang.c (g95_mark_addressable): Fix prototype to match
4445         the langhook.  Fix 'return's accordingly.
4446         * g95-support.h: Adjust prototype.
4447         * g95.h: Add 'no_backend' member to 'g95_option_t' struct.
4448         * lang-options.h: Add '-fsyntax-only'.
4449         * options.c (g95_init_options): Init 'no_backend'.
4450         (g95_parse_arg): Deal with '-fsyntax-only'.
4451         * parse.c (g95_parse_file): Do not generate code if 'no_backend'
4452         is set.
4454 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4455         Patch from Arnaud
4456         * resolve.c (resolve_symbol): Assumed shape arrays must be dummy
4457         arguments.  Also make sure that if a symbol is marked INTRINSIC,
4458         an intrinsic with the symbol's name actually exists.
4459         (check_conflict): Make EXTERNAL and DIMENSION attributes conflict.
4460         Do not allow PROCEDURES to have the SAVE, POINTER, TARGET,
4461         ALLOCATABLE, RESULT, IN_NAMESPACE, OPTIONAL or FUNCTION attribute.
4463 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4465         * resolve.c (resolve_contained_functions): Fix condition, don't
4466         throw internal_error if a child namespace has no name.  Apparently
4467         this can be the case?
4469 2003-01-11  Paul Brook  <paul@nowt.org>
4471         Port changes from Andy's tree:
4472         * g95.h (g95_code): Add stop_code.
4473         * match.c (g95_match_stop): Detter syntax checking.
4474         * resolve.c (resolve_generic_f0): Return match type.
4475         (resolve_generic_f): Remove dead/duplicated code.
4476         (resolve_specific_f): Ditto.
4477         * dump-parse-tree.c (g95_show_code_node): Handle new STOP format.
4478         * trans-decl.c (gfor_fndel_stop_*): New fndecl nodes.
4479         * trans-stmt.c (g95_trans_stop): Handle new STOP format.
4481 2003-01-11  Paul Brook  <paul@nowt.org>
4483         * trans-array.c: Various documentation/comment changes.
4484         * trans-stmt.c: Ditto.
4487 2003-01-10  Paul Brook  <paul@nowt.org>
4489         * options.c/h: Add -fdump-parse-tree as alias of -v.
4491 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4493         * dump-parse-tree.c (g95_show_namespace): Fixed another
4494         typo.  Sorry, it's Friday...
4496 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4498         Spotted by Tobi:
4499         * trans-array.c, trans-array.h, trans.c, trans-const.c,
4500         trans-const.h, trans-decl.c, trans-expr.c, trans.h
4501         trans-intrinsic.c, trans-io.c, trans-stmt.c, trans-stmt.h
4502         trans-types.c: Fix bogus copyright years, add 2003.
4503         * trans-types.h: Give copyright header.
4505 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4507         * dump-parse-tree.c (g95_show_namespace): Fixed typo.
4508         * expr.c, options.c, scanner.c: Add some more 'const' markers.
4509         * intrinsic.c: Some constant strings moved to read-only memory.
4510         * io.c (format_asterisk): Move to...
4511         * g95.h: ...here.
4513 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4515         * dump-parse-tree.c (g95_show_namespace): Dump implicit
4516         types for ranges instead of per-letter.  Indent the
4517         'CONTAINS' just like everything else.
4518         * resolve.c (resolve_contained_functions): Clarify comment.
4519         Explain non-obvious conditional expression.  Improve
4520         diagnostics if tyoe cannot be resolved.
4521         Port semi-fix from Andy's tree:
4522         (was_declared): Move up before first use.
4523         (generic_sym, specific_sym): New functions.  Code moved
4524         out if procedure_kind.
4525         (procedure_kind): Simplify using new functions.
4526         (resolve_generic_f): Make sure the functions we find in
4527         a parent namespace is generic.
4528         (resolve_specific_f): Ditto for specific functions.
4530 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4532         * trans-stmt.c, trans.c: Fix some code style issues. Add
4533         some more comment (but still not enough!).
4535 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4537         * symbol.c (flavors, procedures, intents, acces_types,
4538         access_types, ifsrc_types): Make const.
4539         * misc.c (g95_string2code): Make 'm' param 'const'.
4540         * module.c (find_enum, write_atom, mio_name): Make
4541         'm' param 'const'.
4542         (attr_bits, bt_types, array_spec_types, array_ref_types,
4543         ref_types, expr_types): Make const.
4544         * g95.h: Adjust external decls.
4546 2003-01-09  Paul Brook  <paul@nowt.org>
4548         * Testsuite: Add a load of new cases.
4550 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4552         * Make-file.in: Add dependency on back end header files;
4553         a parallel build should work now.
4554         * f95-lang-c (lang_identifier): Remove bogus comment.
4555         (g95_be_parse_file): Fix prototype.
4556         (g95_init): Make static.
4557         (g95_finish): Make static.
4558         * error.c (g95_syntax_error): Kill. Make define in...
4559         * g95.h (g95_syntax_error): Define.
4560         (g95.options): Make 'source' member 'const'.
4561         * interface.c (g95_match_interface): Explain
4562         hard-to-read condition.
4563         (g95_match_end_interface): Ditto.
4564         * trans_const.c (g95_build_string_const): Make 's' parameter
4565         'const'.
4566         * trans_const.h: Adjust protoype accordingly.
4567         * trans-decl.c: Include tree-dump.h
4568         (g95_generate_function_code): Build fixes for recent changes
4569         in the tree-ssa branch.
4571 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4573         * format.c: Kill, move code from here...
4574         * io.c: ...to here.
4575         * Make-lang.in: Adjust.
4576         * MANIFEST: Ditto.
4577         * match.h: Ditto.
4578         * BUGS: Mention where to submit bugs.  Move old content...
4579         * TODO: ...to here.  New file.
4581 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4582         Fix most warnings, and suppress the ones we can't fix for now.
4583         * Make-lang.in: Suppress warnings about bad proto's in g95.h,
4584         these warnings just clutter the screen and there's not much
4585         we can do about them for now anyway.
4586         * check.c, iresolve.c: Mark unused function parameters.
4587         * dump-parse-tree.c (g95_show_array_spec): Punt on AS_UNKNOWN,
4588         they should be resolved before they get here.
4589         * error.c: Remove unused FILE *status_out.
4590         * f95-lang.c (g95_init): Remove bogus cast.
4591         * Many files: Make things 'const' where required.
4592         * g95.h: Fix prototypes for all modified functions above.
4593         (g95_options): Remove 'object' member.
4595 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4597         * Make-file.in: Cleanup bogus targets.  Add more comment.
4598         * lang-options.h: New option '-w'.
4599         * g95.h: add no_options field to struct g95_options.
4600         * options.c (g95_init_options): Default no_warnings to off.
4601         (g95_parse_arg): Recognise the '-w' switch and its alias,
4602         '-fno-warnings'.
4603         * error.c (g95_warning, g95_warning_now): Don't emit warning if
4604         no_warning option is set.
4605         * iresolve.c (g95_resolve_shape): Fix warning.
4607 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4609         * primary.c (g95_next_string_char): Rename next_string_char, and
4610         make static.  Adjust callers accordingly.
4611         * resolve.c (resolve_generic_f0): Return try, not match.  Adjust
4612         callers accordingly.
4613         * g95.h: Split out all g95_match* functions to...
4614         * match.h: ...here. New file.
4615         * array.c, decl.c, expr.c, format.c, interface.c, io.c, match.c,
4616         matchexp.c, module.c, parse.c, primary.c: Inlcude match.h
4618 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4620         * symbol.c (g95_clear_new_implicit, g95_add_new_implicit_range,
4621         g95_merge_new_implicit): New functions.
4622         (g95_match_implicit_none, g95_match_implicit): Move from here...
4623         * match.c (g95_match_implicit_none, g95_match_implicit): ... to here.
4624         Modify to use the new functions in symbol.c.
4625         * g95.h: Add and move prototypes.
4627 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4629         * bbt.c (insert): Use a typedef'ed compare_fn prototype for the
4630         node compare function.
4631         (g95_insert_bbt): Likewise.
4632         (g95_insert_bbt_with_overlap): Likewise.
4633         (g95_delete_bbt): Likewise.
4634         (delete_treap): Likewise. Also fix a potential bug when calling it.
4635         * module.c (compare_pointers): Change proto to compare_fn.
4636         (compare_integers): Likewise.
4637         (compare_true_names): Likewise.
4638         (find_true_name): Adjust call to compare_true_names to match proto.
4639         (require_atom, write_atom, mio_name): Fix 'const' warnings.
4640         (init_pi_tree): Make compare a compare_fn instead of (int *).
4641         * resolve.c (compare_cases): Change proto to compare_fn.
4642         * symbol.c (g95_compare_symtree): Change proto to compare_fn, make
4643         it static, and rename to compare_symtree.
4644         (delete_symtree, g95_undo_symbols, g95_new_symtree): Use renamed
4645         function.
4646         * g95.h: Kill g95_compare_symtree prototype. Adjust prototypes
4647         of g95_insert_bbt, g95_insert_bbt_with_overlap, and g95_delete_bbt.
4649 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4650         * Make-lang.in: Fix spaces/tabs issues from previous patch.
4651         * patch.options: Blow away Paul's checkin mistake :-)
4652         * io.c (terminate_io): Fix memory leak (Arnaud).
4654 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
4656         * Make-lang.in: Teach about building DVI, info manual.
4657         * g95.texi: New file.
4659 2003-01-02  Paul Brook  <paul@nowt.org>
4661         * trans-array.c (g95_reverse_ss): Make static and don't use.
4662         (g95_conv_ss_descriptor): Don't use g95_loopinfo
4663         (g95_conv_array_parameters): Modify for pointer assignments.
4664         (g95_walk_subexpr): New function.
4665         (g95_walk_expr*): Use it.
4666         * trans-array.h (g95_reverse_ss): Remove prototype.
4667         * trans-expr.c (g95_trans_pointer_assign): Implement.
4668         (Many): Set se.want_pointer before calling g95_conv_array_parameter.
4669         * trans-intrinsic.c: Sync with scalarizer changes.
4670         * trans-io.c: Ditto.
4672 2002-12-29  Paul Brook  <paul@nowt.org>
4674         * trans-array.c: Document calling convention for arrays.
4676 2002-12-19  Paul Brook  <paul@nowt.org>
4678         * trans-intrinsic.c (g95_conv_intrsinsic_function): Remove incorrect
4679         assertion. Remove intrinsic subroutine G95_ISYM_* cases. Always pass
4680         optional parameters for some intrinsics.
4681         (g95_is_intrinsic_libcall): Add G95_ISYM_RESHAPE.
4682         * trans-expr.c (g95_conv_function_call): Pass NULL for absent
4683         optional parameters.
4684         * trans.h (g95_se): Add ignore_optional flag.
4686 2002-12-15  Paul Brook  <paul@nowt.org>
4688         * trans-array.c (g95_conv_array_parameter): Fix partial rank sections.
4689         * trans-decl.c (g95_generate_function_code): Use TDI_original.
4691 2002-12-14  Paul Brook  <paul@nowt.org>
4693         * trans-stmt.c (g95_trans_call): Use resolved symbol name.
4695 2002-12-12  Paul Brook  <paul@nowt.org>
4697         * trans-array.c (g95_trans_array_constructor_subarray): Fully
4698         initialize the scalarizer.
4699         (various): Update to new format of g95_expr->value.constructor.
4701 2002-12-08  Paul Brook  <paul@nowt.org>
4703         * trans-array.c (g95_put_offset_into_var): New function.
4704         (g95_trans_array_constructor_subarray): New function.
4705         (g95_trans_array_constructor_value): Use it.
4706         (g95_array_cons_size): Don't abort() on array components.
4708 2002-12-08  Paul Brook  <paul@nowt.org>
4710         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove tree-dchain.o.
4711         * support.c: Update #includes.
4712         (statement_code_p, c_size_in_bytes, s_size_type_node): Remove.
4713         * trans-array.c: Update #includes.
4714         * trans.c: Ditto.
4715         * trans-const.c: Ditto.
4716         * trans-io.c: Ditto.
4717         * trans-types.c: Ditto.
4718         (g95_init_types): Set size_type_node.
4719         * trans-decl.c: Update #includes.
4720         (gfor_fndecl_adjust{l,r}): Declare and initialize.
4721         * trans-stmt.c: Update #includes.
4722         (g95_trans_do_while): Generate LABEL_EXPR, not GOTO_EXPR.
4723         (g95_trans_select): Fix check for unbounded ranges.
4724         * trans-expr.c: Update #includes.
4725         (g95_conv_string_tmp): New function.
4726         (g95_conv_concat_op): Use it.
4727         * trans.h (g95_conv_string_tmp, gfor_fndecl_adjust{l,r}): Declare.
4728         * Trans-intrisic.c: Update #includes.
4729         (g95_conv_intrinsic_strcmp): New function.
4730         (g95_conv_intrinsic_adjust): Ditto.
4731         (g95_conv_intrinsic_function: Use them.
4733 2002-11-30  Paul Brook  <paul@nowt.org>
4735         * trans-array.c (g95_walk_function_expr): Handle non-array return by
4736         reference.
4737         * trans-dec.c (g95_build_function_decl): Handle character return
4738         parammeters.
4739         (g95_get_fake_result_decl): Ditto.
4740         (g95_trans_deferred_vars): Ditto.
4741         * trans-expr.c (g95_conv_function_call): Ditto.
4742         (g95_trans_arrayfunc_assign) Limit to array valued functions.
4743         * trans-intrinsic.c (g95_conv_intrinsic_char): New function.
4744         (g95_conv_intrinsic_function): Use it.
4745         * trans-types.c (g95_sym_type): Handle functions returning strings.
4746         (g95_return_by_reference): Ditto.
4747         (g95_get_function_type): Ditto.
4749 2002-11-18  Paul Brook  <paul@nowt.org>
4751         * trans-stmt.c (g95_trans_if): Fix IF statements when the condition
4752         requires a temporary.
4753         (g95_trans_select): Handle computed gotos.
4754         * trans-types.c (g95_build_array_type): Warn about non-functional
4755         assumed shape arrays.
4756         * trans-expr.c (g95_trans_scalar_assign): Correctly handle post
4757         blocks.
4758         * trans-intrinsic.c (g95_conv_intrinsic_round): New function.
4759         (g95_conv_intrinsic_int): New function.
4760         (g95_conv_intrinsic_mod): New function.
4761         (g95_conv_intrinsic_ichar): New function.
4762         (g95_conv_intrinsic_function): Use them.
4763         (g95_conv_intrinsic_dim): Use g95_evaluate_now.
4765 2002-11-17  Toon Moene  <toon@moene.indiv.nluug.nl>
4767         * trans-types.c (g95_build_array_type): Assumed
4768         sized arrays can have rank > 1.
4769         * trans.c (g95_trans_code): Remove erroneous
4770         warning about CONTINUE.
4771         * trans-expr.c (g95_conv_variable): Remove
4772         erroneous assert.
4774 2002-11-15  Paul Brook  <paul@nowt.org>
4776         * trans-array.c (g95_conv_array_parameter): Check for NULL stride.
4778 2002-10-31  Paul Brook  <paul@nowt.org>
4780         * f95-tree.c: Remove tree copying stuff that's now in gimple.c
4781         * trans-expr.c (g95_conv_component_ref): Handle character string
4782         components.
4783         (g95_conv_string_parameter): Ditto.
4784         * trans-types.c (g95_get_derived_type): Add length decl to caracter
4785         string components.
4787 2002-10-10  Paul Brook  <paul@nowt.org>
4789         * trans-decl.c (gfor_fndecl_size?): Declare and initialize.
4790         * trans-expr.c (g95_conv_function_call): Remove unreliable return value
4791         check.
4792         * trans-intrinsic.c (g95_conv_intrinsic_size): New function.
4793         (g95_conv_intrinsic_function): Handle size and shape intrinsics.
4794         (g95_is_intrinsic_libcall): Add G95_ISYM_SHAPE.
4795         * trans-types.c (pvoid_type_node): Declare and initialize.
4796         * trans-array.c: Fix typo COMPONENT_REF->REF_COMPONENT
4797         (g95_array_allocate): Fix when base==data.
4798         (g95_conv_array_parameter): Correctly handle reduced rank sections.
4799         * trans-io.c (g95_trans_write): Correctly handle string modifiers.
4801 2002-10-09  Paul Brook  <paul@nowt.org>
4803         * (g95_conv_expr_reference): Handle character strings correctly.
4805 2002-10-07  Paul Brook  <paul@nowt.org>
4807         (g95_expand_decl): Rename from f95_expand_decl_stmt and use as
4808         langhook.
4809         * trans-array.c (g95_build_array_initializer): Remove.
4810         (g95_conv_array_initializer): New Function.
4811         (g95_trans_auto_arry_allocation): Cleanup.
4812         (g95_trans_init_character_array): Remove.
4813         * g95spec.c: Link in libgforbegin.
4814         * trans.c (g95_generate_code): Rename main function to MAIN__.
4815         (g95_create_var): New function.
4816         (g95_create_var_np): New function.
4817         (g95_evaluate_now): New function.
4818         (g95_start_block): New function.
4819         (g95_finish_block): New function.
4820         (g95_add_expr_to_block): New function.
4821         (g95_add_block_to_block): New function.
4822         * trans-expr.c (g95_conv_componen_ref): New function.
4823         * Make-lang.in (F95_ADDITIONAL_OBJS): Add gimplify.o.
4824         (F95_OBJS): Add dependency.o.
4825         * f95-lang.c (g95_is_simple_stmt): Remove.
4826         * f95-tree.c (mark_not_simple): New function.
4827         (unshare_all_trees): New function.
4828         (create_tmp_var, create_tmp_alias_var): Remove.
4829         * support.c (declare_tmp_vars, tree_last_decl): Remove.
4830         * trans*: Convert to new IR using GENERIC trees.  Don't bother about
4831         SIMPLE/GIMPLE rules, this is now done by Lang-independant code.
4833 2002-10-01  Paul Brook  <paul@nowt.org>
4835         * trans-array.c: Add support for descriptorless arrays.
4836         (g95_conv_array_data): New function.
4837         (g95_conv_array_base): New function.
4838         * trans-array.h: Declare these here.
4839         * trans-decl.c(g95_create_mopdule_variable): Perform variable
4840         initialization and creation here.
4841         (g95_create_module_vars): Instead of here.
4842         * trans.h (G95_TYPE_ARRAY_*: Rename from G95_TYPE_DESCRIPTOR_*.
4843         * trans-intrinsic.c: Ditto.
4844         * trans-types.c (g95_is_nodesc_array): New function.
4845         (g95_get_nodesc_array_type): New function.
4846         (g95_sym_type, g95_get_derived_type): Use them.
4847         * trans-const.c (g95_conv_mpf_to_tree): Remove workaround.
4849 2002-09-28  Paul Brook  <paul@nowt.org>
4851         * trans-const.c (g95_conv_mpf_to_tree): Work around backend bug.
4852         * trans-intrinsic.c (g95_conv_intrinsic_abs): Correctly detect complex
4853         parameters.
4855 2002-09-24  Paul Brook  <paul@nowt.org>
4857         * f95-lang.c (listify): Remove declaration.
4858         (expand_function_body): Use optimize >=1 instead of flag_tree_saa.
4859         (listify)
4860         * f95-tree.c (get_name): New function.
4861         * trans.c (module_namespace): Remove.
4862         * trans-decl.c: Use g95_chainon_list rather than chainon(listify()).
4863         * trans-types.c: Ditto.
4865 2002-09-19  Paul Brook  <paul@nowt.org>
4867         * trans-array.c (g95_get_array_cons_size): New Function.
4868         (g95_con_ss_startstride): Handle Array constructors.
4869         (g95_conv_loop_setup): Ditto.
4870         (g95_conv_array_parameter): Ditto.
4871         * tras-decl.c (g95_finish_var_decl): Make initializes variables
4872         static.
4874 2002-09-19  Paul Brook  <paul@nowt.org>
4876         * trans.c (g95_simple_fold_tmp): Detect variables inside
4877         NON_LVALUE_EXPR.
4878         * trans-stmt.c (g95_trans_arithmetic_if): Implement this.
4880 2002-09-18  Steven Bosscher <s.bosscher@student.tudelft.nl>
4882         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree-ssa-dce.o
4884 2002-09-14  Paul Brook  <paul@nowt.org>
4886         * trans.c (g95_create_module_variable): Move to trans-decl.c.
4887         * trans-const.c (g95_conv_string_init): New Function.
4888         * trans-const.h: Declare it.
4889         * trans-decl.c (g95_get_symbol_decl): Handle initializers for static
4890         variables. Don't bail on intrinsic symbols.
4891         (get_extern_function_decl): Handle specific intrinsic functions.
4892         * trans-types.c (g95_sym_type): Dummy functions don't return
4893         reference types.
4894         * trans-array.c (g95_build_array_initializer): New Function.
4895         (g95_trans_auto_array_allocation): Build initializer for static decls.
4896         Don't use mpz_addmul, it's GMP4 only.
4898 2002-09-12  Paul Brook  <paul@nowt.org>
4900         * trans-decl.c (g95_generate_code): Fix thinko with return variable.
4901         (g95_get_extern_function_decl, g95_build_function_decl): Mangle
4902         assembler names for module procedures.
4904 2002-09-11  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
4906         * trans-array.c,h trans-expr.c, trans-stmt.c: Correct spelling of
4907         dependency/
4909 2002-09-10  Paul Brook  <paul@nowt.org>
4911         * trans-array.c: Change format of G95_SS_TEMP strictures.
4912         (g95_check_fncall_dependancy): New function.
4913         (trans_dummy_array_bias): stride[n], not stride[n-1]. for calculating
4914         offsets.
4915         * trans-decl.c (g95_get_symbol_decl): move assertion after handling of
4916         result variables.
4917         (g95_build_function_decl): Don't assume result arrays are packed.
4918         (g95_trans-deferred-vars): Handle array result variables.
4919         (g95_generate_fuction_code): Clear saved_function_decls.
4920         * trans-expr.c (g95_conv_fnction_call): Handle direct array return by
4921         reference.
4922         (g95_trans_arrayfunc_assign): New function.
4923         (g95_trans_assignment): Use it.
4924         * trans.h (g95_ss): Add temp struct for G95_SS_TEMP.
4925         (g95_se): Add direct_byref.
4926         * trans-types.c: Use sym->result rather than sym where appropriate.
4927         * trans-intrinsic.c (g95_conv_intrinsic_funcall): New function.
4928         Update other functions to use this.
4929         (g95_is_intrinsic_libcall): New function.
4930         (g95_conv_intrinsic_function): Add MATMUL and PRODUCT intrinsics.
4931         (g95_walk_intrinsic_function): Ditto.
4933 2002-09-08  Paul Brook  <paul@nowt.org>
4935         * trans-types.c: Change rank field to dtype field in array descriptor.
4936         * trans-array.c: Implement filling of dtype array descriptor field.
4937         * trans-intrinsic.c: Fix broken LEN intrinsic.
4939 2002-09-07  Paul Brook  <paul@nowt.org>
4941         * trans-intrinsic.c: Remove outdated todo intrinsic list.
4942         (g95_get_symbol_for_expr): Remove hack for fortran based intrinsics.
4943         (g95_walk_intrinsic_function): Add MINLOC and MAXLOC.
4945 2002-09-06  Paul Brook  <paul@nowt.org>
4947         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree_alias_comon.o.
4948         (gt-f95-trans-types.h): Add dependancy information.
4949         * config-lang.in (gtfiles): Add trans-types.c
4950         * f95-lang.c (g95_be_parse_file): Pass error and warning counts
4951         back to top-level code.
4952         * trans-array.c, trans-types.c: Change format of array descriptor.
4953         (g95_conv_descriptor_dimension): New function.
4954         * trans-types.h (g95_conv_descriptor_rank): define.
4955         * trans-intrinsic.c: Implement PRODUCT, COUNT. MINLOC and MAXLOC
4956         intrinsics.
4958 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
4960         * trans-array.c, trans-types.c: Add rank information to descriptor.
4962 2002-09-06  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
4964         * trans-stmt.c (g95_trans_allocate): Fix when ref==NULL.
4966 2002-09-04  Paul Brook  <paul@nowt.org>
4968         * f95-lang.c (g95_create_decls): New function.
4969         (g95_init):  Move initialization of external decls to above, and call
4970         from g95_be_parse_file.
4971         * trans.c (g95_finish_stmt): Don't amputate the decl chain.
4972         * trans-types.c (g95_init_types): Always name integer and char types.
4973         (g95_get_array_type_bounds): TYPE_NAME may be a TYPE_DECL.
4975 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
4977         * Make-lang.in: Add options.c to F95_PARSER_OBJS
4979 2002-09-02  Paul Brook  <paul@nowt.org>
4981         * g95_generate_code: Clear the attr for __fortran_main.
4982         * trans-types.c (g95_finish_type): New function.
4983         * g95_init_io_state_type: Use g95_finish_type.
4984         * g95_conv_intrinsic_anyall: Fix thinko in result initialization.
4986 2002-09-01  Paul Brook  <paul@nowt.org>
4988         * README.backend: Warn about the dangers of extra config.h files.
4989         Remove obsolete libgfor stuff.
4990         * config-lang.in: Add target-libgfor dependancy.
4991         * g95_conv_mpf_to_tree: Use & free allocated buffer p rather than buff.
4993 2002-09-01  Toon Moene  <toon@moene.indiv.nluug.nl>
4995         * g95_conv_mpz_to_tree: Free storage pointed to by q,
4996         not by buff.
4998 2002-08-30  Paul Brook  <paul@nowt.org>
5000         * trans-intrinsic.c (g95_conv_intrinsic_function,
5001         g95_walk_intrinsic_function): Added ANY and ALL.
5002         (g95_conv_intrinsic_anyall): New function.
5003         * iresolve.c (g95_resolve_any, g95_resolve_all): Include rank in
5004         mangled name