Ian Lance Taylor
537a6f7b47
net: give C.getaddrinfo a hint that we only want SOCK_STREAM answers
...
This should be more efficient everywhere, and appears to be
required on Solaris.
Copied from master repository.
From-SVN: r201637
2013-08-09 20:51:16 +00:00
Ian Lance Taylor
1b3dc031eb
syscall: Change AWK split call to use []+ rather than []*.
...
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-08-02 22:30:30 +00:00
Ian Lance Taylor
b0c5dc1655
runtime: Handle allocating memory in cgo/SWIG function.
...
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.
From-SVN: r201226
2013-07-24 22:30:25 +00:00
Ian Lance Taylor
08d22f9b41
runtime: Check _end rather than end to find end of program.
...
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.
From-SVN: r201220
2013-07-24 17:37:07 +00:00
Ian Lance Taylor
f735ce315f
net: Only use GNU/Linux unix socket abstract paths on GNU/Linux.
...
From-SVN: r201217
2013-07-24 16:53:17 +00:00
Ian Lance Taylor
c0f0119244
runtime: Move new 1.1.1 functions from thread-linux.c to runtime.c.
...
This way they are compiled on non-GNU/Linux systems.
From-SVN: r201209
2013-07-24 13:18:45 +00:00
Ian Lance Taylor
017e07a118
net/http: Don't try to trace sendfile64 on alpha.
...
From Uros Bizjak.
From-SVN: r201206
2013-07-24 13:09:32 +00:00
Ian Lance Taylor
9d824f6c8f
log/syslog: Restore interface to make this work on Solaris again.
...
From-SVN: r201188
2013-07-23 21:23:27 +00:00
Ian Lance Taylor
da8091da1b
net: Remove Solaris-specific version of listenerSockaddr.
...
Solaris will use the version in sock_unix.go.
From-SVN: r201183
2013-07-23 20:38:49 +00:00
Ian Lance Taylor
6212cdcdf7
runtime: Declare epoll_create1 if necessary.
...
From-SVN: r201181
2013-07-23 20:32:26 +00:00
Ian Lance Taylor
7acd2b86bf
runtime: Support cgo callbacks from threads started by C.
...
This adjusts the extram support to work with gccgo. There are
some corresponding changes to cgo in
https://codereview.appspot.com/11406047/ .
From-SVN: r201179
2013-07-23 20:26:09 +00:00
Ian Lance Taylor
5f9ae7f2d6
runtime: Ignore SIGPROF if not on a Go thread.
...
From-SVN: r201154
2013-07-23 04:42:09 +00:00
Ian Lance Taylor
081e7aadae
runtime: Fix build on non-split-stack systems.
...
From-SVN: r200983
2013-07-16 15:44:54 +00:00
Ian Lance Taylor
be47d6ecef
libgo: Update to Go 1.1.1.
...
From-SVN: r200974
2013-07-16 06:54:42 +00:00
Ian Lance Taylor
fdbc38a6e8
compiler, runtime: Use function descriptors.
...
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-06-18 23:49:49 +00:00
Ian Lance Taylor
73e0b984b3
runtime, testing/quick: libffi doesn't handle complex on Alpha.
...
From Uros Bizjak.
From-SVN: r196389
2013-03-01 19:26:43 +00:00
Ian Lance Taylor
0a2f103a45
runtime: Don't block SIGTRAP while creating a new thread.
...
Thanks to Uros Bizjak.
From-SVN: r196362
2013-02-28 21:56:14 +00:00
Ian Lance Taylor
f46d686ef1
re PR go/56171 (syscall FAILs on Solaris)
...
PR go/56171
syscall: Solaris fixes for passing file descriptor.
From Rainer Orth.
From-SVN: r196180
2013-02-20 20:04:36 +00:00
Ian Lance Taylor
aa777e7a23
re PR go/56320 (Several libgo tests FAIL on 64-bit Solaris/x86)
...
PR go/56320
runtime: Support Solaris AMD64 in lfstack.
The address space layout is similar on SPARC64 and AMD64 when
running Solaris.
From-SVN: r196179
2013-02-20 19:45:10 +00:00
Ian Lance Taylor
3ab98a471c
runtime: Do not reserve huge amount of swap on 32 bit architectures.
...
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.
From-SVN: r196088
2013-02-15 18:55:09 +00:00
Ian Lance Taylor
ae135907ba
re PR go/56171 (syscall FAILs on Solaris)
...
PR go/56171
libgo: Solaris portability for syscall package.
From Rainer Orth.
From-SVN: r195950
2013-02-11 19:03:04 +00:00
Ian Lance Taylor
d54fc07473
compiler, libgo: Permit testing package when test imports it circularly.
...
From-SVN: r195931
2013-02-10 06:02:38 +00:00
Ian Lance Taylor
d3deca3973
re PR go/56017 (libgo testsuite does not support cross testing)
...
PR go/56017
libgo testsuite: If using DejaGNU, don't frob the log file.
From-SVN: r195927
2013-02-09 23:19:33 +00:00
Ian Lance Taylor
d5698f71bb
re PR go/56017 (libgo testsuite does not support cross testing)
...
PR go/56017
libgo DejaGNU testsuite: Load timeout.exp before go.exp.
From-SVN: r195926
2013-02-09 23:02:09 +00:00
Ian Lance Taylor
540817f4ef
syscall: Always use _C_int for C libcalls.
...
From-SVN: r195897
2013-02-08 19:24:26 +00:00
Ian Lance Taylor
48227088fd
runtime: Change main in goc2c to return int.
...
From Uros Bizjak.
From-SVN: r195868
2013-02-07 22:24:34 +00:00
Ian Lance Taylor
af4acefcd7
re PR go/56173 (Several libgo tests FAIL on Solaris/SPARC)
...
PR go/56173
crypto/md5: fix for big-endian processors
From-SVN: r195867
2013-02-07 21:40:10 +00:00
Ian Lance Taylor
553752e19f
libgo: Correct test for whether to use DejaGNU.
...
From-SVN: r195861
2013-02-07 18:01:54 +00:00
Ian Lance Taylor
aa62fd35b5
re PR go/56172 (net FAILs on Solaris)
...
PR go/56172
net: Skip TestMulticastListener on Solaris
From Rainer Orth.
From-SVN: r195855
2013-02-07 17:04:24 +00:00
Ian Lance Taylor
d617bce48c
re PR go/56172 (net FAILs on Solaris)
...
PR go/56172
net: Fixes for select based pollster.
Make Close work properly, mainly for testing. Restart the
select if a descriptor is closed.
From-SVN: r195823
2013-02-06 22:40:18 +00:00
Ian Lance Taylor
5c9768b360
re PR go/56172 (net FAILs on Solaris)
...
PR go/56172
runtime: Fix argument passed to forcegchelper.
From-SVN: r195774
2013-02-05 23:59:24 +00:00
Ian Lance Taylor
7134cf2833
re PR go/56017 (libgo testsuite does not support cross testing)
...
PR go/56017
libgo: Use DejaGNU when testing a cross-compiler.
From-SVN: r195766
2013-02-05 22:22:17 +00:00
Ian Lance Taylor
10f92c9c3f
re PR go/56171 (syscall FAILs on Solaris)
...
PR go/56171
syscall: Only run creds_test on GNU/Linux.
From-SVN: r195686
2013-02-02 15:40:14 +00:00
Ian Lance Taylor
7ebe663e98
runtime: Correct handling of runtime.Callers skip parameter.
...
From-SVN: r195685
2013-02-02 15:11:48 +00:00
Ian Lance Taylor
a1948282e8
runtime: Correct test for morestack.S.
...
From-SVN: r195640
2013-02-01 05:49:14 +00:00
Ian Lance Taylor
cfbafb9a7e
runtime: Recognize morestack.S if there is no function name.
...
From-SVN: r195634
2013-01-31 23:12:42 +00:00
Ian Lance Taylor
7c81527e48
runtime: Remove confusion about split stack functions in backtrace.
...
From-SVN: r195627
2013-01-31 19:44:24 +00:00
Ian Lance Taylor
e259a3f2ca
runtime: Block signals when creating a new thread.
...
From-SVN: r195619
2013-01-31 17:30:28 +00:00
Ian Lance Taylor
422e2fc062
runtime: Don't allocate when doing a backtrace.
...
From-SVN: r195615
2013-01-31 16:41:15 +00:00
Ian Lance Taylor
27741f93ef
runtime: In backtraces, get inline functions, skip split-stack fns.
...
From-SVN: r195591
2013-01-30 22:24:40 +00:00
Ian Lance Taylor
777133fefb
libgo: Update Go library to master revision 15502/229081515358.
...
From-SVN: r195569
2013-01-30 01:37:13 +00:00
Ian Lance Taylor
d6f2922e91
libgo: Update Go library to master revision 15489/921e53d4863c.
...
From-SVN: r195560
2013-01-29 20:52:43 +00:00
Ian Lance Taylor
656e11a924
runtime: SPARCv9 fixes for lfstack.
...
From Rainer Orth.
From-SVN: r195534
2013-01-29 13:58:18 +00:00
Ian Lance Taylor
0d4668c1d5
libgo: Add --enable-werror configure option.
...
From-SVN: r195482
2013-01-26 00:13:34 +00:00
Ian Lance Taylor
acc6151f4a
re PR other/56076 (Several 64-bit libgo tests FAIL in read_line_header)
...
PR other/56076
runtime: Support sparc64 in lfstack.
From-SVN: r195479
2013-01-25 23:43:23 +00:00
Ian Lance Taylor
f6b1e65ec3
re PR go/46986 (Go is not supported on Darwin)
...
PR go/46986
all: prepend #__USER_LABEL_PREFIX__ to mangled Go symbols
For old-fashioned Darwin.
From-SVN: r195438
2013-01-24 19:44:23 +00:00
Ian Lance Taylor
72d1cef254
re PR go/46986 (Go is not supported on Darwin)
...
PR go/46986
libgo/Makefile, libgo/go/os/stat_atimespec.go: fix typos
From-SVN: r195436
2013-01-24 18:12:23 +00:00
Ian Lance Taylor
409a5e7eb4
libgo: Update to revision 15193:6fdc1974457c of master library.
...
From-SVN: r194692
2012-12-22 01:15:33 +00:00
Ian Lance Taylor
5c167ca0a2
compiler: Error if name defined in both package and file blocks.
...
From-SVN: r194685
2012-12-21 22:23:23 +00:00
Ian Lance Taylor
69fffc1f0e
libgo: Link against libatomic_convenience.la.
...
gcc/go:
PR go/55201
* gospec.c: Revert last patch.
gcc/testsuite:
PR go/55201
* lib/go.exp: Revert last patch.
From-SVN: r194593
2012-12-18 22:07:38 +00:00