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