f489fba128
PR fortran/33197 gcc/fortran/ * 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. libgomp/ * testsuite/libgomp.fortran/fortran.exp: Add .f08 and .F08 file suffixes. gcc/testsuite/ * gfortran.dg/gomp/gomp.exp: Add .f08 and .F08 file suffixes. * gfortran.dg/dg.exp: Likewise. * gfortran.dg/vect/vect.exp: Likewise. * gfortran.fortran-torture/execute/execute.exp: Likewise. * gfortran.fortran-torture/compile/compile.exp: Likewise. * gfortran.dg/gamma_1.f90: Also check log_gamma. * gfortran.dg/invalid_contains_1.f90: Remove warning about empty CONTAINS. * gfortran.dg/gamma_2.f90: Add a few error messages. * gfortran.dg/invalid_contains_2.f90: Remove warning about empty CONTAINS. * gfortran.dg/gamma_3.f90: Adjust error message. * gfortran.dg/gamma_4.f90: Test for log_gamma instead of lgamma. * gfortran.dg/bind_c_usage_9.f03: Adjust error messages. * gfortran.dg/bessel_1.f90: New test. * gfortran.dg/recursive_check_3.f90: Remove warnings. * gfortran.dg/besxy.f90: Also check for new F2008 intrinsics. * gfortran.dg/derived_function_interface_1.f90: Remove warning. * gfortran.dg/contains_empty_1.f03: New test. * gfortran.dg/erfc_scaled_1.f90: New test. * gfortran.dg/hypot_1.f90: New test. * gfortran.dg/contains_empty_2.f03: New test. libgfortran/ * intrinsics/erfc_scaled_inc.c: New file. * intrinsics/erfc_scaled.c: New file. * gfortran.map (GFORTRAN_1.0): Add _gfortran_erfc_scaled_r*. * Makefile.am: Add intrinsics/erfc_scaled.c. * config.h.in: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. From-SVN: r132846 |
||
---|---|---|
.. | ||
appendix-a | ||
character1.f90 | ||
character2.f90 | ||
condinc1.f | ||
condinc1.inc | ||
condinc2.f | ||
condinc3.f90 | ||
condinc4.f90 | ||
crayptr1.f90 | ||
crayptr2.f90 | ||
do1.f90 | ||
do2.f90 | ||
fortran.exp | ||
jacobi.f | ||
lib1.f90 | ||
lib2.f | ||
lib3.f | ||
nestedfn1.f90 | ||
nestedfn2.f90 | ||
nestedfn3.f90 | ||
omp_atomic1.f90 | ||
omp_atomic2.f90 | ||
omp_cond1.f | ||
omp_cond2.f | ||
omp_cond3.F90 | ||
omp_cond4.F90 | ||
omp_hello.f | ||
omp_orphan.f | ||
omp_parse1.f90 | ||
omp_parse2.f90 | ||
omp_parse3.f90 | ||
omp_parse4.f90 | ||
omp_reduction.f | ||
omp_workshare1.f | ||
omp_workshare2.f | ||
pr25162.f | ||
pr25219.f90 | ||
pr27395-1.f90 | ||
pr27395-2.f90 | ||
pr27416-1.f90 | ||
pr27916-1.f90 | ||
pr27916-2.f90 | ||
pr28390.f | ||
pr29629.f90 | ||
pr32359.f90 | ||
pr32550.f90 | ||
pr33880.f90 | ||
pr34020.f90 | ||
pr35130.f90 | ||
reduction1.f90 | ||
reduction2.f90 | ||
reduction3.f90 | ||
reduction4.f90 | ||
reduction5.f90 | ||
reduction6.f90 | ||
reference1.f90 | ||
reference2.f90 | ||
retval1.f90 | ||
retval2.f90 | ||
sharing1.f90 | ||
sharing2.f90 | ||
stack.f90 | ||
threadprivate1.f90 | ||
threadprivate2.f90 | ||
threadprivate3.f90 | ||
vla1.f90 | ||
vla2.f90 | ||
vla3.f90 | ||
vla4.f90 | ||
vla5.f90 | ||
vla6.f90 | ||
vla7.f90 | ||
workshare1.f90 |