[PATCH v2][PR libgfortran/78314] Fix ieee_support_halting
Szabolcs Nagy
szabolcs.nagy@arm.com
Wed Nov 16 16:53:00 GMT 2016
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.
Tested on aarch64-linux-gnu and x86_64-linux-gnu.
gcc/testsuite/
2016-11-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
PR libgfortran/78314
* gfortran.dg/ieee/ieee_6.f90: Use ieee_support_halting.
libgfortran/
2016-11-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
PR libgfortran/78314
* config/fpu-glibc.h (support_fpu_trap): Use feenableexcept.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fptrap3.diff
Type: text/x-patch
Size: 2596 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161116/e4c7ac62/attachment.bin>
More information about the Fortran
mailing list