https://github.com/trcrsired updated
https://github.com/llvm/llvm-project/pull/79667
>From b5fee4962c347016a732a1310275651a8c74f23a Mon Sep 17 00:00:00 2001
From: trcrsired
Date: Fri, 26 Jan 2024 18:44:41 -0500
Subject: [PATCH] [libunwind] Fix build for wasm
The wasm unwind build appears to be
https://github.com/ldionne edited
https://github.com/llvm/llvm-project/pull/79667
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -180,6 +180,7 @@
#endif
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER
\
_LIBUNWIND_HIGHEST_DWARF_REGISTER_LOONGARCH
+#elif defined(__wasm__)
ldionne wrote:
Why don't we define `_LIBUNWIND_CURSOR_SIZE` and friends on wasm?
@@ -15,6 +15,7 @@
#include <__libunwind_config.h>
+#ifndef __wasm__
trcrsired wrote:
it does not compile. all the definitions are not defined
https://github.com/llvm/llvm-project/pull/79667
___
cfe-commits mailing
@@ -35,7 +32,12 @@ struct _Unwind_LandingPadContext {
// Communication channel between compiler-generated user code and personality
// function
-thread_local struct _Unwind_LandingPadContext __wasm_lpad_context;
+#if __STDC_VERSION__ >= 202311L
trcrsired wrote
https://github.com/trcrsired edited
https://github.com/llvm/llvm-project/pull/79667
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -10,14 +10,11 @@
//
//===--===//
+#if __STDC_VERSION__ < 202311L
trcrsired wrote:
stdbool.h removed in C23
https://github.com/llvm/llvm-project/pull/79667
___
@@ -12,6 +12,7 @@
#include
#include "config.h"
+#ifndef __wasm__
trcrsired wrote:
the problem is that the debugging code needs in libunwind
https://github.com/llvm/llvm-project/pull/79667
___
cfe-commits mailing l
@@ -180,6 +180,7 @@
#endif
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER
\
_LIBUNWIND_HIGHEST_DWARF_REGISTER_LOONGARCH
+#elif defined(__wasm__)
trcrsired wrote:
What is the correct value here? I mean if you give users a numb