summaryrefslogtreecommitdiffstats
path: root/libgo/go
Commit message (Collapse)AuthorAgeFilesLines
* debug/elf: support arm64 relocationsian2014-09-232-44/+344
| | | | | | | | | | | | | | | | | | | | | Backport https://codereview.appspot.com/132000043 to GCC 4.9 branch. user: Michael Hudson-Doyle <michael.hudson@linaro.org> This adds the minimal support for AArch64/arm64 relocations needed to get cgo to work (when an isomorphic patch is applied to gccgo) and a test. This change uses the "AAarch64" name for the architecture rather than the more widely accepted "arm64" because that's the name that the relevant docs from ARM such as http://infocenter.arm.com/help/topic/com.arm.doc.ihi0056b/IHI0056B_aaelf64.pdf all use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@215492 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Use the clone system call on GNU/Linux.ian2014-09-051-2/+2
| | | | | | | | Without this we weren't supporting the standard Cloneflags field of SysProcAttr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@214971 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to Go 1.2.1 release.ian2014-03-033-10/+65
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208286 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/59430ian2014-01-083-6/+36
| | | | | | | os/user: Use POSIX functions on Solaris. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206412 138bc75d-0d04-0410-961f-82ee72b054a4
* go/build: Set GOARCH on arm64 systems.ian2014-01-064-3/+5
| | | | | | | | | | | | I am reliably informed that the architecture name and letter for the plan9/inferno compilers for 64-bit ARM systems will be "arm64" and "7" respectively, so let's get that bit in nice and early. From Michael Hudson-Doyle. https://codereview.appspot.com/34830045/ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206374 138bc75d-0d04-0410-961f-82ee72b054a4
* net: work around Solaris connect issue when server closes socketian2013-12-281-0/+10
| | | | | | | | | | | | | | On Solaris, if you do a in-progress connect, and then the server accepts and closes the socket, the client's later attempt to complete the connect will fail with EINVAL. Handle this case by assuming that the connect succeeded. This code is weird enough that it is implemented as Solaris-only so that it doesn't hide a real error on a different OS. See http://golang.org/issue/6828. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206232 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/59506ian2013-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | net: use DialTimeout in TestSelfConnect Backported from master repository. This avoids problems with systems that take a long time to find out nothing is listening, while still testing for the self-connect misfeature since a self-connect should be fast. With this we may be able to remove the test for non-Linux systems. Tested (on GNU/Linux) by editing selfConnect in tcpsock_posix.go to always return false and verifying that TestSelfConnect then fails with and without this change. Idea from Uros Bizjak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206224 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert unwanted commit.uros2013-12-251-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206201 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/uros2013-12-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org> H.J. Lu <hongjiu.lu@intel.com> PR target/59422 * config/i386/i386.c (get_builtin_code_for_version): Handle PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1, PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4. Change priority of PROCESSOR_BDVER1 to P_PROC_XOP. (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell", "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a", "fma4", "xop" and "fma" ISA names. libgcc/ 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org> H.J. Lu <hongjiu.lu@intel.com> PR target/59422 * config/i386/cpuinfo.c (enum processor_types): Add AMD_BOBCAT and AMD_JAGUAR. (enum processor_subtypes): Add AMDFAM15H_BDVER3, AMDFAM15H_BDVER4, INTEL_COREI7_IVYBRIDGE and INTEL_COREI7_HASWELL. (enum processor_features): Add FEATURE_SSE4_A, FEATURE_FMA4, FEATURE_XOP and FEATURE_FMA. (get_amd_cpu): Handle AMD_BOBCAT, AMD_JAGUAR, AMDFAM15H_BDVER2 and AMDFAM15H_BDVER3. (get_intel_cpu): Handle INTEL_COREI7 and INTEL_COREI7_HASWELL. (get_available_features): Handle FEATURE_FMA, FEATURE_SSE4_A, FEATURE_FMA4 and FEATURE_XOP. testsuite/ 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org> PR target/59422 * gcc.target/i386/funcspec-5.c (test_fma, test_xop, test_no_fma, test_no_xop, test_arch_corei7, test_arch_corei7_avx, test_arch_core_avx2, test_arch_bdver1, test_arch_bdver2, test_arch_bdver3, test_tune_corei7, test_tune_corei7_avx, test_tune_core_avx2, test_tune_bdver1, test_tune_bdver2 and test_tune_bdver3): New function prototypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206200 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Fix MakeFunc returning float32 or float64 on 386.ian2013-12-122-15/+26
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205932 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, reflect, runtime: Implement method values in reflect.ian2013-12-126-44/+115
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205913 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect, runtime: Let reflect.MakeFunc functions call recover.ian2013-12-112-0/+31
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205908 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Rename struct field to be consistent in assembler and Go.ian2013-11-301-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205555 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Fix MakeFunc for 386 when returning a struct.ian2013-11-302-1/+14
| | | | | | | | | When a 386 function returns a struct, it needs to return using an rtd instruction that pops the hidden struct parameter off the stack. That wasn't happening. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205551 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to current Go library.ian2013-11-2729-59/+240
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205426 138bc75d-0d04-0410-961f-82ee72b054a4
* syscall: Set SizeofSockaddrAny to the value the go distribution usesian2013-11-251-1/+1
| | | | | | | | | | | | In particular this means that the names Getsockname returns are not truncated to 26 characters. Fixes issue 6829 https://codereview.appspot.com/31840043/ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205368 138bc75d-0d04-0410-961f-82ee72b054a4
* syscall: Only call varargs libc functions from C code.ian2013-11-245-5/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205321 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Handle calls to functions that take or return empty structsian2013-11-191-0/+40
| | | | | | | | | | | | Fixes issue 6761 This simple change seems to work fine, slightly to my surprise. This includes the tests I submitted to the main Go repository at https://codereview.appspot.com/26570046 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205001 138bc75d-0d04-0410-961f-82ee72b054a4
* net: On Solaris use Darwin keepalive code.ian2013-11-141-25/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204819 138bc75d-0d04-0410-961f-82ee72b054a4
* go/build: Add all known gccgo architectures to list.ian2013-11-141-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204796 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo/go/go/build: use syslist.go from the gc stdlib.ian2013-11-141-0/+8
| | | | | | | If cmd/go is rebuilt using -compiler gccgo the version of go/build that is linked into that cmd/go will not function properly as the list of file suffixes know as operating systems or architectures is incorrect. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204794 138bc75d-0d04-0410-961f-82ee72b054a4
* net: Fix TCP keepalive handling for Solaris.ian2013-11-111-0/+25
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204688 138bc75d-0d04-0410-961f-82ee72b054a4
* mksysinfo, net: Always define F_DUPFD_CLOEXEC.ian2013-11-111-1/+1
| | | | | | | For Solaris and CentOS portability. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204687 138bc75d-0d04-0410-961f-82ee72b054a4
* os: Do not try to run go command in test.ian2013-11-111-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204684 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to October 24 version of master library.ian2013-11-06543-6047/+29665
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204466 138bc75d-0d04-0410-961f-82ee72b054a4
* syscall: Add Dup3, {Get,List,Remove,Set}xattr, {Get,Set}priority.ian2013-10-172-0/+21
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203788 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Use C style comments in 386 assembly for Solaris assembler.ian2013-10-071-23/+24
| | | | | | | From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203249 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Fix calling Interface method on value created by MakeFunc.ian2013-10-042-1/+25
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203212 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Use hand-coded .eh_frame section rather than CFI directives.ian2013-10-022-21/+162
| | | | | | | From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203120 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Fix reflect.Call with function following non-pointer.ian2013-10-012-2/+13
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203052 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Copy stack values onto heap in amd64 MakeFunc.ian2013-09-271-2/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202995 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Implement MakeFunc for 386.ian2013-09-274-2/+248
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202993 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Implement MakeFunc for amd64.ian2013-09-276-77/+634
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202982 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Fix bug calling method on indirect value.ian2013-09-171-1/+7
| | | | | | | | | The gccgo-specific iword function was checking v.kind, but for a method value that is always Func. Fix to check v.typ.Kind() instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202670 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, runtime: Use runtime functions to pass closure value.ian2013-09-031-7/+0
| | | | | | | | | | | | This changes the compiler and runtime to not pass a closure value as the last argument, but to instead pass it via __go_set_closure and retrieve it via __go_get_closure. This eliminates the need for function descriptor wrapper functions. It will make it possible to retrieve the closure value in a reflect.MakeFunc function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202233 138bc75d-0d04-0410-961f-82ee72b054a4
* net: give C.getaddrinfo a hint that we only want SOCK_STREAM answersian2013-08-091-1/+2
| | | | | | | | | | This should be more efficient everywhere, and appears to be required on Solaris. Copied from master repository. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201637 138bc75d-0d04-0410-961f-82ee72b054a4
* syscall: Change AWK split call to use []+ rather than []*.ian2013-08-021-2/+2
| | | | | | | | Using []* fails with the awk that is part of busybox: https://groups.google.com/d/msg/gofrontend-dev/NbQsG_AMDpY/sXCc03kkwn4J git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201455 138bc75d-0d04-0410-961f-82ee72b054a4
* net: Only use GNU/Linux unix socket abstract paths on GNU/Linux.ian2013-07-245-47/+49
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201217 138bc75d-0d04-0410-961f-82ee72b054a4
* net/http: Don't try to trace sendfile64 on alpha.ian2013-07-241-1/+6
| | | | | | | From Uros Bizjak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201206 138bc75d-0d04-0410-961f-82ee72b054a4
* log/syslog: Restore interface to make this work on Solaris again.ian2013-07-233-13/+31
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201188 138bc75d-0d04-0410-961f-82ee72b054a4
* net: Remove Solaris-specific version of listenerSockaddr.ian2013-07-231-29/+0
| | | | | | | Solaris will use the version in sock_unix.go. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201183 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to Go 1.1.1.ian2013-07-16577-120618/+19645
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200974 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, runtime: Use function descriptors.ian2013-06-185-14/+46
| | | | | | | | | | | | | | | | This changes the representation of a Go value of function type from being a pointer to function code (like a C function pointer) to being a pointer to a struct. The first field of the struct points to the function code. The remaining fields, if any, are the addresses of variables referenced in enclosing functions. For each call to a function, the address of the function descriptor is passed as the last argument. This lets us avoid generating trampolines, and removes the use of writable/executable sections of the heap. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200181 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime, testing/quick: libffi doesn't handle complex on Alpha.ian2013-03-011-2/+5
| | | | | | | From Uros Bizjak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196389 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/56171ian2013-02-204-25/+72
| | | | | | | | | syscall: Solaris fixes for passing file descriptor. From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196180 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, libgo: Permit testing package when test imports it circularly.ian2013-02-1015-255/+68
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195931 138bc75d-0d04-0410-961f-82ee72b054a4
* syscall: Always use _C_int for C libcalls.ian2013-02-089-48/+48
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195897 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/56173ian2013-02-071-2/+12
| | | | | | | crypto/md5: fix for big-endian processors git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195867 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/56172ian2013-02-071-1/+1
| | | | | | | | | net: Skip TestMulticastListener on Solaris From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195855 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/56172ian2013-02-064-7/+34
| | | | | | | | | | net: Fixes for select based pollster. Make Close work properly, mainly for testing. Restart the select if a descriptor is closed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195823 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud