OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / fortran / ChangeLog
index ad70138..72bf512 100644 (file)
@@ -1,3 +1,117 @@
+2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * invoke.texi (Error and Warning Options): Document
+       -Wline-truncation.
+
+2008-03-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR fortran/34956
+       * trans-array.c (gfc_conv_ss_startstride): Fix the logic to avoid
+       checking bounds of absent optional arguments.
+
+2008-03-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR fortran/33197
+       * intrinsic.c (add_functions): Add simplification routines for
+       ERF, DERF, ERFC and DERFC.
+       * decl.c (gfc_match_suffix, gfc_match_subroutine): Change GNU
+       extensions into Fortran 2008 features.
+       * intrinsic.h (gfc_simplify_erf, gfc_simplify_erfc): New
+       prototypes.
+       * simplify.c (gfc_simplify_erf, gfc_simplify_erfc): New functions.
+
+2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR fortran/33197
+       * intrinsic.c (add_functions): Modify intrinsics ACOSH, ASINH,
+       ATANH, ERF, ERFC and GAMMA. Add intrinsics BESSEL_{J,Y}{0,1,N},
+       ERFC_SCALED, LOG_GAMMA and HYPOT.
+       * intrinsic.h (gfc_check_hypot, gfc_simplify_hypot,
+       gfc_resolve_hypot): New prototypes.
+       * mathbuiltins.def: Add HYPOT builtin. Make complex versions of
+       ACOSH, ASINH and ATANH available.
+       * gfortran.h (GFC_ISYM_ERFC_SCALED, GFC_ISYM_HYPOT): New values.
+       * lang.opt: Add -std=f2008 option.
+       * libgfortran.h: Define GFC_STD_F2008.
+       * lang-specs.h: Add .f08 and .F08 file suffixes.
+       * iresolve.c (gfc_resolve_hypot): New function.
+       * parse.c (parse_contained): Allow empty CONTAINS for Fortran 2008.
+       * check.c (gfc_check_hypot): New function.
+       * trans-intrinsic.c (gfc_intrinsic_map): Define ERFC_SCALE builtin.
+       * options.c (set_default_std_flags): Allow Fortran 2008 by default.
+       (form_from_filename): Add .f08 suffix.
+       (gfc_handle_option): Handle -std=f2008 option.
+       * simplify.c (gfc_simplify_hypot): New function.
+       * gfortran.texi: Document Fortran 2008 status and file extensions.
+       * intrinsic.texi: Document new BESSEL_{J,Y}{0,1,N} intrinsics,
+       as well as HYPOT and ERFC_SCALED. Update documentation of ERF,
+       ERFC, GAMMA, LGAMMA, ASINH, ACOSH and ATANH.
+       * invoke.texi: Document the new -std=f2008 option.
+
+2008-03-02  Jakub Jelinek  <jakub@redhat.com>
+
+       * gfortranspec.c (lang_specific_driver): Update copyright notice
+       dates.
+
+2008-02-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR fortran/35059
+       * expr.c (find_array_element): Modify traversing the constructor to
+       avoid trying to access NULL memory pointed to by next for the
+       last element. (find_array_section): Exit while loop if cons->next is
+       NULL.
+       * trans-expr.c (gfc_conv_scalar_char_value): Initialize gfc_typespec.
+       (gfc_conv_function_call): Same.
+       * decl.c (gfc_match_implicit): Same.
+       * trans-intrinsic.c (gfc_conv_intrinsic_sr_kind): Same.
+
+2008-02-28  Daniel Franke  <franke.daniel@gmail.com>
+
+       PR fortran/31463
+       PR fortran/33950
+       PR fortran/34296
+       * lang.opt: Added -Wreturn-type.
+       * options.c (gfc_handle_option): Recognize -Wreturn-type.
+       * trans-decl.c (gfc_trans_deferred_vars): Emit warnings for funtions
+       where the result value is not set.
+       (gfc_generate_function_code): Likewise.
+       (generate_local_decl): Emit warnings for funtions whose RESULT
+       variable is not set.
+
+2008-02-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR fortran/34868
+       * trans-expr.c (gfc_conv_variable): Don't build indirect
+       references when explicit interface is mandated.
+       * resolve.c (resolve_formal_arglist): Set attr.always_explicit
+       on the result symbol as well as the procedure symbol.
+
+2008-02-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
+
+       PR fortran/33387
+       * trans.h: Remove prototypes for gfor_fndecl_math_exponent4,
+       gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
+       gfor_fndecl_math_exponent16.
+       * f95-lang.c (build_builtin_fntypes): Add new function types.
+       (gfc_init_builtin_functions): Add new builtins for nextafter,
+       frexp, ldexp, fabs, scalbn and inf.
+       * iresolve.c (gfc_resolve_rrspacing): Don't add hidden arguments.
+       (gfc_resolve_scale): Don't convert type of second argument.
+       (gfc_resolve_set_exponent): Likewise.
+       (gfc_resolve_size): Don't add hidden arguments.
+       * trans-decl.c: Remove gfor_fndecl_math_exponent4,
+       gfor_fndecl_math_exponent8, gfor_fndecl_math_exponent10 and
+       gfor_fndecl_math_exponent16.
+       * trans-intrinsic.c (gfc_intrinsic_map): Remove intrinsics
+       for scalbn, fraction, nearest, rrspacing, set_exponent and
+       spacing.
+       (gfc_conv_intrinsic_exponent): Directly call frexp.
+       (gfc_conv_intrinsic_fraction, gfc_conv_intrinsic_nearest,
+       gfc_conv_intrinsic_spacing, gfc_conv_intrinsic_rrspacing,
+       gfc_conv_intrinsic_scale, gfc_conv_intrinsic_set_exponent): New
+       functions.
+       (gfc_conv_intrinsic_function): Use the new functions above.
+
 2008-02-26  Tobias Burnus  <burnus@net-b.de>
 
        PR fortran/35033