This libgo patch builds the runtime test testprogcgo with -pthread, as is required by gccgo. This test is not currently run, but it will be soon. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline.
Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 249495) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -f70ef19badafb85b1caa72b51b0082deb48d433a +bbc4f30a027ee09475d08aa4aeed1f2f7067e2e9 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: libgo/go/runtime/testdata/testprogcgo/callback.go =================================================================== --- libgo/go/runtime/testdata/testprogcgo/callback.go (revision 249205) +++ libgo/go/runtime/testdata/testprogcgo/callback.go (working copy) @@ -7,6 +7,9 @@ package main /* +#cgo CFLAGS: -pthread +#cgo LDFLAGS: -pthread + #include <pthread.h> void go_callback();