OSDN Git Service

* invoke.texi: Update -Waliasing description.
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
index 514b29a..fb06ed8 100644 (file)
@@ -1,4 +1,365 @@
-2005-03-05  Steven G. Kargl  <kargls@comcast.net> 
+2005-04-19  Arnaud Desitter  <arnaud.desitter@ouce.ox.ac.uk>
+            Steven G. Kargl  <kargls@comcast.net>
+
+       * invoke.texi: Update -Waliasing description
+
+2005-04-19  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/16861
+       * resolve.c (resolve_variable): If e->symtree is not set, this
+       ought to be a FAILURE, and not a segfault.
+
+2005-04-17 Paul Thomas <pault@gcc.gnu.org>
+
+       PR fortran/17472
+       PR fortran/18209
+       PR fortran/18396
+       PR fortran/19467
+       PR fortran/19657
+       * fortran/trans-io.c (gfc_build_io_library_fndecls): Create
+       declaration for st_set_nml_var and st_set_nml_var_dim. Remove
+       declarations of old namelist functions.
+       (build_dt): Simplified call to transfer_namelist_element.
+       (nml_get_addr_expr): Generates address expression for start of 
+       object data. New function.
+       (nml_full_name): Qualified name for derived type components. New 
+       function.
+       (transfer_namelist_element): Modified for calls to new functions 
+       and improved derived type handling.
+
+2005-04-17  Richard Guenther  <rguenth@gcc.gnu.org>
+
+       * scanner.c (gfc_next_char_literal): Reset truncation flag
+       for lines ending in a comment for both fixed and free form.
+       (load_line): Do not set truncated flag if only truncating
+       the EOL marker.
+
+2005-04-15  Richard Guenther  <rguenth@gcc.gnu.org>
+
+       PR fortran/14569
+       * gfortran.h (gfc_linebuf): Add truncated field.
+       * parse.c (next_statement): Handle warning for truncated
+       lines.
+       * scanner.c (load_line): Return if line was truncated.
+       No longer warn for truncated lines.  Remove unused parameters.
+       (load_file): Store load_line return value to linebuf.
+       (gfc_error_recovery): Do not advance line at the end.
+
+2005-04-14  Steven G. Kargl  <kargls@comcast.net>
+
+       * gfortran.h (gfc_real_info): Add subnormal struct member.
+       * arith.c (gfc_arith_init_1): Set it.
+       (gfc_check_real_range): Use it.
+       * simplify.c (gfc_simplify_nearest): Fix nearest(0.,1.).
+
+2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * simplify.c: Fix a comment typo.
+
+2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
+
+       * lang.opt: Refer to the GCC internals documentation instead of c.opt.
+
+2005-04-11  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       * simplify.c (gfc_simplify_nearest): Overhaul.
+
+2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * interface.c: Fix a comment typo.
+
+2005-04-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * match.c (match_arithmetic_if): Arithmetic IF is obsolete in
+       Fortran 95.
+
+2005-04-09  Steven G. Kargl  <kargls@comcast.net>
+
+       * simplify.c (gfc_simplify_anint): Use mpfr_round()
+       (gfc_simplify_dnint): ditto.
+       (gfc_simplify_nint): ditto.
+
+2005-04-09  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR fortran/13257
+       * io.c (check_format): Allow an optional comma
+       between descriptors.
+
+2005-04-09  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * match.c (match_arithmetic_if): Remove gfc_ prefix and correct
+       comment according to GNU coding style.
+       (gfc_match_if): Remove gfc_ prefix in call to
+       match_arithmetic_if.
+
+2005-04-08  Diego Novillo  <dnovillo@redhat.com>
+
+       * match.c (gfc_match_arithmetic_if): Declare static.
+
+2005-04-08  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/17229
+       * match.c (gfc_match_arithmetic_if): New function to match an
+       arithmetic IF statement.
+       (gfc_match_if): Use gfc_match_arithmetic_if to match an
+       arithmetic IF statement embedded in a simple IF statement.
+
+2005-04-07  Steven G. Kargl  <kargls@comcast.net>
+
+       * simplify.c (gfc_simplify_exponent): Fix exponent(tiny(x))
+
+2005-04-06  Steven G. Kargl  <kargls@comcast.net>
+
+       * invoke.texi: Remove documentation of -std=f90 
+
+2005-04-06  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       * expr.c (gfc_check_assign): Don't allow NULL as rhs in a
+       non-pointer assignment.
+
+2005-04-05  Feng Wang  <fengwang@nudt.edu.cn>
+
+       PR fortran/15959
+       PR fortran/20713
+
+       * array.c (resolve_character_array_constructor): New function. Set
+       constant character array's character length.
+       (gfc_resolve_array_constructor): Use it.
+       * decl.c (add_init_expr_to_sym): Set symbol and initializer character
+       length.
+       (gfc_set_constant_character_len): New function. Set constant character
+       expression according the given length.
+       * match.h (gfc_set_constant_character_len): Add prototype.
+
+2005-04-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * intrinsic.texi: BES?? functions are not in the f95 standard.
+
+2005-04-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * intrinsic.texi: Document COS, EXP, LOG, LOG10, SIN, SQRT, TAN.
+
+2005-04-03  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * intrinsic.texi: Document BESJ0, BESJ1, BESJN, BESY0, BESY1,
+       BESYN, ATAN, COSH, ERF, ERC, SINH, TANH.
+
+2005-04-02  Steven G. Kargl  <kargls@comcast.net>
+
+       * intrinsic.texi: Document ALLOCATED, ANINT, ANY, ASIN; fix typos
+
+2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * decl.c, f95-lang.c, interface.c, module.c, trans-stmt.c,
+       trans.h: Fix comment typos.
+
+2005-03-29  Steven G. Kargl  <kargls@comcast.net>
+
+       * gfortran.h (option_t): Change d8, i8, r8 to flag_default_double,
+       flag_default_integer, flag_default_real
+       * invoke.texi: Update documentation
+       * lang.opt: Remove d8, i8, r8 definitions; Add fdefault-double-8   
+       fdefault-integer-8, and fdefault-real-8 definitions.
+       * options.c (gfc_init_options): Set option defaults
+       (gfc_handle_option): Handle command line options.
+       * trans-types.c (gfc_init_kinds): Use options.
+
+2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
+
+       * f95-lang.c (builtin_function): Process the attrs parameter
+       and apply the "const" attribute to the builtin if found.
+
+2005-03-27  Steven G. Kargl  <kargls@comcast.net>
+
+       * intrinsic.texi: Document AIMAG, AINT, ALL
+
+2005-03-26  Steven G. Kargl  <kargls@comcast.net>
+
+       * arith.c (check_result): Fix illogical logic.
+
+2005-03-26  Canqun Yang  <canqun@nudt.edu.cn>
+
+       * trans-common.c (create_common): Build RECORD_NODE for common blocks
+       contain no equivalence objects.
+       (add_equivalences): New argument saw_equiv.
+       (trans_common): New local variable saw_equiv.
+       (finish_equivalences): Add a local variable dummy, Always pass true
+       for the 3rd parameter to create_common.
+
+2005-03-25  Steven G. Kargl  <kargls@comcast.net>
+
+       * intrinsic.texi: Fix "make dvi"
+
+2005-03-24  Steven G. Kargl  <kargls@comcast.net>
+
+       * intrinsic.texi: New file.
+       * gfortran.texi: Include it; white space change; fix typo.
+
+2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
+
+       * f95-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
+
+2005-03-23  Steven Bosscher  <stevenb@suse.de>
+
+       * convert.c (convert): Replace fold (buildN (...)) with fold_buildN.
+       * trans-array.c (gfc_trans_allocate_array_storage,
+       gfc_trans_allocate_temp_array gfc_trans_array_constructor_value,
+       gfc_conv_array_index_ref, gfc_trans_array_bound_check,
+       gfc_conv_array_index_offset, gfc_conv_scalarized_array_ref,
+       gfc_conv_array_ref, gfc_trans_preloop_setup, gfc_conv_ss_startstride,
+       gfc_conv_loop_setup, gfc_array_init_size, gfc_trans_array_bounds,
+       gfc_trans_auto_array_allocation, gfc_trans_dummy_array_bias,
+       gfc_conv_expr_descriptor): Likewise.
+       * trans-expr.c (gfc_conv_powi, gfc_conv_string_tmp,
+       gfc_conv_concat_op, gfc_conv_expr_op): Likewise.
+       * trans-intrinsic.c (build_round_expr, gfc_conv_intrinsic_bound,
+       gfc_conv_intrinsic_cmplx, gfc_conv_intrinsic_sign,
+       gfc_conv_intrinsic_minmaxloc, gfc_conv_intrinsic_minmaxval,
+       gfc_conv_intrinsic_btest, gfc_conv_intrinsic_bitop,
+       gfc_conv_intrinsic_singlebitop, gfc_conv_intrinsic_ibits,
+       gfc_conv_intrinsic_ishft, gfc_conv_intrinsic_ishftc,
+       gfc_conv_intrinsic_merge, prepare_arg_info,
+       gfc_conv_intrinsic_rrspacing, gfc_conv_intrinsic_repeat): Likewise.
+       * trans-stmt.c (gfc_trans_simple_do, gfc_trans_do, gfc_trans_do_while,
+       gfc_trans_forall_loop, gfc_do_allocate, generate_loop_for_temp_to_lhs,
+       generate_loop_for_rhs_to_temp, compute_inner_temp_size,
+       allocate_temp_for_forall_nest, gfc_trans_pointer_assign_need_temp,
+       gfc_trans_forall_1, gfc_evaluate_where_mask, gfc_trans_where_assign):
+       Likewise.
+       * trans-types.c (gfc_get_dtype, gfc_get_array_type_bounds): Likewise.
+       * trans.c (gfc_add_modify_expr): Likewise.
+
+2005-03-22  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * check.c (gfc_check_chdir, gfc_check_chdir_sub, gfc_check_kill,
+       gfc_check_kill_sub, gfc_check_link, gfc_check_link_sub,
+       gfc_check_symlnk, gfc_check_symlnk_sub, gfc_check_rename,
+       gfc_check_rename_sub, gfc_check_sleep_sub, gfc_check_gerror,
+       gfc_check_getlog, gfc_check_hostnm, gfc_check_hostnm_sub,
+       gfc_check_perror): new functions to check newly implemented
+       g77 intrinsics.
+       * gfortran.h: adding symbols for new intrinsics.
+       * intrinsic.c (add_functions): adding new intrinsics.
+       (add_subroutines): adding new intrinsics.
+       * intrinsic.h: prototype for all checking and resolving
+       functions.
+       * iresolve.c (gfc_resolve_chdir, gfc_resolve_chdir_sub,
+       gfc_resolve_hostnm, gfc_resolve_ierrno, gfc_resolve_kill,
+       gfc_resolve_link, gfc_resolve_rename, gfc_resolve_symlnk,
+       gfc_resolve_time, gfc_resolve_time8, gfc_resolve_rename_sub,
+       gfc_resolve_kill_sub, gfc_resolve_link_sub,
+       gfc_resolve_symlnk_sub, gfc_resolve_sleep_sub,
+       gfc_resolve_gerror, gfc_resolve_getlog, gfc_resolve_hostnm_sub,
+       gfc_resolve_perror): new functions to resolve intrinsics.
+       * trans-intrinsic.c (gfc_conv_intrinsic_function): add case
+       for new symbols.
+
+2005-03-19  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       * dump-parse-tree.c (gfc_show_expr): Dump name of namespace
+       in which the variable is declared.
+
+       PR fortran/18525
+       * resolve.c (was_declared): Also check for dummy attribute.
+
+2005-03-19  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       * gfortran.h (arith): Remove ARITH_0TO0.
+       * arith.c (gfc_arith_error): Remove handling of ARITH_0TO0.
+       (gfc_arith_power): Remove special casing of zero to integral
+       power zero.
+
+2005-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Make-lang.in (fortran-warn): Remove -Wno-error.
+       (expr.o-warn, resolve.o-warn, simplify.o-warn,
+       trans-common.o-warn): Specify -Wno-error.
+
+2005-03-17  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       * trans-array.c (gfc_trans_static_array_pointer,
+       get_array_ctor_var_strlen, gfc_conv_array_index_offset): Fix
+       comment and formatting typos.
+
+2005-03-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * invoke.texi: Fix typos.
+
+2005-03-15  Zack Weinberg  <zack@codesourcery.com>
+
+       * Make-lang.in (GFORTRAN_TEXI): Add gcc-vers.texi.
+
+2005-03-15  Feng Wang  <fengwang@nudt.edu.cn>
+
+       * trans-stmt.c (gfc_trans_label_assign): Don't set DECL_ARTIFICIAL flag
+       to zero on label_tree.
+
+2005-03-15  Feng Wang  <fengwang@nudt.edu.cn>
+
+       PR fortran/18827
+       * io.c (resolve_tag): Add checking on assigned label.
+       (match_dt_format): Does not set symbol assign attribute.
+       * match.c (gfc_match_goto):Does not set symbol assign attribute.
+       * resolve.c (resolve_code): Add checking on assigned label.
+       * trans-common.c (build_field): Deals with common variable assigned
+       a label.
+       * trans-stmt.c (gfc_conv_label_variable): New function.
+       (gfc_trans_label_assign): Use it.
+       (gfc_trans_goto): Ditto.
+       * trans-io.c (set_string): Ditto.
+       * trans.h (gfc_conv_label_variable): Add prototype.
+
+2005-03-14  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       PR fortran/20467
+       * symbol.c (check_conflict): A dummy argument can't be a statement
+       function.
+
+2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
+
+       * fortran/trans-intrinsic.c (gfc_conv_intrinsic_ishft): Convert
+       the argument of the shift to the unsigned type.
+
+2005-03-13  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       PR fortran/16907
+       * resolve.c (gfc_resolve_index): Allow REAL indices as an extension.
+
+2005-03-13  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       PR fortran/20323
+       * resolve.c (gfc_resolve): Check if character lengths are
+       specification expressions.
+
+2005-03-12  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       PR fortran/20361
+       * trans-array.c (gfc_stack_space_left): Remove unused variable.
+       (gfc_can_put_var_on_stack): Move to trans-decl.c, remove #if 0'ed
+       code.
+       * trans-array.h (gfc_stack_space_left, gfc_can_put_var_on_stack):
+       Remove declaration / prototype.
+       * trans-common.c (build_equiv_decl): Give union a name.  Check if
+       it can be put on the stack.
+       * trans-decl.c (gfc_stack_space_left): Move function here.
+       (gfc_build_qualified_array): Fix comment typo.
+       * trans.h (gfc_put_var_on_stack): Add prototype.
+
+2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Make-lang.in (fortran-warn): Set to $(STRICT_WARN) -Wno-error.
+       * decl.c, trans.c: Don't use C++ style comments.
+       * gfortran.h (sym_flavor, procedure_type, sym_intent, gfc_access,
+       ifsrc): Give names to enums and use ENUM_BITFIELD.
+       (gfc_access): Remove trailing comma.
+
+2005-03-05  Steven G. Kargl  <kargls@comcast.net>
+
+       PR 19936
+       * primary.c (match_complex_constant): Mangled complex constant may
+       be an implied do-loop.  Give implied do-loop matcher a chance.
+
+2005-03-05  Steven G. Kargl  <kargls@comcast.net>
 
        PR fortran/19754
        * resolve.c (compare_shapes):  New function.
        (compare_actual_formal): Check for NULL pointer instead of empty
        string.
        * intrinsic.c (gfc_current_intrinsic, gfc_current_intrinsic_arg):
