]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/cgo: use normal libinit on PPC GNU/Linux
authorIan Lance Taylor <iant@golang.org>
Fri, 22 Apr 2016 14:08:13 +0000 (07:08 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 22 Apr 2016 14:30:27 +0000 (14:30 +0000)
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 <iant@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/cgo/gcc_libinit.c
src/runtime/cgo/gcc_libinit_linux_ppc64x.c [deleted file]

index bdbaa2973ccf9c5a1c4d6036eac0090e40e34286..06b9557709e87acf4cf29ef3ab0ac35a7efcce85 100644 (file)
@@ -4,7 +4,6 @@
 
 // +build cgo
 // +build darwin dragonfly freebsd linux netbsd solaris
-// +build !ppc64,!ppc64le
 
 #include <pthread.h>
 #include <stdio.h>
diff --git a/src/runtime/cgo/gcc_libinit_linux_ppc64x.c b/src/runtime/cgo/gcc_libinit_linux_ppc64x.c
deleted file mode 100644 (file)
index c133142..0000000
+++ /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 <stdio.h>
-#include <stdlib.h>
-
-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