[flang-commits] [flang] [Flang] Exclude the reference to TIME_UTC for AIX. (PR #99069)
Daniel Chen via flang-commits
flang-commits at lists.llvm.org
Tue Jul 16 11:05:45 PDT 2024
https://github.com/DanielCChen created https://github.com/llvm/llvm-project/pull/99069
This PR supersede PR #98915
Sorry that I messed up my git branch so I post this one to sort it out.
>From 294d5f440ad89bf301553be90c876486d560ed34 Mon Sep 17 00:00:00 2001
From: cdchen-ca <cdchen at ca.ibm.com>
Date: Tue, 16 Jul 2024 13:59:02 -0400
Subject: [PATCH] [Flang] Exclude the reference to TIME_UTC for AIX.
---
flang/runtime/time-intrinsic.cpp | 2 ++
1 file changed, 2 insertions(+)
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) {
More information about the flang-commits
mailing list