OSDN Git Service

* intrinsic.texi: Edited all "Syntax" examples to a consistent form.
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
index d88fa83..f4cd7d1 100644 (file)
@@ -1,3 +1,194 @@
+2007-01-20  Brooks Moses  <brooks.moses@codesourcery.com>
+
+       * intrinsic.texi: Edited all "Syntax" examples to a consistent form.
+       (MAXVAL): Corrected description of result characteristics.
+       (MINVAL): Same.
+       (UMASK): Added documentation.
+
+2007-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>
+
+       * openmp.c, matchexp.c, module.c, scanner.c, resolve.c, st.c,
+       parse.c, primary.c, options.c, misc.c, simplify.c:  Next installment
+       in the massive whitespace patch.
+
+2007-01-20  Roger Sayle  <roger@eyesopen.com>
+
+       * module.c (mio_array_ref): The dimen_type fields of an array ref
+       are an enumerated type and can't be read/written directly with a
+       call to mio_integer.  Instead loop over and cast each element.
+
+2007-01-20  Roger Sayle  <roger@eyesopen.com>
+
+       * dependency.c (gfc_full_array_ref_p): Check that ref->next is NULL,
+       i.e. that the ARRAY_REF doesn't mention components.
+       * trans-array.c (gfc_constant_array_constructor_p): Export external
+       function renamed from constant_array_constructor_p.
+       (gfc_build_constant_array_constructor): Export.
+       (gfc_trans_array_constructor): Update call to the renamed function
+       constant_array_constructor_p.
+       * trans-array.h (gfc_constant_array_constructor_p): Prototype here.
+       (gfc_build_constant_array_constructor): Likewise.
+       * trans-expr.c (gfc_build_memcpy_call): New helper function split
+       out from gfc_trans_array_copy.
+       (gfc_trans_array_copy): Use gfc_build_memcpy_call.
+       (gfc_trans_array_constructor_copy): New function to optimize
+       assigning an entire array from a constant array constructor.
+       (gfc_trans_assignment): Call gfc_trans_array_constructor_copy
+       when appropriate.
+
+2007-01-20  Roger Sayle  <roger@eyesopen.com>
+
+       * trans-intrinsic.c (gfc_conv_intrinsic_sign): New branchless
+       implementation for the SIGN intrinsic with integral operands.
+       (gfc_conv_intrinsic_minmax): Fix whitespace.
+
+2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       * gfortran.h (gfc_options_t): Add flag_allow_leading_underscore.
+       * lang.opt: Add -fallow-leading-underscore.
+       * match.c (gfc_match_name): Allow leading underscore in symbol
+       name if -fallow-leading-underscore is used.
+       * symbol.c (gfc_get_default_type): Add special case for symbol
+       names beginning with an underscore.
+       * trans-decl.c (gfc_get_extern_function_decl,
+       gfc_build_intrinsic_function_decls): Add _gfortran prefix to
+       library symbols selected_int_kind, selected_real_kind and 
+       all specifics.
+       * options.c (gfc_init_options, gfc_handle_option): Handle the
+       new -fallow-leading-underscore option.
+
+2007-01-20  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+
+       PR fortran/30446
+       * options.c (gfc_handle_module_path_options): Path used in -J
+       option is now added to the module search path.
+
+2007-01-20  Richard Guenther  <rguenther@suse.de>
+
+       PR fortran/30223
+       * f95-lang.c (gfc_init_builtin_functions): Provide cbrt and
+       cexpi builtins if we have TARGET_C99_FUNCTIONS.  Provide
+       sincos builtins if the target has sincos.
+
+2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
+
+       * intrinsic.texi (MATMUL): Corrected a typo.
+       (MAX): Separated @var arguments.
+       (MIN): Separated @var arguments.
+
+2007-01-19  Brooks Moses  <brooks.moses@codesourcery.com>
+
+       * intrinsic.texi: general whitespace cleanup.
+       (menu): Added TIME8, removed UNMASK.
+       (AINT): Clarified argument requirement.
+       (ANINT): Clarified argument requirement.
+       (CEILING): Clarified argument requirement.
+       (CHAR): Clarified argument requirement.
+       (CMPLX): Clarified argument requirement.
+       (DCMPLX): Clarified argument requirement.
+       (FGET): Line rewrapping.
+       (FLOOR): Clarified argument requirement.
+       (GMTIME): Added documentation.
+       (IAND): Added cross-reference.
+       (IBCLR): Added cross-reference.
+       (IBSET): Added cross-reference.
+       (IEOR): Added cross-reference.
+       (INT): Collapsed examples, clarified argument requirement.
+       (IOR): Added cross-references.
+       (LEN_TRIM): Corrected result kind.
+       (LINK): Added cross-reference.
+       (LLT): Removed "documentation pending".
+       (LOGICAL): Added documentation.
+       (LSHIFT): Added documentation.
+       (LTIME): Added documentation.
+       (MATMUL): Added documentation.
+       (MAX): Added documentation.
+       (MAXLOC): Added documentation.
+       (MAXVAL): Added documentation.
+       (MERGE): Added documentation.
+       (MIN): Added documentation.
+       (MINLOC): Added documentation.
+       (MINVAL): Added documentation.
+       (MVBITS): Moved to correct place, added documentation.
+       (NOT): Added documentation.
+       (PERROR): Added documentation.
+       (RAN): Moved to correct place, added documentation.
+       (REAL): Clarified argument requirement.
+       (RENAME): Added documentation.
+       (RSHIFT): Clarified argument requirement.
+       (SIGN): Corrected table specification.
+       (SYMLNK): Added documentation.
+       (SYSTEM): Added documentation.
+       (TIME): Added documentation.
+       (TIME8): Added section and documentation.
+       (UNMASK): Removed erroneous section.
+
+2007-01-18  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * trans-stmt.c (compute_overall_iter_number): Fix a typo.
+
+2007-01-18  Roger Sayle  <roger@eyesopen.com>
+
+       * trans-expr.c (copyable_array_p): Consider user derived types without
+       allocatable components to be copyable.
+
+2007-01-18  Roger Sayle  <roger@eyesopen.com>
+
+       * trans-stmt.c (compute_overall_iter_number): Enhance to precompute
+       the number of interations in unconditional FORALL nests with constant
+       bounds.
+
+2007-01-18  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
+           Tobias Burnus  <burnus@net-b.de>
+
+       PR libfortran/29649
+       * gfortran.h (gfc_option_t): Add flag_dump_core.
+       * lang.opt: Add -fdump-core option.
+       * invoke.texi: Document the new options.
+       * trans-decl.c (gfc_build_builtin_function_decls): Add new
+         options to the call to set_std.
+       * options.c (gfc_init_options, gfc_handle_option): Set the
+         new options.
+
+2007-01-17  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/30476
+       * module.c (load_generic_interfaces): Make the marking of the
+       symbol as ambiguous conditional on the module names being
+       different.
+       (write_generic): Ensure that the generic interface has a
+       non-NULL module field.
+
+2007-01-16  Roger Sayle  <roger@eyesopen.com>
+
+       PR fortran/30404
+       * trans-stmt.c (forall_info): Remove pmask field.
+       (gfc_trans_forall_loop): Remove NVAR argument, instead assume that
+       NVAR covers all the interation variables in the current forall_info.
+       Add an extra OUTER parameter, which specified the loop header in
+       which to place mask index initializations.
+       (gfc_trans_nested_forall_loop): Remove NEST_FLAG argument.
+       Change the semantics of MASK_FLAG to only control the mask in the
+       innermost loop.
+       (compute_overall_iter_number): Optimize the trivial case of a
+       top-level loop having a constant number of iterations.  Update
+       call to gfc_trans_nested_forall_loop.  Calculate the number of
+       times the inner loop will be executed, not to size of the 
+       iteration space.
+       (allocate_temp_for_forall_nest_1): Reuse SIZE as BYTESIZE when
+       sizeof(type) == 1.  Tidy up.
+       (gfc_trans_assign_need_temp): Remove NEST_FLAG argument from calls
+       to gfc_trans_nested_forall_loop.
+       (gfc_trans_pointer_assign_need_temp): Likewise.
+       (gfc_trans_forall_1): Remove unused BYTESIZE, TMPVAR, SIZEVAR and
+       LENVAR local variables.  Split mask allocation into a separate
+       hunk/pass from mask population.  Use allocate_temp_for_forall_nest
+       to allocate the FORALL mask with the correct size.  Update calls
+       to gfc_trans_nested_forall_loop.
+       (gfc_evaluate_where_mask): Update call to
+       gfc_trans_nested_forall_loop.
+       (gfc_trans_where_2): Likewise.
+
 2007-01-15  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/28172