diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch | 37 |
1 files changed, 13 insertions, 24 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch b/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch index 3de3d0f083..4100cf63f7 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch +++ b/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch | |||
@@ -18,8 +18,6 @@ Upstream-Status: Pending | |||
18 | absl/debugging/internal/stacktrace_config.h | 2 +- | 18 | absl/debugging/internal/stacktrace_config.h | 2 +- |
19 | 4 files changed, 12 insertions(+), 5 deletions(-) | 19 | 4 files changed, 12 insertions(+), 5 deletions(-) |
20 | 20 | ||
21 | diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc | ||
22 | index b1c396c..d62bfd6 100644 | ||
23 | --- a/absl/base/internal/unscaledcycleclock.cc | 21 | --- a/absl/base/internal/unscaledcycleclock.cc |
24 | +++ b/absl/base/internal/unscaledcycleclock.cc | 22 | +++ b/absl/base/internal/unscaledcycleclock.cc |
25 | @@ -20,7 +20,7 @@ | 23 | @@ -20,7 +20,7 @@ |
@@ -40,22 +38,6 @@ index b1c396c..d62bfd6 100644 | |||
40 | 38 | ||
41 | int64_t UnscaledCycleClock::Now() { | 39 | int64_t UnscaledCycleClock::Now() { |
42 | #ifdef __GLIBC__ | 40 | #ifdef __GLIBC__ |
43 | diff --git a/absl/base/internal/unscaledcycleclock.h b/absl/base/internal/unscaledcycleclock.h | ||
44 | index 2cbeae3..683a5ef 100644 | ||
45 | --- a/absl/base/internal/unscaledcycleclock.h | ||
46 | +++ b/absl/base/internal/unscaledcycleclock.h | ||
47 | @@ -46,7 +46,8 @@ | ||
48 | |||
49 | // The following platforms have an implementation of a hardware counter. | ||
50 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ | ||
51 | - defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \ | ||
52 | + ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ | ||
53 | + defined(__riscv) || \ | ||
54 | defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) | ||
55 | #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 | ||
56 | #else | ||
57 | diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc | ||
58 | index 5bdd341..a784e0d 100644 | ||
59 | --- a/absl/debugging/internal/examine_stack.cc | 41 | --- a/absl/debugging/internal/examine_stack.cc |
60 | +++ b/absl/debugging/internal/examine_stack.cc | 42 | +++ b/absl/debugging/internal/examine_stack.cc |
61 | @@ -33,6 +33,10 @@ | 43 | @@ -33,6 +33,10 @@ |
@@ -69,7 +51,7 @@ index 5bdd341..a784e0d 100644 | |||
69 | #include "absl/base/attributes.h" | 51 | #include "absl/base/attributes.h" |
70 | #include "absl/base/internal/raw_logging.h" | 52 | #include "absl/base/internal/raw_logging.h" |
71 | #include "absl/base/macros.h" | 53 | #include "absl/base/macros.h" |
72 | @@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc) { | 54 | @@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc) |
73 | return reinterpret_cast<void*>(context->uc_mcontext.pc); | 55 | return reinterpret_cast<void*>(context->uc_mcontext.pc); |
74 | #elif defined(__powerpc64__) | 56 | #elif defined(__powerpc64__) |
75 | return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); | 57 | return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); |
@@ -81,8 +63,6 @@ index 5bdd341..a784e0d 100644 | |||
81 | #elif defined(__riscv) | 63 | #elif defined(__riscv) |
82 | return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); | 64 | return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); |
83 | #elif defined(__s390__) && !defined(__s390x__) | 65 | #elif defined(__s390__) && !defined(__s390x__) |
84 | diff --git a/absl/debugging/internal/stacktrace_config.h b/absl/debugging/internal/stacktrace_config.h | ||
85 | index 3929b1b..23d5e50 100644 | ||
86 | --- a/absl/debugging/internal/stacktrace_config.h | 66 | --- a/absl/debugging/internal/stacktrace_config.h |
87 | +++ b/absl/debugging/internal/stacktrace_config.h | 67 | +++ b/absl/debugging/internal/stacktrace_config.h |
88 | @@ -60,7 +60,7 @@ | 68 | @@ -60,7 +60,7 @@ |
@@ -94,6 +74,15 @@ index 3929b1b..23d5e50 100644 | |||
94 | #define ABSL_STACKTRACE_INL_HEADER \ | 74 | #define ABSL_STACKTRACE_INL_HEADER \ |
95 | "absl/debugging/internal/stacktrace_powerpc-inl.inc" | 75 | "absl/debugging/internal/stacktrace_powerpc-inl.inc" |
96 | #elif defined(__aarch64__) | 76 | #elif defined(__aarch64__) |
97 | -- | 77 | --- a/absl/base/internal/unscaledcycleclock_config.h |
98 | 2.25.1 | 78 | +++ b/absl/base/internal/unscaledcycleclock_config.h |
99 | 79 | @@ -21,7 +21,8 @@ | |
80 | |||
81 | // The following platforms have an implementation of a hardware counter. | ||
82 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ | ||
83 | - defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \ | ||
84 | + ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ | ||
85 | + defined(__riscv) || \ | ||
86 | defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) | ||
87 | #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 | ||
88 | #else | ||