[flang] [llvm] [flang-rt] Silence -Wfenv-access in the runtime fenv wrappers (part 1) (PR #198692)
Eugene Epshteyn via llvm-commits
llvm-commits at lists.llvm.org
Wed May 20 03:29:41 PDT 2026
================
@@ -88,12 +89,14 @@ uint32_t RTDEF(MapException)(uint32_t excepts) {
// component; both are needed.
void RTNAME(feclearexcept)(uint32_t excepts) {
+ FLANG_FP_TRAP_ON
feclearexcept(excepts);
#if defined(_MM_EXCEPT_DENORM)
_mm_setcsr(_mm_getcsr() & ~(excepts & _MM_EXCEPT_MASK));
#endif
}
void RTDEF(feraiseexcept)(uint32_t excepts) {
+ FLANG_FP_TRAP_ON
----------------
eugeneepshteyn wrote:
No, it's probably ok just for this one. I should ensure there's no issue building for device compilation.
https://github.com/llvm/llvm-project/pull/198692
More information about the llvm-commits
mailing list