The gc toolchain permits Func to be nil when calling the runtime.Func.Name method, returning an empty string. This patch changes libgo to do the same, rather than crashing. This is GCC PR 66016. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline and 4.9 branch. Ian