Debian Codegraph @

debian/patches/0001-disable-BROTLI_MODEL-macro-for-some-targets.patch

raw
1 From: Tomasz Buchert <[email protected]>
2 Date: Wed, 4 Feb 2026 21:52:02 +0100
3 Subject: Imported
4 https://github.com/google/brotli/commit/e230f474b87134e8c6c85b630084c612057f253e
5
6 === Original commit message ===
7
8 disable BROTLI_MODEL macro for some targets
9
10 PiperOrigin-RevId: 827486322
11 ---
12 c/common/platform.h | 9 +++++++--
13 1 file changed, 7 insertions(+), 2 deletions(-)
14
15 diff --git a/c/common/platform.h b/c/common/platform.h
16 index b59f9b8..e1254d5 100644
17 --- a/c/common/platform.h
18 +++ b/c/common/platform.h
19 @@ -213,6 +213,10 @@ OR:
20 #define BROTLI_TARGET_MIPS64
21 #endif
22
23 +#if defined(__ia64__) || defined(_M_IA64)
24 +#define BROTLI_TARGET_IA64
25 +#endif
26 +
27 #if defined(BROTLI_TARGET_X64) || defined(BROTLI_TARGET_ARMV8_64) || \
28 defined(BROTLI_TARGET_POWERPC64) || defined(BROTLI_TARGET_RISCV64) || \
29 defined(BROTLI_TARGET_LOONGARCH64) || defined(BROTLI_TARGET_MIPS64)
30 @@ -665,13 +669,14 @@ BROTLI_UNUSED_FUNCTION void BrotliSuppressUnusedFunctions(void) {
31 #undef BROTLI_TEST
32 #endif
33
34 -#if BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3)
35 +#if !defined(BROTLI_MODEL) && BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3) && \
36 + !defined(BROTLI_TARGET_IA64) && !defined(BROTLI_TARGET_LOONGARCH64)
37 #define BROTLI_MODEL(M) __attribute__((model(M)))
38 #else
39 #define BROTLI_MODEL(M) /* M */
40 #endif
41
42 -#if BROTLI_GNUC_HAS_ATTRIBUTE(cold, 4, 3, 0)
43 +#if !defined(BROTLI_COLD) && BROTLI_GNUC_HAS_ATTRIBUTE(cold, 4, 3, 0)
44 #define BROTLI_COLD __attribute__((cold))
45 #else
46 #define BROTLI_COLD /* cold */