summaryrefslogtreecommitdiffstats
path: root/libc-bottom-half/crt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 16:08:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 16:08:03 +0000
commitf1db79e6e5c383cf76f3bf0dd42115d19591a72b (patch)
tree3f9509008e8a130c45b7e31b1520d66d720493ec /libc-bottom-half/crt
parentAdding upstream version 0.0~git20230821.ec4566b. (diff)
downloadwasi-libc-f1db79e6e5c383cf76f3bf0dd42115d19591a72b.tar.xz
wasi-libc-f1db79e6e5c383cf76f3bf0dd42115d19591a72b.zip
Adding upstream version 0.0~git20240411.9e8c542.upstream/0.0_git20240411.9e8c542upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libc-bottom-half/crt')
-rw-r--r--libc-bottom-half/crt/crt1-command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc-bottom-half/crt/crt1-command.c b/libc-bottom-half/crt/crt1-command.c
index fb9ee71..d2030cb 100644
--- a/libc-bottom-half/crt/crt1-command.c
+++ b/libc-bottom-half/crt/crt1-command.c
@@ -20,18 +20,18 @@ void _start(void) {
static volatile _Atomic int started = 0;
int expected = 0;
if (!atomic_compare_exchange_strong(&started, &expected, 1)) {
- __builtin_trap();
+ __builtin_trap();
}
#else
static volatile int started = 0;
if (started != 0) {
- __builtin_trap();
+ __builtin_trap();
}
started = 1;
#endif
#ifdef _REENTRANT
- __wasi_init_tp();
+ __wasi_init_tp();
#endif
// The linker synthesizes this to call constructors.