summaryrefslogtreecommitdiffstats
path: root/libgo
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-143-20/+10
| | | | | | | 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-113-1/+31
| | | | 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-112-1/+6
| | | | | | | 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
* runtime: Correct flag (FlagNoGC => FlagNoInvokeGC).ian2013-11-091-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204617 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Fixes for Alpha.ian2013-11-072-1/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204551 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to October 24 version of master library.ian2013-11-06596-7420/+31983
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204466 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Fix typo in dup3 fallback implementation.ian2013-10-181-1/+1
| | | | | | | From Uros Bizjak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203820 138bc75d-0d04-0410-961f-82ee72b054a4
* syscall: Add Dup3, {Get,List,Remove,Set}xattr, {Get,Set}priority.ian2013-10-177-2/+99
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203788 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Fix build on systems without split stack.ian2013-10-161-0/+2
| | | | | | | From Uros Bizjak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203703 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Don't clobber saved context when catching signal.ian2013-10-141-2/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203577 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Report len out of range for large len when making slice.ian2013-10-111-1/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203401 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, runtime: Fix complex division of NaN / 0.ian2013-10-093-1/+57
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203331 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Do not report thunks and recover functions in backtrace.ian2013-10-091-0/+15
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203294 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
* runtime: Fix append of slice with elements of zero size.ian2013-10-021-6/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203140 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Use hand-coded .eh_frame section rather than CFI directives.ian2013-10-025-21/+331
| | | | | | | 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-276-5/+264
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202993 138bc75d-0d04-0410-961f-82ee72b054a4
* reflect: Implement MakeFunc for amd64.ian2013-09-278-88/+676
| | | | 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-036-27/+36
| | | | | | | | | | | | 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
* libgo: Update libtool.m4 from upstream to recognize powerpcle.ian2013-08-232-8/+20
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201933 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
* runtime: Handle allocating memory in cgo/SWIG function.ian2013-07-241-2/+19
| | | | | | | | | A function that returns an interface type and returns a value that requires memory allocation will try to allocate while appearing to be in a syscall. This patch lets that work. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201226 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Check _end rather than end to find end of program.ian2013-07-241-2/+2
| | | | | | | | | This fixes a problem on Solaris, where end is not defined in the main program but comes from some shared library. This only matters for 32-bit targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201220 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
* runtime: Move new 1.1.1 functions from thread-linux.c to runtime.c.ian2013-07-242-46/+47
| | | | | | | This way they are compiled on non-GNU/Linux systems. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201209 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
* runtime: Declare epoll_create1 if necessary.ian2013-07-231-0/+4
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201181 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Support cgo callbacks from threads started by C.ian2013-07-235-20/+131
| | | | | | | | | This adjusts the extram support to work with gccgo. There are some corresponding changes to cgo in https://codereview.appspot.com/11406047/ . git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201179 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Ignore SIGPROF if not on a Go thread.ian2013-07-231-6/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201154 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Fix build on non-split-stack systems.ian2013-07-161-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200983 138bc75d-0d04-0410-961f-82ee72b054a4
* libgo: Update to Go 1.1.1.ian2013-07-16620-122654/+23893
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200974 138bc75d-0d04-0410-961f-82ee72b054a4
* compiler, runtime: Use function descriptors.ian2013-06-1816-53/+104
| | | | | | | | | | | | | | | | 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-012-3/+16
| | | | | | | From Uros Bizjak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196389 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Don't block SIGTRAP while creating a new thread.ian2013-02-281-0/+6
| | | | | | | Thanks to Uros Bizjak. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196362 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/56171ian2013-02-206-29/+103
| | | | | | | | | 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
* PR go/56320ian2013-02-201-3/+4
| | | | | | | | | runtime: Support Solaris AMD64 in lfstack. The address space layout is similar on SPARC64 and AMD64 when running Solaris. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196179 138bc75d-0d04-0410-961f-82ee72b054a4
* runtime: Do not reserve huge amount of swap on 32 bit architectures.ian2013-02-151-1/+9
| | | | | | | | | | | | | | | | The mmap() call which reserves the arena should have MAP_NORESERVE flag as in typical cases this memory will never be (fully) needed. This matters in environments which do not do Linux style memory overcommit, such as OpenIndiana/OpenSolaris/Solaris. The MAP_NORESERVE flag does not exist on all operating systems (for example FreeBSD). Therefore we define it to zero value in case it does not exist. Fixes issue 21. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196088 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/56171ian2013-02-115-3/+67
| | | | | | | | | libgo: Solaris portability for syscall package. From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195950 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
* PR go/56017ian2013-02-092-2/+8
| | | | | | | libgo testsuite: If using DejaGNU, don't frob the log file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195927 138bc75d-0d04-0410-961f-82ee72b054a4
* PR go/56017ian2013-02-091-0/+1
| | | | | | | libgo DejaGNU testsuite: Load timeout.exp before go.exp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195926 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud