Files
wasi-libc/ignore-gcc-con-destructive-size-macros.patch
Martin Sirringhaus cd86b0c16f - Update to version (wasi-sdk-)25.
* Initial FTS support.
  * Remove extra lock-taking in preopen setup.
  * Update `_POSIX_THREAD_XX` macro definitions.
  * `dlmalloc`: account the footprint of the initial heap.
  * Ignore the `__tls_base` undefined symbol.
  * Extend wasi-emulated-mman with `mprotect`.
  * include pthread.h for all targets.
  * timezone `__secs_to_zone` stub: guard against null pointer
    dereference.
  * `times` should always return 0 for `tms_cutime`.
  * 0-initialize thread-specific data upon thread creation.
  * iconv/wctomb: fix memory corruption related to CURRENT_UTF8
    implementation.
  * Improve some pthreads stub functions.
  * `getaddrinfo`: improve the service/port resolution.
  * Implement a stub pthreads library for `THREAD_MODEL=single`.
- Drop obsolete patches:
  * ignore-gcc-con-destructive-size-macros.patch
  * ignore-norm-max-macros.patch
  * ignore-stdc-embed-macros.patch
  * ignore-wasm-macros-indirect-function-table.patch
- Rebase workaround-broken-makefile.patch.
- Backport upstream patch ignore-intc-macros.patch to fix build
  with Clang 20.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/wasi-libc?expand=0&rev=19
2025-03-20 07:43:21 +00:00

32 lines
1.3 KiB
Diff

From 13ed98026d1e6f96fa4c0efce3ff849e3040fca3 Mon Sep 17 00:00:00 2001
From: Mike Hommey <mh@glandium.org>
Date: Tue, 30 Apr 2024 06:46:03 +0900
Subject: [PATCH] Adjust Makefile for LLVM trunk (19) as of 2024-04-26 (#492)
https://github.com/llvm/llvm-project/commit/72c373bfdc9860b3d75e72c219b2c81c90bc4364
dded __GCC_(CON|DE)STRUCTIVE_SIZE macros.
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index 2f9e9fde..f9fd3030 100644
--- a/Makefile
+++ b/Makefile
@@ -873,6 +873,7 @@ check-symbols: startup_files libc
@# TODO: Filter out __FPCLASS_* that are new to clang 17.
@# TODO: Filter out __FLT128_* that are new to clang 18.
@# TODO: Filter out __MEMORY_SCOPE_* that are new to clang 18.
+ @# TODO: Filter out __GCC_(CON|DE)STRUCTIVE_SIZE that are new to clang 19.
@# TODO: clang defined __FLT_EVAL_METHOD__ until clang 15, so we force-undefine it
@# for older versions.
@# TODO: Undefine __wasm_mutable_globals__ and __wasm_sign_ext__, that are new to
@@ -907,6 +908,7 @@ check-symbols: startup_files libc
| grep -v '^#define __FPCLASS_' \
| grep -v '^#define __FLT128_' \
| grep -v '^#define __MEMORY_SCOPE_' \
+ | grep -v '^#define __GCC_\(CON\|DE\)STRUCTIVE_SIZE' \
| grep -v '^#define NDEBUG' \
| grep -v '^#define __OPTIMIZE__' \
| grep -v '^#define assert' \