gcc/libgfortran
Szabolcs Nagy 0af3095468 [PR libgfortran/78314] Fix ieee_support_halting
ieee_support_halting only checked the availability of status
flags, not trapping support.  On some targets the later can
only be checked at runtime: feenableexcept reports if
enabling traps failed.

So check trapping support by enabling/disabling it.

Updated the test that enabled trapping to check if it is
supported.

gcc/testsuite/

	PR libgfortran/78314
	* gfortran.dg/ieee/ieee_6.f90: Use ieee_support_halting.

libgfortran/

	PR libgfortran/78314
	* config/fpu-glibc.h (support_fpu_trap): Use feenableexcept.

From-SVN: r242505
2016-11-16 17:27:04 +00:00
..
caf re PR libfortran/77663 (libgfortran/caf/single.c: three minor problems and a lost token) 2016-10-01 16:00:57 +02:00
config [PR libgfortran/78314] Fix ieee_support_halting 2016-11-16 17:27:04 +00:00
generated [multiple changes] 2016-11-15 23:03:00 +00:00
ieee re PR fortran/77507 (gfortran rejects keyworded calls to procedures from intrinsic modules) 2016-09-09 17:57:11 +00:00
intrinsics Use rand_s on MinGW-w64, fix array bound overflow. 2016-09-21 13:07:06 +03:00
io Default missing exponents to 0 with -fdec. 2016-11-03 18:09:44 +00:00
m4 [multiple changes] 2016-11-15 23:03:00 +00:00
runtime Replace KISS PRNG with xorshift1024* using per-thread state. 2016-08-11 11:58:55 +03:00
acinclude.m4 re PR fortran/47571 (undefined reference to clock_gettime in Linux build of 02/01/2011) 2015-08-31 14:02:43 +00:00
aclocal.m4 re PR libfortran/54572 (Use libbacktrace library) 2015-08-23 21:50:30 +00:00
c99_protos.h Update copyright years. 2016-01-04 15:30:50 +01:00
ChangeLog [PR libgfortran/78314] Fix ieee_support_halting 2016-11-16 17:27:04 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014 Update copyright years. 2016-01-04 15:30:50 +01:00
ChangeLog-2015 Update copyright years. 2016-01-04 15:30:50 +01:00
config.h.in re PR fortran/47571 (undefined reference to clock_gettime in Linux build of 02/01/2011) 2015-08-31 14:02:43 +00:00
configure config-ml.in: Remove references to GCJ. 2016-11-15 16:34:02 +00:00
configure.ac configure.ac (nvptx-*): Hardwire newlib. 2016-08-29 19:09:57 +00:00
configure.host
gfortran.map [multiple changes] 2016-08-31 05:36:22 +00:00
kinds-override.h Update copyright years. 2016-01-04 15:30:50 +01:00
libgfortran.h New I/O specifiers CARRIAGECONTROL, READONLY, SHARE with -fdec. 2016-10-26 12:11:44 +00:00
libgfortran.spec.in
libtool-version re PR libfortran/77828 (Linking gfortran-7 compiled program with libgfortran of 5.x allowed but crashes when containing write to string) 2016-10-24 21:42:29 +00:00
Makefile.am [multiple changes] 2016-11-15 23:03:00 +00:00
Makefile.in [multiple changes] 2016-11-15 23:03:00 +00:00
mk-kinds-h.sh
mk-sik-inc.sh
mk-srk-inc.sh