OSDN Git Service

* langhooks.h (builtin_function): New langhook.
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
1 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2
3         * trans.h (builtin_function): Declare.
4
5 2004-07-16  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
6
7         PR fortran/16404
8         (parts ported from g95)
9         * parse.h (gfc_state_data): New field do_variable.
10         (gfc_check_do_variable): Add prototype.
11         * parse.c (push_state): Initialize field 'do_variable'.
12         (gfc_check_do_variable): New function.
13         (parse_do_block): Remember do iterator variable.
14         (parse_file): Initialize field 'do_variable'.
15         * match.c (gfc_match_assignment, gfc_match_do,
16         gfc_match_allocate, gfc_match_nullify, gfc_match_deallocate):
17         Add previously missing checks.
18         (gfc_match_return): Reformat error message.
19         * io.c (match_out_tag): New function.
20         (match_open_element, match_close_element,
21         match_file_element, match_dt_element): Call match_out_tag
22         instead of match_vtag where appropriate.
23         (match_io_iterator, match_io_element): Add missing check.
24         (match_io): Reformat error message.
25         (match_inquire_element): Call match_out_tag where appropriate.
26
27         * parse.c (gfc_check_do_variable): Fix error locus.
28
29 2004-07-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
30
31         PR fortran/15129
32         * trans-decl.c (gfc_build_function_decl): Create a new chardecl
33         for every assumed length character dummy argument.
34
35         PR fortran/15140
36         * trans-decl.c (gfc_trans_deferred_vars): Remove bogus assertion.
37
38         PR fortran/13792
39         * simplify.c (gfc_simplify_bound): Copy the bound expression.
40
41 2004-07-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
42
43         PR fortran/15324
44         * trans-array.c gfc_trans_g77_array,
45         gfc_trans_dummy_array_bias): Don't call gfc_trans_string_init
46         for assumed length characters.
47         (gfc_conv_expr_descriptor): Set se->string_length if dealing
48         with a character expression.
49         (gfc_cvonv_array_parameter): Pass string length when passing
50         character array according to g77 conventions.
51
52 2004-07-12  Paul Brook  <paul@codesourcery.com>
53
54         * expr.c (gfc_check_assign_symbol): Handle pointer assignments.
55         * trans-array.c (gfc_trans_auto_array_allocation): Remove
56         initialization code.
57         * trans-common.c (create_common): Use gfc_conv_initializer.
58         * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_initializer.
59         * trans-expr.c (gfc_conv_initializer): New function.
60         (gfc_conv_structure): Use it.
61         * trans.h (gfc_conv_initializer): Add prototype.
62
63 2004-07-11  Paul Brook  <paul@codesourcery.com>
64
65         PR fortran/15986
66         * parse.c (gfc_fixup_sibling_symbols): Also look for untyped
67         variables.
68         (parse_contained): Mark contained symbols as referenced.
69
70 2004-07-11  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
71
72         PR fortran/16455
73         * module.c (gfc_dump_module, gfc_use_module): Print locus
74         when opening of module file fails.
75
76         PR fortran/16404
77         * io.c (match_io): Flag 'WRITE(...), ...' as extension.
78
79         PR fortran/16404
80         * match.c (gfc_match_program): A program name is obligatory.
81         (gfc_match_return): RETURN in main program is an extension.
82         (gfc_match_block_data): A space is required before a block data
83         name.
84
85         PR fortran/16433
86         * primary.c (match_boz_constant): Call gfc_notify_std only if
87         we actually have a non-standard boz-literal-constant.
88
89         PR fortran/15754
90         * expr.c (gfc_check_assign): Print ranks if incompatible. Issue
91         warning if assigning NULL().
92
93 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
94
95         * f95-lang.c (set_block): Remove.
96         (gfc_clear_binding_stack): New.
97         (LANG_HOOKS_CLEAR_BINDING_STACK): Define.
98         (struct binding_level): Remove block_created_by_back_end.
99         (clear_binding_level): Likewise.
100         (poplevel): Don't handle block_created_by_back_end.
101
102 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
103
104         * trans-decl.c (gfc_create_module_variable): Nothing to do if
105         symbol is in common, because we ...
106         (gfc_generate_module_vars): Call gfc_trans_common.
107
108 2004-07-10  Paul Brook  <paul@codesourcery.com>
109
110         * trans-array.c (gfc_build_null_descriptor): New function.
111         (gfc_trans_static_array_pointer): Use it.
112         * trans-array.h (gfc_build_null_descriptor): Add prototype.
113         * trans-expr.c (gfc_conv_structure): Handle array pointers.
114
115 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
116         
117         PR fortran/16336
118         * decl.c (gfc_match_save): Use-associated common block
119         doesn't collide.
120         * gfortran.h (gfc_common_head): Add new field 'name'.
121         Fix typo in comment after #endif.
122         * match.c (gfc_get_common): Add new argument from_common,
123         mangle name if flag is set, fill in new field in structure
124         gfc_common_head.
125         (match_common): Set new arg in call to gfc_get_common,
126         use-associated common block doesn't collide.
127         * match.h (gfc_get_common): Adapt prototype.
128         * module.c (load_commons): Set new arg in call to
129         gfc_get_common.
130         * symbol.c (free_common_tree): New function.
131         (gfc_free_namespace): Call new function.
132         * trans-common.c (several functions): Remove argument
133         'name', use name from gfc_common_head instead.
134
135 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
136
137         * expr.c (gfc_check_pointer_assign): Verify that rank of the LHS
138         and RHS match. Return early if the RHS is NULL().
139
140         PR fortran/16336
141         * match.c (match_common): Fix error reporting for used common.
142
143         PR fortran/15969
144         * trans-expr.c (gfc_conv_structure): Handle initialization
145         of scalar pointer components.
146
147         * parse.c (decode_statement): Fix matching of BLOCK DATA.
148
149         * trans-decl.c (generate_local_decl): Remove workaround obsoleted
150         by fix for PR 15481.
151         
152 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
153
154         * trans-common.c: Fix whitespace issues, make variable names
155         more readable.
156         (create_common): Additionally, make loop logic more obvious.
157
158 2004-07-10  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
159         Paul Brook  <paul@codesourcery.com>
160
161         PR fortran/13415
162         * trans-common.c (calculate_length): Remove ...
163         (get_segment_info): Merge into here.  Save field type.
164         (build_field): Use saved type.
165         (create_common, new_condition, new_segment, finish_equivalences):
166         Use new get_segment_info.
167         * trans-types.c: Update comment.
168
169 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
170         
171         PR fortran/14077
172         * moduele.c (mio_symbol): Don't I/O initial values unless
173         symbol is a parameter.
174
175 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
176         
177         PR fortran/13201
178         * resolve.c (resolve_symbol): Verify that the shape of a
179         parameter array is not only explicit, but also constant.
180         * array.c (gfc_is_compile_time_shape): New function.
181         * gfortran.h (gfc_is_compile_time_shape): Add prototype.
182
183 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
184
185         PR fortran/15481
186         PR fortran/13372
187         PR fortran/13575
188         PR fortran/15978
189         * module.c (write_symbol, write_symtree): Remove workaround.
190         * primary.c (match_actual_arglist): Enhance comment.
191         (gfc_match_rvalue): Handle function call with first argument
192         a keyword argument correctly.
193         * resolve.c (resolve_symbol): Change call to
194         gfc_set_default_type to issue error if no implicit type
195         can be found.
196         * trans-decl.c (gfc_create_module_variable): Remove workaround.
197         
198 2004-07-08  Paul Brook  <paul@codesourcery.com>
199
200         * intrinsic.c (add_sym_4s): New function.
201         (add_subroutines): Change gfc_add_sym_? to gfc_add_sym_?s.
202
203 2004-07-04  Janne Blomqvist  <jblomqvi@cc.hut.fi>
204         Paul Brook  <paul@codesourcery.com>
205
206         PR fortran/15280
207         PR fortran/15665
208         * gfortran.h (enum gfc_generic_isym_id): Add GFC_ISYM_IARGC and
209         GFC_ISYM_COMMAND_ARGUMENT_COUNT.
210         * intrinsic.c (add_functions):  Identify iargc.  Add
211         command_argument_count.
212         (add_subroutines): Resolve getarg.  Add get_command and
213         get_command_argument.
214         * intrinsic.h (gfc_resolve_getarg, gfc_resolve_get_command,
215         gfc_resolve_get_command_argument): Add prototypes.
216         * iresolve.c (gfc_resolve_getarg, gfc_resolve_get_command,
217         gfc_resolve_get_command_argument): New functions.
218         * trans-decl.c (gfor_fndecl_iargc): New variable.
219         (gfc_build_intrinsic_function_decls): Set it.
220         * trans-intrinsic.c (gfc_conv_intrinsic_iargc): New function.
221         (gfc_conv_intrinsic_function): Use it.
222         * trans.h (gfor_fndecl_iargc): Declare.
223
224 2004-07-04  Matthias Klose  <doko@debian.org>
225
226         * Make-lang.in: Generate and install gfortran man page.
227         * invoke.texi: Remove extra '@c man end'.
228
229 2004-07-04  Richard Henderson  <rth@redhat.com>
230
231         * f95-lang.c (gfc_mark_addressable): Don't put_var_into_stack.
232
233 2004-07-04  Paul Brook  <paul@codesourcery.com>
234
235         * decl.c (gfc_match_implicit_range): Don't use typespec.
236         (gfc_match_implicit): Handle character selectors.
237         * gfortran.h (gfc_set_implicit): Remove prototype.
238         (gfc_add_new_implicit_range, gfc_merge_new_implicit): Update.
239         * parse.c (accept_statement): Don't call gfc_set_implicit.
240         * symbol.c (new_ts): Remove.
241         (gfc_set_implicit_none): Use same loop bounds as other functions.
242         (gfc_set_implicit): Remove.
243         (gfc_clear_new_implicit, gfc_add_new_implicit_range): Only set flags.
244         (gfc_merge_new_implicit): Combine with gfc_set_implicit.
245
246 2004-06-30  Richard Henderson  <rth@redhat.com>
247
248         * match.c (var_element): Remove unused variable.
249
250         * trans-decl.c (gfc_generate_function_code): Don't set
251         x_whole_function_mode_p.
252         (gfc_generate_constructors): Likewise.
253
254 2004-06-30  Richard Henderson  <rth@redhat.com>
255
256         * trans-decl.c (gfc_generate_function_code): Don't set
257         immediate_size_expand.
258         (gfc_generate_constructors): Likewise.
259
260 2004-06-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
261
262         PR fortran/16161
263         * decl.c (gfc_match_type_spec): Rename second argument to
264         'implicit_flag', reverse meaning. Don't match_char_spec if
265         'implicit_flag' is set. Rename to ...
266         (match_type_spec): ... this.
267         (gfc_match_implicit_none, match_implicit_range): Move here
268         from match.c.
269         (gfc_match_implicit): Move here from match.c, try to
270         match_char_len if match_implicit_range doesn't succeed for
271         CHARACTER implicits. Call renamed fucntion match_type_spec.
272         (gfc_match_data_decl, match_prefix): Call renamed function
273         match_type_spec.
274         * match.c (gfc_match_implicit_none, match_implicit_range,
275         gfc_match_implicit): Move to decl.c.
276         * match.h (gfc_match_implicit_none, gfc_match_implicit):
277         Move protoypes to section 'decl.c'.
278         (gfc_match_type_spec): Remove prototype.
279
280 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
281
282         * decl.c, interface.c, symbol.c, trans-common.c: Add 2004 to 
283         copyright years.
284
285 2004-06-29  Steven Bosscher  <stevenb@suse.de>
286
287         Make sure types in assignments are compatible.  Mostly mechanical.
288         * trans-const.h (gfc_index_one_node): New define.
289         * trans-array.c (gfc_trans_allocate_array_storage,
290         gfc_trans_allocate_temp_array, gfc_trans_array_constructor_subarray,
291         gfc_trans_array_constructor_value, gfc_trans_array_constructor,
292         gfc_conv_array_ubound, gfc_conv_array_ref,
293         gfc_trans_scalarized_loop_end, gfc_conv_section_startstride,
294         gfc_conv_ss_startstride, gfc_conv_loop_setup, gfc_array_init_size,
295         gfc_trans_array_bounds, gfc_trans_dummy_array_bias,
296         gfc_conv_expr_descriptor, gfc_trans_deferred_array): Use the correct
297         types in assignments, conversions and conditionals for expressions.
298         * trans-expr.c (gfc_conv_expr_present, gfc_conv_substring,
299         gfc_conv_unary_op, gfc_conv_cst_int_power, gfc_conv_string_tmp,
300         gfc_conv_function_call, gfc_trans_pointer_assignment,
301         gfc_trans_scalar_assign): Likewise.
302         * trans-intrinsic.c (build_fixbound_expr, gfc_conv_intrinsic_bound,
303         gfc_conv_intrinsic_anyall, gfc_conv_intrinsic_count,
304         gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_btest,
305         gfc_conv_intrinsic_singlebitop, gfc_conv_intrinsic_ishft,
306         gfc_conv_intrinsic_ishftc, gfc_conv_intrinsic_strcmp,
307         gfc_conv_allocated, gfc_conv_associated,
308         gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_trim): Likewise.
309         * trans-io.c (set_string): Likewise.
310         * trans-stmt.c (gfc_trans_do, gfc_trans_forall_loop,
311         gfc_do_allocate, generate_loop_for_temp_to_lhs,
312         generate_loop_for_rhs_to_temp, compute_inner_temp_size,
313         compute_overall_iter_number, gfc_trans_assign_need_temp,
314         gfc_trans_pointer_assign_need_temp, gfc_trans_forall_1,
315         gfc_evaluate_where_mask, gfc_trans_where_assign,
316         gfc_trans_where_2): Likewise.
317         * trans-types.c (gfc_get_character_type, gfc_build_array_type,
318         gfc_get_nodesc_array_type, gfc_get_array_type_bounds): Likewise.
319
320         * trans.c (gfc_add_modify_expr): Add sanity check that types
321         for the lhs and rhs are the same for scalar assignments.
322
323 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
324
325         * dump-parse-tree.c (show_common): New function.
326         (gfc_show_namespace): Show commons.
327
328 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
329         Andrew Vaught  <andyv@firstinter.net>
330
331         PR fortran/13249
332         PR fortran/15481
333         * decl.c (gfc_match_save): Adapt to new common structures,
334         don't allow saving USE-associated common.
335         * dump-parse-tree (gfc_show_attr): (saved_)common are not
336         symbol attributes any longer.
337         (gfc_show_symbol): Don't show old-style commons any longer.
338         (gfc_show_namespace): Adapt call to gfc_traverse_symtree to new
339         interface.
340         * gfortran.h (symbol_attribute): Remove common and saved_common
341         attributes.
342         (gfc_symbol): Remove common_head element.
343         (gfc_common_head): New struct.
344         (gfc_get_common_head): New macro.
345         (gfc_symtree): Add field 'common' to union.
346         (gfc_namespace): Add field 'common_root'; change type of field
347         'blank_common' to blank_common.
348         (gfc_add_data): New prototype.
349         (gfc_traverse_symtree): Expect a symtree as first argument
350         instead of namespace.
351         * match.c (gfc_get_common): New function.
352         (match_common_name): Change to take char * as argument, adapt,
353         fix bug with empty name.
354         (gfc_match_common): Adapt to new data structures. Disallow
355         redeclaration of USE-associated COMMON-block. Fix bug with
356         empty common.
357         (var_element): Adapt to new common structures.
358         * match.h (gfc_get_common): Declare.
359         * module.c: Add 2004 to copyright years, add commons to module
360         file layout description.
361         (ab_attribute, attr_bits, mio_symbol_attributes): Remove code
362         for removed attributes.
363         (mio_symbol): Adapt to new way of storing common relations.
364         (load_commons): New function.
365         (read_module): Skip common list on first pass, load_commons at
366         second.
367         (write_commons): New function.
368         (write_module): Call write_commons().
369         * symbol.c (gfc_add_saved_comon, gfc_add_common): Remove
370         functions related to removed attributes.
371         (gfc_add_data): New function.
372         (gfc_clear_attr): Don't set removed attributes.
373         (gfc_copy_attr): Don't copy removed attributes.
374         (traverse_symtree): Remove.
375         (gfc_traverse_symtree): Don't traverse symbol 
376         tree of the passed namespace, but require a symtree to be passed
377         instead. Unify with traverse_symtree.
378         (gfc_traverse_ns): Call gfc_traverse_symtree according to new
379         interface.
380         (save_symbol): Remove setting of removed attribute.
381         * trans-common.c (gfc_sym_mangled_common_id): Change to
382         take 'char *' argument instead of 'gfc_symbol'.
383         (build_common_decl, new_segment, translate_common): Adapt to new
384         data structures, add new
385         argument name.
386         (create_common): Adapt to new data structures, add new
387         argument name. Fix typo in intialization of derived types.
388         (finish_equivalences): Add second argument in call to
389         create_common.
390         (named_common): take 'gfc_symtree' instead of 'gfc_symbol'.
391         (gfc_trans_common): Adapt to new data structures.
392         * trans-decl.c (gfc_create_module_variables): Remove test for 
393         removed attribute.
394
395 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
396
397         * io.c: Add 2004 to copyright years.
398
399 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
400         Andrew Vaught  <andyv@firstinter.net>
401
402         * gfortran.h (gfc_gsymbol): New typedef.
403         (gfc_gsym_root): New variable.
404         (gfc_get_gsymbol, gfc_find_gsym): New prototypes.
405         * parse.c (global_used): New function.
406         (parse_block_data): Check for double empty BLOCK DATA,
407         use global symbol table.
408         (parse_module): Use global symbol table.
409         (add_global_procedure, add_global_program): New functions.
410         (gfc_parse_file): Use global symbol table.
411         * symbol.c (gfc_gsym_root): New variable.
412         (gfc_find_gsym, gsym_compare, gfc_get_gsymbol): New
413         functions.
414
415 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
416
417         * module.c (mio_gmp_real): Correct writing of negative numbers.
418
419 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
420
421         PR fortran/15963
422         * expr.c (check_intrinsic_op): Allow comparison of characters.
423         Make logic easier.
424
425 2004-06-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
426         Andrew Vaught  <andyv@firstinter.net>
427
428         * decl.c (contained_procedure): New function.
429         (match_end): Verify correctness of END STATEMENT in
430         all cases.
431
432 2004-06-26  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
433         Andrew Vaught  <andyv@firstinter.net>
434
435         PR fortran/15190
436         * decl.c (gfc_match_type_spec), io.c (match_io), parse.c
437         (decode_statement): Enforce required space in free-form.
438
439 2004-06-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
440
441         * f95-lang.c (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Deleted.
442         * trans-array.c (gfc_conv_descriptor_data): Add operand
443         for COMPONENT_REF.
444         (gfc_conv_descriptor_offset, gfc_conv_descriptor_dtype): Likewise.
445         (gfc_conv_descriptor_dimension, gfc_conv_descriptor_stride): Likewise.
446         (gfc_conv_descriptor_lbound, gfc_conv_descriptor_ubound): Likewise.
447         * trans-common.c (create_common): Likewise.
448         * trans-expr.c (gfc_conv_component_ref): Likewise.
449         * trans-io.c (set_parameter_value): Likewise.
450         (set_parameter_ref, set_string, set_flag, io_result): Likewise.
451         (transfer_expr): Likewise.
452         * trans-decl.c (gfc_trans_auto_character_variable):
453         Set up to get DECL_SIZE and DECL_SIZE_UNIT gimplified.
454         (gfc_gimplify_function): New function.
455         (gfc_generate_function-code): Properly handle nested functions.
456         * trans.c (gfc_build_array_ref): Add two new operands for ARRAY_REF.
457
458 2004-06-22  Janne Blomqvist  <jblomqvi@cc.hut.fi>
459
460         PR fortran/15750
461         * io.c (gfc_match_inquire): Bugfix for iolength related stuff.
462         (gfc_resolve_inquire): Resolve the iolength tag.  Return
463         SUCCESS at end of function if no failure has occured.
464         * resolve.c (resolve_code): Resolve if iolength is encountered.
465         * trans-io.c: (ioparm_iolength, iocall_iolength,
466         iocall_iolength_done): New variables.
467         (last_dt): Add IOLENGTH.
468         (gfc_build_io_library_fndecls ): Set iolength related variables.
469         (gfc_trans_iolength): Implement.
470         (gfc_trans_dt_end): Treat iolength as a third form of data transfer.
471
472 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de
473
474         PR fortran/15511
475         * scanner.c (load_line): Don't truncate preprocessor lines.
476         Reformat error message.
477         (preprocessor_line): Issue warning in case of malformed
478         preprocessor line. 
479
480 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
481
482         * resolve.c (resolve_symbol): Add comment in function body.
483         (check_data_variable): Change type of mark to ar_type, adapt code
484         accordingly.
485
486 2004-06-21  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
487
488         * array.c (gfc_insert_constructor): Avoid redundant call to
489         mpz_comp. Add 2004 to copyright years.
490         
491 2004-06-21  Joseph S. Myers  <jsm@polyomino.org.uk>
492
493         * trans.h (stmtblock_t): Change has_scope to unsigned int.
494
495 2004-06-20  Steven G. Kargl  <kargls@comcast.net>
496
497         * arith.c (gfc_range_check): correct complex underflow.
498
499 2004-06-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
500
501         PR fortran/15962
502         * match.c (match_case_selector): Call gfc_match_init_expr
503         instead of gfc_match_expr.
504         * resolve.c (validate_case_label_expr): No need to check for
505         constant, since it wouldn't have been matched with the fix to
506         match.c.
507
508 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
509
510         PR fortran/15211
511         * trans-intrinsic.c (gfc_conv_intrinsic_len): Deal with arrays
512         of strings. 
513
514 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
515
516         PR fortran/15510
517         * trans-deecl.c (generate_local_decl): Do not issue warning for
518         unused variables if they're use associated.
519
520 2004-06-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
521         Andrew Vaught <andyv@firstinter.net>
522
523         PR fortran/14928
524         * gfortran.h (gfc_check_f): Add new field f3ml.
525         * check.c (gfc_check_minloc_maxloc): Take argument list instead
526         of individual arguments, reorder if necessary.
527         * intrinsic.h (gfc_check_minloc_maxloc): ... adapt prototype.
528         * intrinsic.c (add_sym_3ml): New function.
529         (add_functions): Change to add_sym_3ml for MINLOC, MAXLOC.
530         (check_specific): Catch special case MINLOC, MAXLOC. 
531
532 2004-06-14  Paul Brook  <paul@codesourcery.com>
533
534         * intrinsic.c (add_sym_2s): Use correct function types.
535
536 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
537
538         * Make-lang.in (F95_OBJS, F95_PARSER_OBJS): Alphabetize.  Move data.c
539         * data.c (gfc_get_section_index):  Remove dependency on trans.h.
540
541 2004-06-12  Steven G. Kargl  <kargls@comcast.net>
542
543         * check.c (gfc_check_second_sub, gfc_check_irand, gfc_check_rand
544         gfc_check_srand, gfc_check_etime, gfc_check_etime_sub): New functions.
545         * gfortran.h (gfc_generic_isym_id): New symbols GFC_ISYM_ETIME,
546         GFC_ISYM_IRAND, GFC_ISYM_RAND, GFC_ISYM_SECOND.
547         * trans-intrinsic.c:  Use symbols.
548         * intrinsic.c (add_sym_2s): New function.
549         * intrinsic.c: Add etime, dtime, irand, rand, second, srand.
550         * intrinsic.h: Function prototypes.
551         * iresolve.c (gfc_resolve_etime_sub, gfc_resolve_second_sub 
552         gfc_resolve_srand):  New functions.
553
554 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
555
556         PR fortran/14957
557         * decl.c (gfc_match_end): Require END {SUBROUTINE|FUNCTION} for
558         contained procedure.
559         
560 2004-06-12  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
561
562         PR fortran/12841
563         * interface.c (compare_parameter, compare_actual_formal): Don't
564         check types and array shapes for NULL()
565         * trans-expr.c (conv_function_call): No double indirection for
566         NULL() 
567
568 2004-06-09  Toon Moene  <toon@moene.indiv.nluug.nl>
569
570         * trans-expr.c (gfc_conv_cst_int_power): Compute
571         x**(-n) by converting it to (1/x)**n instead of
572         1/x**n.
573
574 2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
575
576         PR fortran/13372
577         * module.c (write_symbol, write_symtree): Don't write symbols
578         wrongly added to namespace.
579         * trans-decl.c (gfc_create_module_variable): Don't create a
580         backend decl for a symbol incorrectly added to namespace.
581
582 2004-06-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
583
584         PR fortran/13201
585         * resolve.c (resolve_symbol): Verify that parameter array has an
586         explicit shape. Fix typos and coding style issues in surrounding
587         lines.
588
589 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
590
591         PR fortran/15478
592         * gfortran.texi: The documentation doesn't contain infomration on
593         how to report bugs, and shouldn't, so remove the line which
594         says it does.
595
596 2004-06-05  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
597
598         * intrinsic.c (sort_actual): Keep track of type of missing 
599         arguments. (Missing from previous commit.)
600
601 2004-06-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
602
603         * gfortran.h (gfc_actual_arglist): New field missing_arg_type.
604         * interface.c (compare_actual_formal): Keep type of omitted
605         optional arguments.
606         * trans-expr.c (gfc_conv_function_call): Add string length
607         argument for omitted string argument.
608
609 2004-06-03  Paul Brook  <paul@codesourcery.com>
610
611         * trans.c (gfc_finish_block, gfc_add_expr_to_block): Build statement
612         lists instead of compound expr chains.
613         (gfc_trans_code): Annotate statement lists.
614
615 2004-06-03  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
616
617         * trans-array.c: Fix spelling in comments.
618
619 2004-06-02  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
620
621         PR fortran/15557
622         * data.c (assign_substring_data_value): New function.
623         (gfc_assign_data_value): Call the new function if we're dealing
624         with a substring LHS.
625
626 2004-06-01  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
627
628         PR fortran/15477
629         * gfortran.h (GFC_VERSION): Remove.
630         * gfortran.texi (version-gfortran): Remove, replace by version-GCC
631         where used.
632
633 2004-05-31  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
634
635         * trans-types.c: Fix spelling & layout in comments.
636
637 2004-05-30  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
638
639         PR fortran/14067
640         * trans-const.c (gfc_conv_string_init): Allow variable string
641         length lower than initialization string length.
642
643 2004-05-30  Paul Brook  <paul@codesourcery.com>
644
645         PR fortran/15620
646         * trans-decl.c (gfc_shadow_sym, gfc_restore_sym): New functions.
647         * trans-expr.c (gfc_trans_string_copy): New function.
648         (gfc_conv_statement_function): Use them.  Create temp vars.  Enforce
649         character lengths.
650         (gfc_conv_string_parameter): Use gfc_trans_string_copy.
651         * trans-stmt.c (gfc_trans_forall_1): Use gfc_{shadow,restore}_sym.
652         * trans.h (struct gfc_saved_var): Define.
653         (gfc_shadow_sym, gfc_restore_sym): Add prototypes.
654
655 2004-05-30  Steven G. Kargl  <kargls@comcast.net>
656
657         * iresolve.c (gfc_resolve_random_number): Clean up conditional.
658
659 2004-05-29  Steven G. Kargl  <kargls@comcast.net>
660
661         * simplify.c (gfc_simplify_log): Remove useless line of code.
662
663 2004-05-29  Paul Brook  <paul@codesourcery.com>
664
665         * trans-common.c (find_equivalence): Find multiple rules.
666
667 2004-05-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
668
669         * gfortran.h (gfc_current_locus, gfc_set_locus): Remove.
670         (gfc_current_locus): Declare new global variable.
671         * scanner.c (gfc_current_locus, gfc_set_locus): Remove.
672         (gfc_current_locus1): Rename ...
673         (gfc_current_locus): ... to this.
674         (gfc_at_eof, gfc_at_bol, gfc_at_eol, gfc_advance_line, next_char,
675         skip_fixed_comments, skip_free_comments, gfc_next_char_literal,
676         gfc_peek_char, gfc_gobble_whitespace, gfc_new_file): Use
677         gfc_current_locus instead of gfc_current_locus1, gfc_set_locus()
678         and gfc_current_locus(), respectively.
679         * array.c (match_subscript, gfc_match_array_ref, match_array_list,
680         match_array_cons_element, gfc_match_array_constructor):
681         Read/modify gfc_current_locus instead of calling gfc_set_locus()
682         and gfc_current_locus().
683         * decl.c (gfc_match_null, variable_decl, gfc_match_kind_spec,
684         match_attr_spec, gfc_match_function_decl, gfc_match_end,
685         attr_decl1, gfc_match_save): Likewise.
686         * error.c (error_print, gfc_internal_error): Likewise.
687         * expr.c (gfc_int_expr, gfc_default_logical_kind): Likewise.
688         * interface.c (gfc_add_interface): Likewise.
689         * io.c (gfc_match_format, match_dt_format, match_dt_element,
690         match_io_iterator, match_io): Likewise.
691         * match.c (gfc_match_space, gfc_match_eos,
692         gfc_match_small_literal_int, gfc_match_st_label,
693         gfc_match_strings, gfc_match_name, gfc_match_iterator,
694         gfc_match_char, gfc_match, gfc_match_assignment,
695         gfc_match_pointer_assignment, gfc_match_if, gfc_match_do,
696         gfc_match_nullify, gfc_match_call, match_implicit_range,
697         gfc_match_implicit, gfc_match_data, match_case_selector,
698         gfc_match_case, match_forall_iterator): Likewise.
699         * matchexp.c (gfc_match_defined_op_name, next_operator,
700         match_level_1, match_mult_operand, match_ext_mult_operand,
701         match_add_operand, match_ext_add_operand, match_level_2,
702         match_level_3, match_level_4, match_and_operand, match_or_operand,
703         match_equiv_operand, match_level_5, gfc_match_expr): Likewise.
704         * module.c (gfc_match_use, mio_array_ref, mio_expr): Likewise.
705         * parse.c (match_word, decode_statement, next_free, next_fixed,
706         add_statement, verify_st_order, parse_if_block, gfc_parse_file):
707         Likewise.
708         * primary.c (match_digits, match_integer_constant,
709         match_boz_constant, match_real_constant, match_substring,
710         next_string_char, match_charkind_name, match_string_constant,
711         match_logical_constant, match_const_complex_part,
712         match_complex_constant, match_actual_arg, match_keyword_arg,
713         gfc_match_actual_arglist, gfc_match_structure_constructor,
714         gfc_match_rvalue, gfc_match_variable): Likewise.
715         * st.c (gfc_get_code): Likewise.
716         * symbol.c (check_conflict, check_used, check_done,
717         duplicate_attr, add_flavor, gfc_add_procedure, gfc_add_intent,
718         gfc_add_access, gfc_add_explicit_interface, gfc_add_type,
719         gfc_add_component, gfc_reference_st_label, gfc_new_symbol): Likewise.
720
721 2004-05-26  Roger Sayle  <roger@eyesopen.com>
722
723         * io.c (format_asterisk): Silence compiler warnings by correcting
724         the number of elements of a "locus" initializer.
725
726 2004-05-25  Roger Sayle  <roger@eyesopen.com>
727
728         PR fortran/13912
729         * matchexp.c: Allow unary operators after arithmetic operators
730         as a GNU extension.
731         (match_ext_mult_operand, match_ext_add_operand): New functions.
732         (match_mult_operand): Tweak to call match_ext_mult_operand.
733         (match_add_operand): Tweak to call match_ext_mult_operand.
734         (match_level_2): Rearrange to call match_ext_add_operand.
735
736 2004-05-25  Paul Brook  <paul@codesourcery.com>
737
738         * expr.c (check_inquiry): Remove bogus tests.
739
740 2004-05-23  Paul Brook  <paul@codesourcery.com>
741
742         PR fortran/13773
743         * expr.c (restricted_args): Remove redundant checks/argument.
744         (external_spec_function): Update to match.
745         (restricted_intrinsic): Rewrite.
746
747 2004-05-23  Paul Brook  <paul@codesourcery.com>
748         Victor Leikehman  <lei@haifasphere.co.il>
749
750         * gfortran.h (struct gfc_symbol): Add equiv_built.
751         * trans-common.c: Change int to HOST_WIDE_INT.  Capitalize error
752         messages.
753         (current_length): Remove.
754         (add_segments): New function.
755         (build_equiv_decl): Create initialized common blocks.
756         (build_common_decl): Always add decl to bindings.
757         (create_common): Create initializers.
758         (find_segment_info): Reformat to match coding conventions.
759         (new_condition): Use add_segments.
760         (add_condition, find_equivalence, add_equivalences): Move iteration
761         inside functions.  Only process each segment once.
762         (new_segment, finish_equivalences, translate_common): Simplify.
763
764 2004-05-23  Steven G. Kargl  <kargls@comcast.net>
765
766         * check.c (gfc_check_random_seed): Issue for too many arguments.
767
768 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
769
770         * intrinsic.c (add_subroutines): Use add_sym_3s for random_seed.
771
772 2004-05-22  Paul Brook  <paul@codesourcery.com>
773
774         * dump-parse-tree.c (gfc_show_equiv): New function.
775         (gfc_show_namespace): Use it.
776
777 2004-05-22  Victor Leikehman  <lei@haifasphere.co.il>
778
779         PR fortran/13249
780         * symbol.c (gfc_add_common): Disable checks to work around other more
781         fundamental inadequacies.
782
783 2004-05-22  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
784
785         * trans-decl.c (gfc_get_extern_function_decl): Set DECL_IS_PURE
786         only for functions.
787         (gfc_build_function_decl): Likewise.
788
789 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
790
791         * check.c (gfc_check_system_clock): New function.
792         * intrinsic.c (add_sym_3s): New function.
793         (add_subroutines): Use it.
794         * intrinsic.h (gfc_check_system_clock, gfc_resolve_system_clock):
795         Add prototypes.
796         * iresolve.c (gfc_resolve_system_clock): New function.
797
798 2004-05-22  Steven G. Kargl  <kargls@comcast.net>
799
800         * invoke.texi: Document -Wunderflow and spell check.
801         * lang.opt: Add Wunderflow.
802         * gfortran.h (gfc_option_t): Add warn_underflow option.
803         * options.c (gfc_init_options, set_Wall): Use it.
804         * primary.c (match_real_constant): Explicitly handle UNDERFLOW.
805         * arith.c (gfc_arith_uminus, gfc_arith_plus, gfc_arith_minus,
806         gfc_arith_times, gfc_arith_divide, gfc_arith_power, gfc_real2real,
807         gfc_real2complex, gfc_complex2real, gfc_complex2complex): Ditto.
808         * arith.c (common_logarithm): Fix typo in comment.
809
810 2004-05-21  Roger Sayle  <roger@eyesopen.com>
811
812         * io.c (check_format): As a GNU extension, allow the comma after a
813         string literal to be optional in a format.  Use gfc_notify_std to
814         issue an error/warning as appropriate.
815
816 2004-05-21  Roger Sayle  <roger@eyesopen.com>
817
818         * io.c (check_format): Use gfc_notify_std to determine whether to
819         issue an error/warning for omitting the digits from the X format.
820
821 2004-05-20  Roger Sayle  <roger@eyesopen.com>
822
823         * io.c (check_format): Allow the number before the X format to
824         be optional when not -pedantic.
825
826 2004-05-18  Feng Wang  <fengwang@nudt.edu.cn>
827         Paul Brook  <paul@codesourcery.com>
828
829         * f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.
830         Create decls for __builtin_pow{,f}.
831         * gfortran.h (PREFIX_LEN): Define.
832         * trans-decl.c (gfor_fndecl_math_powi): Add.
833         (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
834         (gfc_build_intrinsic_function_decls): Create decls for powi.
835         * trans-expr.c (powi_table): Add.
836         (gfc_conv_integer_power): Remove.
837         (gfc_conv_powi): New function.
838         (gfc_conv_cst_int_power): New function.
839         (gfc_conv_power_op): Use new powi routines.
840         * trans.h (struct gfc_powdecl_list): Add.
841         (gfor_fndecl_math_powi): Add.
842         (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove.
843
844 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
845
846         * trans.c, trans-decl.c: Fix comment typos.
847
848 2004-05-18  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
849
850         * trans-const.c (gfc_conv_mpf_to_tree): Fix typo.
851
852 2004-05-18  Steve Kargl  <kargls@comcast.net>
853
854         * arith.c (gfc_int2complex): Fix incorrect range checking.
855
856 2004-05-18  Paul Brook  <paul@codesourcery.com>
857
858         PR fortran/13930
859         * decl.c (add_init_expr_to_sym): Remove incorrect check.
860         (default_initializer): Move to expr.c.
861         (variable_decl): Don't assign default initializer to variables.
862         * expr.c (gfc_default_initializer): Move to here.
863         * gfortran.h (gfc_default_initializer): Add prototype.
864         * resolve.c (resolve_symbol): Check for illegal initializers.
865         Assign default initializer.
866
867 2004-05-17  Steve Kargl  <kargls@comcast.net>
868
869         * arith.c (gfc_arith_power): Complex number raised to 0 power is 1.
870
871 2004-05-17  Steve Kargl  <kargls@comcast.net>
872
873         * arith.c (gfc_real2complex): Range checking wrong part of complex
874         number. 
875         
876 2004-05-16  Paul Brook  <paul@codesourcery.com>
877
878         * options.c (gfc_handle_module_path_options): Fix buffer overrun.
879
880 2004-05-16  Paul Brook  <paul@codesourcery.com>
881
882         * arith.c (gfc_range_check): Fix logic error.
883
884 2004-05-16  Steve Kargl  <sgk@troutmask.apl.washington.edu>
885
886         * arith.c: Fix comment typos.
887
888 2004-05-15  Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
889
890         PR fortran/13742
891         * decl.c (add_init_expr_to_sym): Verify that COMMON variable is
892         not initialized in a disallowed fashion.
893         * match.c (gfc_match_common): Likewise.
894         (var_element): Verify that variable is not in the blank COMMON,
895         if it is in a common. 
896
897 2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
898
899         * Make-lang.in (f95.generated-manpages): Remove.
900         (f95.srcextra): New.
901         (f95.info, fortran/gfortran.info, fortran/gfortran.dvi,
902         f95.maintainer-clean): Generate info and dvi files in objdir/doc.
903         (f95.dvi): Remove.
904         (dvi): New.
905         (f95.install-info): Remove.
906         (install-info): New.
907
908 2004-05-15  Victor Leikehman  <lei@haifasphere.co.il>
909
910         * decl.c (add_init_expr_to_sym): Check for variable size arrays.
911
912 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
913
914         * primary.c (match_boz_constant): Use gfc_notify_std() for
915         issuing a warning or an error.
916
917 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
918
919         PR fortran/13826
920         * primary.c (match_structure_constructor): Rename ...
921         (gfc_match_structure_constructor): ... to this. Make non-static.
922         (gfc_match_rvalue): Call renamed function.
923         * match.h (gfc_match_structure_constructor): Declare.
924         * match.c (gfc_match_data_constant): Handle structure
925         constructor.
926
927 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
928
929         PR fortran/13702 
930         (Port from g95)
931         * gfortran.h (gfc_linebuf): New typedef.
932         (linebuf): Remove.
933         (gfc_file): Revamped, use new gfc_linebuf.
934         (locus): Revamped, use new types.
935         (gfc_current_file): Remove.
936         (gfc_current_form, gfc_source_file): New global variables.
937         * match.c (gfc_match_space, gfc_match_strings): Use
938         gfc_current_form to find source form.
939         * module.c (gfc_dump_module): Use gfc_source_file when printing
940         module header.
941         * error.c (show_locus, show_loci) Use new data structures to print
942         locus.
943         * scanner.c (first_file, first_duplicated_file, gfc_current_file):
944         Remove.
945         (file_head, current_file, gfc_current_form, line_head, line_tail,
946         gfc_current_locus1, gfc_source_file): New global variables.
947         (gfc_scanner_init1): Set new global variables.
948         (gfc_scanner_done1): Free new data structures.
949         (gfc_current_locus): Return pointer to gfc_current_locus1.
950         (gfc_set_locus): Set gfc_current_locus1.
951         (gfc_at_eof): Set new variables.
952         (gfc_at_bol, gfc_at_eol, gfc_advance_line, gfc_next_char): Adapt
953         to new locus structure.
954         (gfc_check_include): Remove.
955         (skip_free_comments, skip_fixed_comments): Use gfc_current_locus1.
956         (gfc_skip_comments): Use gfc_current_form, find locus with
957         gfc_current_locus1.
958         (gfc_next_char): Use gfc_current_form.
959         (gfc_peek_char, gfc_gobble_whitespace): Use gfc_current_locus1.
960         (load_line): Use gfc_current_form. Recognize ^Z as EOF. Fix
961         comment formatting.
962         (get_file): New function.
963         (preprocessor_line, include_line): New functions.
964         (load_file): Move down, rewrite to match new data structures.
965         (gfc_new_file): Rewrite to match new data structures.
966         * parse.c (next_statement): Remove code which is now useless. Use
967         gfc_source_form and gfc_source_file where appropriate.
968         * trans-decl.c (gfc_get_label_decl): adapt to new data structures
969         when determining locus of frontend code.
970         * trans-io.c (set_error_locus): Same.
971         * trans.c (gfc_get_backend_locus, gfc_set_backend_locus): Likewise.
972         * lang-specs.h (@f77-cpp-input, @f95-cpp-input): Remove '-P' from
973         preprocessor flags.
974         (all): Add missing initializers.
975
976 2004-05-15  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
977
978         * Make-lang.in (trans-common.o): Remove redundant dependency.
979         (data.c): Replace object file name ...
980         (data.o): ... by the correct one.
981
982 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
983
984         * dump-parse-tree.c (gfc_show_array_ref): Print colon only
985         for ranges when dumping array references.
986
987 2004-05-14  Victor Leikehman  <lei@haifasphere.co.il>
988
989         * decl.c (variable_decl): Always apply default initializer.
990
991 2004-05-08  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
992
993         PR fortran/15206
994         * trans-intrinsic.c (gfc_conv_intrinsic_rrspacing): Fixed to
995         handle zero correctly.
996
997 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
998
999         * match.c (gfc_match): Eliminate dead code.
1000
1001 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1002
1003         * parse.c (gfc_statement_next_fixed): (Change from Andy's tree)
1004         Detect bad continuation line in fixed form sources.
1005
1006 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1007
1008         PR fortran/15205
1009         * iresolve.c (gfc_resolve_nearest): Add new function.
1010         * intrinsic.h: ... declare it here.
1011         * intrinsic.c (add_functions): ... add it as resolving function
1012         for NEAREST.
1013         
1014 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1015
1016         PR fortran/14066
1017         * match.c (gfc_match_do): Allow infinite loops with
1018         label-do-stmt. Do not enforce space after comma.
1019
1020 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1021
1022         PR fortran/15051
1023         * parse.c (parse_interface): Allow empty INTERFACE, remove
1024         seen_body.
1025
1026 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1027
1028         * Make-lang.in, arith.c, arith.h, array.c, bbt.c, check.c,
1029         decl.c, dependency.c, dependency.h, dump-parse-tree.c, error.c,
1030         expr.c, f95-lang.c, gfortran.h, interface.c, intrinsic.c,
1031         intrinsic.h, io.c, iresolve.c, lang-specs.h, match.c, match.h,
1032         matchexp.c, misc.c, module.c, options.c, parse.c, parse.h,
1033         primary.c, resolve.c, scanner.c, simplify.c, st.c, symbol.c,
1034         trans-array.c, trans-array.h, trans-common.c, trans-const.c,
1035         trans-const.h, trans-decl.c, trans-expr.c, trans-intrinsic.c,
1036         trans-io.c, trans-stmt.c, trans-stmt.h, trans-types.c,
1037         trans-types.h, trans.c, trans.h: Update copyright years and
1038         boilerplate.
1039         * data.c: Likewise, also removed two whitespace-only lines.
1040         * gfortranspec.c, lang.opt: Update copyright years.
1041
1042 2004-05-14  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1043
1044         PR fortran/14568
1045         * trans-decl.c (generate_local_decl): Don't warn for unused
1046         variables which are in common blocks. 
1047
1048 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
1049
1050         * Make-lang.in, f95-lang.c, trans-array.c, trans-decl.c,
1051         trans-expr.c, trans-intrinsic.c, trans-io.c, trans-stmt.c,
1052         trans.c: Rename tree-simple.[ch] to tree-gimple.[ch].
1053
1054 2004-05-13  Victor Leikehman  <lei@haifasphere.co.il>
1055
1056         PR fortran/15314
1057         * trans-expr.c (gfc_conv_structure): Use field type, not expr type.
1058
1059 2004-05-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1060
1061         * gfortran.texi: Use @table @emph instead of @itemize @emph.
1062         Remove "set DEVELOPMENT".
1063         (Compiling GFORTRAN): Remove.
1064
1065 2004-05-09  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
1066
1067         * array.c (match_subscript, match_array_ref): Add comments
1068         explaining argument 'init'.
1069         * decl.c, f95-lang.c, match.c, resolve.c, trans-array.c,
1070         trans-expr.c, trans.c: Fix some typos in comments.
1071         * dump-parse-tree.c (gfc_show_expr): Remove wrong comment.
1072         * primary.c (match_digits, match_integer_constant): Add comment
1073         explaining signflag.
1074
1075 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1076
1077         PR fortran/13940
1078         * primary.c: Include system.h and flags.h, needed for pedantic.
1079         (match_boz_constant): Allow "x" for hexadecimal constants, warn if
1080         pedantic is set.
1081
1082 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1083
1084         PR fortran/13940
1085         * match.c (match_data_constant): Handle case where
1086         gfc_find_symbol sets sym to NULL
1087
1088 2004-04-28  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
1089
1090         * Make-lang.in (f95-lang.o, trans-intrinsic.o): Add missing
1091         dependency on mathbuiltins.def
1092
1093 2004-04-24  Victor Leikehman  <lei@il.ibm.com>
1094
1095         * trans-io.c (transfer_expr): Implemented recursive printing
1096         of derived types.
1097
1098 2004-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
1099
1100         * gfortranspec.c: Do not include multilib.h.
1101
1102 2004-04-24  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
1103
1104         * trans-intrinsic.c: Fix comment, this is not trans-expr.c. Add
1105         2004 to copyright years.
1106         * trans-expr.c, trans-decl.c: Comment update, we now generate
1107         GENERIC, not SIMPLE. Add 2004 to copyright years.
1108
1109 2004-04-24  Paul Brook  <paul@codesourcery.com>
1110
1111         * Make-lang.in (gfortranspec.o): Add dependency on $(TM_H).
1112
1113 2004-04-24  Feng Wang  <fengwang@nudt.edu.cn>
1114
1115         PR 14817
1116         * arith.c (gfc_arith_divide): Fix complex divide.
1117
1118 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
1119
1120         * gfortranspec.c: Include the target headers.
1121
1122 2004-04-18  Feng Wang  <fengwang@nudt.edu.cn>
1123
1124         PR fortran/14921
1125         PR fortran/14540
1126         * arith.c (arctangent2): New function.
1127         * arith.h (arctangent2): Add function prototype.
1128         * simplify.c (gfc_simplify_atan2): Use it.
1129         (gfc_simplify_log): Use it.
1130
1131 2004-04-12  Diego Novillo  <dnovillo@redhat.com>
1132
1133         * fortran/f95-lang.c (gfc_expand_stmt): Remove.
1134         (LANG_HOOKS_RTL_EXPAND_STMT): Remove.
1135
1136 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
1137
1138         PR fortran/14872
1139         * trans-io.c (build_dt): Change REC to value.
1140
1141 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
1142
1143         PR 14394 
1144         * trans-const.c (gfc_conv_mpf_to_tree): Loosen the maximum digits of
1145         the real value when converting mpf to string.
1146
1147 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
1148
1149         PR 14395
1150         * trans-intrinsic.c (gfc_conv_intrinsic_cmplx): Fix the imag part of
1151         the result.
1152
1153 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
1154
1155         PR fortran/14377
1156         * simplify.c (simplify_min_max): Convert the type of the result.
1157
1158 2004-04-11  Paul Brook  <paul@codesourcery.com>
1159
1160         * gfortran.texi: Use full target triplet.
1161
1162 2004-04-11  Paul Brook  <paul@codesourcery.com>
1163
1164         * Make-lang.in (GFORTRAN_TEXI): Set it.
1165         (fortran/dfortran.dvi): Use it.  Add fortran to include paths.
1166         (fortran/gfortran.info): Ditto. 
1167         * gfortran.texi: Major update.
1168         * invoke.texi: New file.
1169
1170 2004-04-10  Paul Brook  <paul@codesourcery.com>
1171
1172         * trans-array.c (gfc_trans_allocate_temp_array,
1173         gfc_conv_tmp_array_ref): Don't use GFC_DECL_STRING.
1174         * trans-decl.c (gfc_build_dummy_array_decl,
1175         gfc_get_symbol_decl, gfc_build_function_decl,
1176         gfc_create_module_variable): Ditto.
1177         * trans-expr.c (gfc_conv_variable): Ditto.
1178         * trans-intrinsic.c (gfc_conv_intrinsic_len): Ditto.
1179         * trans.h (GFC_DECL_STRING): Remove.
1180         (GFC_DECL_PACKED_ARRAY, GFC_DECL_PARTIAL_PACKED_ARRAY,
1181         GFC_DECL_ASSIGN): Renumber flags.
1182
1183 2004-04-05  Paul Brook  <paul@codesourcery.com>
1184
1185         PR 13252
1186         PR 14081
1187         * f95-lang.c (gfc_init_builtin_functions): Add stack_alloc, stack_save
1188         and stack_restore.
1189         * gfortran.h (struct gfc_charlen): Add backend_decl.
1190         * trans-array.c (gfc_trans_allocate_temp_array,
1191         gfc_conv_temp_array_ref, gfc_conv_resolve_dependencies,
1192         (gfc_conv_loop_setup, gfc_array_allocate, gfc_conv_array_init_size):
1193         Remove old, broken string handling.
1194         (gfc_trans_auto_array_allocation, gfc_trans_g77_array,
1195         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
1196         gfc_trans_deferred_array): Handle character arrays.
1197         * trans-const.c (gfc_conv_const_charlen): New function.
1198         * trans-const.h (gfc_conv_const_charlen): Add prototype.
1199         * trans-decl.c (gfc_finish_var_decl): Don't mark automatic variables
1200         as static.
1201         (gfc_build_dummy_array_decl): Handle arrays with unknown element size.
1202         (gfc_create_string_length): New function.
1203         (gfc_get_symbol_decl): Create lengths for character variables.
1204         (gfc_get_fake_result_decl): Ditto.
1205         (gfc_build_function_decl): Only set length for assumed length
1206         character arguments.
1207         (gfc_trans_dummy_character): New function.
1208         (gfc_trans_auto_character_variable): Rewrite.
1209         (gfc_trans_deferred_vars): Handle more types of character variable.
1210         (gfc_create_module_variable): String lengths have moved.
1211         (gfc_generate_function_code): Initialize deferred var chain earlier.
1212         * trans-expr.c (gfc_conv_init_string_length): Rename ...
1213         (gfc_trans_init_string_length):  ... to this.
1214         (gfc_conv_component_ref, gfc_conv_variable, gfc_conv_concat_op,
1215         gfc_conv_function_call): Update to new format for character variables.
1216         (gfc_conv_string_length): Remove.
1217         (gfc_conv_string_parameter): Update assertion.
1218         * trans-intrinsic.c (gfc_conv_intrinsic_len): Use new location.
1219         * trans-io.c (set_string): Use new macro names.
1220         * trans-stmt.c (gfc_trans_label_assign. gfc_trans_goto): Ditto.
1221         * trans-types.c (gfc_get_character_type): Use existing length expr.
1222         (gfc_is_nodesc_array): Make public.
1223         (gfc_get_dtype_cst): Rename ...
1224         (gfc_get_dtype): ... to this.  Handle unknown size arrays.
1225         (gfc_get_nodesc_array_type): Use new name.
1226         (gfc_sym_type): New character variable code.
1227         (gfc_get_derived_type): Ditto.
1228         (gfc_get_function_type): Evaluate character variable lengths.
1229         * trans-types.h (gfc_strlen_kind): Define.
1230         (gfc_is_nodesc_array): Add prototype.
1231         * trans.h: Update prototypes.
1232         (struct lang_type): Update comments.
1233         (GFC_DECL_STRING_LEN): New name for GFC_DECL_STRING_LENGTH.
1234         (GFC_KNOWN_SIZE_STRING_TYPE): Remove.
1235
1236 2004-04-04  Paul Brook  <paul@codesourcery.com>
1237
1238         * gfortran.h (struct gfc_option_t): Remove flag_g77_calls.
1239         * options.c (gfc_init.options, gfc_handle_option): Ditto.
1240         * trans-expr.c (gfc_conv_function_call): Ditto.
1241         * trans-types.c (gfc_is_nodesc_array): Ditto
1242         * lang.opt (fg77-calls): Remove.
1243
1244 2004-04-04  Paul Brook  <paul@codesourcery.com>
1245
1246         * trans-array.c (OFFSET_FIELD): Rename from BASE_FIELD.
1247         (gfc_conv_descriptor_base): Rename ...
1248         (gfc_conv_descriptor_offset): ... to this.
1249         (gfc_trans_allocate_array_storage): Set offset to zero.
1250         (gfc_conv_array_base): Rename ...
1251         (gfc_conv_array_offset): ... to this.
1252         (gfc_conv_array_index_ref): Add offset parameter.
1253         (gfc_conv_array_ref): Include offset.
1254         (gfc_trans_preloop_setup): Use existing offset.
1255         (gfc_trans_allocate_temp_array,  gfc_array_allocate,
1256         gfc_trans_auto_array_allocation, gfc_trans_g77_array,
1257         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
1258         gfc_conf_ss_descriptor): Set offset.
1259         * trans-array.h: Rename prototypes.
1260         * trans-const.h (gfc_index_zero_node): Define.
1261         * trans-decl.c (gfc_build_qualified_array): Change base to offset.
1262         * trans-types.c (gfc_get_array_type_bounds): Ditto.
1263         (gfc_get_nodesc_array_type): Calculate offset before upper bound.
1264
1265 2004-03-25  Diego Novillo  <dnovillo@redhat.com>
1266
1267         * convert.c (convert): Don't handle WITH_RECORD_EXPR.
1268
1269 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
1270
1271         PR 14055
1272         * arith.c (gfc_convert_integer,gfc_convert_real):  Removed leading '+'
1273         before conversion by gmp library call.
1274
1275 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
1276
1277         PR 12921
1278         * trans-io.c (gfc_trans_open): Change RECL= to a value parameter.
1279
1280 2004-02-24  Richard Henderson  <rth@redhat.com>
1281
1282         * trans-array.c (gfc_trans_dummy_array_bias): Fix typo.
1283
1284 2004-02-19  Loren J. Rittle  <ljrittle@acm.org>
1285
1286         * Make-lang.in ($(srcdir)/fortran/gfortran.info): Move...
1287         (fortran/gfortran.info): ... to here.
1288         (f95.srcinfo): New.
1289
1290 2004-02-16  Richard Henderson  <rth@redhat.com>
1291
1292         * Make-lang.in (f95-lang.o, trans-decl.o): Depend on cgraph.h.
1293         * f95-lang.c (LANG_HOOKS_EXPAND_DECL): Remove.
1294         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): New.
1295         (gfc_expand_function): Rename from expand_function_body, make static,
1296         don't do anything except invoke tree_rest_of_compilation.
1297         (gfc_be_parse_file): Invoke cgraph.
1298         (gfc_expand_decl): Remove.
1299         (gfc_init_builtin_functions): Add __builtin_init_trampoline and
1300         __builtin_adjust_trampoline.
1301         * trans-decl.c (gfc_get_extern_function_decl): Don't set DECL_CONTEXT.
1302         (gfc_finalize): New.
1303         (gfc_generate_function_code): Use it.  Lower nested functions.
1304         * trans-expr.c (gfc_conv_function_call): Add static chain operand
1305         to call_expr.
1306         * trans.c (gfc_build_function_call): Likewise.
1307         * trans.h (expand_function_body): Remove.
1308
1309 2004-02-15  Victor Leikehman  <lei@il.ibm.com>
1310
1311         PR gfortran/13433
1312         * trans-decl.c (gfc_build_function_decl) For functions
1313         returning CHARACTER pass an extra length argument,
1314         following g77 calling conventions.
1315         * trans-types.c (gfc_get_function_type) Ditto.
1316         * trans-expr.c (gfc_conv_function_call) Ditto.
1317
1318 2004-02-14  Paul Brook  <paul@codesourcery.com>
1319
1320         * f95-lang.c (gfc_init_builtin_functions): Build chain properly.
1321
1322 2004-02-12  Paul Brook  <paul@nowt.org>
1323
1324         * BUGS: Remove.
1325
1326 2004-02-08  Steve Kargl  <sgk@troutmask.apl.washington.edu>
1327
1328         * gfortran.texi: Fix typos.
1329
1330 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
1331  
1332         PR gfortran/13909
1333         * intrinsic.c (add_conversions) Use logical conversion instead
1334         of real.
1335         * trans-types.c (gfc_get_logical_type) implemented logical*1
1336         and logical*2.
1337
1338 2004-01-17  Paul Brook  <paul@codesourcery.com>
1339
1340         * lang-specs.h: Remove %<fixed-form.
1341
1342 2004-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>
1343
1344         * lang-specs.h: Enable preprocessing of source files
1345         ending in .F, .fpp, .FPP, .F90 and .F95.
1346
1347 2004-01-13  Toon Moene  <toon@moene.indiv.nluug.nl>
1348
1349         PR fortran/12912
1350         * lang-specs.h: Enable compilation of files ending
1351         in .f, .for and .FOR.
1352
1353 2004-01-11  Paul Brook  <paul@codesourcery.com>
1354
1355         * trans-stmt.c (gfc_trans_if_1): New function.
1356         (gfc_trans_if): Use it.
1357
1358 2004-01-11  Erik Schnetter  <schnetter@uni-tuebingen.de>
1359
1360         * gfortran.h (GFC_MAX_SYMBOL_LEN): Increase.
1361         (gfc_option_t): Add max_identifier_length.
1362         * lang.opt: Add fmax-identifier-length.
1363         * match.c (parse_name): Use limit.
1364         * options.c (gfc_init_options): Set max_identifier_length.
1365         (gfc_handle_option): Ditto.
1366
1367 2004-01-11  Feng Wang  <fengwang@nudt.edu.cn>
1368
1369         * intrinsic.c (add_functions): Add resolve function to dcmplx.
1370         * intrinsic.h (gfc_resolve_dcmplx): Add prototype.
1371         * iresolve.c (gfc_resolve_dcmplx): New function.
1372
1373 2004-01-10  Paul Brook  <paul@codesourcery.com>
1374
1375         * trans-decl.c (gfc_get_symbol_decl): Don't set subroutine attr.
1376         * trans-types.c (gfc_sym_type): Handle external dummy procedures.
1377         (gfc_return_by_reference): Correct condition.
1378         (gfc_get_function_type): Ditto.
1379
1380 2004-01-10  Paul Brook  <paul@codesourcery.com>
1381
1382         * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Convert mismatched
1383         types.
1384
1385 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
1386
1387         * iresolve.c: Use correct kind.
1388
1389 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
1390
1391         PR fortran/13467
1392         * trans-decl.c (gfc_create_module_variable):  Output array valued
1393         parameters.
1394
1395 2004-01-10  Paul Brook  <paul@codesourcery.com>
1396
1397         * resolve.c (resolve_branch): Get error message right way round.
1398
1399 2004-01-10  Canqun Yang <canqun@nudt.edu.cn>
1400
1401         * trans-array (gfc_conv_loop_setup): Adjust comment to track
1402         reality.
1403         (gfc_array_allocate): Don't count size of element twice.
1404
1405 2004-01-04  Paul Brook  <paul@codesourcery.com>
1406
1407         * lang.opt (i8, r8, std=*): Remove RejectNegative.
1408
1409 2004-01-04  Paul Brook  <paul@codesourcery.com>
1410
1411         * error.c (gfc_notify_std): New function.
1412         * gfortran.h (gfc_notify_std): Declare.
1413         (GFC_STD_*): Define.
1414         (gfc_option_t): Add warn_std and allow_std.
1415         * intrinsic.c (gfc_init_expr_extensions): Fix logic.
1416         (gfc_intrinsic_func_interface): Use gfc_notify_std.
1417         * check.c (check_rest): Use gfc_notify_std.
1418         * match.c (gfc_match_pause): Ditto.
1419         (gfc_match_assign): Ditto.
1420         (gfc_match_goto): Ditto.
1421         * resolve.c (resolve_branch): Ditto.
1422         * lang.opt: Add std=<foo> and w.
1423         * options.c (gfc_init_options): Set allow_std and warn_std.
1424         (gfc_handle_option): Handle OPT_std_* and OPT_w.
1425
1426 2004-01-01  Paul Brook  <paul@codesourcery.com>
1427
1428         * array.c (gfc_append_constructor): Take constructor, not expression.
1429         * data.c (struct gfc_expr_stack): Remove.
1430         (expr_stack): Remove.
1431         (find_con_by_offset): Rename from find_expr_in_con.
1432         (find_con_by_component): Rename from find_component_in_con.
1433         (gfc_get_expr_stack): Remove.
1434         (gfc_assign_data_value): Rewrite.
1435         (gfc_expr_push): Remove.
1436         (gfc_expr_pop): Remove.
1437         (gfc_advance_section): Rename from
1438         gfc_modify_index_and_calculate_offset.  Handle unbounded sections.
1439         (gfc_get_section_index): Handle unbounded sections.
1440         * gfortran.h: Update prototypes.
1441         * resolve.c (check_data_variable): Array section maight not be the
1442         last ref.
1443
1444 2004-01-01  Paul Brook  <paul@codesourcery.com>
1445
1446         PR fortran/13432
1447         * resolve.c (resolve_symbol): Allow assumed length function results.
1448
1449 2004-01-01  Steve Kargl  <sgk@troutmask.apl.washington.edu>
1450
1451         * match.c (gfc_match_pause): Fix spelling.
1452
1453 2004-01-01  Steven Bosscher  <stevenb@suse.de>
1454
1455         PR fortran/13251
1456         * trans-expr.c (gfc_conv_variable): Take the type kind of a substring
1457         reference from the expression.
1458
1459 2003-12-26  Feng Wang  <fengwang@nudt.edu.cn>
1460
1461         * dump-parse-tree.c (gfc_show_code_node): Add ASSIGN and ASSIGNED GOTO
1462         dumping.
1463         * gfortran.h (gfc_statement): New ST_LABEL_ASSIGNMENT.
1464         (gfc_exec_op): New EXEC_LABEL_ASSIGN.
1465         (symbol_attribute):New variable attribute: assign.
1466         * io.c (resolve_tag):Integer variable is allowed.
1467         (match_dt_format): Add ASSIGN statement. Set assign flag.
1468         * match.c (gfc_match_if): Change ST_NONE to ST_LABEL_ASSIGNMENT.
1469         (gfc_match_assign): Add ASSIGN statement. Set assign flag.
1470         (gfc_match_goto): Add ASSIGNED GOTO statement. Set assign flag.
1471         * parse.c (decode_statement): Add ST_LABEL_ASSIGNMENT.
1472         (next_statement): Add ST_LABEL_ASSIGNMENT.
1473         (gfc_ascii_statement): Add ST_LABEL_ASSIGNMENT.
1474         * resolve.c (resolve_code): Resolve ASSIGN and ASSIGNED GOTO statement.
1475         (resolve_blocks): Resolve ASSIGNED GOTO statement label list.
1476         * st.c (gfc_free_statement): Add EXEC_LABEL_ASSIGN.
1477         * trans-decl.c (gfc_get_symbol_decl): Create the shadow variable for
1478         assign.  Put them into the stuct lang_decl.
1479         * trans-io.c (set_string): Add the assign statement.
1480         * trans-stmt.c (gfc_trans_label_assign): New function.
1481         (gfc_trans_goto): Translate ASSIGNED GOTO statement.
1482         * trans-stmt.h (gfc_trans_label_assign): Added function prototype.
1483         * trans.c (gfc_trans_code): Add EXEC_LABEL_ASSIGN.
1484         * trans.h (lang_decl):Add shadow variable decl tree needed by assign.
1485         (GFC_DECL_ASSIGN_ADDR(node)): New macro to access this.
1486         (GFC_DECL_ASSIGN(node)): New macro to access flag.
1487
1488 2003-12-31  Huang Chun <chunhuang73@hotmail.com>
1489
1490         PR fortran/13434
1491         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Fixed bug in 
1492         minval/maxval.
1493
1494 2003-12-22  Toon Moene  <toon@moene.indiv.nluug.nl>
1495
1496         * options.c (gfc_init_options): Set flag_argument_noalias to 2, to indicate
1497         that arguments to subroutines/functions can't alias themselves, nor global
1498         memory.
1499
1500 2003-12-20  Steven Bosscher  <stevenb@suse.de>
1501
1502         * trans-expr.c (gfc_conv_expr_op): Fold the result expression.
1503         * trans.c (gfc_add_modify_expr, gfc_add_expr_to_block): Likewise.
1504
1505 2003-12-12  Huang Chun <chunhuang73@hotmail.com>
1506
1507         * primary.c (match_substring): Fix substring bug for start point
1508         or end point is NULL.
1509         * trans-expr.c (gfc_conv_substring): Ditto
1510         * trans-types.c (gfc_sym_type): Get correct type of scalar 
1511         character variables.
1512         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle character in 
1513         derived type.
1514
1515 2003-12-10  Richard Henderson  <rth@redhat.com>
1516
1517         * options.c (gfc_post_options): Don't ever use rtl inlining.
1518
1519 2003-12-05  Canqun Yang  <canqun@nudt.edu.cn>
1520
1521         * trans-common.c: Re-implement COMMON blocks and EQUIVALENCE lists.
1522         * trans-equivalence.c: Remove.
1523         * trans-decl.c (gfc_get_symbol_decl): Update to match.
1524         (gfc_generate_function_code): Ditto.
1525         * trans-array.c (gfc_conv_array_parameter): Ditto.
1526         * Make-lang.in (F95_OBJS): Remove fortran/trans-equivalence.o
1527         (F95_ADDITIONAL_OBJS): Add stor-layout.o
1528         * trans.h (gfc_trans_equivalence): Remove.
1529         * gfortran.h (struct gfc_equiv): Add used field.
1530         (struct gfc_symbol): Remove addr_base, addr_offset, equiv_ring,
1531         equiv_offset fields.
1532
1533 2003-12-05  Richard Henderson  <rth@redhat.com>
1534
1535         * trans.c (gfc_build_addr_expr): New.
1536         (gfc_build_indirect_ref, gfc_build_array_ref): New.
1537         * trans.h: Declare them.
1538         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-io.c,
1539         trans-stmt.c, trans.c (*): Use them.
1540
1541         * f95-lang.c (gfc_post_options): Remove dead prototype.
1542         * trans-array.c (gfc_trans_deferred_vars): Remove unused variable.
1543         * trans-stmt.c (gfc_evaluate_where_mask): Fix temporary_list
1544         allocation size.
1545
1546 2003-12-01  Feng Wang  <fengwang@nudt.edu.cn>
1547
1548         * io.c (gfc_match_format): Check for missing format label.
1549
1550 2003-11-30 Huang Chun <chunhuang73@hotmail.com>
1551
1552         PR fortran/13155
1553         * trans-decl.c (gfc_sym_mangled_function_id): Don't mangle symbols
1554         from interfaces in modules.
1555
1556 2003-11-30  Paul Brook  <paul@nowt.org>
1557
1558         * trans-array.c (gfc_trans_g77_array): Make non-static.
1559         (gfc_trans_assumed_size): Remove.
1560         (gfc_trans_dummy_array_bias): Explicitly free temporary.
1561         * trans-array.h (gfc_trans_g77_array): Add prototype.
1562         (gfc_trans_assumed_size): Remove.
1563         * trans-decls.c (gfor_fndecl_push_context): Remove.
1564         (gfor_fndecl_pop_context): Remove.
1565         (gfc_build_function)decls): Don't create them.
1566         (gfc_trans_deferred_vars): Update to match. Remove dead code.
1567         * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Free temp.
1568
1569 2003-11-30  Kejia Zhao  <kejia_zh@nudt.edu.cn>
1570
1571         * trans-array.c (gfc_conv_array_parameter): Simplify
1572         array argument passing for array name actual argument.
1573         * trans-expr.c (gfc_conv_function_call): Ditto
1574         * trans-types.c (gfc_is_nodesc_array):Ditto.
1575
1576 2003-11-30  Paul Brook  <paul@nowt.org>
1577
1578         * f95-lang.c (gfc_post_options): Move ...
1579         * options.c (gfc_post_options): .. to here.  Handle inlining options.
1580         * gfortran.h (gfc_post_options): Add prototype.
1581
1582 2003-11-28  Richard Henderson  <rth@redhat.com>
1583
1584         * trans.c (gfc_create_var_np): Use create_tmp_var_raw.
1585
1586 2003-11-28 Huang Chun <chunhuang73@hotmail.com>
1587
1588         * trans.h (has_alternate_specifier): New global variable.
1589         * match.c (gfc_match_call): Handle actual arguments associated with
1590         alternate return indicators.
1591         * trans-expr.c (gfc_conv_function_call): Ditto
1592         * trans-stmt.c (gfc_trans_call): Ditto
1593         (gfc_trans_return): Handle return statement with value.
1594         * trans-decl.c (gfc_generate_function_code): Handle functions with
1595         asterisk dummy.
1596         (gfc_get_fake_result_decl): Ditto
1597         * trans-types.c (gfc_get_function_type): Ditto
1598         * resolve.c (resolve_actual_arglist): Check alternate return indicators.
1599         (resolve_formal_arglist): Check asterisk dummy.
1600
1601 2003-11-27  Paul Brook  <paul@nowt.org>
1602
1603         * trans-array.c (gfc_tran_allocate_array_storage): Use new memory
1604         allocation interface.
1605         (gfc_conv_ array_parameter): Ditto.
1606         (gfc_trans_auto_array_allocation): Ditto. Also free the memory.
1607         * trans-array.c: Update prototype.
1608         * trans-decl.c (gfc_build_builtin_function_decls): Update prototypes.
1609         (gfc_trans_auto_character_variable): Use new memory alloc interface.
1610         * trans-expr.c (gfc_conv_string_tmp): Ditto.
1611         (gfc_conv_function_call): Use gfc_conv_string_tmp.
1612         * trans-stmt.c (gfc_do_allocate):  Use new memory alloc interface.
1613         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Ditto.
1614         * trans.h (gfc_ss_info): Remove unused pdata field.
1615         * trans.c (gfc_create_var_np): Change T to V.
1616
1617 2003-11-26  Richard Henderson  <rth@redhat.com>
1618
1619         * mathbuiltins.def: Move acos, asin, cosh, log10, sinh, tanh from ...
1620         * trans-intrinsic.c (gfc_intrinsic_map): ... here.  Add SCALE,
1621         FRACTION, NEAREST, SET_EXPONENT.
1622         (gfc_intrinsic_map_t): Add libm_name, complex_available, is_constant.
1623         Fix GTY marking.  Remove unnecessary const's.
1624         (LIBM_FUNCTION): Rename from I_LIB.
1625         (LIBF_FUNCTION): New.
1626         (gfc_get_intrinsic_lib_fndecl): Handle libm and libgfortran naming
1627         conventions.  Assume the expr signature is correct.  Mark const.
1628         (gfc_conv_intrinsic_exponent): Use library functions.
1629         (gfc_conv_intrinsic_set_exponent): Remove.
1630         (gfc_conv_intrinsic_scale): Remove.
1631         (gfc_conv_intrinsic_nearest): Remove.
1632         (gfc_conv_intrinsic_fraction): Remove.
1633         (gfc_conv_intrinsic_function): Update.
1634         * trans-decl.c (gfor_fndecl_math_exponent4): New.
1635         (gfor_fndecl_math_exponent8): New.
1636         (gfc_build_intrinsic_function_decls): Set them.
1637         * trans.h: Declare them.
1638
1639 2003-11-25  Canqun Yang  <canqun@nudt.edu.cn>
1640
1641         * trans-common.c (gfc_layout_global_equiv): Locate the error for
1642         underflow COMMON block.
1643         (gfc_trans_one_common): Fix bug for size of COMMON block containing
1644         EQUIVALENCE object. Also fix typo in an error message.
1645
1646 2003-11-25  Diego Novillo  <dnovillo@redhat.com>
1647
1648         * Make-lang.in: Add check-gfortran to lang_checks.
1649         (check-f95): Alias for check-gfortran.
1650
1651 2003-11-25  Jason Merrill  <jason@redhat.com>
1652
1653         * Make-lang.in (f95.tags): Create TAGS.sub files in each
1654         directory and TAGS files that include them for each front end.
1655
1656 2003-11-24  Paul Brook  <paul@nowt.org>
1657
1658         PR fortran/13154
1659         * trans-decl.c (gfc_greate_module_variable): Skip COMMON blocks.
1660
1661 2003-11-24  Paul Brook  <paul@nowt.org>
1662
1663         * expr.c (simplify_const_ref): Return SUCCESS for things we don't
1664         handle.
1665         * resolve.c (gfc_resolve_expr): Resolve contents before rank/shape.
1666
1667 2003-11-24  Paul Brook  <paul@nowt.org>
1668
1669         PR fortran/13105
1670         * array.c (gfc_array_ref_shape): Handle elemental dimensions.
1671         * trans-array.c (gfc_trans_preloop_setup): Use correct dim lookup.
1672
1673 2003-11-20  Richard Henderson  <rth@redhat.com>
1674
1675         * trans-array.c (gfc_trans_allocate_array_storage): Use convert.
1676         (gfc_conv_array_base): Likewise.
1677         * trans-decl.c (gfc_trans_auto_character_variable): Likewise.
1678         * trans-expr.c (gfc_conv_string_tmp): Likewise.
1679         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Likewise.
1680         * trans-stmt.c (gfc_trans_character_select): Likewise.
1681
1682 2003-11-13  Paul Brook  <paul@nowt.org>
1683
1684         * trans-decl.c (gfc_sym_mangled_function_id): Dont mangle externals.
1685
1686 2003-11-13  Canqun Yang  <canqun@nudt.edu.cn>
1687
1688         * resolve.c (gfc_resolve): Also resolve EQUIVALENCE objects.
1689         (resolve_equivalence): New function.
1690         (resolve_equivalence_derived): New function.
1691
1692 2003-11-12  Richard Henderson  <rth@redhat.com>
1693
1694         * trans.c (gfc_trans_code): Use annotate_with_locus instead of
1695         annotate_all_with_locus.
1696
1697 2003-11-11  Canqun Yang  <canqun@nudt.edu.cn>
1698  
1699         * options.c (gfc_init_options): Set flag_max_stack_var_size as 32768.
1700         * trans-decl.c (gfc_finish_var_decl): Modified.
1701
1702 2003-11-08  Paul Brook  <paul@nowt.org>
1703
1704         PR fortran/12704
1705         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Handle zero-size
1706         arrays.
1707
1708 2003-11-06  Paul Brook  <paul@nowt.org>
1709
1710         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Initialize pos.
1711
1712 2003-11-02  Canqun Yang  <canqun@nudt.edu.cn>
1713
1714         * match.c (gfc_match_stopcode): Assign '0' to stop_code.
1715
1716 2003-10-27  Anthony Green  <green@redhat.com>
1717
1718         * Make-lang.in (f95.stageprofile): Use tabs, not spaces.
1719         (f95.stagefeedback): Ditto.
1720
1721 2003-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
1722
1723         PR fortran/12682
1724         * Make-lang.in (f95.stageprofile): Add.
1725         (f95.stagefeedback): Add.
1726
1727 2003-10-23  Richard Henderson  <rth@redhat.com>
1728
1729         * f96-lang.c (gfc_gimplify_expr): Remove.
1730         (LANG_HOOKS_GIMPLIFY_EXPR): Remove.
1731         (LANG_HOOKS_GIMPLE_BEFORE_INLINING): New.
1732
1733 2003-10-23  Richard Henderson  <rth@redhat.com>
1734
1735         * f95-lang.c (gfc_gimplify_expr): Return gimplify_status.
1736
1737 2003-10-20  Paul Brook  <paul@nowt.org>
1738
1739         * trans-expr.c (gfc_conv_integer_power): Use boolean_type_node.
1740         * trans-stmt.c (gfc_trans_do_while): Ditto.
1741
1742 2003-10-17  Paul Brook  <paul@nowt.org>
1743
1744         * simplify.c (gfc_simplify_shape): Use gfc_array_dimen_size.
1745
1746 2003-10-17  Paul Brook  <paul@nowt.org>
1747
1748         * trans-io.c (gfc_build_io_library_fndecls): Set TREE_PUBLIC.
1749
1750 2003-10-17  Feng Wang  <wf_cs@yahoo.com>
1751
1752         * iresolve.c (gfc_resolve_maxloc): Change the result's kind and type.
1753         (gfc_resolve_minloc): Ditto.
1754         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use correct types.
1755         Return the value after subtracting the lower bound.
1756
1757 2003-10-16  Richard Henderson  <rth@redhat.com>
1758
1759         * f95-lang.c (expand_function_body): Don't check flag_disable_gimple.
1760
1761 2003-10-16  Steven Bosscher  <steven@gcc.gnu.org>
1762
1763         * lang.c: Remove -M option for now, it's in the way for C.
1764
1765 2003-10-14  Jason Merrill  <jason@redhat.com>
1766
1767         * Make-lang.in (f95.tags): New rule.
1768
1769 2003-10-13  Richard Henderson  <rth@redhat.com>
1770
1771         * trans.c (gfc_trans_code): Use annotate_all_with_locus.
1772
1773 2003-10-13  Paul Brook  <paul@nowt.org>
1774
1775         * trans-decl.c (generate_local_decl): Don't create junk variables.
1776
1777 2003-10-13  Paul Brook  <paul@nowt.org>
1778
1779         * resolve.c (resolve_formal_arglist): Use function result decl in
1780         preference to function decl.
1781
1782 2003-10-12  Richard Henderson  <rth@redhat.com>
1783
1784         * f95-lang.c (gfc_define_builtin): New const_p argument.  Set
1785         TREE_READONLY.  Update all callers.
1786
1787 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
1788
1789         * iresolve.c (gfc_resolve_cshift): Change to match implementation.
1790         * trans-intrinsic.c (gfc_conv_intrinsic_function): Remove CSHIFT.
1791         (gfc_is_intrinsic_libcall): Add CSHIFT.
1792
1793 2003-10-12  Richard Henderson  <rth@redhat.com>
1794
1795         * trans-array.c (gfc_trans_static_array_pointer): Set TREE_INVARIANT.
1796         (gfc_trans_array_constructor_value): Likewise.
1797         (gfc_conv_array_initializer): Likewise.
1798         * trans-stmt.c (gfc_trans_character_select): Likewise.
1799
1800 2003-11-12  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1801
1802         * trans-intrinsic.c (integer_kind_info, real_kind_info): Remove.
1803
1804 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
1805
1806         * check.c (gfc_check_repeat): Check arguments are scalar.
1807         (gfc_check_trim): New function.
1808         * intrinsic.h (gfc_check_trim): Add prototype.
1809         * intrinsic.c (add_functions): Use it.
1810         * trans.h (gfor_fndecl_string_trim, gfor_fndecl_string_repeat):
1811         Decalare.
1812         * trans-decl.c: Ditto.
1813         (gfc_build_intrinsic_fucntion_decls): Set them.
1814         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle result vars.
1815         (gfc_conv_intrinsic_trim): New function.
1816         (gfc_conv_intrinsic_repeat): New function.
1817         (gfc_conv_intrinsic_function): Use them.
1818
1819 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
1820
1821         * trans-types.c (gfc_sym_type): Handle result variables.
1822
1823 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
1824
1825         * trans-intrinsic.c (gfc_conv_intrinsic_char): Don't use
1826         gfc_get_character_type.
1827
1828 2003-10-11  Feng Wang  <wf_cs@yahoo.com>
1829
1830         * trans-expr.c (gfc_conv_variable): Check sym->ts, not the decl.
1831
1832 2003-10-11  Paul Brook  <paul@nowt.org>
1833
1834         * iresolve.c (gfc_resolve_dint, gfc_resolve_dnint): New functions.
1835         (gfc_resolve_dprod): New function.
1836         (gfc_resolve_aint, gfc_resolve_anint): Only base name on arg type.
1837         * intrinsic.h (gfc_resolve_dint, gfc_resolve_dnint): Declare.
1838         (gfc_resolve_dprod): Declare.
1839         * intrinsic.c (add_functions): Use them.
1840         * trans-decl.c (gfc_get_extern_function_decl): Only pass one arg.
1841
1842 2003-10-06  Richard Henderson  <rth@redhat.com>
1843
1844         * f95-lang.c (gfc_init_builtin_functions): Add clzll.
1845         * trans-intrinsic.c (call_builtin_clz): Use it.
1846
1847 2003-10-05  Paul Brook  <paul@nowt.org>
1848
1849         * f95-lang.c (expand_function_body): Call (push|pop)_function_context.
1850         * trans-decl.c (gfc_generate_function_code): Set
1851         cfun->function_end_locus.
1852
1853 2003-09-24  Jason Merrill  <jason@redhat.com>
1854
1855         * f95-lang.c, trans-decl.c: Use DECL_SOURCE_LOCATION instead of
1856         TREE_LOCUS.
1857
1858 2003-09-21  Lifang Zeng  <zlf605@hotmail.com>
1859         Paul Brook  <paul@nowt.org>
1860
1861         * Make-lang.in (F95_OBJS): Add fortran/data.o.
1862         * array.c (gfc_inser_constructor): New function.
1863         (gfc_get_constructor): New function.
1864         (gfc_free_constructor): Initialize offset and repeat.
1865         (iterator_stack): Remove.
1866         (expand_info): Add offset, component and repeat fields.
1867         (expand_constructor): Set them.
1868         (expand): Set new fields.
1869         (gfc_copy_constructor): Ditto. Avoid recursion.
1870         * gfortran.h: Add prototypes for new functions.
1871         (gfc_constructor): Add offset, component and repeat.
1872         (iteratio_stack): Move to here.
1873         * resolve.c (check_data_variable): Convert data values into variable
1874         initializers.
1875         (traverse_data_list): Build implicit loop chain.
1876         (gfc_resolve): Ditto.
1877         * trans-array.c (gfc_conv_array_intializer): Handle repeat count.
1878         * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_structure.
1879         * trans-expr.c (gfc_conv_structure): Handle array initializers.
1880         (gfc_conv_expr): Update to match.
1881         * trans.h (gfc_conv_structure): Declare.
1882         * data.c: New file.
1883
1884 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1885  
1886         * trans.h: Add declarations for gfor_fndecl_si_kind and
1887         gfor_fndecl_sr_kind.
1888         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
1889         * trans-intrinsic.c (g95_conv_intrinsic_si_kind): New function.
1890         (g95_conv_intrinsic_sr_kind): New function.
1891         (g95_conv_intrinsic_function): Add SELECTED_INT_KIND and
1892         SELECTED_REAL_KIND.
1893
1894 2003-09-17  Lars Segerlund  <Lars.Segerlund@comsys.se>
1895
1896         * iresolve.c (gfc_resolve_random_number): Generate _r4 & _r8
1897         instead of _4 and _8 as postfix for libgfortran calls.
1898
1899 2003-09-16  Paul Brook  <paul@nowt.org>
1900
1901         * array.c (compare_bounds): New function.
1902         (gfc_compare_array_spec): Use it.
1903
1904 2003-09-14  Paul Brook  <paul@nowt.org>
1905
1906         * primary.c (gfc_match_rvalue): Make sure sym->result is set.
1907         * trans-expr.c (gfc_conv_string_parameter): Also allow PRAM_DECLs.
1908
1909 2003-09-14  Paul Brook  <paul@nowt.org>
1910
1911         * check.c (dim_rank_check): Allow assumed bounds if requested.
1912         (gfc_check_lbound): Call it.
1913         (gfc_check_ubound): Ditto.
1914         (gfc_check_size): Change to match.
1915         * simplify.c (gfc_simplify_bound): New function.
1916         (gfc_simplify_lbound): New function.
1917         (gfc_simplify_ubound): New function.
1918         * intrinsic.h: Declare them.
1919         * intrinsic.c (add_functions): Use them.
1920
1921 2003-09-14  Paul Brook  <paul@nowt.org>
1922
1923         * io.c (format_lex): Initialize negative_flag.
1924         (check_format): Intialize repeat.
1925         * trans-io.c (gfc_new_nml_name_expr): Declare static.
1926         (gfc_new_var_expr): Ditto.
1927
1928 2003-09-14  Paul Brook  <paul@nowt.org>
1929
1930         * trans-array.c (gfc_conv_array_initializer): Handle derived types.
1931         * trans-decl.c (gfc_get_symbol_decl): Only do local scalar values.
1932
1933 2003-09-12  Paul Brook  <paul@nowt.org>
1934
1935         * trans-intrinsic.c (gfc_conv_intrinsic_sign): Call fold.
1936
1937 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1938
1939         * fortran/trans.c (gfc_finish_block): Call rationalize_compound_expr
1940         for a correct expression.
1941
1942 2003-09-10  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1943
1944         * trans-intrinsic.c (real_compnt_info): New struct.
1945         (prepare_arg_info): New function.
1946         (gfc_conv_intrinsic_set_exponent): New function.
1947         (gfc_conv_intrinsic_scale): New function.
1948         (gfc_conv_intrinsic_nearest): New function.
1949         (gfc_conv_intrinsic_fraction): New function.
1950         (gfc_conv_intrinsic_exponent): New function.
1951         (gfc_conv_intrinsic_spacing): New function.
1952         (gfc_conv_intrinsic_rrspacing): New function.
1953         (gfc_conv_intrinsic_function): Use them.
1954
1955 2003-08-24 XiaoQiang Zhang  (zhangapache@yahoo.com>
1956
1957         * trans-const.c (gfc_conv_mpz_to_tree): Fix bug, parameter for 
1958         build_int_2 changed from (high, low) to (low, high).
1959         * trans-io.c (ioparm_namelist_name, ioparm_namelist_name_len,
1960         ioparm_namelist_read_mode, iocall_set_nml_val_int,
1961         iocall_set_nml_val_float, iocall_set_nml_val_char,
1962         iocall_set_nml_val_complex, iocall_set_nml_val_log): New declaration.
1963         (gfc_build_io_library_fndecls): Add variable initialization.
1964         (gfc_new_nml_name_expr, get_new_var_expr): New function.
1965         (build_dt): Add namelist support.
1966         * io.c (value): New variable.
1967         (check_format): Support FMT_H now.
1968
1969 2003-09-07  Paul Brook  <paul@nowt.org>
1970
1971         * io.c (gfc_resolve_dt): Error if format label is not defined.
1972
1973 2003-09-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1974
1975         * trans-intrinsic.c (gfc_conv_intrinsic_aint): Fix two bugs. One is 
1976         about case_switch's break. The other is about building the condition 
1977         statement tree, which judges the argument in the range of the 
1978         corresponding integer type.
1979         * trans-intrinsic.c (gfc_conv_intrinsic_mod): MOD and MODULO can work
1980         for the large values.
1981  
1982 2003-09-05  Paul Brook  <paul@nowt.org>
1983
1984         * f95-lang.c (expand_function_body): Gimplify the function.
1985
1986 2003-09-04  Jeff Law  <law@redhat.com>
1987
1988         * f95-lang.c (DEFINE_MATH_BUILTIN): C arrays start at
1989         index zero!
1990
1991 2003-09-04  Paul Brook  <paul@nowt.org>
1992
1993         * f95-lang.c (gfc_define_builtin): Also set implicit_built_in_decls.
1994         (gfc_expand_stmt): New function.
1995         (LANG_HOOKS_RTL_EXPAND_STMT): Define.
1996         (expand_function_body): Use tree_rest_of_compilation.
1997         * trans-decl.c (gfc_generate_function_code): Don't free cfun.
1998
1999 2003-09-03  Jeff Law  <law@redhat.com>
2000
2001         * f95-lang.c (gfc_init_builtin_functions): C arrays start at
2002         index zero!
2003
2004 2003-08-30  Paul Brook  <paul@nowt.org>
2005
2006         * f95-lang.c (builtin_function): Remove #if 0 code.
2007         (gfc_define_builtin): New function.
2008         (gfc_init_builtin_functions): Use mathbuiltins.def not ../builtins.def.
2009         * mathbuiltins.def: New file.
2010         * trans-intrinsic.c (gfc_intrinsic_map_t): Add builtin code fields.
2011         (gfc_intrinsic_map): Use mathbuiltins.def.
2012         (gfc_intrinsic_builtin_t): Remove.
2013         (gfc_build_intrinsic_lib_fndecls): Update.
2014         * trans-types.c (gfc_init_types): Remove redundant initilaization of
2015         signed_size_type_node.
2016
2017 2003-08-29  Paul Brook  <paul@nowt.org>
2018
2019         * arith.c (gfc_real_kinds): Use correct minimum exponents.
2020
2021 2003-08-22  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2022
2023         * trans-instinsic.c (gfc_conv_intrinsic_mod): Also do MODULO.
2024         (gfc_conv_intrinsic_function): Add MODULO.
2025
2026 2003-08-22  Jason Merrill  <jason@redhat.com>
2027
2028         * trans-array.c (gfc_conv_expr_descriptor): Update use of predicates.
2029
2030 2003-08-22  Andreas Jaeger  <aj@suse.de>
2031
2032         * Make-lang.in (f95.install-common): Add DESTDIR support.
2033         * (f95.install-info): Likewise.
2034         (f95.uninstall): Likewise.
2035
2036 2003-08-19  Diego Novillo  <dnovillo@redhat.com>
2037
2038         * trans-types.c (gfc_init_types): Initialize
2039         signed_size_type_node with size_type_node.
2040
2041 2003-08-18  Paul Brook  <paul@nowt.org>
2042
2043         * dependency.c (gfc_dependency): New enum.
2044         (check_another_array_ref): Remove.
2045         (gfc_get_array_from_component): Remove.
2046         (get_x): Remove.
2047         (get_range): Remove.
2048         (get_no_of_elements): Use mpz_t, not mpf_t.
2049         (transform_sections): New function.
2050         (gfc_check_range_range): Rename ...
2051         (gfc_check_section_vs_section): ... to this.  Use new function.
2052         (gfc_is_inside_range): Rewrite to match.
2053         (gfc_check_element_vs_section): Ditto.
2054         (gfc_check_element_vs_element): Ditto.
2055         (get_deps): Ditto.
2056         (gfc_dep_resolver): Ditto.  Remove unused parameter.
2057         * Dependency.h (gfc_check_range_range, gfc_check_element_vs_section,
2058         gfc_check_element_vs_element, gfc_is_inside_range,
2059         gfc_get_array_from_component): Remove prototypes for static functions.
2060         (gfc_dep_resolver): Update prototype.
2061         * trans-array.c (gfc_conv_resolve_dependencies): Change to match.
2062
2063 2003-08-15  Paul Brook  <paul@nowt.org>
2064
2065         * trans-decl.c (gfc_build_qualified_array): Don't add symbols for
2066         return values to parent scope.
2067         (gfc_build_dummy_array_decl): Ditto.
2068
2069 2003-08-14  Paul Brook  <paul@nowt.org>
2070
2071         * trans-stmt.c (gfc_trans_allocate): Handle NULL refs. Allocate the
2072         size of the type, not the pointer.
2073         * resolve.c (resolve_symbol): Give more accurate error message.
2074
2075 2003-08-10  Paul Brook  <paul@nowt.org>
2076
2077         * trans-decl.c (gfc_build_function_decl): Only mangle global symbols.
2078
2079 2003-08-10  Paul Brook  <paul@nowt.org>
2080
2081         * trans-stmt.c (gfc_trans_allocate): Correctly handle non-array derived
2082         type components.
2083
2084 2003-08-10  Chun Huang  <compiler@sohu.com>
2085  
2086         * resolve.c (resolve_formal_arglist): Resolve STATEMENT function.
2087         (resolve_symbol): Ditto.
2088         * trans-expr.c (gfc_conv_statement_function): New function.
2089         (gfc_conv_function_expr): Use it.
2090
2091 2003-08-10  Paul Brook  <paul@nowt.org>
2092
2093         * trans-array.c (gfc_conv_ss_startstride): Handle functions.
2094         (walk_function_expr): Set section rank.
2095         * trans-intrinsic.c (gfc_walk_intrinsic_libfunc): Ditto.
2096
2097 2003-08-10  Paul Brook  <paul@nowt.org>
2098
2099         * intrinsic.c (add_sym): Prefix names with correct string.
2100         (add_sym_0s): New function.
2101         (add_subroutines): Register abort.
2102
2103 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
2104
2105         * gfortran.h: Introduce options to control the mangling.
2106         * lang.opt: Likewise.
2107         * options.c (gfc_init_options): Handle the options.
2108         * trans-common.c (gfc_sym_mangled_common_id): New function.
2109         (gfc_build_common_decl): Call it.
2110         * trans-decl.c (gfc_sym_mangled_function_id): New function.
2111         (gfc_get_extern_function_decl, gfc_build_function_decl): Call it.
2112
2113 2003-08-09  Paul Brook  <paul@nowt.org>
2114
2115         * module.c (mio_symbol): Always ouput a namespace for formal args.
2116         (load_needed): Namespace now belong to their proper symbol.
2117         (gfc_dump_module): Change G95=>GFORTRAN.
2118
2119 2003-08-05  Paul Brook  <paul@nowt.org>
2120
2121         * options.c: Force -fg77-calls.
2122
2123 2003-08-02  Paul Brook  <paul@nowt.org>
2124
2125         * Makelang.in: Rename G95_* to GFORTRAN_*.
2126         * All sources: Rename G95_* to GFC_*.
2127
2128 2003-08-01  Paul Brook  <paul@nowt.org>
2129
2130         * fortran/Make-lang.in: Use GMPLIBS.
2131         * fortran/config-lang.in: Set need_gmp.
2132         * trans-expr.c (gfc_conv_variable): Remove incorrect assertion.
2133
2134 2003-07-27  Andreas Jaeger  <aj@suse.de>
2135
2136         * trans-decl.c (gfc_generate_constructors): Convert prototype to
2137         ISO C90.
2138         * trans-const.c (gfc_init_constants): Likewise.
2139         * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Likewise.
2140
2141         * gfortranspec.c: Convert to ISO C90.
2142         (lang_specific_driver): Correct copyright, remove ALT_LIBM usage.
2143
2144 2003-07-26  Paul Brook  <paul@nowt.org>
2145
2146         * lang.opt: Add -fdump-parse-tree.
2147         * options.c (gfc_handle_option): Ditto.
2148         * resolve.c (resolve_forall_iterators): Convert to proper type.
2149         * trans-stmt.c (gfc_trans_forall_1): Create temp var with correct type.
2150
2151 2003-07-26  Paul Brook  <paul@nowt.org>
2152
2153         * Makefile.in: Add build dependencies on files common with rest of gcc.
2154
2155 2003-07-26  Lifang Zeng  <zlf605@hotmail.com>
2156
2157         * trans.h: Declare g95_trans_pointer_assignment.
2158         * trans-expr.c (g95_trans_pointer_assignment): New function.
2159         (g95_trans_pointer_assign): Use it.
2160         * trans-stmt.c (g95_trans_forall_1): Handle pointer assignment.
2161         (g95_trans_pointer_assign_need_temp): New function.
2162
2163 2003-07-26  Paul Brook  <paul@nowt.org>
2164
2165         * gfortran.texi: Replace references to g95.
2166
2167 2003-07-26  Paul Brook  <paul@nowt.org>
2168
2169         Rename g95_* to gfc_*.
2170
2171 2003-07-25  Paul Brook  <paul@nowt.org>
2172         
2173         * gfortran.h: Rename from g95.h.
2174         * trans-types.c (boolean_type_node, booelan_true_node,
2175         boolean_false_node): Remove.
2176         * trans-types.h: Ditto.
2177
2178 2003-07-25  Chun Huang  <compiler@sohu.com>
2179
2180         * parse.c (accept_statement): Implement BLOCK DATA statement.
2181         * trans-expr.c (g95_conv_variable): Fix bug for dereference pointer
2182         variables.
2183
2184 2003-07-24  Lifang Zeng  <zlf605@hotmail.com>
2185
2186         * trans-stmt.c (temporary_list): Define.
2187         (g95_trans_assign_need_temp): New function.
2188         (g95_trans_forall_1): Modified for WHERE.
2189         (g95_trans_where_assign): Modified.
2190         (g95_trans_where_2): Modified.
2191         (g95_evaluate_where_mask): Modified.
2192         (g95_trans_where): Modified.
2193         (g95_get_temp_expr): Removed.
2194         (g95_add_to_where_stmt_list): Removed.
2195         (compute_overall_iter_number): Modified for WHERE.
2196         * trans.h: Remove where_stmt_list.
2197
2198 2003-07-24  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2199
2200         * lang.opt: Correct description of options -J and -M.
2201
2202 2003-07-23  Steven Bosscher   <steven@gcc.gnu.org>
2203
2204         * lang.opt: Move help text to here.
2205         * lang-options.h: Remove.
2206
2207 2003-07-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2208         * iresolve.c (g95_resolve_transpose): Proper variable in switch.
2209         * simplify.c (g95_simplify_nearest): Fix typo and use a correct test
2210         on kind.
2211
2212 2003-07-22  Steven Bosscher  <steven@gcc.gnu.org>
2213         Paul Brook  <paul@nowt.org>
2214
2215         * check.c (check_rest): Use global pedantic flag.
2216         * io.c (data_desc): Ditto.
2217         * error.c (g95_warning, g95_warning_now): Use global flag.
2218         * f95-lang.c (LANG_HOOKS_HANDLE_OPTION): Rename from DECODE.
2219         (expand_function_body): Update to new prototypes.
2220         (g95_init): Use new option names.
2221         * g95.h (g95_option_t): Standardize names.
2222         (g95_init_options, g95_handle_option): Update prototypes.
2223         * interface.c: Use new option names.
2224         * match.c: Ditto.
2225         * module.c: Ditto.
2226         * parse.c: Ditto.
2227         * primary.c: Ditto.
2228         * resolve.c: Ditto.
2229         * scanner.c: Ditto.
2230         * simplify.c: Ditto.
2231         * symbol.c: Ditto.
2232         * trans-array.c: Ditto.
2233         * trans-expr.c: Ditto.
2234         * trans-types.c: Ditto.
2235         * trans-decl.c: Ditto.
2236         (g95_build_library_function_decl): Remove obsolete VPARAMS.
2237         * trans.h: Ditto.
2238         * options.c (g95_display_help): Remove.
2239         (g95_init_options): Convert to new scheme.
2240         (set_Wall): Ditto
2241         (g95module_option): Ditto, rename from g95_parse_arg.
2242         (g95_handle_module_path_options): New function.
2243         * trans-equivalence.c: Fix error message.
2244         * lang.opt: Corrections.
2245
2246 2003-07-21  Steven Bosscher  <steven@gcc.gnu.org>
2247
2248         * lang.opt: New file.
2249
2250 2003-07-21  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2251
2252         * decl.c (match_attr_spec): Set colon_seen.
2253
2254 2003-07-14  Paul Brook  <paul@nowt.org>
2255
2256         * trans-array.c: Update comment.
2257         (g95_trans_array_constructor_subarray): Cleanup loopinfo data.
2258         * trans-intrinsic.c (g95_conv_intrinsic_anyall,count,arith,
2259         minmaxloc,minmaxval): Ditto.
2260         * trans-io.c (g95_trans_transfer): Ditto.
2261         * trans-stmt.c: Remove unneeded prototypes.
2262         (generate_loop_for_lhs_to_rhs): Rename vars. Add loop post chain.
2263         (generate_loop_for_rhs_to_temp): Rename vars. Don't share loopinfo.
2264         (compute_inner_temp_size): Remove bits of dead code. Add comments.
2265         Don't share loopinfo.
2266         (compute_overall_iter_number): Declare as static.
2267         (allocate_temp_for_forall_nest): Ditto.
2268         (g95_trans_forall_1): Don't pass shared loopinfo.
2269         * trans.c (g95_start_block): Expand comment.
2270
2271 2003-07-12  Paul Brook  <paul@nowt.org>
2272
2273         * arith.c (g95_index_integer_kind): Remove unused initializer.
2274         * trans-stmt.c (generate_loop_for_temp_to_lhs): Don't multiply array
2275         index by size of element.
2276         (generate_loop_for_rhs_to_temp): Ditto.
2277         (allocate_temp_for_forall_nest): Use element size, not index size.
2278
2279 2003-07-11  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2280
2281         * arith.c (g95_index_integer_kind): Add a TODO.
2282         * simplify.c (g95_simplify_nearest): Add a TODO.
2283
2284 2003-07-09  Chun Huang  <compiler@sohu.com>
2285
2286         * trans.h: Add declarations for gfor_fndecl_string_scan and
2287         gfor_fndecl_string_verify.
2288         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
2289         * trans-intrinsic.c (g95_conv_intrinsic_scan): New function.
2290         (g95_conv_intrinsic_verify): New function.
2291         (g95_conv_intrinsic_function): Add SCAN and VERIFY.
2292         * simplify.c (g95_simplify_scan, g95_simplify_verify): Fix bug in case
2293         of parameter 'BACK=.TRUE.'
2294
2295 2003-07-05  Lifang Zeng  <zlf605@hotmail.com>
2296
2297         * trans-stmt.c (iter_info, forall_info): Define.
2298         (g95_trans_forall_block): Remove.
2299         (g95_trans_forall_loop): Use forall info blocks.
2300         (g95_trans_nested_forall_loop): New function.
2301         (g95_do_allocate): Handle things other than logical masks.
2302         (generate_loop_for_temp_to_lhs): New function.
2303         (generate_loop_for_rsh_to_temp): New function.
2304         (compute_inner_temp_size): New function.
2305         (compute_overall_iter_number): New function.
2306         (allocate_temp_for_forall_nest): New function.
2307         (g95_trans_forall): Move body ...
2308         (g95_trans_forall_1): ... to here.  Handle loops with temporaries.
2309
2310 2003-07-02  Paul Brook  <paul@nowt.org>
2311
2312         * trans-decl.c (create_index_var, g95_build_qualified_array): Put vars
2313         in correct scope.  Change callers to match.
2314         * trans-types.c (g95_get_dtype_cst): Allow rank 7 arrays.
2315         * iresolve.c (g95_resolve_reshape): Only use constant shapes.
2316
2317 2003-07-02  Paul Brook  <paul@nowt.org>
2318
2319         * trans-array.c (g95_conv_loop_setup): Remove dead var.  Use
2320         expression shape for all expressions.
2321         * trans-decl.c (g95_symbol_init): Allow adding at very end of list.
2322
2323 2003-07-03  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2324
2325         * g95.h (g95_option_t), lang-options.h, options.c (g95_init_options,
2326         g95_parse_arg), intrinsic.c (g95_convert_type): support of
2327         -Wconversion.
2328         * intrinsic.c, g95.h: Add g95_convert_type_warn,
2329         * resolve.c (g95_resolve_index): Call it.
2330
2331 2003-07-02  Paul Brook  <paul@nowt.org>
2332
2333         * iresolve.c (g95_resolve_reshape): Set expression shape.
2334         (g95_resolve_shape): Ditto.
2335         * simplify.c (g95_simplify_shape): Move common code outside condition.
2336         * trans-array.c (g95_conv_array_initializer): Teach it how to count.
2337
2338 2003-07-01  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2339
2340         * array.c (g95_array_dimen_size): Deal with EXPR_ARRAY to improve
2341         conformance checks.
2342
2343 2003-06-29  Paul Brook  <paul@nowt.org>
2344
2345         * array.c (g95_simplify_iterator_var): Don't bother with return value.
2346         * expr.c (find_array_element, find_component_ref): New functions.
2347         (remove_subobject_ref): New function.
2348         (simplify_const_ref): Use them.  Rename from simplify_component_ref.
2349         (simplify_ref_chain): New function.
2350         (g95_simplify_expr): Use it.  Simplify parameter variable subobjects.
2351         (g95_specification_expr): Simplify the expression.
2352         * resolve.c (resolve_operator): Check simplifications return code.
2353         (g95_resolve_expr): Ditto.
2354
2355 2003-06-26  Paul Brook  <paul@nowt.org>
2356
2357         * expr.c (simplify_component_ref): New function.
2358         (g95_simplify_expr): Use it.
2359         * resolve.c (resolve_structure_cons): Handle references.
2360
2361 2003-06-25  Paul Brook  <paul@nowt.org>
2362
2363         * trans-io.c (build_dt): Handle internal units.
2364
2365 2003-06-25  Canqun Yang  <canqun@yahoo.com.cn>
2366
2367         * trans-common.c (g95_build_common_decl): Array index range starts at 0.
2368         (g95_build_common_decl, g95_layout_global_equiv, g95_trans_one_common):
2369         Use g95_array_index_type instead of integer_type_node.
2370         (g95_build_common_decl, g95_set_common_master_type): Use
2371         g95_character1_type_node instead of char_type_node.
2372         * trans-equivalence.c (g95_layout_local_equiv): As above.
2373
2374 2003-06-24  Steven G. Kargl  <kargls@attbi.com>
2375
2376         * g95.h (g95_option_t), options.c (g95_init_options, g95_parse_arg):
2377         remove last remains of -fquiet.
2378
2379 2003-06-22  Paul Brook  <paul@nowt.org>
2380
2381         * resolve.c (resolve_operator): Don't fail if we can't simplify.
2382         (g95_resolve_expr): Ditto.
2383         (resolce_code): Mark as static.
2384         * trans-stmt.c (g95_trans_chaaracter_select): Mark labels because the
2385         gimplifer doesn't (yet).
2386
2387 2003-06-20  Paul Brook  <paul@nowt.org>
2388
2389         * g95.h: Add ST_PAUSE and EXEC_PAUSE.
2390         * match.c (g95_match_if): Add ST_PAUSE.
2391         (g95_match_stopcode): New function.
2392         (g95_match_pause, g95_match_stop): Use it.
2393         * parse.c (g95_ascii_statement): Handle ST_PAUSE.
2394         (decode_stmt, next_statement, parse_executable): Ditto.
2395         * resolve.c (resolve_code): Ditto.
2396         * st.c (g95_free_statement): Ditto.
2397         * trans-stmt.c (g95_trans_pause): New function.
2398         * trans-stmt.h: Declare it.
2399         * trans.c (g95_trans_code): Use it.
2400         * trans-decl.c (gfor_fndecl_pause_numeric, gfor_fndecl_pause_string):
2401         Declare.
2402         (g95_build_builtin_function_decls): Initialize them.
2403         * trans.h: Ditto.
2404         * dump-parse-tree.c (g95_show_code_node): Handle EXEC_PAUSE.
2405
2406 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2407
2408         * io.c (g95_match_open , g95_match_close, g95_match_inquire,
2409         match_filepos): Fix error handling.
2410
2411 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2412
2413         * array.c (spec_dimen_size, ref_dimen_size, g95_array_dimen_size):
2414         Add assertions on arguments.
2415         * resolve.c (expression_shape): Remove useless &.
2416         * simplify.c (get_kind, g95_simplify_bit_size, g95_simplify_digits,
2417         g95_simplify_ibclr, g95_simplify_ibits, g95_simplify_ibset,
2418         g95_simplify_ishft,g95_simplify_ishftc, g95_simplify_maxexponent,
2419         g95_simplify_minexponent, g95_simplify_radix, g95_simplify_range
2420         g95_simplify_rrspacing, g95_simplify_scale, g95_simplify_spacing,
2421         g95_simplify_tan, g95_simplify_tiny): Clean predicates and assertions.
2422         (g95_simplify_not, g95_simplify_scale): Add assertions.
2423
2424 2003-06-15  Paul Brook  <paul@nowt.org>
2425
2426         Clean up stuff to work with the ssa optimizers.
2427         * convert.c (convert): Handle BOOLEAN_TYPEs.
2428         * f95-lang.c (g95_truthvalue_conversion): Implement.
2429         * trans-array.c (g95_trans_array_constructor_value): Group multiple
2430         scalar values.
2431         * trans.h (g95_truthvalue_conversion): Declare.
2432         * trans-intrinsic.c (g95_conv_intrinsic_anyall): Use bool constants.
2433         * trans-stmt.c (g95_trans_character_select): Don't create array
2434         assignments.  Mark labels as indirect jump targets.
2435         * trans-types.h (g95_init_types): Use BOOLEAN_TYPE nodes.
2436         (g95_get_dtype_cst): Handle LOGICAL types.
2437
2438 2003-06-14  Paul Brook  <paul@nowt.org>
2439
2440         * f95-lang.c (g95_gimplify_expr): New function.
2441         * trans-array.c (g95_trans_array_constructor_value): Don't create
2442         array assignments.
2443         (g95_conv_expr_descriptor): Rename simple->gimple.
2444         * trans-expr.c (conv_expr_op): Use proper logical operators.
2445         * trans-intrinsic.c (build_fixbound_expr): New function.
2446         (build_fix_expr): Ditto.
2447         (g95_conv_intinsic_aint): Use them. Use builtin functions.
2448         (g95_conv_intrinsic_function): Add FLOOR and CEILING.
2449
2450 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2451
2452         * array.c (g95_compare_array_spec): Remove unreachable code.
2453         * expr.c (g95_copy_expr): Likewise.
2454         * intrinsic.c (g95_convert_type): Likewise.
2455         * misc.c (g95_code2string): Likewise.
2456         * simplify.c (g95_simplify_ishft, g95_simplify_real,
2457         g95_simplify_reshape, g95_simplify_sign, g95_simplify_sqrt): Likewise.
2458         * trans-stmt.c (g95_trans_select): Likewise.
2459         * primary.c (extend_ref): Add an assertion.
2460         * simplify.c (g95_convert_constant): Add const.
2461         * intrinsic.h: Remove g95_check_x_ni.
2462         * f95-lang.c (g95_finish): Call g95_release_include_path.
2463
2464 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2465
2466         * resolve.c (resolve_contained_functions): Fix typo introduced on
2467         2003-01-13.
2468
2469 2003-06-09  Paul Brook  <paul@nowt.org>
2470
2471         * g95.h: Include system.h not hwint.h.
2472         * many: use safe-ctype.h not ctype.h.  Change isalpha -> ISALPHA, etc.
2473         * misc.c (g95_getmem): Use xmalloc/memset instead of calloc.
2474
2475 2003-06-09  Paul Brook  <paul@nowt.org>
2476
2477         * g95.h (g95_symbol): Add fields for COMMON and EQUIVALENCE variables.
2478         * Make-lang.in (F95_OBJS): Add files for COMMON and EQUIVALENCE.
2479         * trans-decl.c (g95_add_decl_to_functions): Make non-static.
2480         (g95_get_symbol_decl): Handle COMMON and EQUIVALENCE objects.
2481         (g95_generate_function_code): Translate COMMON and EQUIVALENCE
2482         objects.
2483         * trans.h (g95_trans_equivalence, g95_trans_common,
2484         g95_add_decl_to_function): Declare.
2485         * trans-common.c, trans-equivalence.c: New files.
2486
2487 2003-06-08  Steven Bosscher  <steven@gcc.gnu.org>
2488
2489         * intrinsic.c (g95_intrinsic_extension): Remove.
2490         (add_functions): Substitute g95_check_x for g95_check_x_ni
2491         everywhere.
2492         (g95_init_expr_extensions): New function.
2493         (g95_intrinsic_func_interface): Use it.
2494         * intrinsic.h: Remove extern decl for g95_intrinsic_extension.
2495         * check.c (g95_check_digit, g95_check_huge, g95_check_kind,
2496         g95_check_precision, g95_check_present, g95_check_radix,
2497         g95_check_range, g95_check_selected_real_kind): Do not set
2498         g95_intrinsic_extension.
2499         (g95_check_x_ni): Remove now duplicate of g95_check_x.
2500
2501         * expr.c (check_inquiry): Add FIXME, fixup some code style.
2502
2503 2003-06-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2504
2505         * g95.h (ref_type): Name this type explicitly.
2506         * module.c (MIO_NAME): Add specialisations of mio_name.
2507         (mio_symbol_attribute, mio_typespec, mio_array_ref,
2508         mio_array_spec, mio_ref, mio_expr, mio_symbol): Use them.
2509         (ab_attribute): Name this type explicitly.
2510         (mio_symbol_attribute, mio_expr): Add cast to call to find_enum.
2511
2512 2003-06-05  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2513
2514         * trans-intrinsic.c (g95_conv_allocated): New function.
2515         (g95_conv_intrinsic_function): Make G95_ISYM_ALLOCATED work.
2516
2517 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
2518
2519         * f95-lang.c: Don't include g95-support.h
2520         (g95_mark_addressable): Add prototype.
2521         (g95_init_decl_processing): Remove C front end hack.
2522         * f95-tree.c: Remove file.
2523         * support.c: Remove file.
2524         * g95-support.h: Remove file.
2525         * trans-types.c (g95_init_types): Set up boolean
2526         type related tree nodes.
2527         * Make-lang.in: Remove rules for dead files and
2528         dependencies on them.
2529
2530 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
2531
2532         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove the final
2533         C front end dependency.  Also, convert.c does not depend on
2534         g95-support.h anymore.
2535         * convert.c: Don't include c-common.h and g95-support.h
2536         * f95-lang.c: Don't inlude c-common.h and c-common.def (3x).
2537         (g95_stmt_tree, g95_scope_stmt_stack, anon_aggr_type_p,
2538         stmts_are_full_exprs_p, current_stmt_tree,
2539         current_scope_stmt_stack): Remove.
2540         * g95-support.h (unsigned_conversion_warning): Kill proto.
2541         (boolean_type_node, boolean_true_node, boolean_false_node):
2542         Don't define here.  Instead, make then true tree nodes in
2543         trans-types.
2544         * support.c (c_global_trees): Die, C front end, die!!!
2545         (g95_init_c_decl_hacks): Don't touch intmax_type_node,
2546         uintmax_type_node, string_type_node and const_string_type_node.
2547         (decl_constant_value, overflow_warning): Make static functions.
2548         They are in death row too, though.
2549         (default_conversion, c_expand_asm_operands): Remove.
2550         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-stmt.c,
2551         trans.c: Don't include c-common.h.
2552         * trans-types.c (boolean_type_node, boolean_true_node,
2553         boolean_false_node): Make them real tree nodes.
2554         * trans-types.h (intmax_type_node, string_type_node,
2555         const_string_type_node): Hack to work around C dependencies
2556         in builtin-types.def.
2557
2558 2003-06-04  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2559
2560         * decl.c (decl_types): Add some iterators-like sentinels.
2561         * decl.c (match_attr_spec): Use them.
2562         Use "decl_types" instead of "int".
2563         Add cast in call to g95_match_strings.
2564         * dump-parse-tree.c (g95_show_namespace):  Use "g95_intrinsic_op"
2565         instead of "int".
2566         * g95.h (g95_intrinsic_op): Add some iterators-like sentinels.
2567         (g95_interface_info): Use "g95_intrinsic_op".
2568         * dump-parse-tree.c (g95_show_namespace): Use them.
2569         * interface.c (g95_check_interfaces): Use them.
2570         * module.c (read_module, write_module): Use them.
2571         * symbol.c (g95_get_namespace, g95_free_namespace): Use them.
2572         Use "g95_intrinsic_op".
2573         * interface.c (check_operator_interface): Use "g95_intrinsic_op".
2574         Add a default case in switch statement.
2575         * intrinsic.h (g95_generic_isym_id): Moved to...
2576         * g95.h (g95_generic_isym_id): here.
2577         (g95_intrinsic_sym): Use "g95_generic_isym_id".
2578         * intrinsic.c (make_generic): Use "g95_generice_isym_id".
2579         * trans-intrinsic.c (g95_intrinsic_map_t,
2580          g95_conv_intrinsic_lib_funtion): Use "g95_generice_isym_id".
2581         * match.c (g95_match_intrinsic_op): Add cast in call to
2582         g95_match_strings.
2583
2584 2003-06-03  Steven Bosscher  <steven@gcc.gnu.org>
2585
2586         * support.c (skip_evaluation, warn_conversion, lvalue_p,
2587         lvalue_or_else, pedantic_lvalue_warning, warn_for_assignment,
2588         constant_fits_type_p, convert_and_check,
2589         unsigned_conversion_warning): Remove these ugly remnants
2590         we inherited from the C front end.
2591         (function_types_compatible): Remove '#if 0'-edcode.
2592         (build_modify_expr): Likewise.
2593         (convert_for_assignment): Don't use the deceased functions.
2594         The parameter fundecl is now unused.
2595         (decl_constant_value): Always just return decl.  In fact
2596         this function is not used at present, but it might be in
2597         the future, when we start using the tree inliner.
2598         (overflow_warning, default_conversion, c_expand_asm_operands):
2599         Abort when these are called, they are part of the C type
2600         checking implementation and therefore poison to Fortran.
2601
2602 2003-06-04  Steven Bosscher  <steven@gcc.gnu.org>
2603
2604         * Make-lang.in (F95_ADDITIONAL_OBJS): Don't depend on
2605         c-pretty-print.o and c-dump.o.  Add a comment on why we
2606         depend on c-semantics.c.
2607         * f95-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN):
2608         Don't use the C front end tree dumper hook to dump the
2609         language specific tree representation -- we don't have
2610         one.  So instead, inherit the default langhook.
2611
2612 2003-06-02  Paul Brook  <paul@nowt.org>
2613
2614         * trans-expr.c (g95_conv_variable): Remove incorrent assertion.
2615
2616 2003-06-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2617
2618         * check.c (g95_check_associated): Use proper types.  Remove
2619         extraneous argument in call to g95_error().
2620
2621 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2622
2623         * resolve.c (resolve_operator): Make logical operands convert to the
2624         type with higher kind.
2625
2626 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2627
2628         * check.c (g95_check_associated): Make sure both pointer and target has
2629         the same type and rank. Null pointer or array section with vector
2630         subscript as target are not allowed.
2631         * trans.h: Declare gfor_fndecl_associated.
2632         * trans-decl.c: (g95_build_builtin_function_decls): Initialize
2633         gfor_fndecl_associated.
2634         * trans-intrinsic.c (g95_conv_associated): New function.
2635         (g95_conv_intrinsic_function): Make G95_ISYM_ASSOCIATED work.
2636
2637 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2638
2639         * trans-array.c (g95_conv_expr_descriptor): Set the base of POINTER
2640         according to POINTER itself rather than TARGET.
2641         (g95_conv_expr_descriptor): Make lbound start at 1.
2642         * trans-expr.c (g95_trans_pointer_assign): Fix a bug for Nullify.
2643
2644 2003-06-01  Paul Brook  <paul@nowt.org>
2645
2646         * expr.c (g95_type_convert_binary): Make it match the standard.
2647         * g95.texi: Remove dead link.
2648
2649 2003-06-01  Steven Bosscher  <steven@gcc.gnu.org>
2650
2651         * g95.texi: Cleanup somewhat in preparation for inclusion
2652         in GCC CVS.
2653
2654 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2655             Canqun Yang  <canqun@yahoo.com.cn>
2656
2657         * resolve.c (compare_bound_int, resolve_where_shape): Proper return
2658         type.
2659         (g95_find_forall_index): Return proper value.
2660         (g95_resolve_assign_in_forall, g95_resolve_forall): Use proper type to
2661         compare the return value from g95_find_forall_index.
2662
2663 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2664         * g95.h, io.c (g95_st_label): Remove "length".
2665         (g95_symtree): Remove "link".
2666         (g95_case): Remove "code".
2667         * arith.c, arith.h (g95_compare_string, g95_convert_integer,
2668         g95_convert_real): Make an argument pointer to const.
2669         * decl.c (colon_seen): Add a TODO.
2670         * interface.c (g95_compare_types): Fix typo.
2671         * interface.c (compare_interfaces): Preserve value of "p".
2672         * intrinsic.c (sort_actual): Remove "i".
2673         * match.c (g95_match_assign): Proper type in call to g95_match().
2674         * parse.c (next_free): Avoid duplicate call due to macro.
2675         * parse.c (check_statement_label): wrong type in call to g95_error.
2676         * primary.c (match_real_constant): Add a TODO.
2677         * resolve.c (resolve_select):  Remove useless conditional.
2678         * simplify.c (g95_simplify_repeat): Proper assignment to
2679         "value.character.string".
2680         * simplify.c (g95_simplify_reshape): Wrong variable in call to
2681         g95_error.
2682
2683 2003-05-20  Canqun Yang  <canqun@yahoo.com.cn>
2684
2685         * trans-stmt.c: Remove unnecessary include file defaults.h.
2686
2687 2003-05-19  Lifang Zeng  <zlf605@hotmail.com>
2688
2689         * trans-stmt.c (g95_trans_forall_loop): Handle FORALL with negative
2690         stride.
2691         (g95_trans_forall): Allow arbitrary number of FORALL indexes and
2692         actual variables used as FORALL indexes.
2693
2694 2003-05-15  Paul Brook  <paul@nowt.org>
2695
2696         * trans-array.c (g95_trans_static_array_pointer): Use
2697         null_pointer_node.
2698         (g95_trans_deferred_array): Initialize static array pointers.
2699         * trans-expr.c (g95_conv_function_call): Use formal arglist to
2700         correctly pass POINTER and absent CHARACTER arguments.
2701
2702 2003-05-14  Lifang Zeng  <zlf605@hotmail.com>
2703
2704         * resolve.c (g95_resolve_forall): Resolve FORALL construct/statement.
2705         (g95_resolve_forall_body): Resolve FORALL body.
2706         (g95_resolve_where_code_in_forall): Resolve WHERE inside FORALL.
2707         (g95_resolve_assign_in_forall): Resolve assignment inside FORALL.
2708         (g95_find_forall_index): Check whether the FORALL index appears in
2709         the expression or not.
2710         (resolve_code): Modified.
2711
2712 2003-05-14  Paul Brook  <paul@nowt.org>
2713
2714         * iresolve.c (g95_resolve_spread): Convert ncopies to index_type.
2715
2716 2003-05-13  Paul Brook  <paul@nowt.org>
2717
2718         * trans-types.c (g95_max_array_element_size): Now a tree node.
2719         (g95_init_types): Work out max size properly.
2720         (g95_get_dtype_cst): Modify to match.
2721
2722 2003-05-11  Paul Brook  <paul@nowt.org>
2723
2724         * trans-io.c (add_case): Create a label decl for case labels.
2725
2726 2003-05-11  Paul Brook  <paul@nowt.org>
2727
2728         * arith.c (g95_integer_index_kind): New variable.
2729         * f95-lang.c (g95_init): Move frontend initialization here ...
2730         (g95_post_options): ... from here.
2731         * g95.h (g95_index_integer_kind, g95_resolve_index): Declare.
2732         * intrinsic.c (add_functions): Use index kinds.
2733         * iresolve.c: Convert to index_kind where needed.
2734         * resolve.c (g95_resolve_index): Make public, use index_kind.
2735         (resolve_array_ref): Adjust to match.
2736         * trans-array.c: Rename g95_array_index_kind to g95_index_integer_kind.
2737         * trans-stmt.c: Ditto.
2738         * trans-types.c: Ditto.
2739         * trans-types.h (g95_array_index_kind): Remove declaration.
2740         * trans-expr.c (g95_conv_expr_present): Use null_pointer_node.
2741
2742 2003-05-07  Paul Brook  <paul@nowt.org>
2743
2744         * trans-const.c (g95_conv_mpz_to_tree): Typecast constant.
2745         * trans-intrinsic.c (g95_conv_intrinsic_bound): Convert type
2746         of bound indices.
2747
2748 2003-05-07  Paul Brook  <paul@nowt.org>
2749
2750         * trans-array.c (trans_static_array_pointer,
2751         g95_trans_array_constructor_value, g95_conv_array_initializer,
2752         g95_conv_structure): CONSTRUCTOR nodes only have one operand.
2753         (g95_add_loop_ss_code): Convert subscripts to the correct type.
2754         * trans-stmt.c (g95_trans_character_select): Ditto.
2755         * trans-types.c (g95_init_types): Ditto.
2756
2757 2003-05-07  Steven Bosscher  <steven@gcc.gnu.org>
2758
2759         * f95-lang.c (expand_function_body): Use input_line, not lineno.
2760         * trans-decl.c (g95_generate_function_code,
2761         g95_generate_constructors): Likewise.
2762         * trans.c (g95_trans_runtime_check, g95_add_block_to_block,
2763         g95_get_backend_locus, g95_set_backend_locus, g95_trans_code):
2764         Likewise.
2765
2766 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2767         * trans-types.c (g95_get_derived_type): Fix bug for DERIVED type
2768         with components point to the DERIVED type itself, and two DERIVED
2769         type with components point to each other.
2770         * trans-expr.c (g95_conv_componet_ref): Modified
2771
2772 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
2773         * trans-expr.c (g95_conv_expr): Translate EXPR_NULL into
2774         null_pointer_node.
2775         (g95_trans_pointer_assign): Implement Nullify.
2776
2777 2003-05-01  Paul Brook  <paul@nowt.org>
2778
2779         * trans-array.c (g95_walk_function_expr): Cope with NULL esym.
2780         * trans-decl.c (g95_get_symbol_decl): Don't mangle dummy functions.
2781
2782 2003-05-01  Paul Brook  <paul@nowr.org>
2783
2784         * trans-array.c, trans.c, trans-expr.c, trans-intrinsic.c,
2785         trans-stmt.c: Replace empty_stmt_node with build_empty_stmt () and
2786         IS_EMPTY_STMT.
2787
2788 2003-05-01  Canqun Yang  <canqun@yahoo.com.cn>
2789
2790         * trans-stmt.c (g95_trans_integer_select): Add a parameter to build
2791         CASE_LABEL_EXPR.
2792
2793 2003-04-28  Paul Brook  <paul@nowt.org>
2794
2795         * iresolve.c (g95_resolve_transpose): COMPLEX types are twice as big
2796         as their kind suggests.
2797         (g95_resolve_reshape): Ditto.
2798
2799 2003-04-28  Chun Huang  <compiler@sohu.com>
2800
2801         * trans-expr.c (g95_conv_substring_expr): New function.
2802         (g95_conv_expr): Use it.
2803
2804 2003-04-28  Paul Brook  <paul@nowt.org>
2805
2806         * iresolve.c (g95_resolve_transpose): Make it match the
2807         implementation.
2808         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add TRANSPOSE.
2809
2810 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2811
2812         * trans-types.c (g95_add_field_to_struct): New function to
2813         add a field to a UNION_TYPE or RECORD_TYPE.
2814         * trans-types.h (g95_add_field_to_struct): Prototype.
2815         (g95_get_derived_type): Use g95_add_field_to_struct to add
2816         components.
2817         * trans-io.c (g95_add_field): Remove.
2818         (ADD_FIELD): Use new g95_add_field_to_struct function.
2819         (ADD_STRING): Likewise.
2820         * trans-stmt.c (g95_trans_select): Likewise.
2821         (g95_add_field): Remove duplicated function.
2822
2823 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
2824
2825         Port implementation for CHARACTER SELECT from Andy's tree.
2826         * trans-stmt.c (g95_trans_character_select): Implement character
2827         select. (g95_add_field): New function.
2828         * trans-decl.c: Declare 'gfor_gndecl_select_string'.
2829         (g95_build_builtin_function_decls): Add 'gfor_fndecl_select_string'.
2830         * g95.h (struct g95_case): Add field 'int n'.
2831         * trans.h: Declare 'gfor_fndecl_select_string'.
2832
2833 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
2834
2835         * bbt.c (duplicate_key, g95_insert_bbt_with_overlap): Remove.
2836         (g95_insert_bbd): Die on duplicates.
2837         * g95.h (g95_insert_bbt_with_overlap): Delete prototype.
2838
2839 2003-04-14  Steven Bosscher  <steven@gcc.gnu.org>
2840
2841         * g95.texi: Require GMP 4.0 -- like we actually
2842         do.  Explain the testsuite and what-goes-where.
2843         Don't use undefined texinfo symbol.  Break very
2844         long line.  Remove finished item from the list
2845         of open projects.
2846
2847 2003-04-11  Canqun Yang  <canqun@yahoo.com.cn>
2848
2849         * trans-stmt.c (g95_evaluate_where_mask): Give mask temporaries
2850         LOGICAL type.
2851
2852 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
2853
2854         * trans-stmt.c (g95_trans_forall): Implement WHERE inside FORALL.
2855         (g95_trans_forall_body): New function.
2856
2857 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
2858
2859         * resolve.c (resove_where): New function.
2860         (resolve_where_shape): New function.
2861         (resolve_code): Add call to 'resolve_where'
2862         * trans-stmt.c (g95_trans_where): Modified.
2863         (g95_trans_where_2): New function.
2864         (g95_trans_where_assign): New function.
2865         (g95_evaluate_where_mask): New function.
2866         (g95_add_to_stmt_list): New function.
2867         (g95_get_temp_expr): New function.
2868         * trans.h (where_stmt_list): New structure.
2869
2870 2003-04-10  Paul Brook  <paul@nowt.org>
2871
2872         * g95spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
2873         (DEFAULT_WORD_SWITCH_TAKES_ARG): Ditto.
2874
2875 2003-04-10  Steven Bosscher  <steven@gcc.gnu.org>
2876
2877         Update after mainline -> tree-ssa-branch merge.
2878         * f95-lang.c (g95_mark_addressable): Update put_var_into_stack
2879         call.
2880         (g95_init): Update for new lang_hooks definition.
2881         (g95_post_options): New langhook.
2882         (LANG_HOOK_POST_OPTIONS): Clear, then define to g95_post_options.
2883         * scanner.c (g95_new_file): Comment update.
2884
2885 2003-04-09  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2886
2887         * g95.h, lang-options.h: Add -Wimplicit-interface.
2888         * options.c (g95_init_options, g95_parse_arg): Set it.
2889         * interface.c (check_intents): Warn about call with implicit
2890         interface.
2891         * resolve.c (resolve_unknown_f, resolve_unknown_s): Call
2892         g95_procedure_use.
2893
2894 2003-04-05  Paul Brook  <paul@nowt.org>
2895
2896         * iresolve.c (g95_resolve_spread): Don't resole based on type.
2897         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_SPREAD.
2898
2899 2003-03-29  Paul Brook  <paul@nowt.org>
2900
2901         * iresolve.c (g95_resolve_pack): Don't bother resolving based on type.
2902         (g95_resolve_unpack): Ditto.
2903         * trans-intrinsic.c (g95_conv_intrinsic_merge): New Function.
2904         (g95_conv_intrinsic_function): Use it.  Remove PACK and UNPACK.
2905         (g95_is_intrinsic_libcall): Add PACK and UNPACK.
2906
2907 2003-03-25  Paul Brook  <paul@nowt.org>
2908
2909         * arith.c (g95_unary_user, g95_user): Remove dead functions.
2910         * arith.h: Ditto.
2911         * array.c (g95_free_array_ref): Ditto.
2912         * g95.h: Ditto.
2913         * symbol.c (g95_use_derived_tree): Ditto.
2914         * intrinsic.c (add_functions): Use simplification for SCALE.
2915         * primary.c (g95_match_rvalue): Test sym, not symtree.
2916
2917 2003-03-25  Paul Brook  <paul@nowt.org>
2918
2919         * trans-decl.c (build_function_decl): Add parameter before it gets
2920         turned into a constant.
2921         * iresolve.c (g95_resolve_eoshift): Resolve to a useful name.
2922         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_EOSHIFT.
2923         * trans-decl.c (g95_create_module_variable): Don't pushdecl constants.
2924
2925 2003-03-22  Paul Brook  <paul@nowt.org>
2926
2927         * trans-array.c (g95_conv_array_initializer): Allow scalar
2928         expressions.
2929         * trans-decl.c (g95_finish_var_decl): Result variables are not
2930         module variables.
2931         * trans-intrinsic.c (g95_conv_intrinsic_transfer): New function.
2932         (g95_conv_intrinsic_function): Use it.
2933         * trans-types.h (g95_type_spec): Remove dead declaration.
2934
2935 2003-03-21  Paul Brook  <paul@nowt.org>
2936
2937         * trans-decl.c (g95_build_function_decl): Mark string parameters.
2938
2939 2003-03-20  Paul Brook  <paul@nowt.org>
2940
2941         * trans-decl.c (g95_build_function_decl): Put character length
2942         parameters at the end of the function declaration.
2943         * trans-expr.c (g95_conv_function_call): Ditto.
2944         * trans-types.c (g95_get_function_type): Ditto.
2945
2946 2003-03-20  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2947
2948         * resolve.c (resolve_formal_arglist): Don't impose intent for
2949         procedure arguments of pure functions.
2950         (resolve_select): Remove redundant assignment.
2951
2952 2003-03-19  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2953
2954         * arith.c (validate_logical), g95.h, options.c (g95_init_options):
2955         Remove option l1.
2956         * g95.h, intrinsic.c(g95_get_intrinsic_sub_symbol): Add const.
2957         * iresolve.c(g95_resolve_cpu_time, g95_resolve_random_number): Add
2958         const.
2959         * lang-options.h: Remove -finline-repack-arrays. Add -fg77-calls.
2960         Order list.
2961         * symbol.c (g95_add_type): Fix typo in comment.
2962
2963
2964 2003-03-16  Paul Brook  <paul@nowt.org>
2965
2966         * dump-parse-tree.c (g95_show_code_node): Print resolved sym name.
2967         * expr.c (g95_build_call): Remove.
2968         * f95-lang.c (puchdecl_top_level): New function.
2969         * g95.h (g95_code): Store resolved symbol, not just the name.
2970         * intrinsic.c (g95_intrinsic_namespace): New global namespace.
2971         (g95_intirinsic_init_1, g95_intrinsic_done_1): Use it.
2972         (g95_get_intrinsic_sub_symbol): New function.
2973         * iresolve.c (g95_resolve_cpu_time): Use it.
2974         (g95_resolve_random_number): Ditto.
2975         * resolve.c: Set code->resolved_sym instead of code->sub_name.
2976         * trans-decl.c (g95_get_extern_function_decl): Give external decls
2977         the correct DECL_CONTEXT.  Add global symbold to the global scope.
2978         * trans-stmt.c (g95_trans_code): Remove hacks now the fronted is
2979         fixed.
2980
2981 2003-03-16  Paul Brook  <paul@nowt.org>
2982
2983         * g95.h (g95_option_t): Add g77_calls. Remove inline_repack_arrays.
2984         * options.c (g95_parse_arg): Ditto.
2985         * module.c (mio_symbol_attribute): Handle the always_explicit bit.
2986         * resolve.c (resolve_formal_arglist): The always_explicit sould be set
2987         for the procedure, not the parameter.
2988         * trans-array.c (g95_trans_g77_array): New function.
2989         (g95_trans_assumed_size): Use it.
2990         (g95_trans_dummy_array_bias): Ditto.
2991         (g95_conv_array_parameter): Handle g77 arrays. Move existing body ...
2992         (g95_conv_expr_descriptor): ... to here.  Update callers.
2993         * trans-decl.c (g95_build_dummy_array_decl): Handle g77 arrays.
2994         (g95_get_symbol_decl): Avoid processing g77 arrays multiple times.
2995         * trans-expr.c (g95_conv_function_call): Handle g77 arrays.
2996         * trans-intrinsic.c (g95_get_symbol_for_expr): Never use g77 arrays.
2997         * trans-types.c (g95_is_nodesc_array): Handle g77 arrays.
2998         (g95_sym_type): Ditto.
2999
3000 2003-03-15  Paul Brook  <paul@nowt.org>
3001
3002         * trans-array.c (g95_walk_elemental_function_args): Don't amputate the
3003         first chain.
3004         * trans-expr.c (g95_conv_function_call): Use the resolved symbol.
3005
3006 2003-03-14  Paul Brook  <paul@nowt.org>
3007
3008         * trans-array.c (g95_array_is_packed): Remove.
3009         (g95_conv_array_base): Correctly handle all descriptorless cases.
3010         (g95_conv_array_stride): Use descriptorless strides.
3011         (g95_trans_dummy_array_bias): Don't always repack the array.
3012         (g95_build_dummy_array_decl): Automatic dummy arrays are only partial
3013         packed.
3014         * trans-types.c (g95_get_nodesc_array_type): Differentiate between
3015         dummy and non-dummy arrays...
3016         (g95_sym_type, g95_get_derived_type): ... like these.
3017         (g95_get_array_type_bounds): Allow discontiguous arrays.
3018
3019 2003-03-12  Paul Brook  <paul@nowt.org>
3020
3021         * array.c (g95_resolve_array_spec): Fix comment.
3022         * g95.h (symbol_attributes): New flag always_explicit.
3023         * resolve.c (resolve_formal_arglist): Set it always_explicit.
3024         * iresolve.c (g95_resolve_lbound, g95_resolve_ubound): Simplify.
3025         * trans-array.c (g95_conv_descriptor_dimension): Remove dead assert.
3026         (g95_trans_array_bounds): Allow assumed shape arrays.
3027         (g95_trans_repack_array): Remove.
3028         (g95_trans_dummy_array_bias): Rewite to use descriptorless arrays.
3029         * trans-decl.c (g95_build_qualified_array): Only ignore absent
3030         bounds for assumed size arrays.
3031         (g95_build_dummy_array_decl): Use descriptorless arrays.
3032         * trans-expr.c (g95_conv_expr_present): Allow descriptorless arrays.
3033         (g95_trans_pointer_assign): Fix typo.
3034         * trans-intrinsic.c (g95_conv_intrinsic_function_args): Remove dead
3035         code.
3036         (g95_conv_intrinsic_bound): Rewrite to handle descriptorless arrays.
3037         * trans-types.c (g95_get_nodesc_array_type): Allow non-packed arrays.
3038         Also modify callers.
3039         * trans-types.h (g95_get_nodesc_array_type): Modify prototype.
3040
3041 2003-03-08  Paul Brook  <paul@nowt.org>
3042
3043         * trans-array.c (g95_walk_elemental_functions): Don't reverse the SS.
3044         (g95_conv_array_ubound): Provide dummy value for assumed size arrays.
3045         * resolve.c (compare_spec_to_ref): Allow full array sections.
3046
3047 2003-03-08  Paul Brook  <paul@nowt.org>
3048
3049         * expr.c (g95_simplify_expr): Also simplify array index and
3050         substring expressions.
3051         * resolve.c (compare_spec_to_ref): Check for assumed size bounds.
3052         * trans-array.c (g95_trans_array_bounds): New function.
3053         (g95_trans_auto_array_allocation): Use it.
3054         (g95_trans_assumed_size): Rewrite.
3055         * trans-decl.c (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
3056         (gfor_fndecl_repack): Remove.
3057         (g95_build_qualified_array): Handle absent upper bounds.
3058         (g95_build_dummy_array_decl): Assumed shape arrays are descriptorless.
3059         (g95_get_symbol_decl): Update.
3060         (g95_build_intrinsic_function_decls): Initialize new decls.
3061         * trans.h (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
3062         (gfor_fndecl_repack): Remove.
3063         * trans-io.c (g95_build_io_library_fndecls): Correct prototypes.
3064         * trans-types.c: (g95_build_array_type): Merge duplicated code..
3065         (g95_get_nodesc_array_type): Handle absent bounds.
3066         * trans-types.h (g95_get_nodesc_array_type): Declare.
3067
3068 2003-03-04  Paul Brook  <paul@nowt.org>
3069
3070         * f95-lang.c (DEF_FUNCTION_TYPE_VAR_3): Define before including
3071         builtin-types.def.
3072
3073 2003-03-02  Paul Brook  <paul@nowt.org>
3074
3075         * options.c (g95_init_options): Drfault to 1.
3076         (g95_pasrse_arg): Add -frepack-arrays, use strcmp.
3077         * trans-array.c (g95_conv_array_data, g95_conv_array_base,
3078         g95_conv_array_stride,g95_conv_array_lbound, g95_conv_array_ubound):
3079         Handle non-constant size automatic arrays.
3080         (g95_conv_section_upper_bound, g95_conv_section_startstride): Use
3081         generic bound functions.
3082         (g95_trans_auto_array_allocation): Don't create a descriptor.
3083         (g95_trans_assumed_size): New function (broken).
3084         (g95_trans_dummy_array_bias): Remove unused var.
3085         * trans-array.h (g95_trans_assumed_size): Declare.
3086         * trans-decl.c (create_index_var): New fuction.
3087         (g95_build_qualified_array): New function.
3088         (g95_get_symbol_decl): Use it.
3089         (g95_trans_deferred_vars): Handle assumed shape seperately.
3090         * trans-types.c (get_element_type): Handle heap allocated arrays.
3091         (g95_is_nodesc_array): Include non-const size arrays.
3092         (g95_get_nodesc_array_type): Ditto.
3093
3094 2003-02-23  Paul Brook  <paul@nowt.org>
3095
3096         * trans-array.c (g95_array_init_size): Should use stride, not size of
3097         last dimension.
3098
3099 2003-02-18  Paul Brook  <paul@nowt.org>
3100
3101         * trans-expr.c (g95_trans_arrayfunc_assign): Nove elemental check
3102         after intrinsic function check.
3103
3104 2003-02-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3105
3106         * io.c (match_io): Fix missing return value and remove useless
3107         assignment.
3108         * match.c (g95_match): Remove useless assignment.
3109         * module.c (parse_string):  Remove useless post increment.
3110         * simplify.c (g95_simplify_verify): Remove useless assignment.
3111
3112 2003-02-15  Paul Brook  <paul@nowt.org>
3113
3114         * expr.c (restricted_intrinsic): Handle bad values gracefully.
3115         * g95.h (symbol_attribute): Add referenced member.
3116         (g95_symbol): Add dummy_order member.
3117         (g95_set_sym_referenced): Declare.
3118         * match.c (g95_match_assignment, g95_match_call): Use it
3119         * primary.c (match_actual_arg, g95_match_rvalue,
3120         g95_match_variable): Ditto.
3121         * symbol.c (next_dummy_order): New variable.
3122         (g95_set_sym_referenced): New function.
3123         (check_done): New function.
3124         (g95_add_*): Use it.
3125         * trans-decl.c: Make formatting conform to GCC standards.
3126         (g95_defer_symbol_init): Add dummy variables in the right order.
3127         (g95_get_symbol_decl): Only accept referenced variables.
3128         (g95_create_module_variable): Module variables are always required.
3129         (generatr_local_decls): New function.
3130         (generate_local_vars): New function.
3131         (g95_generate_function_code): Use it.
3132
3133 2003-02-13  Paul Brook  <paul@nowt.org>
3134
3135         * trans-decl.c (g95_conv_struct_cons): Remove.
3136         (g95_get_symbol_decl): Use g95_conv_expr for structure initializers.
3137         * trans-expr.c (g95_conv_structure): New function.
3138         (g95_conv_expr): Use it.
3139
3140 2003-02-09  Paul Brook  <paul@nowt.org>
3141
3142         * trans-array.c (g95_array_init_size): Don't evaluate the linit
3143         expressions multiple times.
3144         (g95_trans_auto_arry_allocation): Use pointer not tmp.
3145
3146 2003-02-08  Paul Brook  <paul@nowt.org>
3147
3148         * module.c (mio_symtree_ref): Declare as static.
3149         (mio_expr): Remove dead code.
3150         (read_module): Set the symtree link for fixups.
3151         * trans-intrinsic.c (g95_conv_intrinsic_round): Rename...
3152         (build_round_expr): ... to this.
3153         (g95_conv_intrinsic_aint): New function.
3154         (g95_conv_intrinsic_function): Use it.
3155
3156 2003-02-08  Paul Brook  <paul@nowt.org>
3157
3158         * trans-array.c (g95_trans_array_constructor_value): Use the acutal
3159         offset after modificaton, not the increment expression.
3160         * dependency.c: Kill excess whitespace.
3161
3162 2003-02-07  Sanjiv Gupta  <sanjivg@noida.hcltech.com>
3163
3164         * dependency.h: Remove some function declarations.
3165         * dependency.c (get_no_of_elements): Change this function not to
3166         return int.
3167         * other: Add comments for all modified functions.
3168
3169 2003-02-06  Paul Brook  <paul@nowt.org>
3170
3171         * g95spec.c (lang_specific_functions): Fix initializer warning.
3172         * dump-parse-tree.c (g95_show_expr): Use typespec instead of symtree
3173         for structure type names.
3174         * trans-decl.c (g95_cons_structure_cons): New function.
3175         (g95_get_symbol_decl): Use it.
3176         * trans-expr.c (g95_conv_component_ref): Remove duplicate pointer
3177         referencing code.
3178
3179 2003-02-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3180
3181         * resolve.c (compare_cases): Add const to casts.
3182
3183 2003-01-30  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3184
3185         * g95.h (g95_check_f): Change a1 to f1m.
3186         * intrinsic.c (add_sym_1m, check_specific,
3187         g95_intrinsic_func_interface): Use it.
3188
3189         * module.c (init_pi_tree): Remove useless cast.
3190         (fp2): Fix argument type.
3191
3192         * parse.c (parse_select_block): Add comment.
3193
3194 2003-02-05  Toon Moene  <toon@moene.indiv.nluug.nl>
3195
3196         * lang-options.h: Fix warning involving C90 concatenated
3197         strings.
3198
3199 2003-02-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3200             Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3201
3202         * io.c (format_asterisk): Complete initializer to kill warning.
3203         * arith.c (DEF_G95_INTEGER_KIND, DEF_G95_LOGICAL_KIND,
3204         DEF_G95_REAL_KIND, MPZ_NULL, MPF_NULL): New #defines.
3205         (g95_integer_kinds, g95_logical_kinds, g95_real_kinds): Use the
3206         new defines to complete initializers.  Kills all warnings.
3207
3208         * Make-lang.in: Comment cleanup.
3209
3210 2003-02-05  Paul Brook  <paul@nowt.org>
3211
3212         * array.c (g95_free_constructor): Handle NULL expressions.
3213         * resolve.c (resolve_structure_cons): Ditto.
3214         * decl.c (g95_match_null): New Function.
3215         (variable_decl): Use it.
3216         * module.c (mio_expr): Don't bother saving symtree for EXPR_STRUCTURE.
3217         * primary.c (g95_match_runtime): Don't use symtree for EXPR_STRUCTURE.
3218         * trans-types.c (g95_set_decl_attributes): Remove empty function.
3219
3220 2003-02-05  Paul Brook  <paul@nowt.org>
3221
3222         * trans.h (build1_v): New macro.
3223         (build_v): Remove pointless and incorrect prototype.
3224         * various: Use build1_v for GOTO_EXPR and LABEL_EXPRs.
3225         * f95-lang.c (g95_init_builtin_decls): DEF_BUILTIN takes 10 args.
3226
3227 2003-02-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3228
3229         * Make-lang.in (F95_OBJS): Remove one more dead file.
3230
3231 2003-02-01  Paul Brook  <paul@nowt.org>
3232
3233         * lang-specs.h: Don't pass -ffixed-form to the linker.
3234         * trans-decl.c (g95_generate_function_code): Clear saved decl chain.
3235
3236 2003-02-01  Paul Brook  <paul@nowt.org>
3237
3238         * Make-lang.in (F95_OBJS): Remove dead files.
3239         * trans-array.c (g95_array_init_size): Do the right thing when
3240         ubound=NULL.
3241         * trans-decl.c (g95_generate_function_code): Initialize deffered
3242         symbol list before translating contained subroutines.
3243         * trans-expr.c (g95_conv_expr, g95_conv_expr_reference): Substitute
3244         scalar invariant values here...
3245         (g95_conv_variable, g95_conv_function_call): ... instead of here ...
3246         * trans-intrinsic.c (g95_conv_intrinsic_function_args): .. and here.
3247
3248 2003-01-29  Paul Brook  <paul@nowt.org>
3249
3250         * trans-array.c (g95_add_loop_code): Put pre code in the right block.
3251         (g95_walk_elemental_function_args): Reverse chains before adding.
3252         (g95_reverse_ss): Move about a bit.
3253         * trans-expr.c (g95_conv_function_call): Handle scalar intrinsic
3254         function arguments.
3255
3256 2003-01-28  Paul Brook  <paul@nowt.org>
3257
3258         * intrinsic.c (resolve_intrinsic): Use correct union member.
3259         * trans-array.c (g95_trans_dummy_array_bias): Don't touch absent
3260         parameters.
3261         * trans-decl.c (g95_get_symbol_decl): Don't translate initializers for
3262         use associated variables.
3263         * trans-intrinsic.c (g95_conv_intrinsic_present): Move body ...
3264         * trans-expr.c (g95_conv_expr_present): ... to here.
3265         * trans.h: Declare it.
3266         * trans-types.c (g95_sym_type): Assume subroutine if not specified.
3267
3268 2003-01-28  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
3269
3270         * array.c (expand_iterator): Suppress useless assignment.
3271         * decl.c (match_char_spec): Ditto.
3272         * io.c (match_io_iterator): Ditto.
3273         * primary.c (match_real_constant): Ditto.
3274         * interface.c (fold_unary, g95_free_interface, g95_extend_expr):
3275         Ditto.  Also, use g95_intrinsic_op not int for intrinsic operators.
3276         * matchexp.c (match_add_operand, match_level_5): Likewise.
3277         * module.c (parse_atom, find_enum): Likewise.
3278         * resolve.c: move #include <string.h>
3279         (resolve_select): Fix serious typo.
3280
3281 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.n>
3282
3283         * Make-lang.in: Don't build with broken tree-ssa-pre.
3284
3285 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3286
3287         * resolve.c (resolve_index): Add a TODO.
3288         * symbol.c: Remove useless "#include <ctype.h>".
3289
3290 2003-01-27  Paul Brook  <paul@nowt.org>
3291
3292         * check.c (check_rest): Allow different type kinds as an extension.
3293         * g95.h (g95_resolve_f): Add f1m.
3294         * intrinsic.c (add_sym_1m, resolve_intrinsic): Use it.
3295         * intrinsic.h: Chenge prototypes for MIN and MAX.
3296         * iresolve.c (g95_resolve_minmax): New function.
3297         (g95_resolve_min, g95_resolve_max): Use it.
3298         * trans-intrinsic.c (g95_trans_intrinsic_minmax): Only evaluate
3299         arguments once.
3300         (g95_conv_intrinsic_present): Fix logic.
3301
3302 2003-01-27  Steven Bossche  <s.bosscher@student.tudelft.nl>
3303
3304         * g95.h (g95_case): Don't be a tree, be a double linked list.
3305         * match.c (match_case_selector): Remove redundant semantics check.
3306         Clean up a few goto's to make it a tiny little bit faster.
3307         * resolve.c (case_tree): Die.
3308         (compare_cases): Accept and compare unbounded cases too.
3309         (check_case_overlap): Don't build a tree.  Instead, merge-sort the
3310         whole list of g95_cases passed from resolve_select.
3311         (sane_logical_select): Die.
3312         (check_case_expr): Return FAILURE if a CASE label is of the wrong
3313         type kind.
3314         (resolve_select): Fixup case expression for computed GOTOs, put it
3315         in expr, not expr2, for easier handing in the parse tree dumper and
3316         the code generator.  Rewrite the rest of the function: Kill
3317         unreachable case labels and unreachable case blocks.
3318         * dump-parse-tree.c (g95_show_code_node): Always dump expr for
3319         an EXEC_SELECT, not case2 anymore.
3320         * trans-const.c (g95_conv_constant_to_tree): New function.
3321         (g95_conv_constant): Use it.
3322         * trans-const.h: Declare prototype for the new function.
3323         * trans-stmt.c (g95_trans_integer_select, g95_trans_logical_select,
3324         g95_trans_character_select): New static functions.
3325         (g95_trans_select): Rewrite.
3326
3327 2003-01-26  Paul Brook  <paul@nowt.org>
3328
3329         * intrinsic.c (add_fnctions): Properly add dreal.
3330         * trans-intrinsic.c (g95_conv_intrinsic_present): New function.
3331         (g95_conv_intrinsic_function): Use it.
3332         * trans-io.c (build_dt): Abort on internal files (unimplemented).
3333
3334 2003-01-26  Paul Brook  <paul@nowt.org>
3335
3336         Widespread changes to the handling of symbols in expressions.  These
3337         are now linked via g95_symtree nodes.
3338         * parse.c (g95_fixup_sibling symbols): New function.
3339         (parse_contained): Use it.
3340         * g95.h (symbol_attribute): Add contained.  Indicates a symbol is a
3341         contained procedure that has bee correctly fixed up.
3342         (g95_code, g95_expr): Point to a g95_symtree, not a g95_symbol.
3343
3344 2003-01-24  Paul Brook  <paul@nowt.org>
3345
3346         * trans-array.c (g95_walk_expr): Function result attributes are in
3347         sym->result.
3348         * trans-expr.c (g95_conv_function_call,
3349         g95_trans_arrayfunc_assign): Ditto.
3350         * trans-decl.c (g95_get_symbol_for_expr): Set sym->result.
3351
3352 2003-01-23  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3353
3354         * expr.c (check_restricted): Fix error message.
3355         * symbol.c (free_st_labels): Plug memleak.
3356
3357 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3358
3359         * arith.c (reduce_unary, reduce_binary_ac, reduce_binary_ca,
3360         reduce_binary_aa, reduce_binary, eval_intrinsic,
3361         eval_intrinsic_f2): Use typesafe prototypes for eval functions.
3362         * g95.h (g95_check_f, g95_simplify_f, g95_resolve_f): New unions
3363         for typesafe intrinsics helper functions.
3364         (g95_intrinsic_sym): Use them.
3365         * intrinsic.c (do_check, add_sym, add_sym_0, add_sym_1,
3366         add_sym_1s, add_sym_1m, add_sym_2, add_sym_3, add_sym_4,
3367         add_sym_5, add_conv, resolve_intrinsic, do_simplify,
3368         check_specific, g95_intrinsic_func_interface,
3369         g95_intrinsic_sub_interface): Adjust all calls to intrinsics
3370         helper functions.
3371         * trans-decl.c (g95_get_extern_function_decl): Likewise.
3372         * Make-lang.in: Don't disable warnings for strict prototypes
3373         any longer, everything is typesafe now.
3374
3375 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3376
3377         * bbt.c (duplicate_node): Make static.
3378         * module.c (module_name): Make static.
3379         * scanner.c (include_dirs): Make static.
3380
3381 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3382
3383         Hard coded _gfor_'s should not show up anymore.
3384         * g95.h (PREFIX): New macro.
3385         * iresolve.c (g95_resolve_cpu_time): Use PREFIX, not
3386         hard-coded "_gfor".
3387         (g95_resolve_random_number): Likewise.
3388         * trans-decl.c (g95_build_intrinsic_function_decls): Likewise.
3389         * trans-io.c: Remove 'prefix' macro.  Replace all uses with
3390         the new PREFIX macro from g95.h.
3391
3392 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3393
3394         The troubles of forking... Andy implemented this just now too.
3395         Let's stick to that and keep the trees close.
3396         * g95.h (g95_st_label): 'format' member is now a g95_expr.
3397         * io.c: Revert previous changes.
3398         (g95_match_format): Match the format string as a character
3399         literal expression.
3400         * match.h (g95_statement_label): Declare external.
3401         * parse.c: Revert previous changes.
3402         * symbol.c (g95_free_st_label): Free a g95_expr instead
3403         if a 'char *'.
3404         * trans-io.c: Revert previous changes.
3405         (build_dt): Use set_string to set the format string.
3406
3407 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3408
3409         * io.c (format_string): Make non-static.
3410         (g95_match_format): Remember the format string.
3411         (terminate_io): Add I/O termination for empty I/O lists.
3412         * match.h: Declare external format_string.
3413         * parse.c (check_statement_label): Attack the format string
3414         to a format label for FORMAT statements.
3415         * trans-io.c (g95_add_field): Define prefix macro.  Replace
3416         all uses of PREFIX define with a use of this macro.
3417         (build_dt): Implement formatted I/O for format labels.
3418
3419 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3420
3421         * lang-options.h: Kill "-std=F".
3422         * options.c: Remove unimplemented "-std=F".  Modify
3423         web address.
3424         * misc.c (g95_terminal_width): New function.
3425         * error.c (g95_error_init_1): Use g95_terminal_width.
3426         * g95.h: Add prototype for g95_terminal_width, remove
3427         fmode flag.
3428
3429 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3430
3431         * Make-lang.in: Fix typo.
3432
3433 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3434
3435         * g95.h (struct g95_case): Remove unused cruft, new member
3436         'where' to keep track of the locus of the default case.
3437         * match.c (g95_match_case): Add locus to the current case.
3438         (match_case_selector): Likewise.
3439         * parse.c (parse_select_block): Move semantics check for
3440         multiple DEFAULT cases out of here to...
3441         * resolve.c (check_case_overlap): ...here.  Return sooner
3442         when possible.
3443         (check_case_expr): Take two g95_cases now, use to sure the
3444         expression kinds are the same.
3445         (resolve_select): Cleanup.
3446
3447 2003-01-18  Paul Brook  <paul@nowt.org>
3448
3449         * trans-io.c: Fix typos in ported IO work (set_fla[tg]).
3450         * trans-decl.c (g95_set_symbol_decl): Handle non-array result
3451         variables.
3452         (g95_get_extern_function_decl): Put decls in the correct context.
3453
3454 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3455
3456         * trans-io.c: Port changes from Andy to set ERR flag.
3457
3458 2003-01-17  Paul Brook  <paul@nowt.org>
3459
3460         * trans-array.c: Add various comments.
3461         (g95_ss_terminator): Declare as const.
3462         (g95_walk_expr): Remove first parameter and update all callers.
3463         (g95_walk_op_expr): Initialize scalar SS properly.
3464         * trans-array.h (g95_walk_expr): Update prototype.
3465         * trans-expr.c: Update for new g95_walk_expr.
3466         * trans-intrinsic.c: Ditto.
3467         * trans-io.c: Ditto.
3468         * trans.h: Various comments for SS chains.
3469
3470 2003-01-17  Paul Brook  <paul@nowt.org>
3471
3472         * intrinsic.h (g95_generic_isym_id): Add G95_ISYM_S?_KIND, SPACING
3473         and RRSPACING.
3474         * intrinsic.c (add_functions): Use them.
3475         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto.
3476         * trans-expr.c (g95_conv_expr_lhs): Abort on impossible error.
3477
3478 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3479
3480         Fallout of a small merge conflict:
3481         * intrinsic.c: Un-revert lost patch (G95_ISYM_SCALE).
3482
3483 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3484
3485         * initrinsic.c: New add_sym_* functions for strong typing.
3486         (add_conv): Make prototype strict.
3487         * dump-parse-tree.c, dependency.c: Include config.h
3488         * resolve.c, trans-io.c: Fix typos.
3489
3490 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3491
3492         * dump-parse-tree.c (g95_show_code_node): Show the
3493         condition for a computed GOTO that was transformed
3494         to a SELECT CASE construct.
3495         * resolve.c (check_case_overlap): Revert previous switch
3496         to treaps, it was too slow and didn't catch all trouble.
3497         (resolve_symbol): Be more flexible about module procedures.
3498         * symbol.c (check_conflict): Point to relevant section in
3499         the standard for dubious conflict.  Allow procedure
3500         dummy arguments to be optional again.
3501         * trans-io (add_field): Rename to g95_add_field.  Change
3502         all callers.
3503         * trans-stmt (trans_select): Handle unbounded cases for
3504         integer SELECT CASE constructs.  Fix/add more comment.
3505
3506 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3507
3508         * g95.h: Uses GCC's function attribute macros.
3509         * error.c, module.c, parse.c, g95.h: More function attributes.
3510
3511 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3512         Forgot a file...
3513         * trans-decl.c (get_label_decl): Use TREE_LINENO instead
3514         of DECL_SOURCE_LINE, and TREE_FILENAME instead of
3515         DECL_SOURCE_FILE.
3516
3517 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3518
3519         * f95-lang.c (pushdecl): Use TREE_LINENO instead of
3520         DECL_SOURCE_LINE.
3521         * trans.c (g95_trans_code): Use annotate_all_with_file_line
3522         instead of nowdead wrap_all_with_wfl.
3523
3524 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3525
3526         * parse.c (g95_parse_file): In verbose mode, dump the parse tree
3527         before generating code, so we can still see it even if the code
3528         generation phase dies.
3529
3530 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3531
3532         * decl.c (build_sym): Split out initialization expression parts...
3533         (add_init_expr_to_sym): ...to here.
3534         (variable_decl): Add the symbol following an attribute list to the
3535         symbol tree before parsing the optional initialization expression
3536         if the symbol is not of a derived type.
3537         * primary.c (g95_match_rvalue): Don't assume a symbol always has
3538         a value if it is a PARAMETER.
3539
3540 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3541
3542         * misc.c: Don't #include <mcheck.h>
3543         * module.c: Ditto.  Kill uses of mtrace, muntrace.  If there
3544         ever was a glibc bug, then either this was never reported to
3545         glibc people, or it has been fixed for so long that there's
3546         no information you can find about it, anywhere.
3547
3548 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3549
3550         Fix warnings:
3551         * module.c (attr_bits, bt_types, array_spec_types):
3552         Switch 'const' and 'static'.
3553         * iresolve.c (g95_resolve_reshape): Make __resolve0 non-'const'.
3554
3555         GNU'ify source code:
3556         * trans-io.c: Numerous fixes, one fixed warning and a few
3557         TODO markers so that we don't forget about them.
3558
3559 2003-01-13  Paul Brook  <paul@nowt.org>
3560
3561         * intrinsic.c (add_functions): Add G95_ISYM_SCALE.
3562         * intrinsic.h (g95_generic_isym_id): Remove bogus G95_ISYM_ANINIT.
3563         Add G95_ISYM_SCALE.
3564         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto
3565         * match.c (g95_match_stop): Fix dumb == -> != error.
3566
3567 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3568
3569         * dump-parse-tree.c (show_indent): Add line breaks.  This
3570         whole dumping process needs cleanups.
3571         * f95-lang.c (g95_mark_addressable): Fix prototype to match
3572         the langhook.  Fix 'return's accordingly.
3573         * g95-support.h: Adjust prototype.
3574         * g95.h: Add 'no_backend' member to 'g95_option_t' struct.
3575         * lang-options.h: Add '-fsyntax-only'.
3576         * options.c (g95_init_options): Init 'no_backend'.
3577         (g95_parse_arg): Deal with '-fsyntax-only'.
3578         * parse.c (g95_parse_file): Do not generate code if 'no_backend'
3579         is set.
3580
3581 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3582         Patch from Arnaud
3583         * resolve.c (resolve_symbol): Assumed shape arrays must be dummy
3584         arguments.  Also make sure that if a symbol is marked INTRINSIC,
3585         an intrinsic with the symbol's name actually exists.
3586         (check_conflict): Make EXTERNAL and DIMENSION attributes conflict.
3587         Do not allow PROCEDURES to have the SAVE, POINTER, TARGET,
3588         ALLOCATABLE, RESULT, IN_NAMESPACE, OPTIONAL or FUNCTION attribute.
3589
3590 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3591
3592         * resolve.c (resolve_contained_functions): Fix condition, don't
3593         throw internal_error if a child namespace has no name.  Apparently
3594         this can be the case?
3595
3596 2003-01-11  Paul Brook  <paul@nowt.org>
3597
3598         Port changes from Andy's tree:
3599         * g95.h (g95_code): Add stop_code.
3600         * match.c (g95_match_stop): Detter syntax checking.
3601         * resolve.c (resolve_generic_f0): Return match type.
3602         (resolve_generic_f): Remove dead/duplicated code.
3603         (resolve_specific_f): Ditto.
3604         * dump-parse-tree.c (g95_show_code_node): Handle new STOP format.
3605         * trans-decl.c (gfor_fndel_stop_*): New fndecl nodes.
3606         * trans-stmt.c (g95_trans_stop): Handle new STOP format.
3607
3608 2003-01-11  Paul Brook  <paul@nowt.org>
3609
3610         * trans-array.c: Various documentation/comment changes.
3611         * trans-stmt.c: Ditto.
3612
3613
3614 2003-01-10  Paul Brook  <paul@nowt.org>
3615
3616         * options.c/h: Add -fdump-parse-tree as alias of -v.
3617
3618 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3619
3620         * dump-parse-tree.c (g95_show_namespace): Fixed another
3621         typo.  Sorry, it's Friday...
3622
3623 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3624
3625         Spotted by Tobi:
3626         * trans-array.c, trans-array.h, trans.c, trans-const.c,
3627         trans-const.h, trans-decl.c, trans-expr.c, trans.h
3628         trans-intrinsic.c, trans-io.c, trans-stmt.c, trans-stmt.h
3629         trans-types.c: Fix bogus copyright years, add 2003.
3630         * trans-types.h: Give copyright header.
3631
3632 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3633
3634         * dump-parse-tree.c (g95_show_namespace): Fixed typo.
3635         * expr.c, options.c, scanner.c: Add some more 'const' markers.
3636         * intrinsic.c: Some constant strings moved to read-only memory.
3637         * io.c (format_asterisk): Move to...
3638         * g95.h: ...here.
3639
3640 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3641
3642         * dump-parse-tree.c (g95_show_namespace): Dump implicit
3643         types for ranges instead of per-letter.  Indent the
3644         'CONTAINS' just like everything else.
3645         * resolve.c (resolve_contained_functions): Clarify comment.
3646         Explain non-obvious conditional expression.  Improve
3647         diagnostics if tyoe cannot be resolved.
3648         Port semi-fix from Andy's tree:
3649         (was_declared): Move up before first use.
3650         (generic_sym, specific_sym): New functions.  Code moved
3651         out if procedure_kind.
3652         (procedure_kind): Simplify using new functions.
3653         (resolve_generic_f): Make sure the functions we find in
3654         a parent namespace is generic.
3655         (resolve_specific_f): Ditto for specific functions.
3656
3657 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3658
3659         * trans-stmt.c, trans.c: Fix some code style issues. Add
3660         some more comment (but still not enough!).
3661
3662 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3663
3664         * symbol.c (flavors, procedures, intents, acces_types,
3665         access_types, ifsrc_types): Make const.
3666         * misc.c (g95_string2code): Make 'm' param 'const'.
3667         * module.c (find_enum, write_atom, mio_name): Make
3668         'm' param 'const'.
3669         (attr_bits, bt_types, array_spec_types, array_ref_types,
3670         ref_types, expr_types): Make const.
3671         * g95.h: Adjust external decls.
3672
3673 2003-01-09  Paul Brook  <paul@nowt.org>
3674
3675         * Testsuite: Add a load of new cases.
3676
3677 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3678
3679         * Make-file.in: Add dependency on back end header files;
3680         a parallel build should work now.
3681         * f95-lang-c (lang_identifier): Remove bogus comment.
3682         (g95_be_parse_file): Fix prototype.
3683         (g95_init): Make static.
3684         (g95_finish): Make static.
3685         * error.c (g95_syntax_error): Kill. Make define in...
3686         * g95.h (g95_syntax_error): Define.
3687         (g95.options): Make 'source' member 'const'.
3688         * interface.c (g95_match_interface): Explain
3689         hard-to-read condition.
3690         (g95_match_end_interface): Ditto.
3691         * trans_const.c (g95_build_string_const): Make 's' parameter
3692         'const'.
3693         * trans_const.h: Adjust protoype accordingly.
3694         * trans-decl.c: Include tree-dump.h
3695         (g95_generate_function_code): Build fixes for recent changes
3696         in the tree-ssa branch.
3697
3698 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3699
3700         * format.c: Kill, move code from here...
3701         * io.c: ...to here.
3702         * Make-lang.in: Adjust.
3703         * MANIFEST: Ditto.
3704         * match.h: Ditto.
3705         * BUGS: Mention where to submit bugs.  Move old content...
3706         * TODO: ...to here.  New file.
3707
3708 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3709         Fix most warnings, and suppress the ones we can't fix for now.
3710         * Make-lang.in: Suppress warnings about bad proto's in g95.h,
3711         these warnings just clutter the screen and there's not much
3712         we can do about them for now anyway.
3713         * check.c, iresolve.c: Mark unused function parameters.
3714         * dump-parse-tree.c (g95_show_array_spec): Punt on AS_UNKNOWN,
3715         they should be resolved before they get here.
3716         * error.c: Remove unused FILE *status_out.
3717         * f95-lang.c (g95_init): Remove bogus cast.
3718         * Many files: Make things 'const' where required.
3719         * g95.h: Fix prototypes for all modified functions above.
3720         (g95_options): Remove 'object' member.
3721
3722 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3723
3724         * Make-file.in: Cleanup bogus targets.  Add more comment.
3725         * lang-options.h: New option '-w'.
3726         * g95.h: add no_options field to struct g95_options.
3727         * options.c (g95_init_options): Default no_warnings to off.
3728         (g95_parse_arg): Recognise the '-w' switch and its alias,
3729         '-fno-warnings'.
3730         * error.c (g95_warning, g95_warning_now): Don't emit warning if
3731         no_warning option is set.
3732         * iresolve.c (g95_resolve_shape): Fix warning.
3733
3734 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3735
3736         * primary.c (g95_next_string_char): Rename next_string_char, and
3737         make static.  Adjust callers accordingly.
3738         * resolve.c (resolve_generic_f0): Return try, not match.  Adjust
3739         callers accordingly.
3740         * g95.h: Split out all g95_match* functions to...
3741         * match.h: ...here. New file.
3742         * array.c, decl.c, expr.c, format.c, interface.c, io.c, match.c,
3743         matchexp.c, module.c, parse.c, primary.c: Inlcude match.h
3744
3745 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3746
3747         * symbol.c (g95_clear_new_implicit, g95_add_new_implicit_range,
3748         g95_merge_new_implicit): New functions.
3749         (g95_match_implicit_none, g95_match_implicit): Move from here...
3750         * match.c (g95_match_implicit_none, g95_match_implicit): ... to here.
3751         Modify to use the new functions in symbol.c.
3752         * g95.h: Add and move prototypes.
3753
3754 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3755
3756         * bbt.c (insert): Use a typedef'ed compare_fn prototype for the
3757         node compare function.
3758         (g95_insert_bbt): Likewise.
3759         (g95_insert_bbt_with_overlap): Likewise.
3760         (g95_delete_bbt): Likewise.
3761         (delete_treap): Likewise. Also fix a potential bug when calling it.
3762         * module.c (compare_pointers): Change proto to compare_fn.
3763         (compare_integers): Likewise.
3764         (compare_true_names): Likewise.
3765         (find_true_name): Adjust call to compare_true_names to match proto.
3766         (require_atom, write_atom, mio_name): Fix 'const' warnings.
3767         (init_pi_tree): Make compare a compare_fn instead of (int *).
3768         * resolve.c (compare_cases): Change proto to compare_fn.
3769         * symbol.c (g95_compare_symtree): Change proto to compare_fn, make
3770         it static, and rename to compare_symtree.
3771         (delete_symtree, g95_undo_symbols, g95_new_symtree): Use renamed
3772         function.
3773         * g95.h: Kill g95_compare_symtree prototype. Adjust prototypes
3774         of g95_insert_bbt, g95_insert_bbt_with_overlap, and g95_delete_bbt.
3775
3776 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3777         * Make-lang.in: Fix spaces/tabs issues from previous patch.
3778         * patch.options: Blow away Paul's checkin mistake :-)
3779         * io.c (terminate_io): Fix memory leak (Arnaud).
3780
3781 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
3782
3783         * Make-lang.in: Teach about building DVI, info manual.
3784         * g95.texi: New file.
3785
3786 2003-01-02  Paul Brook  <paul@nowt.org>
3787
3788         * trans-array.c (g95_reverse_ss): Make static and don't use.
3789         (g95_conv_ss_descriptor): Don't use g95_loopinfo
3790         (g95_conv_array_parameters): Modify for pointer assignments.
3791         (g95_walk_subexpr): New function.
3792         (g95_walk_expr*): Use it.
3793         * trans-array.h (g95_reverse_ss): Remove prototype.
3794         * trans-expr.c (g95_trans_pointer_assign): Implement.
3795         (Many): Set se.want_pointer before calling g95_conv_array_parameter.
3796         * trans-intrinsic.c: Sync with scalarizer changes.
3797         * trans-io.c: Ditto.
3798
3799 2002-12-29  Paul Brook  <paul@nowt.org>
3800
3801         * trans-array.c: Document calling convention for arrays.
3802
3803 2002-12-19  Paul Brook  <paul@nowt.org>
3804
3805         * trans-intrinsic.c (g95_conv_intrsinsic_function): Remove incorrect
3806         assertion. Remove intrinsic subroutine G95_ISYM_* cases. Always pass
3807         optional parameters for some intrinsics.
3808         (g95_is_intrinsic_libcall): Add G95_ISYM_RESHAPE.
3809         * trans-expr.c (g95_conv_function_call): Pass NULL for absent
3810         optional parameters.
3811         * trans.h (g95_se): Add ignore_optional flag.
3812
3813 2002-12-15  Paul Brook  <paul@nowt.org>
3814
3815         * trans-array.c (g95_conv_array_parameter): Fix partial rank sections.
3816         * trans-decl.c (g95_generate_function_code): Use TDI_original.
3817
3818 2002-12-14  Paul Brook  <paul@nowt.org>
3819
3820         * trans-stmt.c (g95_trans_call): Use resolved symbol name.
3821
3822 2002-12-12  Paul Brook  <paul@nowt.org>
3823
3824         * trans-array.c (g95_trans_array_constructor_subarray): Fully
3825         initialize the scalarizer.
3826         (various): Update to new format of g95_expr->value.constructor.
3827
3828 2002-12-08  Paul Brook  <paul@nowt.org>
3829
3830         * trans-array.c (g95_put_offset_into_var): New function.
3831         (g95_trans_array_constructor_subarray): New function.
3832         (g95_trans_array_constructor_value): Use it.
3833         (g95_array_cons_size): Don't abort() on array components.
3834
3835 2002-12-08  Paul Brook  <paul@nowt.org>
3836
3837         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove tree-dchain.o.
3838         * support.c: Update #includes.
3839         (statement_code_p, c_size_in_bytes, s_size_type_node): Remove.
3840         * trans-array.c: Update #includes.
3841         * trans.c: Ditto.
3842         * trans-const.c: Ditto.
3843         * trans-io.c: Ditto.
3844         * trans-types.c: Ditto.
3845         (g95_init_types): Set size_type_node.
3846         * trans-decl.c: Update #includes.
3847         (gfor_fndecl_adjust{l,r}): Declare and initialize.
3848         * trans-stmt.c: Update #includes.
3849         (g95_trans_do_while): Generate LABEL_EXPR, not GOTO_EXPR.
3850         (g95_trans_select): Fix check for unbounded ranges.
3851         * trans-expr.c: Update #includes.
3852         (g95_conv_string_tmp): New function.
3853         (g95_conv_concat_op): Use it.
3854         * trans.h (g95_conv_string_tmp, gfor_fndecl_adjust{l,r}): Declare.
3855         * Trans-intrisic.c: Update #includes.
3856         (g95_conv_intrinsic_strcmp): New function.
3857         (g95_conv_intrinsic_adjust): Ditto.
3858         (g95_conv_intrinsic_function: Use them.
3859
3860 2002-11-30  Paul Brook  <paul@nowt.org>
3861
3862         * trans-array.c (g95_walk_function_expr): Handle non-array return by
3863         reference.
3864         * trans-dec.c (g95_build_function_decl): Handle character return
3865         parammeters.
3866         (g95_get_fake_result_decl): Ditto.
3867         (g95_trans_deferred_vars): Ditto.
3868         * trans-expr.c (g95_conv_function_call): Ditto.
3869         (g95_trans_arrayfunc_assign) Limit to array valued functions.
3870         * trans-intrinsic.c (g95_conv_intrinsic_char): New function.
3871         (g95_conv_intrinsic_function): Use it.
3872         * trans-types.c (g95_sym_type): Handle functions returning strings.
3873         (g95_return_by_reference): Ditto.
3874         (g95_get_function_type): Ditto.
3875
3876 2002-11-18  Paul Brook  <paul@nowt.org>
3877
3878         * trans-stmt.c (g95_trans_if): Fix IF statements when the condition
3879         requires a temporary.
3880         (g95_trans_select): Handle computed gotos.
3881         * trans-types.c (g95_build_array_type): Warn about non-functional
3882         assumed shape arrays.
3883         * trans-expr.c (g95_trans_scalar_assign): Correctly handle post
3884         blocks.
3885         * trans-intrinsic.c (g95_conv_intrinsic_round): New function.
3886         (g95_conv_intrinsic_int): New function.
3887         (g95_conv_intrinsic_mod): New function.
3888         (g95_conv_intrinsic_ichar): New function.
3889         (g95_conv_intrinsic_function): Use them.
3890         (g95_conv_intrinsic_dim): Use g95_evaluate_now.
3891
3892 2002-11-17  Toon Moene  <toon@moene.indiv.nluug.nl>
3893
3894         * trans-types.c (g95_build_array_type): Assumed
3895         sized arrays can have rank > 1.
3896         * trans.c (g95_trans_code): Remove erroneous
3897         warning about CONTINUE.
3898         * trans-expr.c (g95_conv_variable): Remove
3899         erroneous assert.
3900
3901 2002-11-15  Paul Brook  <paul@nowt.org>
3902
3903         * trans-array.c (g95_conv_array_parameter): Check for NULL stride.
3904
3905 2002-10-31  Paul Brook  <paul@nowt.org>
3906
3907         * f95-tree.c: Remove tree copying stuff that's now in gimple.c
3908         * trans-expr.c (g95_conv_component_ref): Handle character string
3909         components.
3910         (g95_conv_string_parameter): Ditto.
3911         * trans-types.c (g95_get_derived_type): Add length decl to caracter
3912         string components.
3913
3914 2002-10-10  Paul Brook  <paul@nowt.org>
3915
3916         * trans-decl.c (gfor_fndecl_size?): Declare and initialize.
3917         * trans-expr.c (g95_conv_function_call): Remove unreliable return value
3918         check.
3919         * trans-intrinsic.c (g95_conv_intrinsic_size): New function.
3920         (g95_conv_intrinsic_function): Handle size and shape intrinsics.
3921         (g95_is_intrinsic_libcall): Add G95_ISYM_SHAPE.
3922         * trans-types.c (pvoid_type_node): Declare and initialize.
3923         * trans-array.c: Fix typo COMPONENT_REF->REF_COMPONENT
3924         (g95_array_allocate): Fix when base==data.
3925         (g95_conv_array_parameter): Correctly handle reduced rank sections.
3926         * trans-io.c (g95_trans_write): Correctly handle string modifiers.
3927
3928 2002-10-09  Paul Brook  <paul@nowt.org>
3929
3930         * (g95_conv_expr_reference): Handle character strings correctly.
3931
3932 2002-10-07  Paul Brook  <paul@nowt.org>
3933
3934         (g95_expand_decl): Rename from f95_expand_decl_stmt and use as
3935         langhook.
3936         * trans-array.c (g95_build_array_initializer): Remove.
3937         (g95_conv_array_initializer): New Function.
3938         (g95_trans_auto_arry_allocation): Cleanup.
3939         (g95_trans_init_character_array): Remove.
3940         * g95spec.c: Link in libgforbegin.
3941         * trans.c (g95_generate_code): Rename main function to MAIN__.
3942         (g95_create_var): New function.
3943         (g95_create_var_np): New function.
3944         (g95_evaluate_now): New function.
3945         (g95_start_block): New function.
3946         (g95_finish_block): New function.
3947         (g95_add_expr_to_block): New function.
3948         (g95_add_block_to_block): New function.
3949         * trans-expr.c (g95_conv_componen_ref): New function.
3950         * Make-lang.in (F95_ADDITIONAL_OBJS): Add gimplify.o.
3951         (F95_OBJS): Add dependency.o.
3952         * f95-lang.c (g95_is_simple_stmt): Remove.
3953         * f95-tree.c (mark_not_simple): New function.
3954         (unshare_all_trees): New function.
3955         (create_tmp_var, create_tmp_alias_var): Remove.
3956         * support.c (declare_tmp_vars, tree_last_decl): Remove.
3957         * trans*: Convert to new IR using GENERIC trees.  Don't bother about
3958         SIMPLE/GIMPLE rules, this is now done by Lang-independant code.
3959
3960 2002-10-01  Paul Brook  <paul@nowt.org>
3961
3962         * trans-array.c: Add support for descriptorless arrays.
3963         (g95_conv_array_data): New function.
3964         (g95_conv_array_base): New function.
3965         * trans-array.h: Declare these here.
3966         * trans-decl.c(g95_create_mopdule_variable): Perform variable
3967         initialization and creation here.
3968         (g95_create_module_vars): Instead of here.
3969         * trans.h (G95_TYPE_ARRAY_*: Rename from G95_TYPE_DESCRIPTOR_*.
3970         * trans-intrinsic.c: Ditto.
3971         * trans-types.c (g95_is_nodesc_array): New function.
3972         (g95_get_nodesc_array_type): New function.
3973         (g95_sym_type, g95_get_derived_type): Use them.
3974         * trans-const.c (g95_conv_mpf_to_tree): Remove workaround.
3975
3976 2002-09-28  Paul Brook  <paul@nowt.org>
3977
3978         * trans-const.c (g95_conv_mpf_to_tree): Work around backend bug.
3979         * trans-intrinsic.c (g95_conv_intrinsic_abs): Correctly detect complex
3980         parameters.
3981
3982 2002-09-24  Paul Brook  <paul@nowt.org>
3983
3984         * f95-lang.c (listify): Remove declaration.
3985         (expand_function_body): Use optimize >=1 instead of flag_tree_saa.
3986         (listify)
3987         * f95-tree.c (get_name): New function.
3988         * trans.c (module_namespace): Remove.
3989         * trans-decl.c: Use g95_chainon_list rather than chainon(listify()).
3990         * trans-types.c: Ditto.
3991
3992 2002-09-19  Paul Brook  <paul@nowt.org>
3993
3994         * trans-array.c (g95_get_array_cons_size): New Function.
3995         (g95_con_ss_startstride): Handle Array constructors.
3996         (g95_conv_loop_setup): Ditto.
3997         (g95_conv_array_parameter): Ditto.
3998         * tras-decl.c (g95_finish_var_decl): Make initializes variables
3999         static.
4000
4001 2002-09-19  Paul Brook  <paul@nowt.org>
4002
4003         * trans.c (g95_simple_fold_tmp): Detect variables inside
4004         NON_LVALUE_EXPR.
4005         * trans-stmt.c (g95_trans_arithmetic_if): Implement this.
4006
4007 2002-09-18  Steven Bosscher <s.bosscher@student.tudelft.nl>
4008
4009         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree-ssa-dce.o
4010
4011 2002-09-14  Paul Brook  <paul@nowt.org>
4012
4013         * trans.c (g95_create_module_variable): Move to trans-decl.c.
4014         * trans-const.c (g95_conv_string_init): New Function.
4015         * trans-const.h: Declare it.
4016         * trans-decl.c (g95_get_symbol_decl): Handle initializers for static
4017         variables. Don't bail on intrinsic symbols.
4018         (get_extern_function_decl): Handle specific intrinsic functions.
4019         * trans-types.c (g95_sym_type): Dummy functions don't return
4020         reference types.
4021         * trans-array.c (g95_build_array_initializer): New Function.
4022         (g95_trans_auto_array_allocation): Build initializer for static decls.
4023         Don't use mpz_addmul, it's GMP4 only.
4024
4025 2002-09-12  Paul Brook  <paul@nowt.org>
4026
4027         * trans-decl.c (g95_generate_code): Fix thinko with return variable.
4028         (g95_get_extern_function_decl, g95_build_function_decl): Mangle
4029         assembler names for module procedures.
4030
4031 2002-09-11  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
4032
4033         * trans-array.c,h trans-expr.c, trans-stmt.c: Correct spelling of
4034         dependency/
4035
4036 2002-09-10  Paul Brook  <paul@nowt.org>
4037
4038         * trans-array.c: Change format of G95_SS_TEMP strictures.
4039         (g95_check_fncall_dependancy): New function.
4040         (trans_dummy_array_bias): stride[n], not stride[n-1]. for calculating
4041         offsets.
4042         * trans-decl.c (g95_get_symbol_decl): move assertion after handling of
4043         result variables.
4044         (g95_build_function_decl): Don't assume result arrays are packed.
4045         (g95_trans-deferred-vars): Handle array result variables.
4046         (g95_generate_fuction_code): Clear saved_function_decls.
4047         * trans-expr.c (g95_conv_fnction_call): Handle direct array return by
4048         reference.
4049         (g95_trans_arrayfunc_assign): New function.
4050         (g95_trans_assignment): Use it.
4051         * trans.h (g95_ss): Add temp struct for G95_SS_TEMP.
4052         (g95_se): Add direct_byref.
4053         * trans-types.c: Use sym->result rather than sym where appropriate.
4054         * trans-intrinsic.c (g95_conv_intrinsic_funcall): New function.
4055         Update other functions to use this.
4056         (g95_is_intrinsic_libcall): New function.
4057         (g95_conv_intrinsic_function): Add MATMUL and PRODUCT intrinsics.
4058         (g95_walk_intrinsic_function): Ditto.
4059
4060 2002-09-08  Paul Brook  <paul@nowt.org>
4061
4062         * trans-types.c: Change rank field to dtype field in array descriptor.
4063         * trans-array.c: Implement filling of dtype array descriptor field.
4064         * trans-intrinsic.c: Fix broken LEN intrinsic.
4065
4066 2002-09-07  Paul Brook  <paul@nowt.org>
4067
4068         * trans-intrinsic.c: Remove outdated todo intrinsic list.
4069         (g95_get_symbol_for_expr): Remove hack for fortran based intrinsics.
4070         (g95_walk_intrinsic_function): Add MINLOC and MAXLOC.
4071
4072 2002-09-06  Paul Brook  <paul@nowt.org>
4073
4074         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree_alias_comon.o.
4075         (gt-f95-trans-types.h): Add dependancy information.
4076         * config-lang.in (gtfiles): Add trans-types.c
4077         * f95-lang.c (g95_be_parse_file): Pass error and warning counts
4078         back to top-level code.
4079         * trans-array.c, trans-types.c: Change format of array descriptor.
4080         (g95_conv_descriptor_dimension): New function.
4081         * trans-types.h (g95_conv_descriptor_rank): define.
4082         * trans-intrinsic.c: Implement PRODUCT, COUNT. MINLOC and MAXLOC
4083         intrinsics.
4084
4085 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
4086
4087         * trans-array.c, trans-types.c: Add rank information to descriptor.
4088
4089 2002-09-06  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
4090
4091         * trans-stmt.c (g95_trans_allocate): Fix when ref==NULL.
4092
4093 2002-09-04  Paul Brook  <paul@nowt.org>
4094
4095         * f95-lang.c (g95_create_decls): New function.
4096         (g95_init):  Move initialization of external decls to above, and call
4097         from g95_be_parse_file.
4098         * trans.c (g95_finish_stmt): Don't amputate the decl chain.
4099         * trans-types.c (g95_init_types): Always name integer and char types.
4100         (g95_get_array_type_bounds): TYPE_NAME may be a TYPE_DECL.
4101
4102 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
4103
4104         * Make-lang.in: Add options.c to F95_PARSER_OBJS
4105
4106 2002-09-02  Paul Brook  <paul@nowt.org>
4107
4108         * g95_generate_code: Clear the attr for __fortran_main.
4109         * trans-types.c (g95_finish_type): New function.
4110         * g95_init_io_state_type: Use g95_finish_type.
4111         * g95_conv_intrinsic_anyall: Fix thinko in result initialization.
4112
4113 2002-09-01  Paul Brook  <paul@nowt.org>
4114
4115         * README.backend: Warn about the dangers of extra config.h files.
4116         Remove obsolete libgfor stuff.
4117         * config-lang.in: Add target-libgfor dependancy.
4118         * g95_conv_mpf_to_tree: Use & free allocated buffer p rather than buff.
4119
4120 2002-09-01  Toon Moene  <toon@moene.indiv.nluug.nl>
4121
4122         * g95_conv_mpz_to_tree: Free storage pointed to by q,
4123         not by buff.
4124
4125 2002-08-30  Paul Brook  <paul@nowt.org>
4126
4127         * trans-intrinsic.c (g95_conv_intrinsic_function,
4128         g95_walk_intrinsic_function): Added ANY and ALL.
4129         (g95_conv_intrinsic_anyall): New function.
4130         * iresolve.c (g95_resolve_any, g95_resolve_all): Include rank in
4131         mangled name
4132