[flang-commits] [flang] df12983 - [flang] build fix (#121032)

via flang-commits flang-commits at lists.llvm.org
Tue Dec 24 00:19:33 PST 2024


Author: vdonaldson
Date: 2024-12-24T03:19:29-05:00
New Revision: df12983610dfb4f33ab4fa406a267f39d4c65248

URL: https://github.com/llvm/llvm-project/commit/df12983610dfb4f33ab4fa406a267f39d4c65248
DIFF: https://github.com/llvm/llvm-project/commit/df12983610dfb4f33ab4fa406a267f39d4c65248.diff

LOG: [flang] build fix (#121032)

Place floating point environment calls under '#ifdef __USE_GNU'.

Added: 
    

Modified: 
    flang/runtime/exceptions.cpp

Removed: 
    


################################################################################
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) {


        


More information about the flang-commits mailing list