[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 14:27:00 PDT 2024


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

>From 4c6adbf3cdab460aee7f05d4ffe3c318a373d337 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