-       Add 'const' qualifier.  
+       Add 'const' qualifier.
        (conv_name): Return a heap allocated string.
        (find_conv): Add 'const' qualifier to 'target'.
        (add_sym): Use 'gfc_get_string' instead of 'strcpy'.
        * expr.c (gfc_type_convert_binary): Typo in comment.
 
 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
-  
+
        * check.c (gfc_check_selected_int_kind): New function.
        * intrinsic.h: Prototype it.
        * intrinsic.c (add_function): Use it.
          BT_REAL to BT_INTEGER and use gfc_default_integer_kind.
 
 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
-  
+
        * check.c (gfc_check_int): improve checking of optional kind
        * simplify.c (gfc_simplify_int): Change BT_REAL to BT_INTEGER
 
 2005-02-19  Steven G. Kargl  <kargls@comcast.net>
-  
+
        * check.c (gfc_check_achar): New function
        * intrinsic.h: Prototype it.
        * intrinsic.c (add_function): Use it.
 
 2005-01-22  Steven G. Kargl  <kargls@comcast.net>
 
-       * intrinsic.c (make_alias):  Add standard argument. 
+       * intrinsic.c (make_alias):  Add standard argument.
        (add_functions): Update make_alias calls.
 
 2005-01-22  Paul Brook  <paul@codesourcery.com>
        gfc_check_getcwd_sub, gfc_check_exit, gfc_check_flush,
        gfc_check_umask, gfc_check_umask_sub, gfc_check_unlink,
        gfc_check_unlink_sub): Fix formatting issues.
