================
@@ -37,26 +37,41 @@
 namespace LIBC_NAMESPACE_DECL {
 namespace fputil {
 
-LIBC_INLINE int clear_except(int excepts) { return feclearexcept(excepts); }
+LIBC_INLINE int clear_except(int excepts) {
+#pragma STDC FENV_ACCESS ON
----------------
maarcosrmz wrote:

I'd actually be this: https://godbolt.org/z/7vqeznnxG
The fallback refers to the case when `#pragma clang fp exceptions(maytrap)` is 
not supported but `#pragma STDC FENV_ACCESS ON` is.

https://github.com/llvm/llvm-project/pull/199009
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to