OSDN Git Service

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