[llvm-branch-commits] [clang] [flang] [llvm] [Flang] LLVM_ENABLE_RUNTIMES=flang-rt (PR #110217)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 29 08:13:58 PST 2025
vdonaldson wrote:
> I built this again, compilation of `flang-rt` on windows fails with:
>
> ```
> C:\bld\flang-split_1738115904732\work\flang-rt\lib\flang_rt\exceptions.cpp(46,31): error: use of undeclared identifier '__FE_DENORM'
> 46 | static constexpr uint32_t s{__FE_DENORM}; // nonstandard, not a #define
> | ^
> ```
The reference to `__FE_DENORM` in `flang/runtime/exceptions.cpp` is:
```
#if __x86_64__
static constexpr uint32_t s{__FE_DENORM}; // nonstandard, not a #define
#else
static constexpr uint32_t s{0};
#endif
```
I'm not aware of any problems with this code in current build environments. If there could be a problem in some environment associated with the code under discussion, the directive could be modified to something like
`#if defined(__x86_64__) && !defined(__WIN32)`
https://github.com/llvm/llvm-project/pull/110217
More information about the llvm-branch-commits
mailing list