Skip to content

Commit 887520a

Browse files
nickdesaulnierssmallp-o-p
authored and
smallp-o-p
committed
[libc][i386] define MINSIGSTKSZ & SIGSTKSZ (llvm#114249)
Link: llvm#93709
1 parent 0ac5d13 commit 887520a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

libc/include/llvm-libc-macros/linux/signal-macros.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,12 @@
7676
#define SS_ONSTACK 0x1
7777
#define SS_DISABLE 0x2
7878

79-
#ifdef __x86_64__
79+
#if defined(__x86_64__) || defined(__i386__) || defined(__riscv)
8080
#define MINSIGSTKSZ 2048
8181
#define SIGSTKSZ 8192
8282
#elif defined(__aarch64__)
8383
#define MINSIGSTKSZ 5120
8484
#define SIGSTKSZ 16384
85-
#elif defined(__riscv)
86-
#define MINSIGSTKSZ 2048
87-
#define SIGSTKSZ 8192
8885
#else
8986
#error "Signal stack sizes not defined for your platform."
9087
#endif

0 commit comments

Comments
 (0)