aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
AgeCommit message (Collapse)AuthorFilesLines
2014-04-17gofrontend: deduplicate C syscall function declarationsIan Lance Taylor1-2/+5
A gccgo language extension allows a function to be declared multiple times. Avoid the use of this extension by dedeplicating declarations in mksyscall.awk. From-SVN: r209508
2014-04-17runtime: remove use of obsolete map deletion syntaxIan Lance Taylor1-1/+1
The use of this syntax was eliminated upstream in Go 992248b2adc2, but this particular use slipped through somehow. From-SVN: r209506
2014-04-17gofrontend: avoid use of unsafe.Sizeof extensionIan Lance Taylor1-1/+1
Avoid the use of a gccgo language extension which allows unsafe.Sizeof to accept a type by passing an expression of the relevant type. From-SVN: r209503
2014-04-16libgo: Remove Solaris 8 & 9 support.Ian Lance Taylor1-10/+0
From Rainer Orth. From-SVN: r209448
2014-03-03libgo: Update to Go 1.2.1 release.Ian Lance Taylor3-10/+65
From-SVN: r208286
2014-01-08re PR go/59430 (os/user FAILs on Solaris)Ian Lance Taylor3-6/+36
PR go/59430 os/user: Use POSIX functions on Solaris. From-SVN: r206412
2014-01-06go/build: Set GOARCH on arm64 systems.Ian Lance Taylor4-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/ From-SVN: r206374
2013-12-28net: work around Solaris connect issue when server closes socketIan Lance Taylor1-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. From-SVN: r206232
2013-12-27re PR go/59506 (net FAILs (timeout) on alpha)Ian Lance Taylor1-1/+1
PR go/59506 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. From-SVN: r206224
2013-12-25Revert unwanted commit.Uros Bizjak1-1/+1
From-SVN: r206201
2013-12-25re PR target/59422 (Support more targets for function multi versioning)Allan Sandfeld Jensen1-1/+1
gcc/ 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. From-SVN: r206200
2013-12-12reflect: Fix MakeFunc returning float32 or float64 on 386.Ian Lance Taylor2-15/+26
From-SVN: r205932
2013-12-12compiler, reflect, runtime: Implement method values in reflect.Ian Lance Taylor6-44/+115
From-SVN: r205913
2013-12-11reflect, runtime: Let reflect.MakeFunc functions call recover.Ian Lance Taylor2-0/+31
From-SVN: r205908
2013-11-30reflect: Rename struct field to be consistent in assembler and Go.Ian Lance Taylor1-2/+2
From-SVN: r205555
2013-11-30reflect: Fix MakeFunc for 386 when returning a struct.Ian Lance Taylor2-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. From-SVN: r205551
2013-11-27libgo: Update to current Go library.Ian Lance Taylor29-59/+240
From-SVN: r205426
2013-11-25syscall: Set SizeofSockaddrAny to the value the go distribution usesIan Lance Taylor1-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/ From-SVN: r205368
2013-11-24syscall: Only call varargs libc functions from C code.Ian Lance Taylor5-5/+5
From-SVN: r205321
2013-11-19reflect: Handle calls to functions that take or return empty structsIan Lance Taylor1-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 From-SVN: r205001
2013-11-14net: On Solaris use Darwin keepalive code.Ian Lance Taylor1-25/+0
From-SVN: r204819
2013-11-14go/build: Add all known gccgo architectures to list.Ian Lance Taylor1-1/+1
From-SVN: r204796
2013-11-14libgo/go/go/build: use syslist.go from the gc stdlib.Ian Lance Taylor1-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. From-SVN: r204794
2013-11-11net: Fix TCP keepalive handling for Solaris.Ian Lance Taylor1-0/+25
From-SVN: r204688
2013-11-11mksysinfo, net: Always define F_DUPFD_CLOEXEC.Ian Lance Taylor1-1/+1
For Solaris and CentOS portability. From-SVN: r204687
2013-11-11os: Do not try to run go command in test.Ian Lance Taylor1-0/+1
From-SVN: r204684
2013-11-06libgo: Update to October 24 version of master library.Ian Lance Taylor543-6047/+29665
From-SVN: r204466
2013-10-17syscall: Add Dup3, {Get,List,Remove,Set}xattr, {Get,Set}priority.Ian Lance Taylor2-0/+21
From-SVN: r203788
2013-10-07reflect: Use C style comments in 386 assembly for Solaris assembler.Ian Lance Taylor1-23/+24
From Rainer Orth. From-SVN: r203249
2013-10-04reflect: Fix calling Interface method on value created by MakeFunc.Ian Lance Taylor2-1/+25
From-SVN: r203212
2013-10-02reflect: Use hand-coded .eh_frame section rather than CFI directives.Ian Lance Taylor2-21/+162
From Rainer Orth. From-SVN: r203120
2013-10-01reflect: Fix reflect.Call with function following non-pointer.Ian Lance Taylor2-2/+13
From-SVN: r203052
2013-09-27reflect: Copy stack values onto heap in amd64 MakeFunc.Ian Lance Taylor1-2/+8
From-SVN: r202995
2013-09-27reflect: Implement MakeFunc for 386.Ian Lance Taylor4-2/+248
From-SVN: r202993
2013-09-27reflect: Implement MakeFunc for amd64.Ian Lance Taylor6-77/+634
From-SVN: r202982
2013-09-17reflect: Fix bug calling method on indirect value.Ian Lance Taylor1-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. From-SVN: r202670
2013-09-03compiler, runtime: Use runtime functions to pass closure value.Ian Lance Taylor1-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. From-SVN: r202233
2013-08-09net: give C.getaddrinfo a hint that we only want SOCK_STREAM answersIan Lance Taylor1-1/+2
This should be more efficient everywhere, and appears to be required on Solaris. Copied from master repository. From-SVN: r201637
2013-08-02syscall: Change AWK split call to use []+ rather than []*.Ian Lance Taylor1-2/+2
Using []* fails with the awk that is part of busybox: https://groups.google.com/d/msg/gofrontend-dev/NbQsG_AMDpY/sXCc03kkwn4J From-SVN: r201455
2013-07-24net: Only use GNU/Linux unix socket abstract paths on GNU/Linux.Ian Lance Taylor5-47/+49
From-SVN: r201217
2013-07-24net/http: Don't try to trace sendfile64 on alpha.Ian Lance Taylor1-1/+6
From Uros Bizjak. From-SVN: r201206
2013-07-23log/syslog: Restore interface to make this work on Solaris again.Ian Lance Taylor3-13/+31
From-SVN: r201188
2013-07-23net: Remove Solaris-specific version of listenerSockaddr.Ian Lance Taylor1-29/+0
Solaris will use the version in sock_unix.go. From-SVN: r201183
2013-07-16libgo: Update to Go 1.1.1.Ian Lance Taylor577-120618/+19645
From-SVN: r200974
2013-06-18compiler, runtime: Use function descriptors.Ian Lance Taylor5-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. From-SVN: r200181
2013-03-01runtime, testing/quick: libffi doesn't handle complex on Alpha.Ian Lance Taylor1-2/+5
From Uros Bizjak. From-SVN: r196389
2013-02-20re PR go/56171 (syscall FAILs on Solaris)Ian Lance Taylor4-25/+72
PR go/56171 syscall: Solaris fixes for passing file descriptor. From Rainer Orth. From-SVN: r196180
2013-02-10compiler, libgo: Permit testing package when test imports it circularly.Ian Lance Taylor15-255/+68
From-SVN: r195931
2013-02-08syscall: Always use _C_int for C libcalls.Ian Lance Taylor9-48/+48
From-SVN: r195897
2013-02-07re PR go/56173 (Several libgo tests FAIL on Solaris/SPARC)Ian Lance Taylor1-2/+12
PR go/56173 crypto/md5: fix for big-endian processors From-SVN: r195867