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

via flang-commits flang-commits at lists.llvm.org
Tue Jan 7 09:49:48 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff f4bab06c97060088922c5f6f2702bd12fb74c459 fc605866f0af308ac2b9cfd2e35fa28131e5b09c --extensions h,cpp -- flang/include/flang/Evaluate/target.h flang/include/flang/Optimizer/Builder/IntrinsicCall.h flang/include/flang/Optimizer/Builder/Runtime/Exceptions.h flang/include/flang/Runtime/exceptions.h flang/include/flang/Runtime/magic-numbers.h flang/include/flang/Tools/TargetSetup.h flang/lib/Evaluate/target.cpp flang/lib/Optimizer/Builder/IntrinsicCall.cpp flang/lib/Optimizer/Builder/Runtime/Exceptions.cpp flang/runtime/exceptions.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/runtime/exceptions.cpp b/flang/runtime/exceptions.cpp
index c94f2a4a30..f386d6b460 100644
--- a/flang/runtime/exceptions.cpp
+++ b/flang/runtime/exceptions.cpp
@@ -111,7 +111,7 @@ void RTNAME(SetUnderflowMode)(bool flag) {
 }
 
 size_t RTNAME(GetModesTypeSize)(void) {
-#if __GLIBC_USE (IEC_60559_BFP_EXT)
+#if __GLIBC_USE(IEC_60559_BFP_EXT)
   return sizeof(femode_t); // byte size of ieee_modes_type data
 #else
   return 8; // femode_t is not defined

``````````

</details>


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


More information about the flang-commits mailing list