[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
Showing
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/ieee/ieee_6.f90 5 additions, 4 deletionsgcc/testsuite/gfortran.dg/ieee/ieee_6.f90
- libgfortran/ChangeLog 5 additions, 0 deletionslibgfortran/ChangeLog
- libgfortran/config/fpu-glibc.h 35 additions, 1 deletionlibgfortran/config/fpu-glibc.h
Loading
Please register or sign in to comment