re PR fortran/15314 (ICE caused by array initializer in derived type definition)
[official-gcc.git] / gcc / fortran / ChangeLog
blob8939fc452d35cb9847e6ad1ecee4b020a1035333
1 2004-05-13  Victor Leikehman  <lei@haifasphere.co.il>
3         PR fortran/15314
4         * trans-expr.c (gfc_conv_structure): Use field type, not expr type.
6 2004-05-13  Joseph S. Myers  <jsm@polyomino.org.uk>
8         * gfortran.texi: Use @table @emph instead of @itemize @emph.
9         Remove "set DEVELOPMENT".
10         (Compiling GFORTRAN): Remove.
12 2004-05-09  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
14         * array.c (match_subscript, match_array_ref): Add comments
15         explaining argument 'init'.
16         * decl.c, f95-lang.c, match.c, resolve.c, trans-array.c,
17         trans-expr.c, trans.c: Fix some typos in comments.
18         * dump-parse-tree.c (gfc_show_expr): Remove wrong comment.
19         * primary.c (match_digits, match_integer_constant): Add comment
20         explaining signflag.
22 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
24         PR fortran/13940
25         * primary.c: Include system.h and flags.h, needed for pedantic.
26         (match_boz_constant): Allow "x" for hexadecimal constants, warn if
27         pedantic is set.
29 2004-05-01  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
31         PR fortran/13940
32         * match.c (match_data_constant): Handle case where
33         gfc_find_symbol sets sym to NULL
35 2004-04-28  Tobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
37         * Make-lang.in (f95-lang.o, trans-intrinsic.o): Add missing
38         dependency on mathbuiltins.def
40 2004-04-24  Victor Leikehman  <lei@il.ibm.com>
42         * trans-io.c (transfer_expr): Implemented recursive printing
43         of derived types.
45 2004-04-24  Andrew Pinski  <pinskia@physics.uc.edu>
47         * gfortranspec.c: Do not include multilib.h.
49 2004-04-24  Tobias Schlüter  <tobias.schlueter@physik.uni-muenchen.de>
51         * trans-intrinsic.c: Fix comment, this is not trans-expr.c. Add
52         2004 to copyright years.
53         * trans-expr.c, trans-decl.c: Comment update, we now generate
54         GENERIC, not SIMPLE. Add 2004 to copyright years.
56 2004-04-24  Paul Brook  <paul@codesourcery.com>
58         * Make-lang.in (gfortranspec.o): Add dependency on $(TM_H).
60 2004-04-24  Feng Wang  <fengwang@nudt.edu.cn>
62         PR 14817
63         * arith.c (gfc_arith_divide): Fix complex divide.
65 2004-04-23  Andrew Pinski  <pinskia@physics.uc.edu>
67         * gfortranspec.c: Include the target headers.
69 2004-04-18  Feng Wang  <fengwang@nudt.edu.cn>
71         PR fortran/14921
72         PR fortran/14540
73         * arith.c (arctangent2): New function.
74         * arith.h (arctangent2): Add function prototype.
75         * simplify.c (gfc_simplify_atan2): Use it.
76         (gfc_simplify_log): Use it.
78 2004-04-12  Diego Novillo  <dnovillo@redhat.com>
80         * fortran/f95-lang.c (gfc_expand_stmt): Remove.
81         (LANG_HOOKS_RTL_EXPAND_STMT): Remove.
83 2004-04-11  Bud Davis  <bdavis9659@comcast.net>
85         PR fortran/14872
86         * trans-io.c (build_dt): Change REC to value.
88 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
90         PR 14394 
91         * trans-const.c (gfc_conv_mpf_to_tree): Loosen the maximum digits of
92         the real value when converting mpf to string.
94 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
96         PR 14395
97         * trans-intrinsic.c (gfc_conv_intrinsic_cmplx): Fix the imag part of
98         the result.
100 2004-04-11  Feng Wang  <fengwang@nudt.edu.cn>
102         PR fortran/14377
103         * simplify.c (simplify_min_max): Convert the type of the result.
105 2004-04-11  Paul Brook  <paul@codesourcery.com>
107         * gfortran.texi: Use full target triplet.
109 2004-04-11  Paul Brook  <paul@codesourcery.com>
111         * Make-lang.in (GFORTRAN_TEXI): Set it.
112         (fortran/dfortran.dvi): Use it.  Add fortran to include paths.
113         (fortran/gfortran.info): Ditto. 
114         * gfortran.texi: Major update.
115         * invoke.texi: New file.
117 2004-04-10  Paul Brook  <paul@codesourcery.com>
119         * trans-array.c (gfc_trans_allocate_temp_array,
120         gfc_conv_tmp_array_ref): Don't use GFC_DECL_STRING.
121         * trans-decl.c (gfc_build_dummy_array_decl,
122         gfc_get_symbol_decl, gfc_build_function_decl,
123         gfc_create_module_variable): Ditto.
124         * trans-expr.c (gfc_conv_variable): Ditto.
125         * trans-intrinsic.c (gfc_conv_intrinsic_len): Ditto.
126         * trans.h (GFC_DECL_STRING): Remove.
127         (GFC_DECL_PACKED_ARRAY, GFC_DECL_PARTIAL_PACKED_ARRAY,
128         GFC_DECL_ASSIGN): Renumber flags.
130 2004-04-05  Paul Brook  <paul@codesourcery.com>
132         PR 13252
133         PR 14081
134         * f95-lang.c (gfc_init_builtin_functions): Add stack_alloc, stack_save
135         and stack_restore.
136         * gfortran.h (struct gfc_charlen): Add backend_decl.
137         * trans-array.c (gfc_trans_allocate_temp_array,
138         gfc_conv_temp_array_ref, gfc_conv_resolve_dependencies,
139         (gfc_conv_loop_setup, gfc_array_allocate, gfc_conv_array_init_size):
140         Remove old, broken string handling.
141         (gfc_trans_auto_array_allocation, gfc_trans_g77_array,
142         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
143         gfc_trans_deferred_array): Handle character arrays.
144         * trans-const.c (gfc_conv_const_charlen): New function.
145         * trans-const.h (gfc_conv_const_charlen): Add prototype.
146         * trans-decl.c (gfc_finish_var_decl): Don't mark automatic variables
147         as static.
148         (gfc_build_dummy_array_decl): Handle arrays with unknown element size.
149         (gfc_create_string_length): New function.
150         (gfc_get_symbol_decl): Create lengths for character variables.
151         (gfc_get_fake_result_decl): Ditto.
152         (gfc_build_function_decl): Only set length for assumed length
153         character arguments.
154         (gfc_trans_dummy_character): New function.
155         (gfc_trans_auto_character_variable): Rewrite.
156         (gfc_trans_deferred_vars): Handle more types of character variable.
157         (gfc_create_module_variable): String lengths have moved.
158         (gfc_generate_function_code): Initialize deferred var chain earlier.
159         * trans-expr.c (gfc_conv_init_string_length): Rename ...
160         (gfc_trans_init_string_length):  ... to this.
161         (gfc_conv_component_ref, gfc_conv_variable, gfc_conv_concat_op,
162         gfc_conv_function_call): Update to new format for character variables.
163         (gfc_conv_string_length): Remove.
164         (gfc_conv_string_parameter): Update assertion.
165         * trans-intrinsic.c (gfc_conv_intrinsic_len): Use new location.
166         * trans-io.c (set_string): Use new macro names.
167         * trans-stmt.c (gfc_trans_label_assign. gfc_trans_goto): Ditto.
168         * trans-types.c (gfc_get_character_type): Use existing length expr.
169         (gfc_is_nodesc_array): Make public.
170         (gfc_get_dtype_cst): Rename ...
171         (gfc_get_dtype): ... to this.  Handle unknown size arrays.
172         (gfc_get_nodesc_array_type): Use new name.
173         (gfc_sym_type): New character variable code.
174         (gfc_get_derived_type): Ditto.
175         (gfc_get_function_type): Evaluate character variable lengths.
176         * trans-types.h (gfc_strlen_kind): Define.
177         (gfc_is_nodesc_array): Add prototype.
178         * trans.h: Update prototypes.
179         (struct lang_type): Update comments.
180         (GFC_DECL_STRING_LEN): New name for GFC_DECL_STRING_LENGTH.
181         (GFC_KNOWN_SIZE_STRING_TYPE): Remove.
183 2004-04-04  Paul Brook  <paul@codesourcery.com>
185         * gfortran.h (struct gfc_option_t): Remove flag_g77_calls.
186         * options.c (gfc_init.options, gfc_handle_option): Ditto.
187         * trans-expr.c (gfc_conv_function_call): Ditto.
188         * trans-types.c (gfc_is_nodesc_array): Ditto
189         * lang.opt (fg77-calls): Remove.
191 2004-04-04  Paul Brook  <paul@codesourcery.com>
193         * trans-array.c (OFFSET_FIELD): Rename from BASE_FIELD.
194         (gfc_conv_descriptor_base): Rename ...
195         (gfc_conv_descriptor_offset): ... to this.
196         (gfc_trans_allocate_array_storage): Set offset to zero.
197         (gfc_conv_array_base): Rename ...
198         (gfc_conv_array_offset): ... to this.
199         (gfc_conv_array_index_ref): Add offset parameter.
200         (gfc_conv_array_ref): Include offset.
201         (gfc_trans_preloop_setup): Use existing offset.
202         (gfc_trans_allocate_temp_array,  gfc_array_allocate,
203         gfc_trans_auto_array_allocation, gfc_trans_g77_array,
204         gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor,
205         gfc_conf_ss_descriptor): Set offset.
206         * trans-array.h: Rename prototypes.
207         * trans-const.h (gfc_index_zero_node): Define.
208         * trans-decl.c (gfc_build_qualified_array): Change base to offset.
209         * trans-types.c (gfc_get_array_type_bounds): Ditto.
210         (gfc_get_nodesc_array_type): Calculate offset before upper bound.
212 2004-03-25  Diego Novillo  <dnovillo@redhat.com>
214         * convert.c (convert): Don't handle WITH_RECORD_EXPR.
216 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
218         PR 14055
219         * arith.c (gfc_convert_integer,gfc_convert_real):  Removed leading '+'
220         before conversion by gmp library call.
222 2004-03-24  Bud Davis  <bdavis9659@comcast.net>
224         PR 12921
225         * trans-io.c (gfc_trans_open): Change RECL= to a value parameter.
227 2004-02-24  Richard Henderson  <rth@redhat.com>
229         * trans-array.c (gfc_trans_dummy_array_bias): Fix typo.
231 2004-02-19  Loren J. Rittle  <ljrittle@acm.org>
233         * Make-lang.in ($(srcdir)/fortran/gfortran.info): Move...
234         (fortran/gfortran.info): ... to here.
235         (f95.srcinfo): New.
237 2004-02-16  Richard Henderson  <rth@redhat.com>
239         * Make-lang.in (f95-lang.o, trans-decl.o): Depend on cgraph.h.
240         * f95-lang.c (LANG_HOOKS_EXPAND_DECL): Remove.
241         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): New.
242         (gfc_expand_function): Rename from expand_function_body, make static,
243         don't do anything except invoke tree_rest_of_compilation.
244         (gfc_be_parse_file): Invoke cgraph.
245         (gfc_expand_decl): Remove.
246         (gfc_init_builtin_functions): Add __builtin_init_trampoline and
247         __builtin_adjust_trampoline.
248         * trans-decl.c (gfc_get_extern_function_decl): Don't set DECL_CONTEXT.
249         (gfc_finalize): New.
250         (gfc_generate_function_code): Use it.  Lower nested functions.
251         * trans-expr.c (gfc_conv_function_call): Add static chain operand
252         to call_expr.
253         * trans.c (gfc_build_function_call): Likewise.
254         * trans.h (expand_function_body): Remove.
256 2004-02-15  Victor Leikehman  <lei@il.ibm.com>
258         PR gfortran/13433
259         * trans-decl.c (gfc_build_function_decl) For functions
260         returning CHARACTER pass an extra length argument,
261         following g77 calling conventions.
262         * trans-types.c (gfc_get_function_type) Ditto.
263         * trans-expr.c (gfc_conv_function_call) Ditto.
265 2004-02-14  Paul Brook  <paul@codesourcery.com>
267         * f95-lang.c (gfc_init_builtin_functions): Build chain properly.
269 2004-02-12  Paul Brook  <paul@nowt.org>
271         * BUGS: Remove.
273 2004-02-08  Steve Kargl  <sgk@troutmask.apl.washington.edu>
275         * gfortran.texi: Fix typos.
277 2004-02-07  Bud Davis  <bdavis9659@comcast.net>
279         PR gfortran/13909
280         * intrinsic.c (add_conversions) Use logical conversion instead
281         of real.
282         * trans-types.c (gfc_get_logical_type) implemented logical*1
283         and logical*2.
285 2004-01-17  Paul Brook  <paul@codesourcery.com>
287         * lang-specs.h: Remove %<fixed-form.
289 2004-01-15  Toon Moene  <toon@moene.indiv.nluug.nl>
291         * lang-specs.h: Enable preprocessing of source files
292         ending in .F, .fpp, .FPP, .F90 and .F95.
294 2004-01-13  Toon Moene  <toon@moene.indiv.nluug.nl>
296         PR fortran/12912
297         * lang-specs.h: Enable compilation of files ending
298         in .f, .for and .FOR.
300 2004-01-11  Paul Brook  <paul@codesourcery.com>
302         * trans-stmt.c (gfc_trans_if_1): New function.
303         (gfc_trans_if): Use it.
305 2004-01-11  Erik Schnetter  <schnetter@uni-tuebingen.de>
307         * gfortran.h (GFC_MAX_SYMBOL_LEN): Increase.
308         (gfc_option_t): Add max_identifier_length.
309         * lang.opt: Add fmax-identifier-length.
310         * match.c (parse_name): Use limit.
311         * options.c (gfc_init_options): Set max_identifier_length.
312         (gfc_handle_option): Ditto.
314 2004-01-11  Feng Wang  <fengwang@nudt.edu.cn>
316         * intrinsic.c (add_functions): Add resolve function to dcmplx.
317         * intrinsic.h (gfc_resolve_dcmplx): Add prototype.
318         * iresolve.c (gfc_resolve_dcmplx): New function.
320 2004-01-10  Paul Brook  <paul@codesourcery.com>
322         * trans-decl.c (gfc_get_symbol_decl): Don't set subroutine attr.
323         * trans-types.c (gfc_sym_type): Handle external dummy procedures.
324         (gfc_return_by_reference): Correct condition.
325         (gfc_get_function_type): Ditto.
327 2004-01-10  Paul Brook  <paul@codesourcery.com>
329         * trans-intrinsic.c (gfc_conv_intrinsic_minmax): Convert mismatched
330         types.
332 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
334         * iresolve.c: Use correct kind.
336 2004-01-10  Huang Chun  <chunhuang73@hotmail.com>
338         PR fortran/13467
339         * trans-decl.c (gfc_create_module_variable):  Output array valued
340         parameters.
342 2004-01-10  Paul Brook  <paul@codesourcery.com>
344         * resolve.c (resolve_branch): Get error message right way round.
346 2004-01-10  Canqun Yang <canqun@nudt.edu.cn>
348         * trans-array (gfc_conv_loop_setup): Adjust comment to track
349         reality.
350         (gfc_array_allocate): Don't count size of element twice.
352 2004-01-04  Paul Brook  <paul@codesourcery.com>
354         * lang.opt (i8, r8, std=*): Remove RejectNegative.
356 2004-01-04  Paul Brook  <paul@codesourcery.com>
358         * error.c (gfc_notify_std): New function.
359         * gfortran.h (gfc_notify_std): Declare.
360         (GFC_STD_*): Define.
361         (gfc_option_t): Add warn_std and allow_std.
362         * intrinsic.c (gfc_init_expr_extensions): Fix logic.
363         (gfc_intrinsic_func_interface): Use gfc_notify_std.
364         * check.c (check_rest): Use gfc_notify_std.
365         * match.c (gfc_match_pause): Ditto.
366         (gfc_match_assign): Ditto.
367         (gfc_match_goto): Ditto.
368         * resolve.c (resolve_branch): Ditto.
369         * lang.opt: Add std=<foo> and w.
370         * options.c (gfc_init_options): Set allow_std and warn_std.
371         (gfc_handle_option): Handle OPT_std_* and OPT_w.
373 2004-01-01  Paul Brook  <paul@codesourcery.com>
375         * array.c (gfc_append_constructor): Take constructor, not expression.
376         * data.c (struct gfc_expr_stack): Remove.
377         (expr_stack): Remove.
378         (find_con_by_offset): Rename from find_expr_in_con.
379         (find_con_by_component): Rename from find_component_in_con.
380         (gfc_get_expr_stack): Remove.
381         (gfc_assign_data_value): Rewrite.
382         (gfc_expr_push): Remove.
383         (gfc_expr_pop): Remove.
384         (gfc_advance_section): Rename from
385         gfc_modify_index_and_calculate_offset.  Handle unbounded sections.
386         (gfc_get_section_index): Handle unbounded sections.
387         * gfortran.h: Update prototypes.
388         * resolve.c (check_data_variable): Array section maight not be the
389         last ref.
391 2004-01-01  Paul Brook  <paul@codesourcery.com>
393         PR fortran/13432
394         * resolve.c (resolve_symbol): Allow assumed length function results.
396 2004-01-01  Steve Kargl  <sgk@troutmask.apl.washington.edu>
398         * match.c (gfc_match_pause): Fix spelling.
400 2004-01-01  Steven Bosscher  <stevenb@suse.de>
402         PR fortran/13251
403         * trans-expr.c (gfc_conv_variable): Take the type kind of a substring
404         reference from the expression.
406 2003-12-26  Feng Wang  <fengwang@nudt.edu.cn>
408         * dump-parse-tree.c (gfc_show_code_node): Add ASSIGN and ASSIGNED GOTO
409         dumping.
410         * gfortran.h (gfc_statement): New ST_LABEL_ASSIGNMENT.
411         (gfc_exec_op): New EXEC_LABEL_ASSIGN.
412         (symbol_attribute):New variable attribute: assign.
413         * io.c (resolve_tag):Integer variable is allowed.
414         (match_dt_format): Add ASSIGN statement. Set assign flag.
415         * match.c (gfc_match_if): Change ST_NONE to ST_LABEL_ASSIGNMENT.
416         (gfc_match_assign): Add ASSIGN statement. Set assign flag.
417         (gfc_match_goto): Add ASSIGNED GOTO statement. Set assign flag.
418         * parse.c (decode_statement): Add ST_LABEL_ASSIGNMENT.
419         (next_statement): Add ST_LABEL_ASSIGNMENT.
420         (gfc_ascii_statement): Add ST_LABEL_ASSIGNMENT.
421         * resolve.c (resolve_code): Resolve ASSIGN and ASSIGNED GOTO statement.
422         (resolve_blocks): Resolve ASSIGNED GOTO statement label list.
423         * st.c (gfc_free_statement): Add EXEC_LABEL_ASSIGN.
424         * trans-decl.c (gfc_get_symbol_decl): Create the shadow variable for
425         assign.  Put them into the stuct lang_decl.
426         * trans-io.c (set_string): Add the assign statement.
427         * trans-stmt.c (gfc_trans_label_assign): New function.
428         (gfc_trans_goto): Translate ASSIGNED GOTO statement.
429         * trans-stmt.h (gfc_trans_label_assign): Added function prototype.
430         * trans.c (gfc_trans_code): Add EXEC_LABEL_ASSIGN.
431         * trans.h (lang_decl):Add shadow variable decl tree needed by assign.
432         (GFC_DECL_ASSIGN_ADDR(node)): New macro to access this.
433         (GFC_DECL_ASSIGN(node)): New macro to access flag.
435 2003-12-31  Huang Chun <chunhuang73@hotmail.com>
437         PR fortran/13434
438         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxval): Fixed bug in 
439         minval/maxval.
441 2003-12-22  Toon Moene  <toon@moene.indiv.nluug.nl>
443         * options.c (gfc_init_options): Set flag_argument_noalias to 2, to indicate
444         that arguments to subroutines/functions can't alias themselves, nor global
445         memory.
447 2003-12-20  Steven Bosscher  <stevenb@suse.de>
449         * trans-expr.c (gfc_conv_expr_op): Fold the result expression.
450         * trans.c (gfc_add_modify_expr, gfc_add_expr_to_block): Likewise.
452 2003-12-12  Huang Chun <chunhuang73@hotmail.com>
454         * primary.c (match_substring): Fix substring bug for start point
455         or end point is NULL.
456         * trans-expr.c (gfc_conv_substring): Ditto
457         * trans-types.c (gfc_sym_type): Get correct type of scalar 
458         character variables.
459         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle character in 
460         derived type.
462 2003-12-10  Richard Henderson  <rth@redhat.com>
464         * options.c (gfc_post_options): Don't ever use rtl inlining.
466 2003-12-05  Canqun Yang  <canqun@nudt.edu.cn>
468         * trans-common.c: Re-implement COMMON blocks and EQUIVALENCE lists.
469         * trans-equivalence.c: Remove.
470         * trans-decl.c (gfc_get_symbol_decl): Update to match.
471         (gfc_generate_function_code): Ditto.
472         * trans-array.c (gfc_conv_array_parameter): Ditto.
473         * Make-lang.in (F95_OBJS): Remove fortran/trans-equivalence.o
474         (F95_ADDITIONAL_OBJS): Add stor-layout.o
475         * trans.h (gfc_trans_equivalence): Remove.
476         * gfortran.h (struct gfc_equiv): Add used field.
477         (struct gfc_symbol): Remove addr_base, addr_offset, equiv_ring,
478         equiv_offset fields.
480 2003-12-05  Richard Henderson  <rth@redhat.com>
482         * trans.c (gfc_build_addr_expr): New.
483         (gfc_build_indirect_ref, gfc_build_array_ref): New.
484         * trans.h: Declare them.
485         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-io.c,
486         trans-stmt.c, trans.c (*): Use them.
488         * f95-lang.c (gfc_post_options): Remove dead prototype.
489         * trans-array.c (gfc_trans_deferred_vars): Remove unused variable.
490         * trans-stmt.c (gfc_evaluate_where_mask): Fix temporary_list
491         allocation size.
493 2003-12-01  Feng Wang  <fengwang@nudt.edu.cn>
495         * io.c (gfc_match_format): Check for missing format label.
497 2003-11-30 Huang Chun <chunhuang73@hotmail.com>
499         PR fortran/13155
500         * trans-decl.c (gfc_sym_mangled_function_id): Don't mangle symbols
501         from interfaces in modules.
503 2003-11-30  Paul Brook  <paul@nowt.org>
505         * trans-array.c (gfc_trans_g77_array): Make non-static.
506         (gfc_trans_assumed_size): Remove.
507         (gfc_trans_dummy_array_bias): Explicitly free temporary.
508         * trans-array.h (gfc_trans_g77_array): Add prototype.
509         (gfc_trans_assumed_size): Remove.
510         * trans-decls.c (gfor_fndecl_push_context): Remove.
511         (gfor_fndecl_pop_context): Remove.
512         (gfc_build_function)decls): Don't create them.
513         (gfc_trans_deferred_vars): Update to match. Remove dead code.
514         * trans-stmt.c (gfc_trans_pointer_assign_need_temp): Free temp.
516 2003-11-30  Kejia Zhao  <kejia_zh@nudt.edu.cn>
518         * trans-array.c (gfc_conv_array_parameter): Simplify
519         array argument passing for array name actual argument.
520         * trans-expr.c (gfc_conv_function_call): Ditto
521         * trans-types.c (gfc_is_nodesc_array):Ditto.
523 2003-11-30  Paul Brook  <paul@nowt.org>
525         * f95-lang.c (gfc_post_options): Move ...
526         * options.c (gfc_post_options): .. to here.  Handle inlining options.
527         * gfortran.h (gfc_post_options): Add prototype.
529 2003-11-28  Richard Henderson  <rth@redhat.com>
531         * trans.c (gfc_create_var_np): Use create_tmp_var_raw.
533 2003-11-28 Huang Chun <chunhuang73@hotmail.com>
535         * trans.h (has_alternate_specifier): New global variable.
536         * match.c (gfc_match_call): Handle actual arguments associated with
537         alternate return indicators.
538         * trans-expr.c (gfc_conv_function_call): Ditto
539         * trans-stmt.c (gfc_trans_call): Ditto
540         (gfc_trans_return): Handle return statement with value.
541         * trans-decl.c (gfc_generate_function_code): Handle functions with
542         asterisk dummy.
543         (gfc_get_fake_result_decl): Ditto
544         * trans-types.c (gfc_get_function_type): Ditto
545         * resolve.c (resolve_actual_arglist): Check alternate return indicators.
546         (resolve_formal_arglist): Check asterisk dummy.
548 2003-11-27  Paul Brook  <paul@nowt.org>
550         * trans-array.c (gfc_tran_allocate_array_storage): Use new memory
551         allocation interface.
552         (gfc_conv_ array_parameter): Ditto.
553         (gfc_trans_auto_array_allocation): Ditto. Also free the memory.
554         * trans-array.c: Update prototype.
555         * trans-decl.c (gfc_build_builtin_function_decls): Update prototypes.
556         (gfc_trans_auto_character_variable): Use new memory alloc interface.
557         * trans-expr.c (gfc_conv_string_tmp): Ditto.
558         (gfc_conv_function_call): Use gfc_conv_string_tmp.
559         * trans-stmt.c (gfc_do_allocate):  Use new memory alloc interface.
560         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Ditto.
561         * trans.h (gfc_ss_info): Remove unused pdata field.
562         * trans.c (gfc_create_var_np): Change T to V.
564 2003-11-26  Richard Henderson  <rth@redhat.com>
566         * mathbuiltins.def: Move acos, asin, cosh, log10, sinh, tanh from ...
567         * trans-intrinsic.c (gfc_intrinsic_map): ... here.  Add SCALE,
568         FRACTION, NEAREST, SET_EXPONENT.
569         (gfc_intrinsic_map_t): Add libm_name, complex_available, is_constant.
570         Fix GTY marking.  Remove unnecessary const's.
571         (LIBM_FUNCTION): Rename from I_LIB.
572         (LIBF_FUNCTION): New.
573         (gfc_get_intrinsic_lib_fndecl): Handle libm and libgfortran naming
574         conventions.  Assume the expr signature is correct.  Mark const.
575         (gfc_conv_intrinsic_exponent): Use library functions.
576         (gfc_conv_intrinsic_set_exponent): Remove.
577         (gfc_conv_intrinsic_scale): Remove.
578         (gfc_conv_intrinsic_nearest): Remove.
579         (gfc_conv_intrinsic_fraction): Remove.
580         (gfc_conv_intrinsic_function): Update.
581         * trans-decl.c (gfor_fndecl_math_exponent4): New.
582         (gfor_fndecl_math_exponent8): New.
583         (gfc_build_intrinsic_function_decls): Set them.
584         * trans.h: Declare them.
586 2003-11-25  Canqun Yang  <canqun@nudt.edu.cn>
588         * trans-common.c (gfc_layout_global_equiv): Locate the error for
589         underflow COMMON block.
590         (gfc_trans_one_common): Fix bug for size of COMMON block containing
591         EQUIVALENCE object. Also fix typo in an error message.
593 2003-11-25  Diego Novillo  <dnovillo@redhat.com>
595         * Make-lang.in: Add check-gfortran to lang_checks.
596         (check-f95): Alias for check-gfortran.
598 2003-11-25  Jason Merrill  <jason@redhat.com>
600         * Make-lang.in (f95.tags): Create TAGS.sub files in each
601         directory and TAGS files that include them for each front end.
603 2003-11-24  Paul Brook  <paul@nowt.org>
605         PR fortran/13154
606         * trans-decl.c (gfc_greate_module_variable): Skip COMMON blocks.
608 2003-11-24  Paul Brook  <paul@nowt.org>
610         * expr.c (simplify_const_ref): Return SUCCESS for things we don't
611         handle.
612         * resolve.c (gfc_resolve_expr): Resolve contents before rank/shape.
614 2003-11-24  Paul Brook  <paul@nowt.org>
616         PR fortran/13105
617         * array.c (gfc_array_ref_shape): Handle elemental dimensions.
618         * trans-array.c (gfc_trans_preloop_setup): Use correct dim lookup.
620 2003-11-20  Richard Henderson  <rth@redhat.com>
622         * trans-array.c (gfc_trans_allocate_array_storage): Use convert.
623         (gfc_conv_array_base): Likewise.
624         * trans-decl.c (gfc_trans_auto_character_variable): Likewise.
625         * trans-expr.c (gfc_conv_string_tmp): Likewise.
626         * trans-intrinsic.c (gfc_conv_intrinsic_trim): Likewise.
627         * trans-stmt.c (gfc_trans_character_select): Likewise.
629 2003-11-13  Paul Brook  <paul@nowt.org>
631         * trans-decl.c (gfc_sym_mangled_function_id): Dont mangle externals.
633 2003-11-13  Canqun Yang  <canqun@nudt.edu.cn>
635         * resolve.c (gfc_resolve): Also resolve EQUIVALENCE objects.
636         (resolve_equivalence): New function.
637         (resolve_equivalence_derived): New function.
639 2003-11-12  Richard Henderson  <rth@redhat.com>
641         * trans.c (gfc_trans_code): Use annotate_with_locus instead of
642         annotate_all_with_locus.
644 2003-11-11  Canqun Yang  <canqun@nudt.edu.cn>
646         * options.c (gfc_init_options): Set flag_max_stack_var_size as 32768.
647         * trans-decl.c (gfc_finish_var_decl): Modified.
649 2003-11-08  Paul Brook  <paul@nowt.org>
651         PR fortran/12704
652         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Handle zero-size
653         arrays.
655 2003-11-06  Paul Brook  <paul@nowt.org>
657         * trans-intrinsic.c (gfc_conv_intrinsics_minmaxloc): Initialize pos.
659 2003-11-02  Canqun Yang  <canqun@nudt.edu.cn>
661         * match.c (gfc_match_stopcode): Assign '0' to stop_code.
663 2003-10-27  Anthony Green  <green@redhat.com>
665         * Make-lang.in (f95.stageprofile): Use tabs, not spaces.
666         (f95.stagefeedback): Ditto.
668 2003-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
670         PR fortran/12682
671         * Make-lang.in (f95.stageprofile): Add.
672         (f95.stagefeedback): Add.
674 2003-10-23  Richard Henderson  <rth@redhat.com>
676         * f96-lang.c (gfc_gimplify_expr): Remove.
677         (LANG_HOOKS_GIMPLIFY_EXPR): Remove.
678         (LANG_HOOKS_GIMPLE_BEFORE_INLINING): New.
680 2003-10-23  Richard Henderson  <rth@redhat.com>
682         * f95-lang.c (gfc_gimplify_expr): Return gimplify_status.
684 2003-10-20  Paul Brook  <paul@nowt.org>
686         * trans-expr.c (gfc_conv_integer_power): Use boolean_type_node.
687         * trans-stmt.c (gfc_trans_do_while): Ditto.
689 2003-10-17  Paul Brook  <paul@nowt.org>
691         * simplify.c (gfc_simplify_shape): Use gfc_array_dimen_size.
693 2003-10-17  Paul Brook  <paul@nowt.org>
695         * trans-io.c (gfc_build_io_library_fndecls): Set TREE_PUBLIC.
697 2003-10-17  Feng Wang  <wf_cs@yahoo.com>
699         * iresolve.c (gfc_resolve_maxloc): Change the result's kind and type.
700         (gfc_resolve_minloc): Ditto.
701         * trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Use correct types.
702         Return the value after subtracting the lower bound.
704 2003-10-16  Richard Henderson  <rth@redhat.com>
706         * f95-lang.c (expand_function_body): Don't check flag_disable_gimple.
708 2003-10-16  Steven Bosscher  <steven@gcc.gnu.org>
710         * lang.c: Remove -M option for now, it's in the way for C.
712 2003-10-14  Jason Merrill  <jason@redhat.com>
714         * Make-lang.in (f95.tags): New rule.
716 2003-10-13  Richard Henderson  <rth@redhat.com>
718         * trans.c (gfc_trans_code): Use annotate_all_with_locus.
720 2003-10-13  Paul Brook  <paul@nowt.org>
722         * trans-decl.c (generate_local_decl): Don't create junk variables.
724 2003-10-13  Paul Brook  <paul@nowt.org>
726         * resolve.c (resolve_formal_arglist): Use function result decl in
727         preference to function decl.
729 2003-10-12  Richard Henderson  <rth@redhat.com>
731         * f95-lang.c (gfc_define_builtin): New const_p argument.  Set
732         TREE_READONLY.  Update all callers.
734 2003-10-12  Feng Wang  <wf_cs@yahoo.com>
736         * iresolve.c (gfc_resolve_cshift): Change to match implementation.
737         * trans-intrinsic.c (gfc_conv_intrinsic_function): Remove CSHIFT.
738         (gfc_is_intrinsic_libcall): Add CSHIFT.
740 2003-10-12  Richard Henderson  <rth@redhat.com>
742         * trans-array.c (gfc_trans_static_array_pointer): Set TREE_INVARIANT.
743         (gfc_trans_array_constructor_value): Likewise.
744         (gfc_conv_array_initializer): Likewise.
745         * trans-stmt.c (gfc_trans_character_select): Likewise.
747 2003-11-12  Kejia Zhao  <kejia_zh@yahoo.com.cn>
749         * trans-intrinsic.c (integer_kind_info, real_kind_info): Remove.
751 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
753         * check.c (gfc_check_repeat): Check arguments are scalar.
754         (gfc_check_trim): New function.
755         * intrinsic.h (gfc_check_trim): Add prototype.
756         * intrinsic.c (add_functions): Use it.
757         * trans.h (gfor_fndecl_string_trim, gfor_fndecl_string_repeat):
758         Decalare.
759         * trans-decl.c: Ditto.
760         (gfc_build_intrinsic_fucntion_decls): Set them.
761         * trans-intrinsic.c (gfc_conv_intrinsic_len): Handle result vars.
762         (gfc_conv_intrinsic_trim): New function.
763         (gfc_conv_intrinsic_repeat): New function.
764         (gfc_conv_intrinsic_function): Use them.
766 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
768         * trans-types.c (gfc_sym_type): Handle result variables.
770 2003-10-11  Huang Chun  <jiwang@mail.edu.cn>
772         * trans-intrinsic.c (gfc_conv_intrinsic_char): Don't use
773         gfc_get_character_type.
775 2003-10-11  Feng Wang  <wf_cs@yahoo.com>
777         * trans-expr.c (gfc_conv_variable): Check sym->ts, not the decl.
779 2003-10-11  Paul Brook  <paul@nowt.org>
781         * iresolve.c (gfc_resolve_dint, gfc_resolve_dnint): New functions.
782         (gfc_resolve_dprod): New function.
783         (gfc_resolve_aint, gfc_resolve_anint): Only base name on arg type.
784         * intrinsic.h (gfc_resolve_dint, gfc_resolve_dnint): Declare.
785         (gfc_resolve_dprod): Declare.
786         * intrinsic.c (add_functions): Use them.
787         * trans-decl.c (gfc_get_extern_function_decl): Only pass one arg.
789 2003-10-06  Richard Henderson  <rth@redhat.com>
791         * f95-lang.c (gfc_init_builtin_functions): Add clzll.
792         * trans-intrinsic.c (call_builtin_clz): Use it.
794 2003-10-05  Paul Brook  <paul@nowt.org>
796         * f95-lang.c (expand_function_body): Call (push|pop)_function_context.
797         * trans-decl.c (gfc_generate_function_code): Set
798         cfun->function_end_locus.
800 2003-09-24  Jason Merrill  <jason@redhat.com>
802         * f95-lang.c, trans-decl.c: Use DECL_SOURCE_LOCATION instead of
803         TREE_LOCUS.
805 2003-09-21  Lifang Zeng  <zlf605@hotmail.com>
806         Paul Brook  <paul@nowt.org>
808         * Make-lang.in (F95_OBJS): Add fortran/data.o.
809         * array.c (gfc_inser_constructor): New function.
810         (gfc_get_constructor): New function.
811         (gfc_free_constructor): Initialize offset and repeat.
812         (iterator_stack): Remove.
813         (expand_info): Add offset, component and repeat fields.
814         (expand_constructor): Set them.
815         (expand): Set new fields.
816         (gfc_copy_constructor): Ditto. Avoid recursion.
817         * gfortran.h: Add prototypes for new functions.
818         (gfc_constructor): Add offset, component and repeat.
819         (iteratio_stack): Move to here.
820         * resolve.c (check_data_variable): Convert data values into variable
821         initializers.
822         (traverse_data_list): Build implicit loop chain.
823         (gfc_resolve): Ditto.
824         * trans-array.c (gfc_conv_array_intializer): Handle repeat count.
825         * trans-decl.c (gfc_get_symbol_decl): Use gfc_conv_structure.
826         * trans-expr.c (gfc_conv_structure): Handle array initializers.
827         (gfc_conv_expr): Update to match.
828         * trans.h (gfc_conv_structure): Declare.
829         * data.c: New file.
831 2003-09-20  Kejia Zhao  <kejia_zh@yahoo.com.cn>
833         * trans.h: Add declarations for gfor_fndecl_si_kind and
834         gfor_fndecl_sr_kind.
835         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
836         * trans-intrinsic.c (g95_conv_intrinsic_si_kind): New function.
837         (g95_conv_intrinsic_sr_kind): New function.
838         (g95_conv_intrinsic_function): Add SELECTED_INT_KIND and
839         SELECTED_REAL_KIND.
841 2003-09-17  Lars Segerlund  <Lars.Segerlund@comsys.se>
843         * iresolve.c (gfc_resolve_random_number): Generate _r4 & _r8
844         instead of _4 and _8 as postfix for libgfortran calls.
846 2003-09-16  Paul Brook  <paul@nowt.org>
848         * array.c (compare_bounds): New function.
849         (gfc_compare_array_spec): Use it.
851 2003-09-14  Paul Brook  <paul@nowt.org>
853         * primary.c (gfc_match_rvalue): Make sure sym->result is set.
854         * trans-expr.c (gfc_conv_string_parameter): Also allow PRAM_DECLs.
856 2003-09-14  Paul Brook  <paul@nowt.org>
858         * check.c (dim_rank_check): Allow assumed bounds if requested.
859         (gfc_check_lbound): Call it.
860         (gfc_check_ubound): Ditto.
861         (gfc_check_size): Change to match.
862         * simplify.c (gfc_simplify_bound): New function.
863         (gfc_simplify_lbound): New function.
864         (gfc_simplify_ubound): New function.
865         * intrinsic.h: Declare them.
866         * intrinsic.c (add_functions): Use them.
868 2003-09-14  Paul Brook  <paul@nowt.org>
870         * io.c (format_lex): Initialize negative_flag.
871         (check_format): Intialize repeat.
872         * trans-io.c (gfc_new_nml_name_expr): Declare static.
873         (gfc_new_var_expr): Ditto.
875 2003-09-14  Paul Brook  <paul@nowt.org>
877         * trans-array.c (gfc_conv_array_initializer): Handle derived types.
878         * trans-decl.c (gfc_get_symbol_decl): Only do local scalar values.
880 2003-09-12  Paul Brook  <paul@nowt.org>
882         * trans-intrinsic.c (gfc_conv_intrinsic_sign): Call fold.
884 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
886         * fortran/trans.c (gfc_finish_block): Call rationalize_compound_expr
887         for a correct expression.
889 2003-09-10  Kejia Zhao  <kejia_zh@yahoo.com.cn>
891         * trans-intrinsic.c (real_compnt_info): New struct.
892         (prepare_arg_info): New function.
893         (gfc_conv_intrinsic_set_exponent): New function.
894         (gfc_conv_intrinsic_scale): New function.
895         (gfc_conv_intrinsic_nearest): New function.
896         (gfc_conv_intrinsic_fraction): New function.
897         (gfc_conv_intrinsic_exponent): New function.
898         (gfc_conv_intrinsic_spacing): New function.
899         (gfc_conv_intrinsic_rrspacing): New function.
900         (gfc_conv_intrinsic_function): Use them.
902 2003-08-24 XiaoQiang Zhang  (zhangapache@yahoo.com>
904         * trans-const.c (gfc_conv_mpz_to_tree): Fix bug, parameter for 
905         build_int_2 changed from (high, low) to (low, high).
906         * trans-io.c (ioparm_namelist_name, ioparm_namelist_name_len,
907         ioparm_namelist_read_mode, iocall_set_nml_val_int,
908         iocall_set_nml_val_float, iocall_set_nml_val_char,
909         iocall_set_nml_val_complex, iocall_set_nml_val_log): New declaration.
910         (gfc_build_io_library_fndecls): Add variable initialization.
911         (gfc_new_nml_name_expr, get_new_var_expr): New function.
912         (build_dt): Add namelist support.
913         * io.c (value): New variable.
914         (check_format): Support FMT_H now.
916 2003-09-07  Paul Brook  <paul@nowt.org>
918         * io.c (gfc_resolve_dt): Error if format label is not defined.
920 2003-09-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
922         * trans-intrinsic.c (gfc_conv_intrinsic_aint): Fix two bugs. One is 
923         about case_switch's break. The other is about building the condition 
924         statement tree, which judges the argument in the range of the 
925         corresponding integer type.
926         * trans-intrinsic.c (gfc_conv_intrinsic_mod): MOD and MODULO can work
927         for the large values.
929 2003-09-05  Paul Brook  <paul@nowt.org>
931         * f95-lang.c (expand_function_body): Gimplify the function.
933 2003-09-04  Jeff Law  <law@redhat.com>
935         * f95-lang.c (DEFINE_MATH_BUILTIN): C arrays start at
936         index zero!
938 2003-09-04  Paul Brook  <paul@nowt.org>
940         * f95-lang.c (gfc_define_builtin): Also set implicit_built_in_decls.
941         (gfc_expand_stmt): New function.
942         (LANG_HOOKS_RTL_EXPAND_STMT): Define.
943         (expand_function_body): Use tree_rest_of_compilation.
944         * trans-decl.c (gfc_generate_function_code): Don't free cfun.
946 2003-09-03  Jeff Law  <law@redhat.com>
948         * f95-lang.c (gfc_init_builtin_functions): C arrays start at
949         index zero!
951 2003-08-30  Paul Brook  <paul@nowt.org>
953         * f95-lang.c (builtin_function): Remove #if 0 code.
954         (gfc_define_builtin): New function.
955         (gfc_init_builtin_functions): Use mathbuiltins.def not ../builtins.def.
956         * mathbuiltins.def: New file.
957         * trans-intrinsic.c (gfc_intrinsic_map_t): Add builtin code fields.
958         (gfc_intrinsic_map): Use mathbuiltins.def.
959         (gfc_intrinsic_builtin_t): Remove.
960         (gfc_build_intrinsic_lib_fndecls): Update.
961         * trans-types.c (gfc_init_types): Remove redundant initilaization of
962         signed_size_type_node.
964 2003-08-29  Paul Brook  <paul@nowt.org>
966         * arith.c (gfc_real_kinds): Use correct minimum exponents.
968 2003-08-22  Kejia Zhao  <kejia_zh@yahoo.com.cn>
970         * trans-instinsic.c (gfc_conv_intrinsic_mod): Also do MODULO.
971         (gfc_conv_intrinsic_function): Add MODULO.
973 2003-08-22  Jason Merrill  <jason@redhat.com>
975         * trans-array.c (gfc_conv_expr_descriptor): Update use of predicates.
977 2003-08-22  Andreas Jaeger  <aj@suse.de>
979         * Make-lang.in (f95.install-common): Add DESTDIR support.
980         * (f95.install-info): Likewise.
981         (f95.uninstall): Likewise.
983 2003-08-19  Diego Novillo  <dnovillo@redhat.com>
985         * trans-types.c (gfc_init_types): Initialize
986         signed_size_type_node with size_type_node.
988 2003-08-18  Paul Brook  <paul@nowt.org>
990         * dependency.c (gfc_dependency): New enum.
991         (check_another_array_ref): Remove.
992         (gfc_get_array_from_component): Remove.
993         (get_x): Remove.
994         (get_range): Remove.
995         (get_no_of_elements): Use mpz_t, not mpf_t.
996         (transform_sections): New function.
997         (gfc_check_range_range): Rename ...
998         (gfc_check_section_vs_section): ... to this.  Use new function.
999         (gfc_is_inside_range): Rewrite to match.
1000         (gfc_check_element_vs_section): Ditto.
1001         (gfc_check_element_vs_element): Ditto.
1002         (get_deps): Ditto.
1003         (gfc_dep_resolver): Ditto.  Remove unused parameter.
1004         * Dependency.h (gfc_check_range_range, gfc_check_element_vs_section,
1005         gfc_check_element_vs_element, gfc_is_inside_range,
1006         gfc_get_array_from_component): Remove prototypes for static functions.
1007         (gfc_dep_resolver): Update prototype.
1008         * trans-array.c (gfc_conv_resolve_dependencies): Change to match.
1010 2003-08-15  Paul Brook  <paul@nowt.org>
1012         * trans-decl.c (gfc_build_qualified_array): Don't add symbols for
1013         return values to parent scope.
1014         (gfc_build_dummy_array_decl): Ditto.
1016 2003-08-14  Paul Brook  <paul@nowt.org>
1018         * trans-stmt.c (gfc_trans_allocate): Handle NULL refs. Allocate the
1019         size of the type, not the pointer.
1020         * resolve.c (resolve_symbol): Give more accurate error message.
1022 2003-08-10  Paul Brook  <paul@nowt.org>
1024         * trans-decl.c (gfc_build_function_decl): Only mangle global symbols.
1026 2003-08-10  Paul Brook  <paul@nowt.org>
1028         * trans-stmt.c (gfc_trans_allocate): Correctly handle non-array derived
1029         type components.
1031 2003-08-10  Chun Huang  <compiler@sohu.com>
1033         * resolve.c (resolve_formal_arglist): Resolve STATEMENT function.
1034         (resolve_symbol): Ditto.
1035         * trans-expr.c (gfc_conv_statement_function): New function.
1036         (gfc_conv_function_expr): Use it.
1038 2003-08-10  Paul Brook  <paul@nowt.org>
1040         * trans-array.c (gfc_conv_ss_startstride): Handle functions.
1041         (walk_function_expr): Set section rank.
1042         * trans-intrinsic.c (gfc_walk_intrinsic_libfunc): Ditto.
1044 2003-08-10  Paul Brook  <paul@nowt.org>
1046         * intrinsic.c (add_sym): Prefix names with correct string.
1047         (add_sym_0s): New function.
1048         (add_subroutines): Register abort.
1050 2003-08-10  Erik Schnetter  <schnetter@uni-tuebingen.de>
1052         * gfortran.h: Introduce options to control the mangling.
1053         * lang.opt: Likewise.
1054         * options.c (gfc_init_options): Handle the options.
1055         * trans-common.c (gfc_sym_mangled_common_id): New function.
1056         (gfc_build_common_decl): Call it.
1057         * trans-decl.c (gfc_sym_mangled_function_id): New function.
1058         (gfc_get_extern_function_decl, gfc_build_function_decl): Call it.
1060 2003-08-09  Paul Brook  <paul@nowt.org>
1062         * module.c (mio_symbol): Always ouput a namespace for formal args.
1063         (load_needed): Namespace now belong to their proper symbol.
1064         (gfc_dump_module): Change G95=>GFORTRAN.
1066 2003-08-05  Paul Brook  <paul@nowt.org>
1068         * options.c: Force -fg77-calls.
1070 2003-08-02  Paul Brook  <paul@nowt.org>
1072         * Makelang.in: Rename G95_* to GFORTRAN_*.
1073         * All sources: Rename G95_* to GFC_*.
1075 2003-08-01  Paul Brook  <paul@nowt.org>
1077         * fortran/Make-lang.in: Use GMPLIBS.
1078         * fortran/config-lang.in: Set need_gmp.
1079         * trans-expr.c (gfc_conv_variable): Remove incorrect assertion.
1081 2003-07-27  Andreas Jaeger  <aj@suse.de>
1083         * trans-decl.c (gfc_generate_constructors): Convert prototype to
1084         ISO C90.
1085         * trans-const.c (gfc_init_constants): Likewise.
1086         * trans-intrinsic.c (gfc_build_intrinsic_lib_fndecls): Likewise.
1088         * gfortranspec.c: Convert to ISO C90.
1089         (lang_specific_driver): Correct copyright, remove ALT_LIBM usage.
1091 2003-07-26  Paul Brook  <paul@nowt.org>
1093         * lang.opt: Add -fdump-parse-tree.
1094         * options.c (gfc_handle_option): Ditto.
1095         * resolve.c (resolve_forall_iterators): Convert to proper type.
1096         * trans-stmt.c (gfc_trans_forall_1): Create temp var with correct type.
1098 2003-07-26  Paul Brook  <paul@nowt.org>
1100         * Makefile.in: Add build dependencies on files common with rest of gcc.
1102 2003-07-26  Lifang Zeng  <zlf605@hotmail.com>
1104         * trans.h: Declare g95_trans_pointer_assignment.
1105         * trans-expr.c (g95_trans_pointer_assignment): New function.
1106         (g95_trans_pointer_assign): Use it.
1107         * trans-stmt.c (g95_trans_forall_1): Handle pointer assignment.
1108         (g95_trans_pointer_assign_need_temp): New function.
1110 2003-07-26  Paul Brook  <paul@nowt.org>
1112         * gfortran.texi: Replace references to g95.
1114 2003-07-26  Paul Brook  <paul@nowt.org>
1116         Rename g95_* to gfc_*.
1118 2003-07-25  Paul Brook  <paul@nowt.org>
1119         
1120         * gfortran.h: Rename from g95.h.
1121         * trans-types.c (boolean_type_node, booelan_true_node,
1122         boolean_false_node): Remove.
1123         * trans-types.h: Ditto.
1125 2003-07-25  Chun Huang  <compiler@sohu.com>
1127         * parse.c (accept_statement): Implement BLOCK DATA statement.
1128         * trans-expr.c (g95_conv_variable): Fix bug for dereference pointer
1129         variables.
1131 2003-07-24  Lifang Zeng  <zlf605@hotmail.com>
1133         * trans-stmt.c (temporary_list): Define.
1134         (g95_trans_assign_need_temp): New function.
1135         (g95_trans_forall_1): Modified for WHERE.
1136         (g95_trans_where_assign): Modified.
1137         (g95_trans_where_2): Modified.
1138         (g95_evaluate_where_mask): Modified.
1139         (g95_trans_where): Modified.
1140         (g95_get_temp_expr): Removed.
1141         (g95_add_to_where_stmt_list): Removed.
1142         (compute_overall_iter_number): Modified for WHERE.
1143         * trans.h: Remove where_stmt_list.
1145 2003-07-24  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1147         * lang.opt: Correct description of options -J and -M.
1149 2003-07-23  Steven Bosscher   <steven@gcc.gnu.org>
1151         * lang.opt: Move help text to here.
1152         * lang-options.h: Remove.
1154 2003-07-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1155         * iresolve.c (g95_resolve_transpose): Proper variable in switch.
1156         * simplify.c (g95_simplify_nearest): Fix typo and use a correct test
1157         on kind.
1159 2003-07-22  Steven Bosscher  <steven@gcc.gnu.org>
1160         Paul Brook  <paul@nowt.org>
1162         * check.c (check_rest): Use global pedantic flag.
1163         * io.c (data_desc): Ditto.
1164         * error.c (g95_warning, g95_warning_now): Use global flag.
1165         * f95-lang.c (LANG_HOOKS_HANDLE_OPTION): Rename from DECODE.
1166         (expand_function_body): Update to new prototypes.
1167         (g95_init): Use new option names.
1168         * g95.h (g95_option_t): Standardize names.
1169         (g95_init_options, g95_handle_option): Update prototypes.
1170         * interface.c: Use new option names.
1171         * match.c: Ditto.
1172         * module.c: Ditto.
1173         * parse.c: Ditto.
1174         * primary.c: Ditto.
1175         * resolve.c: Ditto.
1176         * scanner.c: Ditto.
1177         * simplify.c: Ditto.
1178         * symbol.c: Ditto.
1179         * trans-array.c: Ditto.
1180         * trans-expr.c: Ditto.
1181         * trans-types.c: Ditto.
1182         * trans-decl.c: Ditto.
1183         (g95_build_library_function_decl): Remove obsolete VPARAMS.
1184         * trans.h: Ditto.
1185         * options.c (g95_display_help): Remove.
1186         (g95_init_options): Convert to new scheme.
1187         (set_Wall): Ditto
1188         (g95module_option): Ditto, rename from g95_parse_arg.
1189         (g95_handle_module_path_options): New function.
1190         * trans-equivalence.c: Fix error message.
1191         * lang.opt: Corrections.
1193 2003-07-21  Steven Bosscher  <steven@gcc.gnu.org>
1195         * lang.opt: New file.
1197 2003-07-21  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1199         * decl.c (match_attr_spec): Set colon_seen.
1201 2003-07-14  Paul Brook  <paul@nowt.org>
1203         * trans-array.c: Update comment.
1204         (g95_trans_array_constructor_subarray): Cleanup loopinfo data.
1205         * trans-intrinsic.c (g95_conv_intrinsic_anyall,count,arith,
1206         minmaxloc,minmaxval): Ditto.
1207         * trans-io.c (g95_trans_transfer): Ditto.
1208         * trans-stmt.c: Remove unneeded prototypes.
1209         (generate_loop_for_lhs_to_rhs): Rename vars. Add loop post chain.
1210         (generate_loop_for_rhs_to_temp): Rename vars. Don't share loopinfo.
1211         (compute_inner_temp_size): Remove bits of dead code. Add comments.
1212         Don't share loopinfo.
1213         (compute_overall_iter_number): Declare as static.
1214         (allocate_temp_for_forall_nest): Ditto.
1215         (g95_trans_forall_1): Don't pass shared loopinfo.
1216         * trans.c (g95_start_block): Expand comment.
1218 2003-07-12  Paul Brook  <paul@nowt.org>
1220         * arith.c (g95_index_integer_kind): Remove unused initializer.
1221         * trans-stmt.c (generate_loop_for_temp_to_lhs): Don't multiply array
1222         index by size of element.
1223         (generate_loop_for_rhs_to_temp): Ditto.
1224         (allocate_temp_for_forall_nest): Use element size, not index size.
1226 2003-07-11  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1228         * arith.c (g95_index_integer_kind): Add a TODO.
1229         * simplify.c (g95_simplify_nearest): Add a TODO.
1231 2003-07-09  Chun Huang  <compiler@sohu.com>
1233         * trans.h: Add declarations for gfor_fndecl_string_scan and
1234         gfor_fndecl_string_verify.
1235         * trans-decl.c (g95_build_intrinsic_function_decls): Build them.
1236         * trans-intrinsic.c (g95_conv_intrinsic_scan): New function.
1237         (g95_conv_intrinsic_verify): New function.
1238         (g95_conv_intrinsic_function): Add SCAN and VERIFY.
1239         * simplify.c (g95_simplify_scan, g95_simplify_verify): Fix bug in case
1240         of parameter 'BACK=.TRUE.'
1242 2003-07-05  Lifang Zeng  <zlf605@hotmail.com>
1244         * trans-stmt.c (iter_info, forall_info): Define.
1245         (g95_trans_forall_block): Remove.
1246         (g95_trans_forall_loop): Use forall info blocks.
1247         (g95_trans_nested_forall_loop): New function.
1248         (g95_do_allocate): Handle things other than logical masks.
1249         (generate_loop_for_temp_to_lhs): New function.
1250         (generate_loop_for_rsh_to_temp): New function.
1251         (compute_inner_temp_size): New function.
1252         (compute_overall_iter_number): New function.
1253         (allocate_temp_for_forall_nest): New function.
1254         (g95_trans_forall): Move body ...
1255         (g95_trans_forall_1): ... to here.  Handle loops with temporaries.
1257 2003-07-02  Paul Brook  <paul@nowt.org>
1259         * trans-decl.c (create_index_var, g95_build_qualified_array): Put vars
1260         in correct scope.  Change callers to match.
1261         * trans-types.c (g95_get_dtype_cst): Allow rank 7 arrays.
1262         * iresolve.c (g95_resolve_reshape): Only use constant shapes.
1264 2003-07-02  Paul Brook  <paul@nowt.org>
1266         * trans-array.c (g95_conv_loop_setup): Remove dead var.  Use
1267         expression shape for all expressions.
1268         * trans-decl.c (g95_symbol_init): Allow adding at very end of list.
1270 2003-07-03  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1272         * g95.h (g95_option_t), lang-options.h, options.c (g95_init_options,
1273         g95_parse_arg), intrinsic.c (g95_convert_type): support of
1274         -Wconversion.
1275         * intrinsic.c, g95.h: Add g95_convert_type_warn,
1276         * resolve.c (g95_resolve_index): Call it.
1278 2003-07-02  Paul Brook  <paul@nowt.org>
1280         * iresolve.c (g95_resolve_reshape): Set expression shape.
1281         (g95_resolve_shape): Ditto.
1282         * simplify.c (g95_simplify_shape): Move common code outside condition.
1283         * trans-array.c (g95_conv_array_initializer): Teach it how to count.
1285 2003-07-01  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1287         * array.c (g95_array_dimen_size): Deal with EXPR_ARRAY to improve
1288         conformance checks.
1290 2003-06-29  Paul Brook  <paul@nowt.org>
1292         * array.c (g95_simplify_iterator_var): Don't bother with return value.
1293         * expr.c (find_array_element, find_component_ref): New functions.
1294         (remove_subobject_ref): New function.
1295         (simplify_const_ref): Use them.  Rename from simplify_component_ref.
1296         (simplify_ref_chain): New function.
1297         (g95_simplify_expr): Use it.  Simplify parameter variable subobjects.
1298         (g95_specification_expr): Simplify the expression.
1299         * resolve.c (resolve_operator): Check simplifications return code.
1300         (g95_resolve_expr): Ditto.
1302 2003-06-26  Paul Brook  <paul@nowt.org>
1304         * expr.c (simplify_component_ref): New function.
1305         (g95_simplify_expr): Use it.
1306         * resolve.c (resolve_structure_cons): Handle references.
1308 2003-06-25  Paul Brook  <paul@nowt.org>
1310         * trans-io.c (build_dt): Handle internal units.
1312 2003-06-25  Canqun Yang  <canqun@yahoo.com.cn>
1314         * trans-common.c (g95_build_common_decl): Array index range starts at 0.
1315         (g95_build_common_decl, g95_layout_global_equiv, g95_trans_one_common):
1316         Use g95_array_index_type instead of integer_type_node.
1317         (g95_build_common_decl, g95_set_common_master_type): Use
1318         g95_character1_type_node instead of char_type_node.
1319         * trans-equivalence.c (g95_layout_local_equiv): As above.
1321 2003-06-24  Steven G. Kargl  <kargls@attbi.com>
1323         * g95.h (g95_option_t), options.c (g95_init_options, g95_parse_arg):
1324         remove last remains of -fquiet.
1326 2003-06-22  Paul Brook  <paul@nowt.org>
1328         * resolve.c (resolve_operator): Don't fail if we can't simplify.
1329         (g95_resolve_expr): Ditto.
1330         (resolce_code): Mark as static.
1331         * trans-stmt.c (g95_trans_chaaracter_select): Mark labels because the
1332         gimplifer doesn't (yet).
1334 2003-06-20  Paul Brook  <paul@nowt.org>
1336         * g95.h: Add ST_PAUSE and EXEC_PAUSE.
1337         * match.c (g95_match_if): Add ST_PAUSE.
1338         (g95_match_stopcode): New function.
1339         (g95_match_pause, g95_match_stop): Use it.
1340         * parse.c (g95_ascii_statement): Handle ST_PAUSE.
1341         (decode_stmt, next_statement, parse_executable): Ditto.
1342         * resolve.c (resolve_code): Ditto.
1343         * st.c (g95_free_statement): Ditto.
1344         * trans-stmt.c (g95_trans_pause): New function.
1345         * trans-stmt.h: Declare it.
1346         * trans.c (g95_trans_code): Use it.
1347         * trans-decl.c (gfor_fndecl_pause_numeric, gfor_fndecl_pause_string):
1348         Declare.
1349         (g95_build_builtin_function_decls): Initialize them.
1350         * trans.h: Ditto.
1351         * dump-parse-tree.c (g95_show_code_node): Handle EXEC_PAUSE.
1353 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1355         * io.c (g95_match_open , g95_match_close, g95_match_inquire,
1356         match_filepos): Fix error handling.
1358 2003-06-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1360         * array.c (spec_dimen_size, ref_dimen_size, g95_array_dimen_size):
1361         Add assertions on arguments.
1362         * resolve.c (expression_shape): Remove useless &.
1363         * simplify.c (get_kind, g95_simplify_bit_size, g95_simplify_digits,
1364         g95_simplify_ibclr, g95_simplify_ibits, g95_simplify_ibset,
1365         g95_simplify_ishft,g95_simplify_ishftc, g95_simplify_maxexponent,
1366         g95_simplify_minexponent, g95_simplify_radix, g95_simplify_range
1367         g95_simplify_rrspacing, g95_simplify_scale, g95_simplify_spacing,
1368         g95_simplify_tan, g95_simplify_tiny): Clean predicates and assertions.
1369         (g95_simplify_not, g95_simplify_scale): Add assertions.
1371 2003-06-15  Paul Brook  <paul@nowt.org>
1373         Clean up stuff to work with the ssa optimizers.
1374         * convert.c (convert): Handle BOOLEAN_TYPEs.
1375         * f95-lang.c (g95_truthvalue_conversion): Implement.
1376         * trans-array.c (g95_trans_array_constructor_value): Group multiple
1377         scalar values.
1378         * trans.h (g95_truthvalue_conversion): Declare.
1379         * trans-intrinsic.c (g95_conv_intrinsic_anyall): Use bool constants.
1380         * trans-stmt.c (g95_trans_character_select): Don't create array
1381         assignments.  Mark labels as indirect jump targets.
1382         * trans-types.h (g95_init_types): Use BOOLEAN_TYPE nodes.
1383         (g95_get_dtype_cst): Handle LOGICAL types.
1385 2003-06-14  Paul Brook  <paul@nowt.org>
1387         * f95-lang.c (g95_gimplify_expr): New function.
1388         * trans-array.c (g95_trans_array_constructor_value): Don't create
1389         array assignments.
1390         (g95_conv_expr_descriptor): Rename simple->gimple.
1391         * trans-expr.c (conv_expr_op): Use proper logical operators.
1392         * trans-intrinsic.c (build_fixbound_expr): New function.
1393         (build_fix_expr): Ditto.
1394         (g95_conv_intinsic_aint): Use them. Use builtin functions.
1395         (g95_conv_intrinsic_function): Add FLOOR and CEILING.
1397 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1399         * array.c (g95_compare_array_spec): Remove unreachable code.
1400         * expr.c (g95_copy_expr): Likewise.
1401         * intrinsic.c (g95_convert_type): Likewise.
1402         * misc.c (g95_code2string): Likewise.
1403         * simplify.c (g95_simplify_ishft, g95_simplify_real,
1404         g95_simplify_reshape, g95_simplify_sign, g95_simplify_sqrt): Likewise.
1405         * trans-stmt.c (g95_trans_select): Likewise.
1406         * primary.c (extend_ref): Add an assertion.
1407         * simplify.c (g95_convert_constant): Add const.
1408         * intrinsic.h: Remove g95_check_x_ni.
1409         * f95-lang.c (g95_finish): Call g95_release_include_path.
1411 2003-06-10  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1413         * resolve.c (resolve_contained_functions): Fix typo introduced on
1414         2003-01-13.
1416 2003-06-09  Paul Brook  <paul@nowt.org>
1418         * g95.h: Include system.h not hwint.h.
1419         * many: use safe-ctype.h not ctype.h.  Change isalpha -> ISALPHA, etc.
1420         * misc.c (g95_getmem): Use xmalloc/memset instead of calloc.
1422 2003-06-09  Paul Brook  <paul@nowt.org>
1424         * g95.h (g95_symbol): Add fields for COMMON and EQUIVALENCE variables.
1425         * Make-lang.in (F95_OBJS): Add files for COMMON and EQUIVALENCE.
1426         * trans-decl.c (g95_add_decl_to_functions): Make non-static.
1427         (g95_get_symbol_decl): Handle COMMON and EQUIVALENCE objects.
1428         (g95_generate_function_code): Translate COMMON and EQUIVALENCE
1429         objects.
1430         * trans.h (g95_trans_equivalence, g95_trans_common,
1431         g95_add_decl_to_function): Declare.
1432         * trans-common.c, trans-equivalence.c: New files.
1434 2003-06-08  Steven Bosscher  <steven@gcc.gnu.org>
1436         * intrinsic.c (g95_intrinsic_extension): Remove.
1437         (add_functions): Substitute g95_check_x for g95_check_x_ni
1438         everywhere.
1439         (g95_init_expr_extensions): New function.
1440         (g95_intrinsic_func_interface): Use it.
1441         * intrinsic.h: Remove extern decl for g95_intrinsic_extension.
1442         * check.c (g95_check_digit, g95_check_huge, g95_check_kind,
1443         g95_check_precision, g95_check_present, g95_check_radix,
1444         g95_check_range, g95_check_selected_real_kind): Do not set
1445         g95_intrinsic_extension.
1446         (g95_check_x_ni): Remove now duplicate of g95_check_x.
1448         * expr.c (check_inquiry): Add FIXME, fixup some code style.
1450 2003-06-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1452         * g95.h (ref_type): Name this type explicitly.
1453         * module.c (MIO_NAME): Add specialisations of mio_name.
1454         (mio_symbol_attribute, mio_typespec, mio_array_ref,
1455         mio_array_spec, mio_ref, mio_expr, mio_symbol): Use them.
1456         (ab_attribute): Name this type explicitly.
1457         (mio_symbol_attribute, mio_expr): Add cast to call to find_enum.
1459 2003-06-05  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1461         * trans-intrinsic.c (g95_conv_allocated): New function.
1462         (g95_conv_intrinsic_function): Make G95_ISYM_ALLOCATED work.
1464 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
1466         * f95-lang.c: Don't include g95-support.h
1467         (g95_mark_addressable): Add prototype.
1468         (g95_init_decl_processing): Remove C front end hack.
1469         * f95-tree.c: Remove file.
1470         * support.c: Remove file.
1471         * g95-support.h: Remove file.
1472         * trans-types.c (g95_init_types): Set up boolean
1473         type related tree nodes.
1474         * Make-lang.in: Remove rules for dead files and
1475         dependencies on them.
1477 2003-06-05  Steven Bosscher  <steven@gcc.gnu.org>
1479         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove the final
1480         C front end dependency.  Also, convert.c does not depend on
1481         g95-support.h anymore.
1482         * convert.c: Don't include c-common.h and g95-support.h
1483         * f95-lang.c: Don't inlude c-common.h and c-common.def (3x).
1484         (g95_stmt_tree, g95_scope_stmt_stack, anon_aggr_type_p,
1485         stmts_are_full_exprs_p, current_stmt_tree,
1486         current_scope_stmt_stack): Remove.
1487         * g95-support.h (unsigned_conversion_warning): Kill proto.
1488         (boolean_type_node, boolean_true_node, boolean_false_node):
1489         Don't define here.  Instead, make then true tree nodes in
1490         trans-types.
1491         * support.c (c_global_trees): Die, C front end, die!!!
1492         (g95_init_c_decl_hacks): Don't touch intmax_type_node,
1493         uintmax_type_node, string_type_node and const_string_type_node.
1494         (decl_constant_value, overflow_warning): Make static functions.
1495         They are in death row too, though.
1496         (default_conversion, c_expand_asm_operands): Remove.
1497         * trans-array.c, trans-expr.c, trans-intrinsic.c, trans-stmt.c,
1498         trans.c: Don't include c-common.h.
1499         * trans-types.c (boolean_type_node, boolean_true_node,
1500         boolean_false_node): Make them real tree nodes.
1501         * trans-types.h (intmax_type_node, string_type_node,
1502         const_string_type_node): Hack to work around C dependencies
1503         in builtin-types.def.
1505 2003-06-04  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1507         * decl.c (decl_types): Add some iterators-like sentinels.
1508         * decl.c (match_attr_spec): Use them.
1509         Use "decl_types" instead of "int".
1510         Add cast in call to g95_match_strings.
1511         * dump-parse-tree.c (g95_show_namespace):  Use "g95_intrinsic_op"
1512         instead of "int".
1513         * g95.h (g95_intrinsic_op): Add some iterators-like sentinels.
1514         (g95_interface_info): Use "g95_intrinsic_op".
1515         * dump-parse-tree.c (g95_show_namespace): Use them.
1516         * interface.c (g95_check_interfaces): Use them.
1517         * module.c (read_module, write_module): Use them.
1518         * symbol.c (g95_get_namespace, g95_free_namespace): Use them.
1519         Use "g95_intrinsic_op".
1520         * interface.c (check_operator_interface): Use "g95_intrinsic_op".
1521         Add a default case in switch statement.
1522         * intrinsic.h (g95_generic_isym_id): Moved to...
1523         * g95.h (g95_generic_isym_id): here.
1524         (g95_intrinsic_sym): Use "g95_generic_isym_id".
1525         * intrinsic.c (make_generic): Use "g95_generice_isym_id".
1526         * trans-intrinsic.c (g95_intrinsic_map_t,
1527          g95_conv_intrinsic_lib_funtion): Use "g95_generice_isym_id".
1528         * match.c (g95_match_intrinsic_op): Add cast in call to
1529         g95_match_strings.
1531 2003-06-03  Steven Bosscher  <steven@gcc.gnu.org>
1533         * support.c (skip_evaluation, warn_conversion, lvalue_p,
1534         lvalue_or_else, pedantic_lvalue_warning, warn_for_assignment,
1535         constant_fits_type_p, convert_and_check,
1536         unsigned_conversion_warning): Remove these ugly remnants
1537         we inherited from the C front end.
1538         (function_types_compatible): Remove '#if 0'-edcode.
1539         (build_modify_expr): Likewise.
1540         (convert_for_assignment): Don't use the deceased functions.
1541         The parameter fundecl is now unused.
1542         (decl_constant_value): Always just return decl.  In fact
1543         this function is not used at present, but it might be in
1544         the future, when we start using the tree inliner.
1545         (overflow_warning, default_conversion, c_expand_asm_operands):
1546         Abort when these are called, they are part of the C type
1547         checking implementation and therefore poison to Fortran.
1549 2003-06-04  Steven Bosscher  <steven@gcc.gnu.org>
1551         * Make-lang.in (F95_ADDITIONAL_OBJS): Don't depend on
1552         c-pretty-print.o and c-dump.o.  Add a comment on why we
1553         depend on c-semantics.c.
1554         * f95-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN):
1555         Don't use the C front end tree dumper hook to dump the
1556         language specific tree representation -- we don't have
1557         one.  So instead, inherit the default langhook.
1559 2003-06-02  Paul Brook  <paul@nowt.org>
1561         * trans-expr.c (g95_conv_variable): Remove incorrent assertion.
1563 2003-06-02  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1565         * check.c (g95_check_associated): Use proper types.  Remove
1566         extraneous argument in call to g95_error().
1568 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1570         * resolve.c (resolve_operator): Make logical operands convert to the
1571         type with higher kind.
1573 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1575         * check.c (g95_check_associated): Make sure both pointer and target has
1576         the same type and rank. Null pointer or array section with vector
1577         subscript as target are not allowed.
1578         * trans.h: Declare gfor_fndecl_associated.
1579         * trans-decl.c: (g95_build_builtin_function_decls): Initialize
1580         gfor_fndecl_associated.
1581         * trans-intrinsic.c (g95_conv_associated): New function.
1582         (g95_conv_intrinsic_function): Make G95_ISYM_ASSOCIATED work.
1584 2003-06-02  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1586         * trans-array.c (g95_conv_expr_descriptor): Set the base of POINTER
1587         according to POINTER itself rather than TARGET.
1588         (g95_conv_expr_descriptor): Make lbound start at 1.
1589         * trans-expr.c (g95_trans_pointer_assign): Fix a bug for Nullify.
1591 2003-06-01  Paul Brook  <paul@nowt.org>
1593         * expr.c (g95_type_convert_binary): Make it match the standard.
1594         * g95.texi: Remove dead link.
1596 2003-06-01  Steven Bosscher  <steven@gcc.gnu.org>
1598         * g95.texi: Cleanup somewhat in preparation for inclusion
1599         in GCC CVS.
1601 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1602             Canqun Yang  <canqun@yahoo.com.cn>
1604         * resolve.c (compare_bound_int, resolve_where_shape): Proper return
1605         type.
1606         (g95_find_forall_index): Return proper value.
1607         (g95_resolve_assign_in_forall, g95_resolve_forall): Use proper type to
1608         compare the return value from g95_find_forall_index.
1610 2003-05-23  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1611         * g95.h, io.c (g95_st_label): Remove "length".
1612         (g95_symtree): Remove "link".
1613         (g95_case): Remove "code".
1614         * arith.c, arith.h (g95_compare_string, g95_convert_integer,
1615         g95_convert_real): Make an argument pointer to const.
1616         * decl.c (colon_seen): Add a TODO.
1617         * interface.c (g95_compare_types): Fix typo.
1618         * interface.c (compare_interfaces): Preserve value of "p".
1619         * intrinsic.c (sort_actual): Remove "i".
1620         * match.c (g95_match_assign): Proper type in call to g95_match().
1621         * parse.c (next_free): Avoid duplicate call due to macro.
1622         * parse.c (check_statement_label): wrong type in call to g95_error.
1623         * primary.c (match_real_constant): Add a TODO.
1624         * resolve.c (resolve_select):  Remove useless conditional.
1625         * simplify.c (g95_simplify_repeat): Proper assignment to
1626         "value.character.string".
1627         * simplify.c (g95_simplify_reshape): Wrong variable in call to
1628         g95_error.
1630 2003-05-20  Canqun Yang  <canqun@yahoo.com.cn>
1632         * trans-stmt.c: Remove unnecessary include file defaults.h.
1634 2003-05-19  Lifang Zeng  <zlf605@hotmail.com>
1636         * trans-stmt.c (g95_trans_forall_loop): Handle FORALL with negative
1637         stride.
1638         (g95_trans_forall): Allow arbitrary number of FORALL indexes and
1639         actual variables used as FORALL indexes.
1641 2003-05-15  Paul Brook  <paul@nowt.org>
1643         * trans-array.c (g95_trans_static_array_pointer): Use
1644         null_pointer_node.
1645         (g95_trans_deferred_array): Initialize static array pointers.
1646         * trans-expr.c (g95_conv_function_call): Use formal arglist to
1647         correctly pass POINTER and absent CHARACTER arguments.
1649 2003-05-14  Lifang Zeng  <zlf605@hotmail.com>
1651         * resolve.c (g95_resolve_forall): Resolve FORALL construct/statement.
1652         (g95_resolve_forall_body): Resolve FORALL body.
1653         (g95_resolve_where_code_in_forall): Resolve WHERE inside FORALL.
1654         (g95_resolve_assign_in_forall): Resolve assignment inside FORALL.
1655         (g95_find_forall_index): Check whether the FORALL index appears in
1656         the expression or not.
1657         (resolve_code): Modified.
1659 2003-05-14  Paul Brook  <paul@nowt.org>
1661         * iresolve.c (g95_resolve_spread): Convert ncopies to index_type.
1663 2003-05-13  Paul Brook  <paul@nowt.org>
1665         * trans-types.c (g95_max_array_element_size): Now a tree node.
1666         (g95_init_types): Work out max size properly.
1667         (g95_get_dtype_cst): Modify to match.
1669 2003-05-11  Paul Brook  <paul@nowt.org>
1671         * trans-io.c (add_case): Create a label decl for case labels.
1673 2003-05-11  Paul Brook  <paul@nowt.org>
1675         * arith.c (g95_integer_index_kind): New variable.
1676         * f95-lang.c (g95_init): Move frontend initialization here ...
1677         (g95_post_options): ... from here.
1678         * g95.h (g95_index_integer_kind, g95_resolve_index): Declare.
1679         * intrinsic.c (add_functions): Use index kinds.
1680         * iresolve.c: Convert to index_kind where needed.
1681         * resolve.c (g95_resolve_index): Make public, use index_kind.
1682         (resolve_array_ref): Adjust to match.
1683         * trans-array.c: Rename g95_array_index_kind to g95_index_integer_kind.
1684         * trans-stmt.c: Ditto.
1685         * trans-types.c: Ditto.
1686         * trans-types.h (g95_array_index_kind): Remove declaration.
1687         * trans-expr.c (g95_conv_expr_present): Use null_pointer_node.
1689 2003-05-07  Paul Brook  <paul@nowt.org>
1691         * trans-const.c (g95_conv_mpz_to_tree): Typecast constant.
1692         * trans-intrinsic.c (g95_conv_intrinsic_bound): Convert type
1693         of bound indices.
1695 2003-05-07  Paul Brook  <paul@nowt.org>
1697         * trans-array.c (trans_static_array_pointer,
1698         g95_trans_array_constructor_value, g95_conv_array_initializer,
1699         g95_conv_structure): CONSTRUCTOR nodes only have one operand.
1700         (g95_add_loop_ss_code): Convert subscripts to the correct type.
1701         * trans-stmt.c (g95_trans_character_select): Ditto.
1702         * trans-types.c (g95_init_types): Ditto.
1704 2003-05-07  Steven Bosscher  <steven@gcc.gnu.org>
1706         * f95-lang.c (expand_function_body): Use input_line, not lineno.
1707         * trans-decl.c (g95_generate_function_code,
1708         g95_generate_constructors): Likewise.
1709         * trans.c (g95_trans_runtime_check, g95_add_block_to_block,
1710         g95_get_backend_locus, g95_set_backend_locus, g95_trans_code):
1711         Likewise.
1713 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1714         * trans-types.c (g95_get_derived_type): Fix bug for DERIVED type
1715         with components point to the DERIVED type itself, and two DERIVED
1716         type with components point to each other.
1717         * trans-expr.c (g95_conv_componet_ref): Modified
1719 2003-05-07  Kejia Zhao  <kejia_zh@yahoo.com.cn>
1720         * trans-expr.c (g95_conv_expr): Translate EXPR_NULL into
1721         null_pointer_node.
1722         (g95_trans_pointer_assign): Implement Nullify.
1724 2003-05-01  Paul Brook  <paul@nowt.org>
1726         * trans-array.c (g95_walk_function_expr): Cope with NULL esym.
1727         * trans-decl.c (g95_get_symbol_decl): Don't mangle dummy functions.
1729 2003-05-01  Paul Brook  <paul@nowr.org>
1731         * trans-array.c, trans.c, trans-expr.c, trans-intrinsic.c,
1732         trans-stmt.c: Replace empty_stmt_node with build_empty_stmt () and
1733         IS_EMPTY_STMT.
1735 2003-05-01  Canqun Yang  <canqun@yahoo.com.cn>
1737         * trans-stmt.c (g95_trans_integer_select): Add a parameter to build
1738         CASE_LABEL_EXPR.
1740 2003-04-28  Paul Brook  <paul@nowt.org>
1742         * iresolve.c (g95_resolve_transpose): COMPLEX types are twice as big
1743         as their kind suggests.
1744         (g95_resolve_reshape): Ditto.
1746 2003-04-28  Chun Huang  <compiler@sohu.com>
1748         * trans-expr.c (g95_conv_substring_expr): New function.
1749         (g95_conv_expr): Use it.
1751 2003-04-28  Paul Brook  <paul@nowt.org>
1753         * iresolve.c (g95_resolve_transpose): Make it match the
1754         implementation.
1755         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add TRANSPOSE.
1757 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1759         * trans-types.c (g95_add_field_to_struct): New function to
1760         add a field to a UNION_TYPE or RECORD_TYPE.
1761         * trans-types.h (g95_add_field_to_struct): Prototype.
1762         (g95_get_derived_type): Use g95_add_field_to_struct to add
1763         components.
1764         * trans-io.c (g95_add_field): Remove.
1765         (ADD_FIELD): Use new g95_add_field_to_struct function.
1766         (ADD_STRING): Likewise.
1767         * trans-stmt.c (g95_trans_select): Likewise.
1768         (g95_add_field): Remove duplicated function.
1770 2003-04-18  Canqun Yang  <canqun@yahoo.com.cn>
1772         Port implementation for CHARACTER SELECT from Andy's tree.
1773         * trans-stmt.c (g95_trans_character_select): Implement character
1774         select. (g95_add_field): New function.
1775         * trans-decl.c: Declare 'gfor_gndecl_select_string'.
1776         (g95_build_builtin_function_decls): Add 'gfor_fndecl_select_string'.
1777         * g95.h (struct g95_case): Add field 'int n'.
1778         * trans.h: Declare 'gfor_fndecl_select_string'.
1780 2003-04-18  Steven Bosscher  <steven@gcc.gnu.org>
1782         * bbt.c (duplicate_key, g95_insert_bbt_with_overlap): Remove.
1783         (g95_insert_bbd): Die on duplicates.
1784         * g95.h (g95_insert_bbt_with_overlap): Delete prototype.
1786 2003-04-14  Steven Bosscher  <steven@gcc.gnu.org>
1788         * g95.texi: Require GMP 4.0 -- like we actually
1789         do.  Explain the testsuite and what-goes-where.
1790         Don't use undefined texinfo symbol.  Break very
1791         long line.  Remove finished item from the list
1792         of open projects.
1794 2003-04-11  Canqun Yang  <canqun@yahoo.com.cn>
1796         * trans-stmt.c (g95_evaluate_where_mask): Give mask temporaries
1797         LOGICAL type.
1799 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
1801         * trans-stmt.c (g95_trans_forall): Implement WHERE inside FORALL.
1802         (g95_trans_forall_body): New function.
1804 2003-04-10  Canqun Yang  <canqun@yahoo.com.cn>
1806         * resolve.c (resove_where): New function.
1807         (resolve_where_shape): New function.
1808         (resolve_code): Add call to 'resolve_where'
1809         * trans-stmt.c (g95_trans_where): Modified.
1810         (g95_trans_where_2): New function.
1811         (g95_trans_where_assign): New function.
1812         (g95_evaluate_where_mask): New function.
1813         (g95_add_to_stmt_list): New function.
1814         (g95_get_temp_expr): New function.
1815         * trans.h (where_stmt_list): New structure.
1817 2003-04-10  Paul Brook  <paul@nowt.org>
1819         * g95spec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
1820         (DEFAULT_WORD_SWITCH_TAKES_ARG): Ditto.
1822 2003-04-10  Steven Bosscher  <steven@gcc.gnu.org>
1824         Update after mainline -> tree-ssa-branch merge.
1825         * f95-lang.c (g95_mark_addressable): Update put_var_into_stack
1826         call.
1827         (g95_init): Update for new lang_hooks definition.
1828         (g95_post_options): New langhook.
1829         (LANG_HOOK_POST_OPTIONS): Clear, then define to g95_post_options.
1830         * scanner.c (g95_new_file): Comment update.
1832 2003-04-09  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1834         * g95.h, lang-options.h: Add -Wimplicit-interface.
1835         * options.c (g95_init_options, g95_parse_arg): Set it.
1836         * interface.c (check_intents): Warn about call with implicit
1837         interface.
1838         * resolve.c (resolve_unknown_f, resolve_unknown_s): Call
1839         g95_procedure_use.
1841 2003-04-05  Paul Brook  <paul@nowt.org>
1843         * iresolve.c (g95_resolve_spread): Don't resole based on type.
1844         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_SPREAD.
1846 2003-03-29  Paul Brook  <paul@nowt.org>
1848         * iresolve.c (g95_resolve_pack): Don't bother resolving based on type.
1849         (g95_resolve_unpack): Ditto.
1850         * trans-intrinsic.c (g95_conv_intrinsic_merge): New Function.
1851         (g95_conv_intrinsic_function): Use it.  Remove PACK and UNPACK.
1852         (g95_is_intrinsic_libcall): Add PACK and UNPACK.
1854 2003-03-25  Paul Brook  <paul@nowt.org>
1856         * arith.c (g95_unary_user, g95_user): Remove dead functions.
1857         * arith.h: Ditto.
1858         * array.c (g95_free_array_ref): Ditto.
1859         * g95.h: Ditto.
1860         * symbol.c (g95_use_derived_tree): Ditto.
1861         * intrinsic.c (add_functions): Use simplification for SCALE.
1862         * primary.c (g95_match_rvalue): Test sym, not symtree.
1864 2003-03-25  Paul Brook  <paul@nowt.org>
1866         * trans-decl.c (build_function_decl): Add parameter before it gets
1867         turned into a constant.
1868         * iresolve.c (g95_resolve_eoshift): Resolve to a useful name.
1869         * trans-intrinsic.c (g95_is_intrinsic_libcall): Add G95_ISYM_EOSHIFT.
1870         * trans-decl.c (g95_create_module_variable): Don't pushdecl constants.
1872 2003-03-22  Paul Brook  <paul@nowt.org>
1874         * trans-array.c (g95_conv_array_initializer): Allow scalar
1875         expressions.
1876         * trans-decl.c (g95_finish_var_decl): Result variables are not
1877         module variables.
1878         * trans-intrinsic.c (g95_conv_intrinsic_transfer): New function.
1879         (g95_conv_intrinsic_function): Use it.
1880         * trans-types.h (g95_type_spec): Remove dead declaration.
1882 2003-03-21  Paul Brook  <paul@nowt.org>
1884         * trans-decl.c (g95_build_function_decl): Mark string parameters.
1886 2003-03-20  Paul Brook  <paul@nowt.org>
1888         * trans-decl.c (g95_build_function_decl): Put character length
1889         parameters at the end of the function declaration.
1890         * trans-expr.c (g95_conv_function_call): Ditto.
1891         * trans-types.c (g95_get_function_type): Ditto.
1893 2003-03-20  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1895         * resolve.c (resolve_formal_arglist): Don't impose intent for
1896         procedure arguments of pure functions.
1897         (resolve_select): Remove redundant assignment.
1899 2003-03-19  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
1901         * arith.c (validate_logical), g95.h, options.c (g95_init_options):
1902         Remove option l1.
1903         * g95.h, intrinsic.c(g95_get_intrinsic_sub_symbol): Add const.
1904         * iresolve.c(g95_resolve_cpu_time, g95_resolve_random_number): Add
1905         const.
1906         * lang-options.h: Remove -finline-repack-arrays. Add -fg77-calls.
1907         Order list.
1908         * symbol.c (g95_add_type): Fix typo in comment.
1911 2003-03-16  Paul Brook  <paul@nowt.org>
1913         * dump-parse-tree.c (g95_show_code_node): Print resolved sym name.
1914         * expr.c (g95_build_call): Remove.
1915         * f95-lang.c (puchdecl_top_level): New function.
1916         * g95.h (g95_code): Store resolved symbol, not just the name.
1917         * intrinsic.c (g95_intrinsic_namespace): New global namespace.
1918         (g95_intirinsic_init_1, g95_intrinsic_done_1): Use it.
1919         (g95_get_intrinsic_sub_symbol): New function.
1920         * iresolve.c (g95_resolve_cpu_time): Use it.
1921         (g95_resolve_random_number): Ditto.
1922         * resolve.c: Set code->resolved_sym instead of code->sub_name.
1923         * trans-decl.c (g95_get_extern_function_decl): Give external decls
1924         the correct DECL_CONTEXT.  Add global symbold to the global scope.
1925         * trans-stmt.c (g95_trans_code): Remove hacks now the fronted is
1926         fixed.
1928 2003-03-16  Paul Brook  <paul@nowt.org>
1930         * g95.h (g95_option_t): Add g77_calls. Remove inline_repack_arrays.
1931         * options.c (g95_parse_arg): Ditto.
1932         * module.c (mio_symbol_attribute): Handle the always_explicit bit.
1933         * resolve.c (resolve_formal_arglist): The always_explicit sould be set
1934         for the procedure, not the parameter.
1935         * trans-array.c (g95_trans_g77_array): New function.
1936         (g95_trans_assumed_size): Use it.
1937         (g95_trans_dummy_array_bias): Ditto.
1938         (g95_conv_array_parameter): Handle g77 arrays. Move existing body ...
1939         (g95_conv_expr_descriptor): ... to here.  Update callers.
1940         * trans-decl.c (g95_build_dummy_array_decl): Handle g77 arrays.
1941         (g95_get_symbol_decl): Avoid processing g77 arrays multiple times.
1942         * trans-expr.c (g95_conv_function_call): Handle g77 arrays.
1943         * trans-intrinsic.c (g95_get_symbol_for_expr): Never use g77 arrays.
1944         * trans-types.c (g95_is_nodesc_array): Handle g77 arrays.
1945         (g95_sym_type): Ditto.
1947 2003-03-15  Paul Brook  <paul@nowt.org>
1949         * trans-array.c (g95_walk_elemental_function_args): Don't amputate the
1950         first chain.
1951         * trans-expr.c (g95_conv_function_call): Use the resolved symbol.
1953 2003-03-14  Paul Brook  <paul@nowt.org>
1955         * trans-array.c (g95_array_is_packed): Remove.
1956         (g95_conv_array_base): Correctly handle all descriptorless cases.
1957         (g95_conv_array_stride): Use descriptorless strides.
1958         (g95_trans_dummy_array_bias): Don't always repack the array.
1959         (g95_build_dummy_array_decl): Automatic dummy arrays are only partial
1960         packed.
1961         * trans-types.c (g95_get_nodesc_array_type): Differentiate between
1962         dummy and non-dummy arrays...
1963         (g95_sym_type, g95_get_derived_type): ... like these.
1964         (g95_get_array_type_bounds): Allow discontiguous arrays.
1966 2003-03-12  Paul Brook  <paul@nowt.org>
1968         * array.c (g95_resolve_array_spec): Fix comment.
1969         * g95.h (symbol_attributes): New flag always_explicit.
1970         * resolve.c (resolve_formal_arglist): Set it always_explicit.
1971         * iresolve.c (g95_resolve_lbound, g95_resolve_ubound): Simplify.
1972         * trans-array.c (g95_conv_descriptor_dimension): Remove dead assert.
1973         (g95_trans_array_bounds): Allow assumed shape arrays.
1974         (g95_trans_repack_array): Remove.
1975         (g95_trans_dummy_array_bias): Rewite to use descriptorless arrays.
1976         * trans-decl.c (g95_build_qualified_array): Only ignore absent
1977         bounds for assumed size arrays.
1978         (g95_build_dummy_array_decl): Use descriptorless arrays.
1979         * trans-expr.c (g95_conv_expr_present): Allow descriptorless arrays.
1980         (g95_trans_pointer_assign): Fix typo.
1981         * trans-intrinsic.c (g95_conv_intrinsic_function_args): Remove dead
1982         code.
1983         (g95_conv_intrinsic_bound): Rewrite to handle descriptorless arrays.
1984         * trans-types.c (g95_get_nodesc_array_type): Allow non-packed arrays.
1985         Also modify callers.
1986         * trans-types.h (g95_get_nodesc_array_type): Modify prototype.
1988 2003-03-08  Paul Brook  <paul@nowt.org>
1990         * trans-array.c (g95_walk_elemental_functions): Don't reverse the SS.
1991         (g95_conv_array_ubound): Provide dummy value for assumed size arrays.
1992         * resolve.c (compare_spec_to_ref): Allow full array sections.
1994 2003-03-08  Paul Brook  <paul@nowt.org>
1996         * expr.c (g95_simplify_expr): Also simplify array index and
1997         substring expressions.
1998         * resolve.c (compare_spec_to_ref): Check for assumed size bounds.
1999         * trans-array.c (g95_trans_array_bounds): New function.
2000         (g95_trans_auto_array_allocation): Use it.
2001         (g95_trans_assumed_size): Rewrite.
2002         * trans-decl.c (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
2003         (gfor_fndecl_repack): Remove.
2004         (g95_build_qualified_array): Handle absent upper bounds.
2005         (g95_build_dummy_array_decl): Assumed shape arrays are descriptorless.
2006         (g95_get_symbol_decl): Update.
2007         (g95_build_intrinsic_function_decls): Initialize new decls.
2008         * trans.h (gfor_fndecl_in_pack, gfor_fndecl_in_unpack): Declare.
2009         (gfor_fndecl_repack): Remove.
2010         * trans-io.c (g95_build_io_library_fndecls): Correct prototypes.
2011         * trans-types.c: (g95_build_array_type): Merge duplicated code..
2012         (g95_get_nodesc_array_type): Handle absent bounds.
2013         * trans-types.h (g95_get_nodesc_array_type): Declare.
2015 2003-03-04  Paul Brook  <paul@nowt.org>
2017         * f95-lang.c (DEF_FUNCTION_TYPE_VAR_3): Define before including
2018         builtin-types.def.
2020 2003-03-02  Paul Brook  <paul@nowt.org>
2022         * options.c (g95_init_options): Drfault to 1.
2023         (g95_pasrse_arg): Add -frepack-arrays, use strcmp.
2024         * trans-array.c (g95_conv_array_data, g95_conv_array_base,
2025         g95_conv_array_stride,g95_conv_array_lbound, g95_conv_array_ubound):
2026         Handle non-constant size automatic arrays.
2027         (g95_conv_section_upper_bound, g95_conv_section_startstride): Use
2028         generic bound functions.
2029         (g95_trans_auto_array_allocation): Don't create a descriptor.
2030         (g95_trans_assumed_size): New function (broken).
2031         (g95_trans_dummy_array_bias): Remove unused var.
2032         * trans-array.h (g95_trans_assumed_size): Declare.
2033         * trans-decl.c (create_index_var): New fuction.
2034         (g95_build_qualified_array): New function.
2035         (g95_get_symbol_decl): Use it.
2036         (g95_trans_deferred_vars): Handle assumed shape seperately.
2037         * trans-types.c (get_element_type): Handle heap allocated arrays.
2038         (g95_is_nodesc_array): Include non-const size arrays.
2039         (g95_get_nodesc_array_type): Ditto.
2041 2003-02-23  Paul Brook  <paul@nowt.org>
2043         * trans-array.c (g95_array_init_size): Should use stride, not size of
2044         last dimension.
2046 2003-02-18  Paul Brook  <paul@nowt.org>
2048         * trans-expr.c (g95_trans_arrayfunc_assign): Nove elemental check
2049         after intrinsic function check.
2051 2003-02-18  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2053         * io.c (match_io): Fix missing return value and remove useless
2054         assignment.
2055         * match.c (g95_match): Remove useless assignment.
2056         * module.c (parse_string):  Remove useless post increment.
2057         * simplify.c (g95_simplify_verify): Remove useless assignment.
2059 2003-02-15  Paul Brook  <paul@nowt.org>
2061         * expr.c (restricted_intrinsic): Handle bad values gracefully.
2062         * g95.h (symbol_attribute): Add referenced member.
2063         (g95_symbol): Add dummy_order member.
2064         (g95_set_sym_referenced): Declare.
2065         * match.c (g95_match_assignment, g95_match_call): Use it
2066         * primary.c (match_actual_arg, g95_match_rvalue,
2067         g95_match_variable): Ditto.
2068         * symbol.c (next_dummy_order): New variable.
2069         (g95_set_sym_referenced): New function.
2070         (check_done): New function.
2071         (g95_add_*): Use it.
2072         * trans-decl.c: Make formatting conform to GCC standards.
2073         (g95_defer_symbol_init): Add dummy variables in the right order.
2074         (g95_get_symbol_decl): Only accept referenced variables.
2075         (g95_create_module_variable): Module variables are always required.
2076         (generatr_local_decls): New function.
2077         (generate_local_vars): New function.
2078         (g95_generate_function_code): Use it.
2080 2003-02-13  Paul Brook  <paul@nowt.org>
2082         * trans-decl.c (g95_conv_struct_cons): Remove.
2083         (g95_get_symbol_decl): Use g95_conv_expr for structure initializers.
2084         * trans-expr.c (g95_conv_structure): New function.
2085         (g95_conv_expr): Use it.
2087 2003-02-09  Paul Brook  <paul@nowt.org>
2089         * trans-array.c (g95_array_init_size): Don't evaluate the linit
2090         expressions multiple times.
2091         (g95_trans_auto_arry_allocation): Use pointer not tmp.
2093 2003-02-08  Paul Brook  <paul@nowt.org>
2095         * module.c (mio_symtree_ref): Declare as static.
2096         (mio_expr): Remove dead code.
2097         (read_module): Set the symtree link for fixups.
2098         * trans-intrinsic.c (g95_conv_intrinsic_round): Rename...
2099         (build_round_expr): ... to this.
2100         (g95_conv_intrinsic_aint): New function.
2101         (g95_conv_intrinsic_function): Use it.
2103 2003-02-08  Paul Brook  <paul@nowt.org>
2105         * trans-array.c (g95_trans_array_constructor_value): Use the acutal
2106         offset after modificaton, not the increment expression.
2107         * dependency.c: Kill excess whitespace.
2109 2003-02-07  Sanjiv Gupta  <sanjivg@noida.hcltech.com>
2111         * dependency.h: Remove some function declarations.
2112         * dependency.c (get_no_of_elements): Change this function not to
2113         return int.
2114         * other: Add comments for all modified functions.
2116 2003-02-06  Paul Brook  <paul@nowt.org>
2118         * g95spec.c (lang_specific_functions): Fix initializer warning.
2119         * dump-parse-tree.c (g95_show_expr): Use typespec instead of symtree
2120         for structure type names.
2121         * trans-decl.c (g95_cons_structure_cons): New function.
2122         (g95_get_symbol_decl): Use it.
2123         * trans-expr.c (g95_conv_component_ref): Remove duplicate pointer
2124         referencing code.
2126 2003-02-06  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2128         * resolve.c (compare_cases): Add const to casts.
2130 2003-01-30  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2132         * g95.h (g95_check_f): Change a1 to f1m.
2133         * intrinsic.c (add_sym_1m, check_specific,
2134         g95_intrinsic_func_interface): Use it.
2136         * module.c (init_pi_tree): Remove useless cast.
2137         (fp2): Fix argument type.
2139         * parse.c (parse_select_block): Add comment.
2141 2003-02-05  Toon Moene  <toon@moene.indiv.nluug.nl>
2143         * lang-options.h: Fix warning involving C90 concatenated
2144         strings.
2146 2003-02-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2147             Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2149         * io.c (format_asterisk): Complete initializer to kill warning.
2150         * arith.c (DEF_G95_INTEGER_KIND, DEF_G95_LOGICAL_KIND,
2151         DEF_G95_REAL_KIND, MPZ_NULL, MPF_NULL): New #defines.
2152         (g95_integer_kinds, g95_logical_kinds, g95_real_kinds): Use the
2153         new defines to complete initializers.  Kills all warnings.
2155         * Make-lang.in: Comment cleanup.
2157 2003-02-05  Paul Brook  <paul@nowt.org>
2159         * array.c (g95_free_constructor): Handle NULL expressions.
2160         * resolve.c (resolve_structure_cons): Ditto.
2161         * decl.c (g95_match_null): New Function.
2162         (variable_decl): Use it.
2163         * module.c (mio_expr): Don't bother saving symtree for EXPR_STRUCTURE.
2164         * primary.c (g95_match_runtime): Don't use symtree for EXPR_STRUCTURE.
2165         * trans-types.c (g95_set_decl_attributes): Remove empty function.
2167 2003-02-05  Paul Brook  <paul@nowt.org>
2169         * trans.h (build1_v): New macro.
2170         (build_v): Remove pointless and incorrect prototype.
2171         * various: Use build1_v for GOTO_EXPR and LABEL_EXPRs.
2172         * f95-lang.c (g95_init_builtin_decls): DEF_BUILTIN takes 10 args.
2174 2003-02-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2176         * Make-lang.in (F95_OBJS): Remove one more dead file.
2178 2003-02-01  Paul Brook  <paul@nowt.org>
2180         * lang-specs.h: Don't pass -ffixed-form to the linker.
2181         * trans-decl.c (g95_generate_function_code): Clear saved decl chain.
2183 2003-02-01  Paul Brook  <paul@nowt.org>
2185         * Make-lang.in (F95_OBJS): Remove dead files.
2186         * trans-array.c (g95_array_init_size): Do the right thing when
2187         ubound=NULL.
2188         * trans-decl.c (g95_generate_function_code): Initialize deffered
2189         symbol list before translating contained subroutines.
2190         * trans-expr.c (g95_conv_expr, g95_conv_expr_reference): Substitute
2191         scalar invariant values here...
2192         (g95_conv_variable, g95_conv_function_call): ... instead of here ...
2193         * trans-intrinsic.c (g95_conv_intrinsic_function_args): .. and here.
2195 2003-01-29  Paul Brook  <paul@nowt.org>
2197         * trans-array.c (g95_add_loop_code): Put pre code in the right block.
2198         (g95_walk_elemental_function_args): Reverse chains before adding.
2199         (g95_reverse_ss): Move about a bit.
2200         * trans-expr.c (g95_conv_function_call): Handle scalar intrinsic
2201         function arguments.
2203 2003-01-28  Paul Brook  <paul@nowt.org>
2205         * intrinsic.c (resolve_intrinsic): Use correct union member.
2206         * trans-array.c (g95_trans_dummy_array_bias): Don't touch absent
2207         parameters.
2208         * trans-decl.c (g95_get_symbol_decl): Don't translate initializers for
2209         use associated variables.
2210         * trans-intrinsic.c (g95_conv_intrinsic_present): Move body ...
2211         * trans-expr.c (g95_conv_expr_present): ... to here.
2212         * trans.h: Declare it.
2213         * trans-types.c (g95_sym_type): Assume subroutine if not specified.
2215 2003-01-28  Arnaud Desitter  <arnaud.desitter@geography.oxford.ac.uk>
2217         * array.c (expand_iterator): Suppress useless assignment.
2218         * decl.c (match_char_spec): Ditto.
2219         * io.c (match_io_iterator): Ditto.
2220         * primary.c (match_real_constant): Ditto.
2221         * interface.c (fold_unary, g95_free_interface, g95_extend_expr):
2222         Ditto.  Also, use g95_intrinsic_op not int for intrinsic operators.
2223         * matchexp.c (match_add_operand, match_level_5): Likewise.
2224         * module.c (parse_atom, find_enum): Likewise.
2225         * resolve.c: move #include <string.h>
2226         (resolve_select): Fix serious typo.
2228 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.n>
2230         * Make-lang.in: Don't build with broken tree-ssa-pre.
2232 2003-01-28  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2234         * resolve.c (resolve_index): Add a TODO.
2235         * symbol.c: Remove useless "#include <ctype.h>".
2237 2003-01-27  Paul Brook  <paul@nowt.org>
2239         * check.c (check_rest): Allow different type kinds as an extension.
2240         * g95.h (g95_resolve_f): Add f1m.
2241         * intrinsic.c (add_sym_1m, resolve_intrinsic): Use it.
2242         * intrinsic.h: Chenge prototypes for MIN and MAX.
2243         * iresolve.c (g95_resolve_minmax): New function.
2244         (g95_resolve_min, g95_resolve_max): Use it.
2245         * trans-intrinsic.c (g95_trans_intrinsic_minmax): Only evaluate
2246         arguments once.
2247         (g95_conv_intrinsic_present): Fix logic.
2249 2003-01-27  Steven Bossche  <s.bosscher@student.tudelft.nl>
2251         * g95.h (g95_case): Don't be a tree, be a double linked list.
2252         * match.c (match_case_selector): Remove redundant semantics check.
2253         Clean up a few goto's to make it a tiny little bit faster.
2254         * resolve.c (case_tree): Die.
2255         (compare_cases): Accept and compare unbounded cases too.
2256         (check_case_overlap): Don't build a tree.  Instead, merge-sort the
2257         whole list of g95_cases passed from resolve_select.
2258         (sane_logical_select): Die.
2259         (check_case_expr): Return FAILURE if a CASE label is of the wrong
2260         type kind.
2261         (resolve_select): Fixup case expression for computed GOTOs, put it
2262         in expr, not expr2, for easier handing in the parse tree dumper and
2263         the code generator.  Rewrite the rest of the function: Kill
2264         unreachable case labels and unreachable case blocks.
2265         * dump-parse-tree.c (g95_show_code_node): Always dump expr for
2266         an EXEC_SELECT, not case2 anymore.
2267         * trans-const.c (g95_conv_constant_to_tree): New function.
2268         (g95_conv_constant): Use it.
2269         * trans-const.h: Declare prototype for the new function.
2270         * trans-stmt.c (g95_trans_integer_select, g95_trans_logical_select,
2271         g95_trans_character_select): New static functions.
2272         (g95_trans_select): Rewrite.
2274 2003-01-26  Paul Brook  <paul@nowt.org>
2276         * intrinsic.c (add_fnctions): Properly add dreal.
2277         * trans-intrinsic.c (g95_conv_intrinsic_present): New function.
2278         (g95_conv_intrinsic_function): Use it.
2279         * trans-io.c (build_dt): Abort on internal files (unimplemented).
2281 2003-01-26  Paul Brook  <paul@nowt.org>
2283         Widespread changes to the handling of symbols in expressions.  These
2284         are now linked via g95_symtree nodes.
2285         * parse.c (g95_fixup_sibling symbols): New function.
2286         (parse_contained): Use it.
2287         * g95.h (symbol_attribute): Add contained.  Indicates a symbol is a
2288         contained procedure that has bee correctly fixed up.
2289         (g95_code, g95_expr): Point to a g95_symtree, not a g95_symbol.
2291 2003-01-24  Paul Brook  <paul@nowt.org>
2293         * trans-array.c (g95_walk_expr): Function result attributes are in
2294         sym->result.
2295         * trans-expr.c (g95_conv_function_call,
2296         g95_trans_arrayfunc_assign): Ditto.
2297         * trans-decl.c (g95_get_symbol_for_expr): Set sym->result.
2299 2003-01-23  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2301         * expr.c (check_restricted): Fix error message.
2302         * symbol.c (free_st_labels): Plug memleak.
2304 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2306         * arith.c (reduce_unary, reduce_binary_ac, reduce_binary_ca,
2307         reduce_binary_aa, reduce_binary, eval_intrinsic,
2308         eval_intrinsic_f2): Use typesafe prototypes for eval functions.
2309         * g95.h (g95_check_f, g95_simplify_f, g95_resolve_f): New unions
2310         for typesafe intrinsics helper functions.
2311         (g95_intrinsic_sym): Use them.
2312         * intrinsic.c (do_check, add_sym, add_sym_0, add_sym_1,
2313         add_sym_1s, add_sym_1m, add_sym_2, add_sym_3, add_sym_4,
2314         add_sym_5, add_conv, resolve_intrinsic, do_simplify,
2315         check_specific, g95_intrinsic_func_interface,
2316         g95_intrinsic_sub_interface): Adjust all calls to intrinsics
2317         helper functions.
2318         * trans-decl.c (g95_get_extern_function_decl): Likewise.
2319         * Make-lang.in: Don't disable warnings for strict prototypes
2320         any longer, everything is typesafe now.
2322 2003-01-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2324         * bbt.c (duplicate_node): Make static.
2325         * module.c (module_name): Make static.
2326         * scanner.c (include_dirs): Make static.
2328 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2330         Hard coded _gfor_'s should not show up anymore.
2331         * g95.h (PREFIX): New macro.
2332         * iresolve.c (g95_resolve_cpu_time): Use PREFIX, not
2333         hard-coded "_gfor".
2334         (g95_resolve_random_number): Likewise.
2335         * trans-decl.c (g95_build_intrinsic_function_decls): Likewise.
2336         * trans-io.c: Remove 'prefix' macro.  Replace all uses with
2337         the new PREFIX macro from g95.h.
2339 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2341         The troubles of forking... Andy implemented this just now too.
2342         Let's stick to that and keep the trees close.
2343         * g95.h (g95_st_label): 'format' member is now a g95_expr.
2344         * io.c: Revert previous changes.
2345         (g95_match_format): Match the format string as a character
2346         literal expression.
2347         * match.h (g95_statement_label): Declare external.
2348         * parse.c: Revert previous changes.
2349         * symbol.c (g95_free_st_label): Free a g95_expr instead
2350         if a 'char *'.
2351         * trans-io.c: Revert previous changes.
2352         (build_dt): Use set_string to set the format string.
2354 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2356         * io.c (format_string): Make non-static.
2357         (g95_match_format): Remember the format string.
2358         (terminate_io): Add I/O termination for empty I/O lists.
2359         * match.h: Declare external format_string.
2360         * parse.c (check_statement_label): Attack the format string
2361         to a format label for FORMAT statements.
2362         * trans-io.c (g95_add_field): Define prefix macro.  Replace
2363         all uses of PREFIX define with a use of this macro.
2364         (build_dt): Implement formatted I/O for format labels.
2366 2003-01-20  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2368         * lang-options.h: Kill "-std=F".
2369         * options.c: Remove unimplemented "-std=F".  Modify
2370         web address.
2371         * misc.c (g95_terminal_width): New function.
2372         * error.c (g95_error_init_1): Use g95_terminal_width.
2373         * g95.h: Add prototype for g95_terminal_width, remove
2374         fmode flag.
2376 2003-01-19  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2378         * Make-lang.in: Fix typo.
2380 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2382         * g95.h (struct g95_case): Remove unused cruft, new member
2383         'where' to keep track of the locus of the default case.
2384         * match.c (g95_match_case): Add locus to the current case.
2385         (match_case_selector): Likewise.
2386         * parse.c (parse_select_block): Move semantics check for
2387         multiple DEFAULT cases out of here to...
2388         * resolve.c (check_case_overlap): ...here.  Return sooner
2389         when possible.
2390         (check_case_expr): Take two g95_cases now, use to sure the
2391         expression kinds are the same.
2392         (resolve_select): Cleanup.
2394 2003-01-18  Paul Brook  <paul@nowt.org>
2396         * trans-io.c: Fix typos in ported IO work (set_fla[tg]).
2397         * trans-decl.c (g95_set_symbol_decl): Handle non-array result
2398         variables.
2399         (g95_get_extern_function_decl): Put decls in the correct context.
2401 2003-01-18  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2403         * trans-io.c: Port changes from Andy to set ERR flag.
2405 2003-01-17  Paul Brook  <paul@nowt.org>
2407         * trans-array.c: Add various comments.
2408         (g95_ss_terminator): Declare as const.
2409         (g95_walk_expr): Remove first parameter and update all callers.
2410         (g95_walk_op_expr): Initialize scalar SS properly.
2411         * trans-array.h (g95_walk_expr): Update prototype.
2412         * trans-expr.c: Update for new g95_walk_expr.
2413         * trans-intrinsic.c: Ditto.
2414         * trans-io.c: Ditto.
2415         * trans.h: Various comments for SS chains.
2417 2003-01-17  Paul Brook  <paul@nowt.org>
2419         * intrinsic.h (g95_generic_isym_id): Add G95_ISYM_S?_KIND, SPACING
2420         and RRSPACING.
2421         * intrinsic.c (add_functions): Use them.
2422         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto.
2423         * trans-expr.c (g95_conv_expr_lhs): Abort on impossible error.
2425 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2427         Fallout of a small merge conflict:
2428         * intrinsic.c: Un-revert lost patch (G95_ISYM_SCALE).
2430 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2432         * initrinsic.c: New add_sym_* functions for strong typing.
2433         (add_conv): Make prototype strict.
2434         * dump-parse-tree.c, dependency.c: Include config.h
2435         * resolve.c, trans-io.c: Fix typos.
2437 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2439         * dump-parse-tree.c (g95_show_code_node): Show the
2440         condition for a computed GOTO that was transformed
2441         to a SELECT CASE construct.
2442         * resolve.c (check_case_overlap): Revert previous switch
2443         to treaps, it was too slow and didn't catch all trouble.
2444         (resolve_symbol): Be more flexible about module procedures.
2445         * symbol.c (check_conflict): Point to relevant section in
2446         the standard for dubious conflict.  Allow procedure
2447         dummy arguments to be optional again.
2448         * trans-io (add_field): Rename to g95_add_field.  Change
2449         all callers.
2450         * trans-stmt (trans_select): Handle unbounded cases for
2451         integer SELECT CASE constructs.  Fix/add more comment.
2453 2003-01-17  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2455         * g95.h: Uses GCC's function attribute macros.
2456         * error.c, module.c, parse.c, g95.h: More function attributes.
2458 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2459         Forgot a file...
2460         * trans-decl.c (get_label_decl): Use TREE_LINENO instead
2461         of DECL_SOURCE_LINE, and TREE_FILENAME instead of
2462         DECL_SOURCE_FILE.
2464 2003-01-16  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2466         * f95-lang.c (pushdecl): Use TREE_LINENO instead of
2467         DECL_SOURCE_LINE.
2468         * trans.c (g95_trans_code): Use annotate_all_with_file_line
2469         instead of nowdead wrap_all_with_wfl.
2471 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2473         * parse.c (g95_parse_file): In verbose mode, dump the parse tree
2474         before generating code, so we can still see it even if the code
2475         generation phase dies.
2477 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2479         * decl.c (build_sym): Split out initialization expression parts...
2480         (add_init_expr_to_sym): ...to here.
2481         (variable_decl): Add the symbol following an attribute list to the
2482         symbol tree before parsing the optional initialization expression
2483         if the symbol is not of a derived type.
2484         * primary.c (g95_match_rvalue): Don't assume a symbol always has
2485         a value if it is a PARAMETER.
2487 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2489         * misc.c: Don't #include <mcheck.h>
2490         * module.c: Ditto.  Kill uses of mtrace, muntrace.  If there
2491         ever was a glibc bug, then either this was never reported to
2492         glibc people, or it has been fixed for so long that there's
2493         no information you can find about it, anywhere.
2495 2003-01-14  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2497         Fix warnings:
2498         * module.c (attr_bits, bt_types, array_spec_types):
2499         Switch 'const' and 'static'.
2500         * iresolve.c (g95_resolve_reshape): Make __resolve0 non-'const'.
2502         GNU'ify source code:
2503         * trans-io.c: Numerous fixes, one fixed warning and a few
2504         TODO markers so that we don't forget about them.
2506 2003-01-13  Paul Brook  <paul@nowt.org>
2508         * intrinsic.c (add_functions): Add G95_ISYM_SCALE.
2509         * intrinsic.h (g95_generic_isym_id): Remove bogus G95_ISYM_ANINIT.
2510         Add G95_ISYM_SCALE.
2511         * trans-intrinsic.c (g95_conv_intrinsic_function): Ditto
2512         * match.c (g95_match_stop): Fix dumb == -> != error.
2514 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2516         * dump-parse-tree.c (show_indent): Add line breaks.  This
2517         whole dumping process needs cleanups.
2518         * f95-lang.c (g95_mark_addressable): Fix prototype to match
2519         the langhook.  Fix 'return's accordingly.
2520         * g95-support.h: Adjust prototype.
2521         * g95.h: Add 'no_backend' member to 'g95_option_t' struct.
2522         * lang-options.h: Add '-fsyntax-only'.
2523         * options.c (g95_init_options): Init 'no_backend'.
2524         (g95_parse_arg): Deal with '-fsyntax-only'.
2525         * parse.c (g95_parse_file): Do not generate code if 'no_backend'
2526         is set.
2528 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2529         Patch from Arnaud
2530         * resolve.c (resolve_symbol): Assumed shape arrays must be dummy
2531         arguments.  Also make sure that if a symbol is marked INTRINSIC,
2532         an intrinsic with the symbol's name actually exists.
2533         (check_conflict): Make EXTERNAL and DIMENSION attributes conflict.
2534         Do not allow PROCEDURES to have the SAVE, POINTER, TARGET,
2535         ALLOCATABLE, RESULT, IN_NAMESPACE, OPTIONAL or FUNCTION attribute.
2537 2003-01-13  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2539         * resolve.c (resolve_contained_functions): Fix condition, don't
2540         throw internal_error if a child namespace has no name.  Apparently
2541         this can be the case?
2543 2003-01-11  Paul Brook  <paul@nowt.org>
2545         Port changes from Andy's tree:
2546         * g95.h (g95_code): Add stop_code.
2547         * match.c (g95_match_stop): Detter syntax checking.
2548         * resolve.c (resolve_generic_f0): Return match type.
2549         (resolve_generic_f): Remove dead/duplicated code.
2550         (resolve_specific_f): Ditto.
2551         * dump-parse-tree.c (g95_show_code_node): Handle new STOP format.
2552         * trans-decl.c (gfor_fndel_stop_*): New fndecl nodes.
2553         * trans-stmt.c (g95_trans_stop): Handle new STOP format.
2555 2003-01-11  Paul Brook  <paul@nowt.org>
2557         * trans-array.c: Various documentation/comment changes.
2558         * trans-stmt.c: Ditto.
2561 2003-01-10  Paul Brook  <paul@nowt.org>
2563         * options.c/h: Add -fdump-parse-tree as alias of -v.
2565 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2567         * dump-parse-tree.c (g95_show_namespace): Fixed another
2568         typo.  Sorry, it's Friday...
2570 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2572         Spotted by Tobi:
2573         * trans-array.c, trans-array.h, trans.c, trans-const.c,
2574         trans-const.h, trans-decl.c, trans-expr.c, trans.h
2575         trans-intrinsic.c, trans-io.c, trans-stmt.c, trans-stmt.h
2576         trans-types.c: Fix bogus copyright years, add 2003.
2577         * trans-types.h: Give copyright header.
2579 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2581         * dump-parse-tree.c (g95_show_namespace): Fixed typo.
2582         * expr.c, options.c, scanner.c: Add some more 'const' markers.
2583         * intrinsic.c: Some constant strings moved to read-only memory.
2584         * io.c (format_asterisk): Move to...
2585         * g95.h: ...here.
2587 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2589         * dump-parse-tree.c (g95_show_namespace): Dump implicit
2590         types for ranges instead of per-letter.  Indent the
2591         'CONTAINS' just like everything else.
2592         * resolve.c (resolve_contained_functions): Clarify comment.
2593         Explain non-obvious conditional expression.  Improve
2594         diagnostics if tyoe cannot be resolved.
2595         Port semi-fix from Andy's tree:
2596         (was_declared): Move up before first use.
2597         (generic_sym, specific_sym): New functions.  Code moved
2598         out if procedure_kind.
2599         (procedure_kind): Simplify using new functions.
2600         (resolve_generic_f): Make sure the functions we find in
2601         a parent namespace is generic.
2602         (resolve_specific_f): Ditto for specific functions.
2604 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2606         * trans-stmt.c, trans.c: Fix some code style issues. Add
2607         some more comment (but still not enough!).
2609 2003-01-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2611         * symbol.c (flavors, procedures, intents, acces_types,
2612         access_types, ifsrc_types): Make const.
2613         * misc.c (g95_string2code): Make 'm' param 'const'.
2614         * module.c (find_enum, write_atom, mio_name): Make
2615         'm' param 'const'.
2616         (attr_bits, bt_types, array_spec_types, array_ref_types,
2617         ref_types, expr_types): Make const.
2618         * g95.h: Adjust external decls.
2620 2003-01-09  Paul Brook  <paul@nowt.org>
2622         * Testsuite: Add a load of new cases.
2624 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2626         * Make-file.in: Add dependency on back end header files;
2627         a parallel build should work now.
2628         * f95-lang-c (lang_identifier): Remove bogus comment.
2629         (g95_be_parse_file): Fix prototype.
2630         (g95_init): Make static.
2631         (g95_finish): Make static.
2632         * error.c (g95_syntax_error): Kill. Make define in...
2633         * g95.h (g95_syntax_error): Define.
2634         (g95.options): Make 'source' member 'const'.
2635         * interface.c (g95_match_interface): Explain
2636         hard-to-read condition.
2637         (g95_match_end_interface): Ditto.
2638         * trans_const.c (g95_build_string_const): Make 's' parameter
2639         'const'.
2640         * trans_const.h: Adjust protoype accordingly.
2641         * trans-decl.c: Include tree-dump.h
2642         (g95_generate_function_code): Build fixes for recent changes
2643         in the tree-ssa branch.
2645 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2647         * format.c: Kill, move code from here...
2648         * io.c: ...to here.
2649         * Make-lang.in: Adjust.
2650         * MANIFEST: Ditto.
2651         * match.h: Ditto.
2652         * BUGS: Mention where to submit bugs.  Move old content...
2653         * TODO: ...to here.  New file.
2655 2003-01-08  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2656         Fix most warnings, and suppress the ones we can't fix for now.
2657         * Make-lang.in: Suppress warnings about bad proto's in g95.h,
2658         these warnings just clutter the screen and there's not much
2659         we can do about them for now anyway.
2660         * check.c, iresolve.c: Mark unused function parameters.
2661         * dump-parse-tree.c (g95_show_array_spec): Punt on AS_UNKNOWN,
2662         they should be resolved before they get here.
2663         * error.c: Remove unused FILE *status_out.
2664         * f95-lang.c (g95_init): Remove bogus cast.
2665         * Many files: Make things 'const' where required.
2666         * g95.h: Fix prototypes for all modified functions above.
2667         (g95_options): Remove 'object' member.
2669 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2671         * Make-file.in: Cleanup bogus targets.  Add more comment.
2672         * lang-options.h: New option '-w'.
2673         * g95.h: add no_options field to struct g95_options.
2674         * options.c (g95_init_options): Default no_warnings to off.
2675         (g95_parse_arg): Recognise the '-w' switch and its alias,
2676         '-fno-warnings'.
2677         * error.c (g95_warning, g95_warning_now): Don't emit warning if
2678         no_warning option is set.
2679         * iresolve.c (g95_resolve_shape): Fix warning.
2681 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2683         * primary.c (g95_next_string_char): Rename next_string_char, and
2684         make static.  Adjust callers accordingly.
2685         * resolve.c (resolve_generic_f0): Return try, not match.  Adjust
2686         callers accordingly.
2687         * g95.h: Split out all g95_match* functions to...
2688         * match.h: ...here. New file.
2689         * array.c, decl.c, expr.c, format.c, interface.c, io.c, match.c,
2690         matchexp.c, module.c, parse.c, primary.c: Inlcude match.h
2692 2003-01-07  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2694         * symbol.c (g95_clear_new_implicit, g95_add_new_implicit_range,
2695         g95_merge_new_implicit): New functions.
2696         (g95_match_implicit_none, g95_match_implicit): Move from here...
2697         * match.c (g95_match_implicit_none, g95_match_implicit): ... to here.
2698         Modify to use the new functions in symbol.c.
2699         * g95.h: Add and move prototypes.
2701 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2703         * bbt.c (insert): Use a typedef'ed compare_fn prototype for the
2704         node compare function.
2705         (g95_insert_bbt): Likewise.
2706         (g95_insert_bbt_with_overlap): Likewise.
2707         (g95_delete_bbt): Likewise.
2708         (delete_treap): Likewise. Also fix a potential bug when calling it.
2709         * module.c (compare_pointers): Change proto to compare_fn.
2710         (compare_integers): Likewise.
2711         (compare_true_names): Likewise.
2712         (find_true_name): Adjust call to compare_true_names to match proto.
2713         (require_atom, write_atom, mio_name): Fix 'const' warnings.
2714         (init_pi_tree): Make compare a compare_fn instead of (int *).
2715         * resolve.c (compare_cases): Change proto to compare_fn.
2716         * symbol.c (g95_compare_symtree): Change proto to compare_fn, make
2717         it static, and rename to compare_symtree.
2718         (delete_symtree, g95_undo_symbols, g95_new_symtree): Use renamed
2719         function.
2720         * g95.h: Kill g95_compare_symtree prototype. Adjust prototypes
2721         of g95_insert_bbt, g95_insert_bbt_with_overlap, and g95_delete_bbt.
2723 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2724         * Make-lang.in: Fix spaces/tabs issues from previous patch.
2725         * patch.options: Blow away Paul's checkin mistake :-)
2726         * io.c (terminate_io): Fix memory leak (Arnaud).
2728 2003-01-06  Steven Bosscher  <s.bosscher@student.tudelft.nl>
2730         * Make-lang.in: Teach about building DVI, info manual.
2731         * g95.texi: New file.
2733 2003-01-02  Paul Brook  <paul@nowt.org>
2735         * trans-array.c (g95_reverse_ss): Make static and don't use.
2736         (g95_conv_ss_descriptor): Don't use g95_loopinfo
2737         (g95_conv_array_parameters): Modify for pointer assignments.
2738         (g95_walk_subexpr): New function.
2739         (g95_walk_expr*): Use it.
2740         * trans-array.h (g95_reverse_ss): Remove prototype.
2741         * trans-expr.c (g95_trans_pointer_assign): Implement.
2742         (Many): Set se.want_pointer before calling g95_conv_array_parameter.
2743         * trans-intrinsic.c: Sync with scalarizer changes.
2744         * trans-io.c: Ditto.
2746 2002-12-29  Paul Brook  <paul@nowt.org>
2748         * trans-array.c: Document calling convention for arrays.
2750 2002-12-19  Paul Brook  <paul@nowt.org>
2752         * trans-intrinsic.c (g95_conv_intrsinsic_function): Remove incorrect
2753         assertion. Remove intrinsic subroutine G95_ISYM_* cases. Always pass
2754         optional parameters for some intrinsics.
2755         (g95_is_intrinsic_libcall): Add G95_ISYM_RESHAPE.
2756         * trans-expr.c (g95_conv_function_call): Pass NULL for absent
2757         optional parameters.
2758         * trans.h (g95_se): Add ignore_optional flag.
2760 2002-12-15  Paul Brook  <paul@nowt.org>
2762         * trans-array.c (g95_conv_array_parameter): Fix partial rank sections.
2763         * trans-decl.c (g95_generate_function_code): Use TDI_original.
2765 2002-12-14  Paul Brook  <paul@nowt.org>
2767         * trans-stmt.c (g95_trans_call): Use resolved symbol name.
2769 2002-12-12  Paul Brook  <paul@nowt.org>
2771         * trans-array.c (g95_trans_array_constructor_subarray): Fully
2772         initialize the scalarizer.
2773         (various): Update to new format of g95_expr->value.constructor.
2775 2002-12-08  Paul Brook  <paul@nowt.org>
2777         * trans-array.c (g95_put_offset_into_var): New function.
2778         (g95_trans_array_constructor_subarray): New function.
2779         (g95_trans_array_constructor_value): Use it.
2780         (g95_array_cons_size): Don't abort() on array components.
2782 2002-12-08  Paul Brook  <paul@nowt.org>
2784         * Make-lang.in (F95_ADDITIONAL_OBJS): Remove tree-dchain.o.
2785         * support.c: Update #includes.
2786         (statement_code_p, c_size_in_bytes, s_size_type_node): Remove.
2787         * trans-array.c: Update #includes.
2788         * trans.c: Ditto.
2789         * trans-const.c: Ditto.
2790         * trans-io.c: Ditto.
2791         * trans-types.c: Ditto.
2792         (g95_init_types): Set size_type_node.
2793         * trans-decl.c: Update #includes.
2794         (gfor_fndecl_adjust{l,r}): Declare and initialize.
2795         * trans-stmt.c: Update #includes.
2796         (g95_trans_do_while): Generate LABEL_EXPR, not GOTO_EXPR.
2797         (g95_trans_select): Fix check for unbounded ranges.
2798         * trans-expr.c: Update #includes.
2799         (g95_conv_string_tmp): New function.
2800         (g95_conv_concat_op): Use it.
2801         * trans.h (g95_conv_string_tmp, gfor_fndecl_adjust{l,r}): Declare.
2802         * Trans-intrisic.c: Update #includes.
2803         (g95_conv_intrinsic_strcmp): New function.
2804         (g95_conv_intrinsic_adjust): Ditto.
2805         (g95_conv_intrinsic_function: Use them.
2807 2002-11-30  Paul Brook  <paul@nowt.org>
2809         * trans-array.c (g95_walk_function_expr): Handle non-array return by
2810         reference.
2811         * trans-dec.c (g95_build_function_decl): Handle character return
2812         parammeters.
2813         (g95_get_fake_result_decl): Ditto.
2814         (g95_trans_deferred_vars): Ditto.
2815         * trans-expr.c (g95_conv_function_call): Ditto.
2816         (g95_trans_arrayfunc_assign) Limit to array valued functions.
2817         * trans-intrinsic.c (g95_conv_intrinsic_char): New function.
2818         (g95_conv_intrinsic_function): Use it.
2819         * trans-types.c (g95_sym_type): Handle functions returning strings.
2820         (g95_return_by_reference): Ditto.
2821         (g95_get_function_type): Ditto.
2823 2002-11-18  Paul Brook  <paul@nowt.org>
2825         * trans-stmt.c (g95_trans_if): Fix IF statements when the condition
2826         requires a temporary.
2827         (g95_trans_select): Handle computed gotos.
2828         * trans-types.c (g95_build_array_type): Warn about non-functional
2829         assumed shape arrays.
2830         * trans-expr.c (g95_trans_scalar_assign): Correctly handle post
2831         blocks.
2832         * trans-intrinsic.c (g95_conv_intrinsic_round): New function.
2833         (g95_conv_intrinsic_int): New function.
2834         (g95_conv_intrinsic_mod): New function.
2835         (g95_conv_intrinsic_ichar): New function.
2836         (g95_conv_intrinsic_function): Use them.
2837         (g95_conv_intrinsic_dim): Use g95_evaluate_now.
2839 2002-11-17  Toon Moene  <toon@moene.indiv.nluug.nl>
2841         * trans-types.c (g95_build_array_type): Assumed
2842         sized arrays can have rank > 1.
2843         * trans.c (g95_trans_code): Remove erroneous
2844         warning about CONTINUE.
2845         * trans-expr.c (g95_conv_variable): Remove
2846         erroneous assert.
2848 2002-11-15  Paul Brook  <paul@nowt.org>
2850         * trans-array.c (g95_conv_array_parameter): Check for NULL stride.
2852 2002-10-31  Paul Brook  <paul@nowt.org>
2854         * f95-tree.c: Remove tree copying stuff that's now in gimple.c
2855         * trans-expr.c (g95_conv_component_ref): Handle character string
2856         components.
2857         (g95_conv_string_parameter): Ditto.
2858         * trans-types.c (g95_get_derived_type): Add length decl to caracter
2859         string components.
2861 2002-10-10  Paul Brook  <paul@nowt.org>
2863         * trans-decl.c (gfor_fndecl_size?): Declare and initialize.
2864         * trans-expr.c (g95_conv_function_call): Remove unreliable return value
2865         check.
2866         * trans-intrinsic.c (g95_conv_intrinsic_size): New function.
2867         (g95_conv_intrinsic_function): Handle size and shape intrinsics.
2868         (g95_is_intrinsic_libcall): Add G95_ISYM_SHAPE.
2869         * trans-types.c (pvoid_type_node): Declare and initialize.
2870         * trans-array.c: Fix typo COMPONENT_REF->REF_COMPONENT
2871         (g95_array_allocate): Fix when base==data.
2872         (g95_conv_array_parameter): Correctly handle reduced rank sections.
2873         * trans-io.c (g95_trans_write): Correctly handle string modifiers.
2875 2002-10-09  Paul Brook  <paul@nowt.org>
2877         * (g95_conv_expr_reference): Handle character strings correctly.
2879 2002-10-07  Paul Brook  <paul@nowt.org>
2881         (g95_expand_decl): Rename from f95_expand_decl_stmt and use as
2882         langhook.
2883         * trans-array.c (g95_build_array_initializer): Remove.
2884         (g95_conv_array_initializer): New Function.
2885         (g95_trans_auto_arry_allocation): Cleanup.
2886         (g95_trans_init_character_array): Remove.
2887         * g95spec.c: Link in libgforbegin.
2888         * trans.c (g95_generate_code): Rename main function to MAIN__.
2889         (g95_create_var): New function.
2890         (g95_create_var_np): New function.
2891         (g95_evaluate_now): New function.
2892         (g95_start_block): New function.
2893         (g95_finish_block): New function.
2894         (g95_add_expr_to_block): New function.
2895         (g95_add_block_to_block): New function.
2896         * trans-expr.c (g95_conv_componen_ref): New function.
2897         * Make-lang.in (F95_ADDITIONAL_OBJS): Add gimplify.o.
2898         (F95_OBJS): Add dependency.o.
2899         * f95-lang.c (g95_is_simple_stmt): Remove.
2900         * f95-tree.c (mark_not_simple): New function.
2901         (unshare_all_trees): New function.
2902         (create_tmp_var, create_tmp_alias_var): Remove.
2903         * support.c (declare_tmp_vars, tree_last_decl): Remove.
2904         * trans*: Convert to new IR using GENERIC trees.  Don't bother about
2905         SIMPLE/GIMPLE rules, this is now done by Lang-independant code.
2907 2002-10-01  Paul Brook  <paul@nowt.org>
2909         * trans-array.c: Add support for descriptorless arrays.
2910         (g95_conv_array_data): New function.
2911         (g95_conv_array_base): New function.
2912         * trans-array.h: Declare these here.
2913         * trans-decl.c(g95_create_mopdule_variable): Perform variable
2914         initialization and creation here.
2915         (g95_create_module_vars): Instead of here.
2916         * trans.h (G95_TYPE_ARRAY_*: Rename from G95_TYPE_DESCRIPTOR_*.
2917         * trans-intrinsic.c: Ditto.
2918         * trans-types.c (g95_is_nodesc_array): New function.
2919         (g95_get_nodesc_array_type): New function.
2920         (g95_sym_type, g95_get_derived_type): Use them.
2921         * trans-const.c (g95_conv_mpf_to_tree): Remove workaround.
2923 2002-09-28  Paul Brook  <paul@nowt.org>
2925         * trans-const.c (g95_conv_mpf_to_tree): Work around backend bug.
2926         * trans-intrinsic.c (g95_conv_intrinsic_abs): Correctly detect complex
2927         parameters.
2929 2002-09-24  Paul Brook  <paul@nowt.org>
2931         * f95-lang.c (listify): Remove declaration.
2932         (expand_function_body): Use optimize >=1 instead of flag_tree_saa.
2933         (listify)
2934         * f95-tree.c (get_name): New function.
2935         * trans.c (module_namespace): Remove.
2936         * trans-decl.c: Use g95_chainon_list rather than chainon(listify()).
2937         * trans-types.c: Ditto.
2939 2002-09-19  Paul Brook  <paul@nowt.org>
2941         * trans-array.c (g95_get_array_cons_size): New Function.
2942         (g95_con_ss_startstride): Handle Array constructors.
2943         (g95_conv_loop_setup): Ditto.
2944         (g95_conv_array_parameter): Ditto.
2945         * tras-decl.c (g95_finish_var_decl): Make initializes variables
2946         static.
2948 2002-09-19  Paul Brook  <paul@nowt.org>
2950         * trans.c (g95_simple_fold_tmp): Detect variables inside
2951         NON_LVALUE_EXPR.
2952         * trans-stmt.c (g95_trans_arithmetic_if): Implement this.
2954 2002-09-18  Steven Bosscher <s.bosscher@student.tudelft.nl>
2956         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree-ssa-dce.o
2958 2002-09-14  Paul Brook  <paul@nowt.org>
2960         * trans.c (g95_create_module_variable): Move to trans-decl.c.
2961         * trans-const.c (g95_conv_string_init): New Function.
2962         * trans-const.h: Declare it.
2963         * trans-decl.c (g95_get_symbol_decl): Handle initializers for static
2964         variables. Don't bail on intrinsic symbols.
2965         (get_extern_function_decl): Handle specific intrinsic functions.
2966         * trans-types.c (g95_sym_type): Dummy functions don't return
2967         reference types.
2968         * trans-array.c (g95_build_array_initializer): New Function.
2969         (g95_trans_auto_array_allocation): Build initializer for static decls.
2970         Don't use mpz_addmul, it's GMP4 only.
2972 2002-09-12  Paul Brook  <paul@nowt.org>
2974         * trans-decl.c (g95_generate_code): Fix thinko with return variable.
2975         (g95_get_extern_function_decl, g95_build_function_decl): Mangle
2976         assembler names for module procedures.
2978 2002-09-11  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
2980         * trans-array.c,h trans-expr.c, trans-stmt.c: Correct spelling of
2981         dependency/
2983 2002-09-10  Paul Brook  <paul@nowt.org>
2985         * trans-array.c: Change format of G95_SS_TEMP strictures.
2986         (g95_check_fncall_dependancy): New function.
2987         (trans_dummy_array_bias): stride[n], not stride[n-1]. for calculating
2988         offsets.
2989         * trans-decl.c (g95_get_symbol_decl): move assertion after handling of
2990         result variables.
2991         (g95_build_function_decl): Don't assume result arrays are packed.
2992         (g95_trans-deferred-vars): Handle array result variables.
2993         (g95_generate_fuction_code): Clear saved_function_decls.
2994         * trans-expr.c (g95_conv_fnction_call): Handle direct array return by
2995         reference.
2996         (g95_trans_arrayfunc_assign): New function.
2997         (g95_trans_assignment): Use it.
2998         * trans.h (g95_ss): Add temp struct for G95_SS_TEMP.
2999         (g95_se): Add direct_byref.
3000         * trans-types.c: Use sym->result rather than sym where appropriate.
3001         * trans-intrinsic.c (g95_conv_intrinsic_funcall): New function.
3002         Update other functions to use this.
3003         (g95_is_intrinsic_libcall): New function.
3004         (g95_conv_intrinsic_function): Add MATMUL and PRODUCT intrinsics.
3005         (g95_walk_intrinsic_function): Ditto.
3007 2002-09-08  Paul Brook  <paul@nowt.org>
3009         * trans-types.c: Change rank field to dtype field in array descriptor.
3010         * trans-array.c: Implement filling of dtype array descriptor field.
3011         * trans-intrinsic.c: Fix broken LEN intrinsic.
3013 2002-09-07  Paul Brook  <paul@nowt.org>
3015         * trans-intrinsic.c: Remove outdated todo intrinsic list.
3016         (g95_get_symbol_for_expr): Remove hack for fortran based intrinsics.
3017         (g95_walk_intrinsic_function): Add MINLOC and MAXLOC.
3019 2002-09-06  Paul Brook  <paul@nowt.org>
3021         * Make-lang.in (F95_ADDITIONAL_OBJS): Add tree_alias_comon.o.
3022         (gt-f95-trans-types.h): Add dependancy information.
3023         * config-lang.in (gtfiles): Add trans-types.c
3024         * f95-lang.c (g95_be_parse_file): Pass error and warning counts
3025         back to top-level code.
3026         * trans-array.c, trans-types.c: Change format of array descriptor.
3027         (g95_conv_descriptor_dimension): New function.
3028         * trans-types.h (g95_conv_descriptor_rank): define.
3029         * trans-intrinsic.c: Implement PRODUCT, COUNT. MINLOC and MAXLOC
3030         intrinsics.
3032 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
3034         * trans-array.c, trans-types.c: Add rank information to descriptor.
3036 2002-09-06  Tobias Schlueter  <Tobias.Schlueter@physik.uni-muenchen.de>
3038         * trans-stmt.c (g95_trans_allocate): Fix when ref==NULL.
3040 2002-09-04  Paul Brook  <paul@nowt.org>
3042         * f95-lang.c (g95_create_decls): New function.
3043         (g95_init):  Move initialization of external decls to above, and call
3044         from g95_be_parse_file.
3045         * trans.c (g95_finish_stmt): Don't amputate the decl chain.
3046         * trans-types.c (g95_init_types): Always name integer and char types.
3047         (g95_get_array_type_bounds): TYPE_NAME may be a TYPE_DECL.
3049 2002-09-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
3051         * Make-lang.in: Add options.c to F95_PARSER_OBJS
3053 2002-09-02  Paul Brook  <paul@nowt.org>
3055         * g95_generate_code: Clear the attr for __fortran_main.
3056         * trans-types.c (g95_finish_type): New function.
3057         * g95_init_io_state_type: Use g95_finish_type.
3058         * g95_conv_intrinsic_anyall: Fix thinko in result initialization.
3060 2002-09-01  Paul Brook  <paul@nowt.org>
3062         * README.backend: Warn about the dangers of extra config.h files.
3063         Remove obsolete libgfor stuff.
3064         * config-lang.in: Add target-libgfor dependancy.
3065         * g95_conv_mpf_to_tree: Use & free allocated buffer p rather than buff.
3067 2002-09-01  Toon Moene  <toon@moene.indiv.nluug.nl>
3069         * g95_conv_mpz_to_tree: Free storage pointed to by q,
3070         not by buff.
3072 2002-08-30  Paul Brook  <paul@nowt.org>
3074         * trans-intrinsic.c (g95_conv_intrinsic_function,
3075         g95_walk_intrinsic_function): Added ANY and ALL.
3076         (g95_conv_intrinsic_anyall): New function.
3077         * iresolve.c (g95_resolve_any, g95_resolve_all): Include rank in
3078         mangled name