[flang-commits] [flang] fa0e529 - [Flang] Exclude the reference to TIME_UTC for AIX. (#99069)
via flang-commits
flang-commits at lists.llvm.org
Wed Jul 17 05:11:05 PDT 2024
Author: Daniel Chen
Date: 2024-07-17T08:11:02-04:00
New Revision: fa0e52995929ab67dfb468d71fe793be5e1c7f03
URL: https://github.com/llvm/llvm-project/commit/fa0e52995929ab67dfb468d71fe793be5e1c7f03
DIFF: https://github.com/llvm/llvm-project/commit/fa0e52995929ab67dfb468d71fe793be5e1c7f03.diff
LOG: [Flang] Exclude the reference to TIME_UTC for AIX. (#99069)
This PR supersede PR #98915
Added:
Modified:
flang/runtime/time-intrinsic.cpp
Removed:
################################################################################
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