gcc/libgo/go/runtime
Ian Lance Taylor 1fec5f5274 libgo: add s390 support
From Dominik Vogt.

* libgo/go/syscall/libcall_linux_s390.go: New file for s390 support.
* libgo/go/syscall/syscall_linux_s390.go: Ditto.
* libgo/go/syscall/libcall_linux_s390x.go: New file for s390x support.
* libgo/go/syscall/syscall_linux_s390x.go: Ditto.
* libgo/go/runtime/pprof/pprof.go (printStackRecord): Support s390 and
s390x.
* libgo/runtime/runtime.c (runtime_cputicks): Add support for s390 and
s390x
* libgo/mksysinfo.sh: Ditto.
(upcase_fields): New helper function

* libgo/go/debug/elf/file.go (applyRelocations): Implement relocations
on s390x.
(applyRelocationsS390x): Ditto.
(DWARF): Ditto.
* libgo/go/debug/elf/elf.go (R_390): New constants for S390 relocations.
(r390Strings): Ditto.
(String): Helper function for S390 relocations.
(GoString): Ditto.

* libgo/go/reflect/makefuncgo_s390.go: New file.
(S390MakeFuncStubGo): Implementation of s390 abi.
* libgo/go/reflect/makefuncgo_s390x.go: New file.
(S390xMakeFuncStubGo): Implementation of s390x abi.
* libgo/go/reflect/makefunc_s390.c: New file.
(makeFuncStub): s390 and s390x specific implementation of function.
* libgo/go/reflect/makefunc.go
(MakeFunc): Add support for s390 and s390x.
(makeMethodValue): Ditto.
(makeValueMethod): Ditto.
* libgo/Makefile.am (go_reflect_makefunc_s_file): Ditto.
(go_reflect_makefunc_file): Ditto.
* libgo/go/reflect/makefunc_dummy.c: Ditto.
* libgo/runtime/runtime.h (__go_makefunc_can_recover): Export prototype
for use in makefunc_s390.c.
(__go_makefunc_returning): Ditto.

* libgo/go/syscall/exec_linux.go (forkAndExecInChild): Fix order of the
arguments of the clone system call for s390[x].

* libgo/configure.ac (is_s390): New variable.
(is_s390x): Ditto
(LIBGO_IS_S390): Ditto.
(LIBGO_IS_S390X): Ditto.
(GOARCH): Support s390 and s390x.
* libgo/go/go/build/build.go (cgoEnabled): Ditto.
* libgo/go/go/build/syslist.go (goarchList): Ditto.

From-SVN: r217106
2014-11-04 22:39:30 +00:00
..
debug libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
pprof libgo: add s390 support 2014-11-04 22:39:30 +00:00
append_test.go
chan_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
closure_test.go
compiler.go
complex_test.go
crash_cgo_test.go
crash_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
debug.go
error.go
export_test.go
extern.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
gc_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
iface_test.go
lfstack_test.go
malloc1.go
malloc_test.go
mallocrand.go
mallocrep.go
mallocrep1.go
map_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
mapspeed_test.go
mem.go
memmove_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
mfinal_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
mgc0.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
norace_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
parfor_test.go
proc_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
runtime_test.go runtime: add a missing import 2014-07-20 15:09:04 +00:00
runtime_unix_test.go
softfloat64.go
softfloat64_test.go
string_test.go
symtab_test.go
type.go compiler: Add precise type information on the heap. 2014-09-03 22:56:09 +00:00
vlop_arm_test.go