[flang-commits] [flang] [flang] Use libm routine for compile-time folding on AIX (PR #114106)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Wed Nov 6 15:01:05 PST 2024


================
@@ -0,0 +1,25 @@
+//===-- lib/Evaluate/wrappers.c -------------------------------------------===//
----------------
kkwli wrote:

I can make it C++ and I can use something like this to get around the `complex` support.
```
#ifdef __clang_major__
#pragma clang diagnostic ignored "-Wc99-extensions"
#endif
```

>It might be strange to have an effectively empty source file on hosts other than AIX.

I agree it is strange. If I let the file compiled for other hosts, I need to add something for MSVC compile. However, it looks strange as well because the code should never be called on the windows platform.

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


More information about the flang-commits mailing list