gcc/libgfortran/intrinsics
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
..
abort.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
access.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
args.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
associated.c re PR fortran/32933 (ICE in simplify_subreg with -fdefault-integer-8) 2007-08-10 13:20:46 +00:00
c99_functions.c re PR libfortran/33583 (FAIL: gfortran.dg/gamma_1.f90) 2007-11-16 22:31:28 +00:00
chdir.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
chmod.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
clock.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
cpu_time.c re PR fortran/34533 (DTIME returns total process time and not since last invocation) 2007-12-25 05:41:44 -05:00
cshift0.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
ctime.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
date_and_time.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
dprod_r8.f90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
dtime.c re PR fortran/34533 (DTIME returns total process time and not since last invocation) 2007-12-25 05:41:44 -05:00
env.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
eoshift0.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
eoshift2.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
erfc_scaled_inc.c re PR fortran/33197 (Fortran 2008: math functions) 2008-03-03 23:46:20 +00:00
erfc_scaled.c re PR fortran/33197 (Fortran 2008: math functions) 2008-03-03 23:46:20 +00:00
etime.c re PR fortran/34533 (DTIME returns total process time and not since last invocation) 2007-12-25 05:41:44 -05:00
exit.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
f2c_specifics.F90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
fnum.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
gerror.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
getcwd.c re PR libfortran/21185 (Improve testsuite results on newlib targets) 2007-09-15 14:52:46 +00:00
getlog.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
getXid.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
hostnm.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
ierrno.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
ishftc.c re PR fortran/31964 ([4.2, 4.1 only]ishftc fails with certain thrid argument) 2007-05-19 01:04:03 +00:00
iso_c_binding.c re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function) 2007-10-15 21:58:55 +02:00
iso_c_binding.h re PR fortran/32600 ([ISO Bind C] C_F_POINTER w/o SHAPE should not be a library function) 2007-10-15 21:58:55 +02:00
iso_c_generated_procs.c re PR fortran/32627 ([ISO Bind C] Accept c_f_pointer for TYPE) 2007-07-21 23:45:44 +00:00
kill.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
link.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
malloc.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
move_alloc.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
mvbits.c re PR fortran/32357 (MVBITS gives wrong-code on big-endian with -fdefault-integer-8) 2007-07-14 23:11:04 +00:00
pack_generic.c re PR libfortran/22423 (Warnings when building libgfortran) 2007-12-27 15:00:10 +00:00
perror.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
rand.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
random.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
rename.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
reshape_generic.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
reshape_packed.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
selected_int_kind.f90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
selected_real_kind.f90 gfortran.h (gfc_options_t): Add flag_allow_leading_underscore. 2007-01-20 18:33:20 +00:00
signal.c signal.c (alarm_sub_i4): Mark conditionally unused parameters with __attribute__ ((unused)). 2007-10-19 22:24:39 +10:00
size.c All files: Update FSF address. 2005-08-17 02:49:08 +00:00
sleep.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
spread_generic.c re PR fortran/32021 (Fix,document,remove GFORTRAN_* environment variables) 2007-10-18 21:25:21 +00:00
stat.c stat.c (stat_i4_sub_0, [...]): Mark parameter with unused attribute. 2007-12-01 21:16:26 +00:00
string_intrinsics.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
symlnk.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
system_clock.c stat.c (stat_i4_sub_0, [...]): Mark parameter with unused attribute. 2007-12-01 21:16:26 +00:00
system.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
time_1.h re PR libfortran/35355 (CPU_TIME gives wrong values on mingw) 2008-03-01 22:15:31 +00:00
time.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
transpose_generic.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
umask.c stat.c (stat_i4_sub_0, [...]): Mark parameter with unused attribute. 2007-12-01 21:16:26 +00:00
unlink.c minloc1.m4: Update copyright year and ajust headers order. 2007-08-31 14:01:34 +00:00
unpack_generic.c re PR libfortran/22423 (Warnings when building libgfortran) 2007-12-27 15:00:10 +00:00