gcc/libgfortran/config
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
..
fpu-387.h Update copyright years. 2016-01-04 15:30:50 +01:00
fpu-aix.h Update copyright years. 2016-01-04 15:30:50 +01:00
fpu-generic.h Update copyright years. 2016-01-04 15:30:50 +01:00
fpu-glibc.h [PR libgfortran/78314] Fix ieee_support_halting 2016-11-16 17:27:04 +00:00
fpu-sysv.h Update copyright years. 2016-01-04 15:30:50 +01:00