]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
runtime: use C cast syntax in stack.c
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Aug 2021 17:15:45 +0000 (10:15 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 13 Aug 2021 17:38:36 +0000 (10:38 -0700)
Didn't notice earlier because this code is only used on systems that
do not support -fsplit-stack.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/342051

gcc/go/gofrontend/MERGE
libgo/runtime/stack.c

index bcbe1d93018cd3f148cddcd14033ee1c94c6a75f..3000285fbf034e81e151422694519fb0c82bdcf3 100644 (file)
@@ -1,4 +1,4 @@
-33f65dce43bd01c1fa38cd90a78c9aea6ca6dd59
+f2b7a2ce94127ad444a772bd1631516c5c67fb73
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index 0c0c30e46acdf31ee12ab406a1eb572e221a7c0f..65e8fa300774d1517f31d8b913066b4f1978975e 100644 (file)
@@ -174,7 +174,7 @@ bool onCurrentStack(uintptr p)
        nextsp2 = secondary_stack_pointer();
        if (nextsp2 != nil) {
                initialsp2 = (byte*)(void*)(gp->gcinitialsp2);
-               if (uintptr(initialsp2) < uintptr(nextsp2)) {
+               if ((uintptr)(initialsp2) < (uintptr)(nextsp2)) {
                        temp = initialsp2;
                        initialsp2 = nextsp2;
                        nextsp2 = temp;