gcc/libgo/go/reflect
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
..
all_test.go re PR go/61877 (reflect: cannot use []string as type string in Call) 2014-10-03 15:51:38 +00:00
deepequal.go libgo: Merge from revision 18783:00cce3a34d7e of master library. 2014-06-04 23:15:33 +00:00
example_test.go libgo: Update to October 24 version of master library. 2013-11-06 19:49:01 +00:00
export_test.go libgo: Update to Go 1.3 release. 2014-07-19 08:53:52 +00:00
makefunc.go libgo: add s390 support 2014-11-04 22:39:30 +00:00
makefunc_386.S reflect: Fix MakeFunc returning float32 or float64 on 386. 2013-12-12 17:44:01 +00:00
makefunc_amd64.S reflect, runtime: Let reflect.MakeFunc functions call recover. 2013-12-11 23:43:16 +00:00
makefunc_dummy.c reflect, runtime: Use libffi closures to implement reflect.MakeFunc. 2014-07-19 21:36:26 +00:00
makefunc_ffi.go reflect, runtime: Use libffi closures to implement reflect.MakeFunc. 2014-07-19 21:36:26 +00:00
makefunc_ffi_c.c re PR go/60406 (recover.go: test13reflect2 test failure) 2014-10-08 14:03:13 +00:00
makefunc_s390.c libgo: add s390 support 2014-11-04 22:39:30 +00:00
makefuncgo_386.go libgo: Merge to master revision 19184. 2014-06-06 22:37:27 +00:00
makefuncgo_amd64.go libgo: Merge to master revision 19184. 2014-06-06 22:37:27 +00:00
makefuncgo_s390.go libgo: add s390 support 2014-11-04 22:39:30 +00:00
makefuncgo_s390x.go libgo: add s390 support 2014-11-04 22:39:30 +00:00
set_test.go
tostring_test.go
type.go compiler: Add precise type information on the heap. 2014-09-03 22:56:09 +00:00
value.go reflect: allocate correct type in assignTo and cvtT2I 2014-10-20 18:04:55 +00:00