[flang-commits] [flang] [flang] build fix (PR #121032)
via flang-commits
flang-commits at lists.llvm.org
Mon Dec 23 22:36:19 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-runtime
Author: None (vdonaldson)
<details>
<summary>Changes</summary>
Place floating point environment calls under '#ifdef __USE_GNU'.
---
Full diff: https://github.com/llvm/llvm-project/pull/121032.diff
1 Files Affected:
- (modified) flang/runtime/exceptions.cpp (+1-1)
``````````diff
diff --git a/flang/runtime/exceptions.cpp b/flang/runtime/exceptions.cpp
index 1ed00538fef396..2fa2baa2ec84a2 100644
--- a/flang/runtime/exceptions.cpp
+++ b/flang/runtime/exceptions.cpp
@@ -84,7 +84,7 @@ uint32_t RTNAME(MapException)(uint32_t excepts) {
// Check if the processor has the ability to control whether to halt or
// continue execution when a given exception is raised.
bool RTNAME(SupportHalting)([[maybe_unused]] uint32_t except) {
-#if (defined(__arm__) || defined(__aarch64__)) && !defined(_WIN32)
+#ifdef __USE_GNU
except = RTNAME(MapException)(except);
int currentSet = fegetexcept(), flipSet, ok;
if (currentSet & except) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/121032
More information about the flang-commits
mailing list