[flang-commits] [flang] [Flang][Runtime] Handle missing definitions	in <cfenv> (PR #101242)
    via flang-commits 
    flang-commits at lists.llvm.org
       
    Thu Aug  1 11:07:09 PDT 2024
    
    
  
================
@@ -12,9 +12,26 @@
 #include "terminator.h"
 #include <cfenv>
 
+// Some system don't define those exceptions, although they are mandated by
+// c++11 standard (e.g. musl, emscripten).
+#ifndef FE_INVALID
+#define FE_INVALID 0
+#endif
----------------
serge-sans-paille wrote:
I moved to crashing if we want to report a failure that's not supported by the runtime because that shouldn't happen. Thanks for the insight.
https://github.com/llvm/llvm-project/pull/101242
    
    
More information about the flang-commits
mailing list