mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-19 08:43:26 +08:00
runtime: cast SIGSTKSZ to uintptr
In newer versions of glibc it is long, which causes a signed comparison warning. Fixes PR go/99458
This commit is contained in:
parent
6405b40f4a
commit
d5d3f15a0e
@ -1,4 +1,4 @@
|
||||
2c5188b5ad6143e791f2ba42f02a4ea7887d87b6
|
||||
93380a9126e76b71fa208e62c31c7914084c0e37
|
||||
|
||||
The first line of this file holds the git revision number of the last
|
||||
merge done from the gofrontend repository.
|
||||
|
@ -802,8 +802,8 @@ runtime_malg(bool allocatestack, bool signalstack, byte** ret_stack, uintptr* re
|
||||
if(signalstack) {
|
||||
stacksize = 32 * 1024; // OS X wants >= 8K, GNU/Linux >= 2K
|
||||
#ifdef SIGSTKSZ
|
||||
if(stacksize < SIGSTKSZ)
|
||||
stacksize = SIGSTKSZ;
|
||||
if(stacksize < (uintptr)(SIGSTKSZ))
|
||||
stacksize = (uintptr)(SIGSTKSZ);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user