[flang-commits] [flang] [Flang] Exclude the reference to TIME_UTC for AIX. (PR #99069)

via flang-commits flang-commits at lists.llvm.org
Tue Jul 16 11:06:03 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-runtime

Author: Daniel Chen (DanielCChen)

<details>
<summary>Changes</summary>

This PR supersede PR #<!-- -->98915 

Sorry that I messed up my git branch so I post this one to sort it out.

---
Full diff: https://github.com/llvm/llvm-project/pull/99069.diff


1 Files Affected:

- (modified) flang/runtime/time-intrinsic.cpp (+2) 


``````````diff
diff --git a/flang/runtime/time-intrinsic.cpp b/flang/runtime/time-intrinsic.cpp
index 7352dafc9136e..92b937bc6f626 100644
--- a/flang/runtime/time-intrinsic.cpp
+++ b/flang/runtime/time-intrinsic.cpp
@@ -139,6 +139,7 @@ count_t ConvertTimeSpecToCount(int kind, const struct timespec &tspec) {
   }
 }
 
+#ifndef _AIX
 // This is the fallback implementation, which should work everywhere.
 template <typename Unused = void>
 count_t GetSystemClockCount(int kind, fallback_implementation) {
@@ -153,6 +154,7 @@ count_t GetSystemClockCount(int kind, fallback_implementation) {
   // with the requested kind at the call site.
   return ConvertTimeSpecToCount(kind, tspec);
 }
+#endif
 
 template <typename Unused = void>
 count_t GetSystemClockCountRate(int kind, fallback_implementation) {

``````````

</details>


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


More information about the flang-commits mailing list