OSDN Git Service

Fix a typo.
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
index 6d19805..4643f40 100644 (file)
@@ -1,3 +1,381 @@
+2006-05-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR fortran/27662
+       * trans-array.c (gfc_conv_expr_descriptor): Don't zero the
+       first stride to indicate a temporary.
+       * trans-expr.c (gfc_conv_function_call): Likewise.
+
+2006-05-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+           Feng Wang  <fengwang@nudt.edu.cn>
+
+       PR fortran/27552
+       * dump-parse-tree.c (gfc_show_expr): Deal with Hollerith constants.
+       * data.c (create_character_intializer): Set from_H flag if character is
+       initialized by Hollerith constant.
+
+2006-05-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/26551
+       * resolve.c (resolve_call, resolve_function): Issue an error
+       if a function or subroutine call is recursive but the function or
+       subroutine wasn't declared as such.
+
+2006-05-07  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/26551
+       * gfortran.dg/recursive_check_1.f: New test.
+
+
+2006-05-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/27320
+       * dump-parse-tree.c (gfc_show_code_node): Try harder to find the
+       called procedure name.
+
+2006-05-17  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/27415
+       * trans-openmp.c (gfc_trans_omp_parallel_do,
+       gfc_trans_omp_parallel_sections, gfc_trans_omp_parallel_workshare): Set
+       OMP_PARALLEL_COMBINED flag.
+
+2006-05-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR driver/26885
+       * Make-lang.in (GFORTRAN_D_OBJS): Replace gcc.o with
+       $(GCC_OBJS).
+
+2006-05-15  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/25090
+       * resolve.c: Static resolving_index_expr initialized.
+       (entry_parameter): New function to emit errors for variables
+       that are not entry parameters.
+       (gfc_resolve_expr): Call entry_parameter, when resolving
+       variables, if the namespace has entries and resolving_index_expr
+       is set.
+       (resolve_charlen): Set resolving_index_expr before the call to
+       resolve_index_expr and reset it afterwards.
+       (resolve_fl_variable): The same before and after the call to
+       is_non_constant_shape_array, which ultimately makes a call to
+       gfc_resolve_expr.
+
+       PR fortran/25082
+       * resolve.c (resolve_code): Add error condition that the return
+       expression must be scalar.
+
+       PR fortran/24711
+       * matchexp.c (gfc_get_parentheses): New function.
+       (match_primary): Remove inline code and call above.
+       * gfortran.h: Provide prototype for gfc_get_parentheses.
+       * resolve.c (resolve_array_ref): Call the above, when start is a
+       derived type variable array reference.
+
+2006-05-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR fortran/27446
+       * trans-openmp.c (gfc_trans_omp_array_reduction): Ensure
+       OMP_CLAUSE_REDUCTION_{INIT,MERGE} are set to BIND_EXPR.
+
+2006-05-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Make-lang.in (fortran/options.o): Depend on $(TARGET_H).
+
+2006-05-11  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/27553
+       * parse.c (next_free): Return instead of calling decode_statement
+       upon error.
+
+2005-05-10  Thomas Koenig  <Thomas.Koenig@online.de>
+
+       PR fortran/27470
+       * trans-array.c(gfc_array_allocate):  If ref->next exists
+       that is if there is a statement like ALLOCATE(foo%bar(2)),
+       F95 rules require that bar should be a pointer.
+
+2006-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/20460
+       * resolve.c (gfc_resolve_index): Make REAL array indices a
+       GFC_STD_LEGACY feature.
+
+2006-05-10  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/24549
+       * parse.c (reject_statement): Clear gfc_new_block.
+
+2006-05-09  Steven G. Kargl  <kargls@comcast.net>
+
+       * invoke.texi: Missed file in previous commit.  Update
+        description of -fall-intrinsics
+
+2006-05-07  Steven Boscher  <steven@gcc.gnu.org>
+
+       PR fortran/27378
+       * parse.c (next_statement): Add check to avoid an ICE when
+       gfc_current_locus.lb is not set.
+
+2006-05-07  Tobias Schl\81üter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       PR fortran/27457
+       * match.c (match_case_eos): Error out on garbage following
+       CASE(...).
+
+2006-05-07  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/24813
+       * trans-array.c (get_array_ctor_strlen): Remove static attribute.
+       * trans.h: Add prototype for get_array_ctor_strlen.
+       * trans-intrinsic.c (gfc_conv_intrinsic_len): Switch on EXPR_ARRAY
+       and call get_array_ctor_strlen.
+
+2006-05-05  Steven G. Kargl  <kargls@comcast.net>
+
+       * invoke.texi: Update description of -fall-intrinsics
+       * options.c (gfc_post_options): Disable -Wnonstd-intrinsics if
+       -fall-intrinsics is used.
+       (gfc_handle_option): Permit -Wno-nonstd-intrinsics.
+
+2006-05-04  Tobias Schl\81üter  <tobias.schlueter@physik.uni-muenchen.de>
+
+       * simplify.c (ascii_table): Fix wrong entry.
+
+2006-05-02  Steven G. Kargl  <kargls@comcast.net>
+
+       PR fortran/26896
+       * lang.opt: Fix -Wtab description
+
+       PR fortran/20248  
+       * lang.opt: New flag -fall-intrinsics.
+       * invoke.texi:  Document option.
+       * gfortran.h (options_t):  New member flag_all_intrinsics.
+       * options.c (gfc_init_options, gfc_handle_option): Set new option.
+       sort nearby misplaced options.
+       * intrinsic.c (add_sym, make_generic, make_alias):  Use it.
+2006-05-02 Paul Thomas <pault@gcc.gnu.org>
+
+        PR fortran/27269
+        * module.c: Add static flag in_load_equiv.
+        (mio_expr_ref): Return if no symtree and in_load_equiv.
+        (load_equiv): If any of the equivalence members have no symtree, free
+        the equivalence and the associated expressions.
+
+        PR fortran/27324
+        * trans-common.c (gfc_trans_common): Invert the order of calls to
+        finish equivalences and gfc_commit_symbols.
+
+2006-04-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/25681
+       * simplify.c (simplify_len): Character variables with constant
+       length can be simplified.
+
+2006-04-29  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR fortran/27351
+       * trans-array.c (gfc_conv_array_transpose): Move gcc_assert
+       before gfc_conv_expr_descriptor.
+
+2006-04-23  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/25099
+       * resolve.c (resolve_call): Check conformity of elemental
+       subroutine actual arguments.
+
+2006-04-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR fortran/26769
+       * iresolve.c (gfc_resolve_reshape): Use reshape_r16 for real(16).
+       (gfc_resolve_transpose): Use transpose_r16 for real(16).
+
+2006-04-21 Paul Thomas <pault@gcc.gnu.org>
+
+       PR fortran/27122
+       * resolve.c (resolve_function): Remove general restriction on auto
+       character length function interfaces.
+       (gfc_resolve_uops): Check restrictions on defined operator
+       procedures.
+       (resolve_types): Call the check for defined operators.
+
+       PR fortran/27113
+       * trans-array.c (gfc_trans_array_constructor_subarray): Remove
+       redundant gfc_todo_error.
+       (get_array_ctor_var_strlen): Remove typo in enum.
+
+2006-04-18  Bernhard Fischer  <aldot@gcc.gnu.org>
+
+       * parse.c (next_free): Use consistent error string between
+       free-form and fixed-form for illegal statement label of zero.
+       (next_fixed): Use consistent warning string between free-form
+       and fixed-form for statement labels for empty statements.
+
+2006-04-18  Steve Ellcey  <sje@cup.hp.com>
+
+       * trans-io.c (gfc_build_io_library_fndecls): Align pad.
+
+2006-04-16  Thomas Koenig  <Thomas.Koenig@online.de>
+
+       PR fortran/26017
+       * trans-array.c(gfc_array_init_size):  Introduce or_expr
+       which is true if the size along any dimension
+       is negative.  Create a temporary variable with base
+       name size.  If or_expr is true, set the temporary to 0,
+       to the normal size otherwise.
+
+2006-04-16  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/26822
+       * intrinsic.c (add_functions): Mark LOGICAL as elemental.
+
+       PR fortran/26787
+       * expr.c (gfc_check_assign): Extend scope of error to include
+       assignments to a procedure in the main program or, from a
+       module or internal procedure that is not that represented by
+       the lhs symbol. Use VARIABLE rather than l-value in message.
+
+       PR fortran/27096
+       * trans-array.c (gfc_trans_deferred_array): If the backend_decl
+       is not a descriptor, dereference and then test and use the type.
+
+       PR fortran/25597
+       * trans-decl.c (gfc_trans_deferred_vars): Check if an array
+       result, is also automatic character length.  If so, process
+       the character length.
+
+       PR fortran/18803
+       PR fortran/25669
+       PR fortran/26834
+       * trans_intrinsic.c (gfc_walk_intrinsic_bound): Set
+       data.info.dimen for bound intrinsics.
+       * trans_array.c (gfc_conv_ss_startstride): Pick out LBOUND and
+       UBOUND intrinsics and supply their shape information to the ss
+       and the loop.
+
+       PR fortran/27124
+       * trans_expr.c (gfc_trans_function_call):  Add a new block, post,
+       in to which all the argument post blocks are put.  Add this block
+       to se->pre after a byref call or to se->post, otherwise.
+
+2006-04-14  Roger Sayle  <roger@eyesopen.com>
+
+       * trans-io.c (set_string): Use fold_build2 and build_int_cst instead
+       of build2 and convert to construct "x < 0" rather than "x <= -1".
+
+2006-04-13  Richard Henderson  <rth@redhat.com>
+
+       * trans-openmp.c (gfc_trans_omp_sections): Adjust for changed
+       number of operands to OMP_SECTIONS.
+
+2006-04-08  Kazu Hirata  <kazu@codesourcery.com>
+
+       * gfortran.texi: Fix typos.  Follow spelling conventions.
+       * resolve.c, trans-expr.c, trans-stmt.c: Fix comment typos.
+       Follow spelling conventions.
+
+2006-04-05  Roger Sayle  <roger@eyesopen.com>
+
+       * dependency.c (get_no_elements): Delete function.
+       (get_deps): Delete function.
+       (transform_sections): Delete function.
+       (gfc_check_section_vs_section): Significant rewrite.
+
+2006-04-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR fortran/25619
+       * trans-array.c (gfc_conv_expr_descriptor): Only dereference
+       character pointer when copying temporary.
+
+       PR fortran/23634
+       * trans-array.c (gfc_conv_expr_descriptor): Properly copy
+       temporary character with non constant size.
+
+2006-04-03  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/26891
+       * trans.h: Prototype for gfc_conv_missing_dummy.
+       * trans-expr (gfc_conv_missing_dummy): New function
+       (gfc_conv_function_call): Call it and tidy up some of the code.
+       * trans-intrinsic (gfc_conv_intrinsic_function_args): The same.
+
+       PR fortran/26976
+       * array.c (gfc_array_dimen_size): If available, return shape[dimen].
+       * resolve.c (resolve_function): If available, use the argument
+       shape for the function expression.
+       * iresolve.c (gfc_resolve_transfer): Set shape[0] = size.
+
+2006-04-02  Erik Edelmann  <eedelman@gcc.gnu.org>
+
+       * trans-array.c (gfc_trans_dealloc_allocated): Take a
+       tree representation of the array to be deallocated as argument
+       instead of its gfc_symbol.
+       (gfc_trans_deferred_array): Update call to
+       gfc_trans_dealloc_allocated.
+       * trans-array.h (gfc_trans_dealloc_allocated): Update
+       prototype.
+       * trans-expr.c (gfc_conv_function_call): Update call to
+       gfc_trans_dealloc_allocated, get indirect reference to dummy
+       arguments.
+
+2006-04-01  Roger Sayle  <roger@eyesopen.com>
+
+       PR fortran/25270
+       * trans-array.c (gfc_trans_allocate_array_storage): In array index
+       calculations use gfc_index_zero_node and gfc_index_one_node instead
+       of integer_zero_node and integer_one_node respectively.
+       (gfc_conv_array_transpose): Likewise.
+       (gfc_conv_ss_startstride): Likewise.
+       (gfc_trans_dummy_array_bias): Likewise.
+
+2006-04-01  Roger Sayle  <roger@eyesopen.com>
+
+       * dependency.c (gfc_is_inside_range): Delete.
+       (gfc_check_element_vs_section): Significant rewrite.
+
+2006-04-01  Roger Sayle  <roger@eyesopen.com>
+
+       * dependency.c (gfc_dep_compare_expr): Strip parentheses and unary
+       plus operators when comparing expressions.  Handle comparisons of
+       the form "X+C vs. X", "X vs. X+C", "X-C vs. X" and "X vs. X-C" where
+       C is an integer constant.  Handle comparisons of the form "P+Q vs.
+       R+S" and "P-Q vs. R-S".  Handle comparisons of integral extensions
+       specially (increasing functions) so extend(A) > extend(B), when A>B.
+       (gfc_check_element_vs_element): Move test later, so that we ignore
+       the fact that "A < B" or "A > B" when A or B contains a forall index.
+
+2006-03-31  Asher Langton  <langton2@llnl.gov>
+
+       PR fortran/25358
+       * expr.c (gfc_check_assign): Allow cray pointee to be assumes-size.
+       
+2006-03-30  Paul Thomas <paulthomas2@wanadoo.fr>
+            Bud Davis  <bdavis9659@sbcglobal.net>
+
+       PR 21130
+       * module.c (load_needed): Traverse entire tree before returning.
+
+2006-03-30  Roger Sayle  <roger@eyesopen.com>
+
+       PR middle-end/22375
+       * trans.c (gfc_trans_runtime_check): Promote the arguments of
+       __builtin_expect to the correct types, and the result back to
+       boolean_type_node.
+
+2006-03-29  Carlos O'Donell  <carlos@codesourcery.com>
+
+       * Make-lang.in: Rename docdir to gcc_docdir.
+
+2006-03-28  Steven G. Kargl  <kargls@comcast.net>
+
+       * intrinsic.texi: s/floor/float in previous commit.
+
+2006-03-28 Paul Thomas <pault@gcc.gnu.org>
+
+       PR fortran/26779
+       * resolve.c (resolve_fl_procedure): Do not check the access of
+       derived types for internal procedures.
+
 2006-03-27  Jakub Jelinek  <jakub@redhat.com>
 
        * io.c (check_io_constraints): Don't look at