Signed-off-by: Khem Raj <[email protected]> --- ...ype-conversion-to-match-function-ret.patch | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/meta-oe/recipes-support/googlebenchmark/googlebenchmark/0001-cycleclock-Fix-type-conversion-to-match-function-ret.patch b/meta-oe/recipes-support/googlebenchmark/googlebenchmark/0001-cycleclock-Fix-type-conversion-to-match-function-ret.patch index d514cf192b..3017314abe 100644 --- a/meta-oe/recipes-support/googlebenchmark/googlebenchmark/0001-cycleclock-Fix-type-conversion-to-match-function-ret.patch +++ b/meta-oe/recipes-support/googlebenchmark/googlebenchmark/0001-cycleclock-Fix-type-conversion-to-match-function-ret.patch @@ -1,7 +1,8 @@ -From db704bcc344529039d7fb28be380658625a9c08d Mon Sep 17 00:00:00 2001 +From 7f0e99af540a333108b92d792923ec7fc9e9fad9 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> -Date: Tue, 28 May 2024 19:34:43 -0700 +Date: Tue, 28 May 2024 20:14:54 -0700 Subject: [PATCH] cycleclock: Fix type conversion to match function return type + (#1794) fixes build with clang19 @@ -10,25 +11,23 @@ src/cycleclock.h:208:52: error: implicit conversion changes signedness: 'uint64_ | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ 1 error generated. -Upstream-Status: Submitted [https://github.com/google/benchmark/pull/1794] +Upstream-Status: Backport [https://github.com/google/benchmark/commit/7f0e99af540a333108b92d792923ec7fc9e9fad9] Signed-off-by: Khem Raj <[email protected]> --- - src/cycleclock.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + src/cycleclock.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cycleclock.h b/src/cycleclock.h -index a2584376..f96801c5 100644 +index a25843760..c657414e5 100644 --- a/src/cycleclock.h +++ b/src/cycleclock.h -@@ -205,7 +205,7 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() { +@@ -205,7 +205,8 @@ inline BENCHMARK_ALWAYS_INLINE int64_t Now() { "sub %0, zero, %0\n" "and %1, %1, %0\n" : "=r"(cycles_hi0), "=r"(cycles_lo), "=r"(cycles_hi1)); - return (static_cast<uint64_t>(cycles_hi1) << 32) | cycles_lo; -+ return static_cast<int64_t>((static_cast<uint64_t>(cycles_hi1) << 32) | cycles_lo); ++ return static_cast<int64_t>((static_cast<uint64_t>(cycles_hi1) << 32) | ++ cycles_lo); #else uint64_t cycles; asm volatile("rdtime %0" : "=r"(cycles)); --- -2.45.1 -
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#110771): https://lists.openembedded.org/g/openembedded-devel/message/110771 Mute This Topic: https://lists.openembedded.org/mt/106556127/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
