OSDN Git Service

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