From 1125cd4997597e4ca3acf3fa71ce1e3c3cd0605f Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 15 Jul 2015 11:31:30 +1200 Subject: cmd/compile: define func value symbols at declaration This is mostly Russ's https://golang.org/cl/12145 but with some extra fixes to account for the fact that function declarations without implementations now break shared libraries, and including my test case. Fixes #11480. Change-Id: Iabdc2934a0378e5025e4e7affadb535eaef2c8f1 Reviewed-on: https://go-review.googlesource.com/12340 Reviewed-by: Ian Lance Taylor --- src/runtime/debug/stubs.go | 1 - 1 file changed, 1 deletion(-) (limited to 'src/runtime/debug') diff --git a/src/runtime/debug/stubs.go b/src/runtime/debug/stubs.go index 8fba6cf34b..95b33e4da6 100644 --- a/src/runtime/debug/stubs.go +++ b/src/runtime/debug/stubs.go @@ -16,5 +16,4 @@ func setMaxThreads(int) int // Implemented in package runtime. func readGCStats(*[]time.Duration) -func enableGC(bool) bool func freeOSMemory() -- cgit v1.3