summaryrefslogtreecommitdiffstats
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-03-12 19:17:09 -0800
committerIan Lance Taylor <iant@golang.org>2021-03-12 20:06:50 -0800
commit3972574f11e5d49f12ad88faf2346f77ffc6e523 (patch)
tree7af3fb873fca7a1ffc829eb6c911de7c040831a6 /libgo
parentMAINTAINERS: Add myself for write after approval (diff)
downloadgcc-3972574f11e5d49f12ad88faf2346f77ffc6e523.tar.gz
gcc-3972574f11e5d49f12ad88faf2346f77ffc6e523.tar.bz2
gcc-3972574f11e5d49f12ad88faf2346f77ffc6e523.tar.xz
misc/cgo/testcarchive: don't use == for string equality in C code
Backport of https://golang.org/cl/300993. For PR go/99553 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/301458
Diffstat (limited to 'libgo')
-rw-r--r--libgo/misc/cgo/testcarchive/testdata/main_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/misc/cgo/testcarchive/testdata/main_unix.c b/libgo/misc/cgo/testcarchive/testdata/main_unix.c
index b23ac1c2428..bd00f9d2339 100644
--- a/libgo/misc/cgo/testcarchive/testdata/main_unix.c
+++ b/libgo/misc/cgo/testcarchive/testdata/main_unix.c
@@ -36,7 +36,7 @@ int install_handler() {
36 return 2; 36 return 2;
37 } 37 }
38 // gccgo does not set SA_ONSTACK for SIGSEGV. 38 // gccgo does not set SA_ONSTACK for SIGSEGV.
39 if (getenv("GCCGO") == "" && (osa.sa_flags&SA_ONSTACK) == 0) { 39 if (getenv("GCCGO") == NULL && (osa.sa_flags&SA_ONSTACK) == 0) {
40 fprintf(stderr, "Go runtime did not install signal handler\n"); 40 fprintf(stderr, "Go runtime did not install signal handler\n");
41 return 2; 41 return 2;
42 } 42 }