summaryrefslogtreecommitdiffstats
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-03-08 13:58:14 -0800
committerIan Lance Taylor <iant@golang.org>2021-03-08 16:23:31 -0800
commitd5d3f15a0e04c30d5dbec09b56c14ad923a3e8da (patch)
tree2bec0f8ade5b0e9952cf1925a9e3cdf3a4d30580 /libgo
parentDaily bump. (diff)
downloadgcc-d5d3f15a0e04c30d5dbec09b56c14ad923a3e8da.tar.gz
gcc-d5d3f15a0e04c30d5dbec09b56c14ad923a3e8da.tar.bz2
gcc-d5d3f15a0e04c30d5dbec09b56c14ad923a3e8da.tar.xz
runtime: cast SIGSTKSZ to uintptr
In newer versions of glibc it is long, which causes a signed comparison warning. Fixes PR go/99458
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index c037df645b9..38bf7a6b255 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -802,8 +802,8 @@ runtime_malg(bool allocatestack, bool signalstack, byte** ret_stack, uintptr* re
802 if(signalstack) { 802 if(signalstack) {
803 stacksize = 32 * 1024; // OS X wants >= 8K, GNU/Linux >= 2K 803 stacksize = 32 * 1024; // OS X wants >= 8K, GNU/Linux >= 2K
804#ifdef SIGSTKSZ 804#ifdef SIGSTKSZ
805 if(stacksize < SIGSTKSZ) 805 if(stacksize < (uintptr)(SIGSTKSZ))
806 stacksize = SIGSTKSZ; 806 stacksize = (uintptr)(SIGSTKSZ);
807#endif 807#endif
808 } 808 }
809 809