gcc/libgomp
François-Xavier Coudert f489fba128 re PR fortran/33197 (Fortran 2008: math functions)
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
2008-03-03 23:46:20 +00:00
..
config * config/mingw32/proc.c: New file. 2007-09-10 02:27:29 +00:00
testsuite re PR fortran/33197 (Fortran 2008: math functions) 2008-03-03 23:46:20 +00:00
ChangeLog re PR fortran/33197 (Fortran 2008: math functions) 2008-03-03 23:46:20 +00:00
Makefile.am [multiple changes] 2007-11-29 15:34:21 +00:00
Makefile.in re PR libgomp/33131 (libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp') 2008-03-03 22:35:13 +00:00
acinclude.m4 acinclude.m4: Adjust regular expression for ld version extraction. 2007-03-18 11:17:44 +00:00
aclocal.m4 re PR libgomp/33131 (libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp') 2008-03-03 22:35:13 +00:00
alloc.c
barrier.c
config.h.in re PR libgomp/33131 (libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp') 2008-03-03 22:35:13 +00:00
configure re PR libgomp/33131 (libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp') 2008-03-03 22:35:13 +00:00
configure.ac re PR libgomp/33131 (libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp') 2008-03-03 22:35:13 +00:00
configure.tgt configure.ac (--enable-linux-futex): Add new configure option. 2008-01-08 17:14:49 +01:00
critical.c critical.c (GOMP_critical_name_start): Fix *pptr initialization when gomp_mutex_t is larger than pointer and... 2006-06-21 10:59:44 +02:00
env.c re PR libgomp/33131 (libgomp/env.c:60: warning: implicit declaration of function 'strncasecmp') 2008-03-03 22:35:13 +00:00
error.c
fortran.c acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test. 2006-10-06 08:25:32 +00:00
iter.c
libgomp.h libgomp.h (gomp_cpu_affinity, [...]): New extern decls. 2007-04-04 17:44:20 +02:00
libgomp.map
libgomp.spec.in
libgomp.texi libgomp.texi (GOMP_CPU_AFFINITY): Updated. 2007-04-19 15:36:34 -04:00
libgomp_f.h.in re PR libgomp/25884 (libgomp should not require perl to compile) 2006-01-25 11:17:57 -08:00
libgomp_g.h
loop.c re PR middle-end/29947 (OpenMP parallel for fails for reversed loop range) 2006-12-04 11:26:00 +01:00
omp.h.in omp-low.c (optimize_omp_library_calls): New function. 2007-12-04 23:01:04 +01:00
omp_lib.f90.in re PR libgomp/25884 (libgomp should not require perl to compile) 2006-01-25 11:17:57 -08:00
omp_lib.h.in re PR libgomp/25884 (libgomp should not require perl to compile) 2006-01-25 11:17:57 -08:00
ordered.c
parallel.c
sections.c re PR libgomp/32468 (number of threads in a parallel region depends on number of SECTIONs and MAX_THREADS) 2007-07-02 21:19:28 +02:00
single.c
team.c team.c (gomp_team_start): Fix setting up thread_attr stack size. 2007-06-07 22:16:53 +02:00
work.c