-       
+
 2005-01-08  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
 
        * gfortran.h: Remove outdated comment.  Don't include stdio.h
 
        * gfortran.h (gfc_case): fix typo in comment.
 
-2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de> 
+2004-12-27  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
 
        * trans-intrinsic.c (gfc_conv_intrinsic_ishft): Change to
        logical shift.  Call fold.  Remove 0-bit shift shortcut.
 
 2004-10-30  Canqun Yang  <canqun@nudt.edu.cn>
 
-       * check.c (gfc_check_rand): Allow missing optional argument. 
+       * check.c (gfc_check_rand): Allow missing optional argument.
        (gfc_check_irand): Ditto.
        * intrinsic.c (add_functions): Set arg optional flag for {i,}rand.
 
 2004-10-08  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
 
        * arith.c: Fix formatting issues.
-       
+
 2004-10-07  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
 
        PR fortran/17676
        * trans-const.h (gfc_build_cstring_const): Add prototype.
        * trans-io.c (set_string, set_error_locus): Use new function.
        * trans-stmt.c (gfc_trans_goto): Use new function.
-       
+
        PR fortran/17708
        * parse.c (accept_statement): Don't treat END DO like END IF and
        END SELECT.
        PR fortran/17615
        * trans-expr.c (gfc_trans_arrayfunc_assign): Look at resolved
        function to determine return type.
-       
+
 2004-09-20  Jan Hubicka  <jh@suse.cz>
 
        * trans-decl.c (build_entry_thunks): Finalize the function; do not lower