diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-02-17 15:43:39 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-02-17 15:43:39 +0000 |
commit | 00b2a30fd4df92fe5ea879295d65c55bf1725fcb (patch) | |
tree | 01db6511f47b5c9c301fa6f57b0df9376c364fd5 /libgo/go/runtime/testdata | |
parent | 4bcd6597a33c86615059873504b3140f49c3b96c (diff) | |
download | gcc-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.go | 2 | ||||
-rw-r--r-- | libgo/go/runtime/testdata/testprogcgo/traceback.go | 6 |
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(); } |