[flang-commits] [flang] [flang] Modifications to ieee floating point environment procedures (PR #121949)

Brooks Davis via flang-commits flang-commits at lists.llvm.org
Wed Jan 29 11:28:58 PST 2025


================
@@ -46,7 +42,11 @@ uint32_t RTNAME(MapException)(uint32_t excepts) {
   Terminator terminator{__FILE__, __LINE__};
 
   static constexpr uint32_t v{FE_INVALID};
-  static constexpr uint32_t s{__FE_DENORM}; // subnormal
+#if __x86_64__
+  static constexpr uint32_t s{__FE_DENORM}; // nonstandard, not a #define
----------------
brooksdavis wrote:

If `__FE_DENORM` isn't a macro and isn't standard, how can we rely on it being defined? This breaks the build on FreeBSD with the base system llvm-18 based clang compiler.

https://github.com/llvm/llvm-project/pull/121949


More information about the flang-commits mailing list