[libc-commits] [libc] dc1ff88 - [libc][i386] define MINSIGSTKSZ & SIGSTKSZ (#114249)

via libc-commits libc-commits at lists.llvm.org
Wed Oct 30 11:56:44 PDT 2024


Author: Nick Desaulniers
Date: 2024-10-30T11:56:41-07:00
New Revision: dc1ff883caf687f00bd916ea997321ac411c73fd

URL: https://github.com/llvm/llvm-project/commit/dc1ff883caf687f00bd916ea997321ac411c73fd
DIFF: https://github.com/llvm/llvm-project/commit/dc1ff883caf687f00bd916ea997321ac411c73fd.diff

LOG: [libc][i386] define MINSIGSTKSZ & SIGSTKSZ (#114249)

Link: #93709

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/libc/include/llvm-libc-macros/linux/signal-macros.h b/libc/include/llvm-libc-macros/linux/signal-macros.h
index e379fc41efd02f..0b7317ebc9b80a 100644
--- a/libc/include/llvm-libc-macros/linux/signal-macros.h
+++ b/libc/include/llvm-libc-macros/linux/signal-macros.h
@@ -76,15 +76,12 @@
 #define SS_ONSTACK 0x1
 #define SS_DISABLE 0x2
 
-#ifdef __x86_64__
+#if defined(__x86_64__) || defined(__i386__) || defined(__riscv)
 #define MINSIGSTKSZ 2048
 #define SIGSTKSZ 8192
 #elif defined(__aarch64__)
 #define MINSIGSTKSZ 5120
 #define SIGSTKSZ 16384
-#elif defined(__riscv)
-#define MINSIGSTKSZ 2048
-#define SIGSTKSZ 8192
 #else
 #error "Signal stack sizes not defined for your platform."
 #endif


        


More information about the libc-commits mailing list