aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2018-06-23 02:44:36 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2018-06-23 02:44:36 +0000
commit88d51f79961baba6c931ea9469469fbe2985e10d (patch)
treed05fc9d32df9e98f63d227d627dbd367a5040d72 /libgo
parenta8bd2589e082c2c8bf48e598312fe07c10c7c47b (diff)
downloadgcc-88d51f79961baba6c931ea9469469fbe2985e10d.zip
gcc-88d51f79961baba6c931ea9469469fbe2985e10d.tar.gz
gcc-88d51f79961baba6c931ea9469469fbe2985e10d.tar.bz2
runtime: use #ifdef instead of #if for USING_SPLIT_STACK
USING_SPLIT_STACK is configured as defined/undefined, not 0/1. Most of the places test USING_SPLIT_STACK with #ifdef, with a few exceptions. This CL fixes the exceptions. Reviewed-on: https://go-review.googlesource.com/120596 From-SVN: r261980
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index 12c055d..913ce5c 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -716,7 +716,7 @@ runtime_malg(bool allocatestack, bool signalstack, byte** ret_stack, uintptr* re
G *newg;
byte* unused_stack;
uintptr unused_stacksize;
-#if USING_SPLIT_STACK
+#ifdef USING_SPLIT_STACK
int dont_block_signals = 0;
size_t ss_stacksize;
#endif
@@ -738,7 +738,7 @@ runtime_malg(bool allocatestack, bool signalstack, byte** ret_stack, uintptr* re
#endif
}
-#if USING_SPLIT_STACK
+#ifdef USING_SPLIT_STACK
*ret_stack = __splitstack_makecontext(stacksize,
(void*)(&newg->stackcontext[0]),
&ss_stacksize);
@@ -777,7 +777,7 @@ void stackfree(G*)
void
stackfree(G* gp)
{
-#if USING_SPLIT_STACK
+#ifdef USING_SPLIT_STACK
__splitstack_releasecontext((void*)(&gp->stackcontext[0]));
#else
// If gcstacksize is 0, the stack is allocated by libc and will be