wasi-libc/ignore-fpclass-macros.patch
William Brown b2a58440e1 Accepting request 1113064 from home:aaronpuchert:llvm-next
- Update to version (wasi-sdk-)20.
- Rebase workaround-broken-makefile.patch.
- Drop obsolete undefine-gcc-macros.patch. (Has been solved
  upstream in gh#WebAssembly/wasi-libc#379.)
- Add ignore-fpclass-macros.patch to ignore __FPCLASS_* macros that
  are new with Clang 17.

OBS-URL: https://build.opensuse.org/request/show/1113064
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/wasi-libc?expand=0&rev=10
2023-09-22 23:24:42 +00:00

14 lines
661 B
Diff

Ignore __FPCLASS_* macros that are new with Clang 17.
diff --git a/Makefile b/Makefile
index f350ecb..981da98 100644
--- a/Makefile
+++ b/Makefile
@@ -702,6 +702,7 @@ check-symbols: startup_files libc
| sed -e 's/__GNUC_VA_LIST $$/__GNUC_VA_LIST 1/' \
| grep -v '^#define __\(BOOL\|INT_\(LEAST\|FAST\)\(8\|16\|32\|64\)\|INT\|LONG\|LLONG\|SHRT\)_WIDTH__' \
| grep -v '^#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_\(1\|2\|4\|8\)' \
+ | grep -v '^#define __FPCLASS_\(\(NEG\|POS\)\(INF\|NORMAL\|SUBNORMAL\|ZERO\)\|[QS]NAN\)' \
> "$(SYSROOT_SHARE)/predefined-macros.txt"
# Check that the computed metadata matches the expected metadata.