tawasuyu

sergio/takana

> Una distribución Linux construida con un laboratorio funcional y hermético en el > sótano, y una terminal mutable, clásica y anárquica en el piso de arriba — diseñada > desde el suelo para que una IA programadora entienda, modifique y co…

TOML 1430Shell 145Markdown 87Rust 852973 Definitions

⎇ fe474dab636d4f43ea912ac0144e76bb83ba3717 recipes/fix-lp64.patch 43 lines · 1.6 KB History raw

Etapa G (clib): gradúa 15 libs C ya publicadas — incoming-clib → recipes/ 7008d0446 · sergio ·

1Patch-Source: https://github.com/google/brotli/commit/e230f474b87134e8c6c85b630084c612057f253e
2From e230f474b87134e8c6c85b630084c612057f253e Mon Sep 17 00:00:00 2001
3From: Evgenii Kliuchnikov <eustas@google.com>
4Date: Mon, 3 Nov 2025 07:20:19 -0800
5Subject: [PATCH] disable BROTLI_MODEL macro for some targets
6
7PiperOrigin-RevId: 827486322
8---
9 c/common/platform.h | 9 +++++++--
10 1 file changed, 7 insertions(+), 2 deletions(-)
11
12diff --git a/c/common/platform.h b/c/common/platform.h
13index b59f9b809..e1254d5ca 100644
14--- a/c/common/platform.h
15+++ b/c/common/platform.h
16@@ -213,6 +213,10 @@ To apply compiler hint, enclose the branching condition into macros, like this:
17 #define BROTLI_TARGET_MIPS64
18 #endif
19 
20+#if defined(__ia64__) || defined(_M_IA64)
21+#define BROTLI_TARGET_IA64
22+#endif
23+
24 #if defined(BROTLI_TARGET_X64) || defined(BROTLI_TARGET_ARMV8_64) || \
25     defined(BROTLI_TARGET_POWERPC64) || defined(BROTLI_TARGET_RISCV64) || \
26     defined(BROTLI_TARGET_LOONGARCH64) || defined(BROTLI_TARGET_MIPS64)
27@@ -665,13 +669,14 @@ BROTLI_UNUSED_FUNCTION void BrotliSuppressUnusedFunctions(void) {
28 #undef BROTLI_TEST
29 #endif
30 
31-#if BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3)
32+#if !defined(BROTLI_MODEL) && BROTLI_GNUC_HAS_ATTRIBUTE(model, 3, 0, 3) && \
33+    !defined(BROTLI_TARGET_IA64) && !defined(BROTLI_TARGET_LOONGARCH64)
34 #define BROTLI_MODEL(M) __attribute__((model(M)))
35 #else
36 #define BROTLI_MODEL(M) /* M */
37 #endif
38 
39-#if BROTLI_GNUC_HAS_ATTRIBUTE(cold, 4, 3, 0)
40+#if !defined(BROTLI_COLD) && BROTLI_GNUC_HAS_ATTRIBUTE(cold, 4, 3, 0)
41 #define BROTLI_COLD __attribute__((cold))
42 #else
43 #define BROTLI_COLD /* cold */