OSDN Git Service

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