From 32302d6289e9721015d5d7ac99bbce30de47746c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 22 Apr 2016 07:08:13 -0700 Subject: [PATCH] runtime/cgo: use normal libinit on PPC GNU/Linux The special case was because PPC did not support external linking, but now it does. Fixes #10410. Change-Id: I9b024686e0f03da7a44c1c59b41c529802f16ab0 Reviewed-on: https://go-review.googlesource.com/22372 Run-TryBot: Ian Lance Taylor Reviewed-by: David Crawshaw TryBot-Result: Gobot Gobot --- src/runtime/cgo/gcc_libinit.c | 1 - src/runtime/cgo/gcc_libinit_linux_ppc64x.c | 26 ---------------------- 2 files changed, 27 deletions(-) delete mode 100644 src/runtime/cgo/gcc_libinit_linux_ppc64x.c diff --git a/src/runtime/cgo/gcc_libinit.c b/src/runtime/cgo/gcc_libinit.c index bdbaa2973c..06b9557709 100644 --- a/src/runtime/cgo/gcc_libinit.c +++ b/src/runtime/cgo/gcc_libinit.c @@ -4,7 +4,6 @@ // +build cgo // +build darwin dragonfly freebsd linux netbsd solaris -// +build !ppc64,!ppc64le #include #include diff --git a/src/runtime/cgo/gcc_libinit_linux_ppc64x.c b/src/runtime/cgo/gcc_libinit_linux_ppc64x.c deleted file mode 100644 index c133142f93..0000000000 --- a/src/runtime/cgo/gcc_libinit_linux_ppc64x.c +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// TODO: see issue #10410 -// +build linux -// +build ppc64 ppc64le - -#include -#include - -void -x_cgo_sys_thread_create(void* (*func)(void*), void* arg) { - fprintf(stderr, "x_cgo_sys_thread_create not implemented"); - abort(); -} - -void -_cgo_wait_runtime_init_done() { - // TODO(spetrovic): implement this method. -} - -void -x_cgo_notify_runtime_init_done(void* dummy) { - // TODO(spetrovic): implement this method. -} \ No newline at end of file -- 2.48.1