aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/testdata
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-02-17 15:43:39 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-02-17 15:43:39 +0000
commit00b2a30fd4df92fe5ea879295d65c55bf1725fcb (patch)
tree01db6511f47b5c9c301fa6f57b0df9376c364fd5 /libgo/go/runtime/testdata
parent4bcd6597a33c86615059873504b3140f49c3b96c (diff)
downloadgcc-00b2a30fd4df92fe5ea879295d65c55bf1725fcb.zip
gcc-00b2a30fd4df92fe5ea879295d65c55bf1725fcb.tar.gz
gcc-00b2a30fd4df92fe5ea879295d65c55bf1725fcb.tar.bz2
libgo: update to final Go 1.8 release
Along with the update this fixes a problem that was always present but only showed up with the new reflect test. When a program used a **unsafe.Pointer and stored the value in an interface type, the generated type descriptor pointed to the GC data for *unsafe.Pointer. It did that by name, but we were not generating a variable with the right name. Reviewed-on: https://go-review.googlesource.com/37144 From-SVN: r245535
Diffstat (limited to 'libgo/go/runtime/testdata')
-rw-r--r--libgo/go/runtime/testdata/testprogcgo/threadpprof.go2
-rw-r--r--libgo/go/runtime/testdata/testprogcgo/traceback.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/runtime/testdata/testprogcgo/threadpprof.go b/libgo/go/runtime/testdata/testprogcgo/threadpprof.go
index 44afb91..3da8296 100644
--- a/libgo/go/runtime/testdata/testprogcgo/threadpprof.go
+++ b/libgo/go/runtime/testdata/testprogcgo/threadpprof.go
@@ -61,7 +61,7 @@ static void* cpuHogDriver(void* arg __attribute__ ((unused))) {
return 0;
}
-void runCPUHogThread() {
+void runCPUHogThread(void) {
pthread_t tid;
pthread_create(&tid, 0, cpuHogDriver, 0);
}
diff --git a/libgo/go/runtime/testdata/testprogcgo/traceback.go b/libgo/go/runtime/testdata/testprogcgo/traceback.go
index e8b0a04..2a023f6 100644
--- a/libgo/go/runtime/testdata/testprogcgo/traceback.go
+++ b/libgo/go/runtime/testdata/testprogcgo/traceback.go
@@ -15,16 +15,16 @@ package main
char *p;
-static int f3() {
+static int f3(void) {
*p = 0;
return 0;
}
-static int f2() {
+static int f2(void) {
return f3();
}
-static int f1() {
+static int f1(void) {
return f2();
}