Ian Lance Taylor
d5d0580e64
runtime: remove unused variable
...
This variable is unused apparently as a result of local changes.
gccgo accepts this variable declaration, but other frontends may not.
From-SVN: r212873
2014-07-20 19:20:12 +00:00
Ian Lance Taylor
aefa5ff4cf
runtime: add a missing import
...
This adds an import of the runtime package to fix compilation
of the TestStopCPUProfilingWithProfilerOff function.
The gccgo compiler should never have accepted this. The patch
for the comiler is http://codereview.appspot.com/116960043 .
The test is https://codereview.appspot.com/118000043 .
From-SVN: r212870
2014-07-20 15:09:04 +00:00
Ian Lance Taylor
dffa732835
reflect, runtime: Use libffi closures to implement reflect.MakeFunc.
...
Keep using the existing 386 and amd64 code on those archs,
since it is more efficient.
From-SVN: r212853
2014-07-19 21:36:26 +00:00
Ian Lance Taylor
00d86ac99f
libgo: Update to Go 1.3 release.
...
From-SVN: r212837
2014-07-19 08:53:52 +00:00
Ian Lance Taylor
2fa39ad859
runtime: Merge master revision 19185.
...
This revision renames several files in the runtime directory
from .c to .goc.
From-SVN: r212472
2014-07-12 00:01:09 +00:00
Ian Lance Taylor
7b169c293d
runtime: add missing benchmark input files to the repository
...
From-SVN: r211961
2014-06-24 23:52:47 +00:00
Ian Lance Taylor
6736ef96ea
libgo: Merge to master revision 19184.
...
The next revision, 19185, renames several runtime files, and
will be handled in a separate change.
From-SVN: r211328
2014-06-06 22:37:27 +00:00
Ian Lance Taylor
bae90c989c
libgo: Merge from revision 18783:00cce3a34d7e of master library.
...
This revision was committed January 7, 2014. The next
revision deleted runtime/mfinal.c. That will be done in a
subsequent merge.
This merge changes type descriptors to add a zero field,
pointing to a zero value for that type. This is implemented
as a common variable.
* go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and
alignment parameters. Permit init parameter to be NULL.
From-SVN: r211249
2014-06-04 23:15:33 +00:00
Ian Lance Taylor
5584c49a11
gofrontend: deduplicate C syscall function declarations
...
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-17 23:39:23 +00:00
Ian Lance Taylor
e8ad3ca026
runtime: remove use of obsolete map deletion syntax
...
The use of this syntax was eliminated upstream in Go 992248b2adc2,
but this particular use slipped through somehow.
From-SVN: r209506
2014-04-17 23:27:31 +00:00
Ian Lance Taylor
e315e8a5b9
gofrontend: avoid use of unsafe.Sizeof extension
...
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-17 23:13:39 +00:00
Ian Lance Taylor
73cc28d4e7
libgo: Remove Solaris 8 & 9 support.
...
From Rainer Orth.
From-SVN: r209448
2014-04-16 20:33:57 +00:00
Ian Lance Taylor
a10d35a8ba
libgo: Update to Go 1.2.1 release.
...
From-SVN: r208286
2014-03-03 20:14:52 +00:00
Ian Lance Taylor
747639c28f
re PR go/59430 (os/user FAILs on Solaris)
...
PR go/59430
os/user: Use POSIX functions on Solaris.
From-SVN: r206412
2014-01-08 01:08:29 +00:00
Ian Lance Taylor
71d0d50aa3
go/build: Set GOARCH on arm64 systems.
...
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
2014-01-06 19:24:23 +00:00
Ian Lance Taylor
f89b66f5ad
net: work around Solaris connect issue when server closes socket
...
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-28 18:00:30 +00:00
Ian Lance Taylor
afc8adc88f
re PR go/59506 (net FAILs (timeout) on alpha)
...
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-27 21:42:26 +00:00
Uros Bizjak
ce2b81bfce
Revert unwanted commit.
...
From-SVN: r206201
2013-12-25 23:24:26 +01:00
Allan Sandfeld Jensen
74924838e8
re PR target/59422 (Support more targets for function multi versioning)
...
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-25 23:22:24 +01:00
Ian Lance Taylor
ea56ff71a4
reflect: Fix MakeFunc returning float32 or float64 on 386.
...
From-SVN: r205932
2013-12-12 17:44:01 +00:00
Ian Lance Taylor
547a416879
compiler, reflect, runtime: Implement method values in reflect.
...
From-SVN: r205913
2013-12-12 01:08:52 +00:00
Ian Lance Taylor
b1d137cf58
reflect, runtime: Let reflect.MakeFunc functions call recover.
...
From-SVN: r205908
2013-12-11 23:43:16 +00:00
Ian Lance Taylor
df5d92ce0e
reflect: Rename struct field to be consistent in assembler and Go.
...
From-SVN: r205555
2013-11-30 18:08:42 +00:00
Ian Lance Taylor
9c6230e90e
reflect: Fix MakeFunc for 386 when returning a struct.
...
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-30 17:14:50 +00:00
Ian Lance Taylor
815ca4d336
libgo: Update to current Go library.
...
From-SVN: r205426
2013-11-27 01:05:38 +00:00
Ian Lance Taylor
0fea993fa8
syscall: Set SizeofSockaddrAny to the value the go distribution uses
...
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-25 22:54:05 +00:00
Ian Lance Taylor
6b05faddf0
syscall: Only call varargs libc functions from C code.
...
From-SVN: r205321
2013-11-24 02:38:28 +00:00
Ian Lance Taylor
41674b9fe4
reflect: Handle calls to functions that take or return empty structs
...
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-19 02:30:03 +00:00
Ian Lance Taylor
01ef823cdd
net: On Solaris use Darwin keepalive code.
...
From-SVN: r204819
2013-11-14 20:19:51 +00:00
Ian Lance Taylor
eb50be04e9
go/build: Add all known gccgo architectures to list.
...
From-SVN: r204796
2013-11-14 18:16:59 +00:00
Ian Lance Taylor
9572918137
libgo/go/go/build: use syslist.go from the gc stdlib.
...
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-14 18:07:31 +00:00
Ian Lance Taylor
9544822809
net: Fix TCP keepalive handling for Solaris.
...
From-SVN: r204688
2013-11-11 21:25:42 +00:00
Ian Lance Taylor
3c450181dc
mksysinfo, net: Always define F_DUPFD_CLOEXEC.
...
For Solaris and CentOS portability.
From-SVN: r204687
2013-11-11 21:21:50 +00:00
Ian Lance Taylor
eb47f18904
os: Do not try to run go command in test.
...
From-SVN: r204684
2013-11-11 19:41:00 +00:00
Ian Lance Taylor
f038dae646
libgo: Update to October 24 version of master library.
...
From-SVN: r204466
2013-11-06 19:49:01 +00:00
Ian Lance Taylor
d5b18b0b13
syscall: Add Dup3, {Get,List,Remove,Set}xattr, {Get,Set}priority.
...
From-SVN: r203788
2013-10-17 18:41:12 +00:00
Ian Lance Taylor
e3f6b60da9
reflect: Use C style comments in 386 assembly for Solaris assembler.
...
From Rainer Orth.
From-SVN: r203249
2013-10-07 15:32:08 +00:00
Ian Lance Taylor
8a2cb59f1c
reflect: Fix calling Interface method on value created by MakeFunc.
...
From-SVN: r203212
2013-10-04 18:52:22 +00:00
Ian Lance Taylor
cc1a9ac808
reflect: Use hand-coded .eh_frame section rather than CFI directives.
...
From Rainer Orth.
From-SVN: r203120
2013-10-02 17:30:07 +00:00
Ian Lance Taylor
2cb01a3972
reflect: Fix reflect.Call with function following non-pointer.
...
From-SVN: r203052
2013-10-01 03:12:15 +00:00
Ian Lance Taylor
5f18389f4d
reflect: Copy stack values onto heap in amd64 MakeFunc.
...
From-SVN: r202995
2013-09-27 22:13:11 +00:00
Ian Lance Taylor
a84dbde7fc
reflect: Implement MakeFunc for 386.
...
From-SVN: r202993
2013-09-27 21:34:24 +00:00
Ian Lance Taylor
8bcd5487e5
reflect: Implement MakeFunc for amd64.
...
From-SVN: r202982
2013-09-27 17:53:46 +00:00
Ian Lance Taylor
b15d794389
reflect: Fix bug calling method on indirect value.
...
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-17 22:11:43 +00:00
Ian Lance Taylor
05a7d56678
compiler, runtime: Use runtime functions to pass closure value.
...
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-09-03 21:52:37 +00:00
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
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
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
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
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
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
540817f4ef
syscall: Always use _C_int for C libcalls.
...
From-SVN: r195897
2013-02-08 19:24:26 +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
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
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
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
a57bf4070a
log/syslog: Solaris portability patches.
...
From-SVN: r194566
2012-12-17 21:07:27 +00:00
Ian Lance Taylor
a42a906c42
libgo: Update to current master library sources.
...
From-SVN: r194460
2012-12-12 23:13:29 +00:00
Ian Lance Taylor
4d901dd735
os: Clean up directory reading code.
...
From-SVN: r194237
2012-12-06 02:00:13 +00:00
Ian Lance Taylor
03a6c305d3
syscall: Fix splice syscall.
...
From-SVN: r194185
2012-12-05 08:49:01 +00:00
Ian Lance Taylor
744c3195ef
compiler, runtime: Track fields with tag go:"track".
...
* go-gcc.cc: Include "output.h".
(global_variable): Add is_unique_section parameter.
(global_variable_set_init): Adjust unique section if necessary.
* Make-lang.in (go/go-gcc.o): Add dependency on output.h.
From-SVN: r193945
2012-11-29 18:11:17 +00:00
Ian Lance Taylor
40ff695f5c
syscall: Fix handling of Unix domain @ addresses.
...
From-SVN: r193783
2012-11-24 20:46:59 +00:00
Ian Lance Taylor
fabcaa8df3
libgo: Update to current version of master library.
...
From-SVN: r193688
2012-11-21 07:03:38 +00:00
Ian Lance Taylor
a3ce4803ea
reflect: Fix invalid sharing in valueInterface.
...
From-SVN: r193614
2012-11-19 05:34:08 +00:00
Ian Lance Taylor
86f2731e63
syscall: Force first letter of error message to lower case.
...
From-SVN: r193449
2012-11-12 19:34:52 +00:00
Ian Lance Taylor
7e03f00470
reflect: Fix bug comparing struct field types.
...
From-SVN: r193395
2012-11-10 20:24:04 +00:00
Ian Lance Taylor
fb3f38da2a
compiler, libgo: Fixes to prepare for 64-bit int.
...
From-SVN: r193254
2012-11-06 18:28:21 +00:00
Ian Lance Taylor
ae0b23e2ff
os: support more OSes
...
From-SVN: r193172
2012-11-05 17:36:40 +00:00
Ian Lance Taylor
ff95e2ab0b
syscall, mksysinfo: Prepare syscall package for 64-bit int.
...
From-SVN: r193112
2012-11-02 23:39:36 +00:00
Ian Lance Taylor
776f27a67f
compiler, runtime: More steps toward separating int and intgo.
...
From-SVN: r193059
2012-11-01 03:02:13 +00:00
Ian Lance Taylor
85c2f96c1c
syscall: fix creds_test to reliably close os.File
...
Uncovered by Uros Bizjak.
Before this patch the test would close the file descriptor but
not the os.File. When the os.File was GC'ed, the finalizer
would close the file descriptor again. That would cause
problems if the same file descriptor were returned by a later
call to open in another test.
On my system:
> GOGC=30 go test
--- FAIL: TestPassFD (0.04 seconds)
passfd_test.go:62: FileConn: dup: bad file descriptor
FAIL
From-SVN: r192854
2012-10-26 17:50:10 +00:00
Ian Lance Taylor
f99a463f8a
libgo: Solaris portability patches.
...
From Rainer Orth.
From-SVN: r192819
2012-10-25 18:26:34 +00:00
Ian Lance Taylor
8d672b2640
runtime: Disable crash tests that runs go tool.
...
From-SVN: r192735
2012-10-23 18:01:06 +00:00
Ian Lance Taylor
4ccad563d2
libgo: Update to current sources.
...
From-SVN: r192704
2012-10-23 04:31:11 +00:00
Ian Lance Taylor
bd2e46c825
libgo: Update to Go 1.0.3.
...
From-SVN: r192025
2012-10-03 05:27:36 +00:00
Ian Lance Taylor
0e56e59065
libgo: Use libbacktrace rather than debug/elf registration.
...
From-SVN: r191831
2012-09-28 14:48:30 +00:00
Ian Lance Taylor
a85cfff41d
debug/elf, debug/dwarf: DWARF line number fixes.
...
Support DW_AT_high_pc as a constant.
Support DW_AT_ranges.
PR gcc/52583
From-SVN: r191008
2012-09-06 05:28:02 +00:00
Ian Lance Taylor
c92900d1db
compiler: Remove old handling of unsafe.Pointer in type assertions.
...
Fixes issue 17.
From-SVN: r190608
2012-08-23 00:20:48 +00:00
Ian Lance Taylor
1fae9801e4
runtime, runtime/pprof: Fix runtime/pprof test to pass, enable it.
...
From-SVN: r189878
2012-07-26 01:57:04 +00:00
Ian Lance Taylor
08a680a887
libgo: Update to Go 1.0.2 release.
...
From-SVN: r188943
2012-06-25 16:20:03 +00:00
Ian Lance Taylor
c789c04510
compiler, reflect: Quote package path with tabs.
...
From-SVN: r188548
2012-06-14 05:04:04 +00:00
Ian Lance Taylor
73b5b93a59
os/user: Use Entersyscall.
...
From-SVN: r188496
2012-06-13 05:56:09 +00:00
Ian Lance Taylor
57d195e224
os: Use Entersyscall when reading directories.
...
From-SVN: r188494
2012-06-13 04:47:25 +00:00
Ian Lance Taylor
9690ac05c9
compiler, reflect: Handle package path like gc compiler.
...
From-SVN: r188482
2012-06-12 20:33:22 +00:00
Ian Lance Taylor
7bea4023f2
runtime: Better SWIG interface for allocating Go memory from C/C++.
...
From-SVN: r188164
2012-06-04 05:34:59 +00:00
Ian Lance Taylor
eaca667ecf
log/syslog: Fix name of C function syslog_c.
...
From Rainer Orth.
From-SVN: r187596
2012-05-16 14:52:03 +00:00
Ian Lance Taylor
c39cbb22b0
debug/dwarf: Fix handling of LineSetFile.
...
From-SVN: r187578
2012-05-16 05:36:31 +00:00
Ian Lance Taylor
f3ab5720f7
libgo: Use -fgo-pkgpath.
...
From-SVN: r187485
2012-05-14 22:08:42 +00:00
Ian Lance Taylor
33e337e34d
libgo: Update to Go 1.0.1 release.
...
From-SVN: r187163
2012-05-04 15:01:11 +00:00
Ian Lance Taylor
81b9589421
re PR go/52586 (libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64'))
...
PR go/52586
mksysinfo, syscall: Make sure SYS_GETDENTS64 is defined.
Fixes build on MIPS GNU/Linux.
From-SVN: r186986
2012-04-30 16:04:17 +00:00
Ian Lance Taylor
6c88c77ec7
re PR go/52358 (math FAILs on Solaris 8 and 9)
...
PR go/52358
math: Work around bug in Solaris 9 implementation of ldexp.
The bug is that ldexp(-1, -1075) should return -0, but the
Solaris 9 implementation returns +0.
From-SVN: r186913
2012-04-27 16:32:42 +00:00
Ian Lance Taylor
181c7267c7
mksysinfo, net: Always define syscall.SO_REUSEPORT.
...
From-SVN: r186857
2012-04-26 04:25:56 +00:00
Ian Lance Taylor
2b210b6f0b
re PR go/52341 (crypto/rand FAILs before Solaris 11)
...
PR go/52341
crypto/rand: Use io.ReadFull when reading from /dev/urandom.
From-SVN: r186803
2012-04-25 04:40:49 +00:00
Ian Lance Taylor
b685de12d2
re PR go/52583 (Several new go testsuite failues on Solaris)
...
PR go/52583
net: Solaris fixes.
In particular fix fd_select.go to handle the case where a file
descriptor is closed by one goroutine while another goroutine
is waiting for it.
From-SVN: r186801
2012-04-25 04:26:12 +00:00
Ian Lance Taylor
1ec20ea138
go-lang.c (go_langhook_init): Set MPFR precision to 256.
...
* go-lang.c (go_langhook_init): Set MPFR precision to 256.
time: Adjust float expression so that it first integer context.
From-SVN: r186727
2012-04-23 21:39:12 +00:00
Ian Lance Taylor
f04e40afc1
mksysinfo: More fixes to emulate master Go library.
...
From-SVN: r186685
2012-04-22 20:07:23 +00:00
Ian Lance Taylor
f12e8bd5c3
godump.c (go_output_typedef): Dump size of structs.
...
* godump.c (go_output_typedef): Dump size of structs.
mksysinfo, syscall: Change Sizeof names from var to const.
From-SVN: r186678
2012-04-22 18:51:44 +00:00
Ian Lance Taylor
1410c22260
syscall: Additional constants, some type corrections.
...
From-SVN: r186655
2012-04-21 18:49:58 +00:00
Ian Lance Taylor
d25a12fc2d
net, syscall: Use native endianness for GNU/Linux netlink code.
...
From-SVN: r186640
2012-04-20 20:11:28 +00:00
Ian Lance Taylor
0e27a180fd
net/http: Ignore sigaltstack when running strace in test.
...
Avoids bug in strace 4.5.20 on powerpc-unknown-linux-gnu.
From-SVN: r186635
2012-04-20 18:51:05 +00:00
Ian Lance Taylor
76c0db7391
debug/dwarf: Fix address lookups for different types of lines.
...
This fixes the lookup when, e.g., discriminators force adding
new line arrays.
From-SVN: r186633
2012-04-20 18:44:09 +00:00
Ian Lance Taylor
cf1f0eb7cc
runtime: Disable memory profiling in gc_test.
...
From-SVN: r186631
2012-04-20 18:40:14 +00:00
Ian Lance Taylor
ea8505da90
syscall, net: Fix GNU/Linux netlink code for big-endian systems.
...
From-SVN: r186123
2012-04-03 23:44:53 +00:00
Ian Lance Taylor
a1552fc3ec
libgo: Update to weekly.2012-03-27 aka go1 release.
...
From-SVN: r186029
2012-03-30 22:36:44 +00:00
Ian Lance Taylor
99002f8366
File removed in weekly.2012-03-22 release.
...
From-SVN: r186028
2012-03-30 22:14:14 +00:00
Ian Lance Taylor
9a18821cfc
libgo: Update to weekly.2012-03-22.
...
From-SVN: r186026
2012-03-30 22:09:55 +00:00
Ian Lance Taylor
456fba2651
libgo: Update to weekly.2012-03-13.
...
From-SVN: r186023
2012-03-30 21:27:11 +00:00
Ian Lance Taylor
e0be8a5c20
syscall: Convert errno to error after Exitsyscall.
...
From-SVN: r186020
2012-03-30 21:10:32 +00:00
Ian Lance Taylor
a0c8ad3bdf
compiler, libgo: unsafe.{Sizeof,Alignof,Offsetof} return uintptr.
...
From-SVN: r185946
2012-03-29 03:53:13 +00:00
Ian Lance Taylor
03934a5632
syscall: Fix errno handling in syscall.Syscall and friends.
...
From-SVN: r185746
2012-03-23 18:41:07 +00:00
Ian Lance Taylor
24aea58753
libgo: Export {enter,exit}syscall and use it for getaddrinfo.
...
From-SVN: r185363
2012-03-13 23:01:30 +00:00
Ian Lance Taylor
896977b38f
debug/dwarf: Support DWARF versions 3 and 4.
...
From-SVN: r185126
2012-03-09 06:35:00 +00:00
Ian Lance Taylor
060b4284aa
debug/elf: Don't crash if line numbers are not available.
...
From-SVN: r185124
2012-03-09 05:33:10 +00:00
Ian Lance Taylor
0effc3f961
libgo: Implement and use runtime.Caller, runtime.Func.FileLine.
...
From-SVN: r185025
2012-03-07 01:16:20 +00:00
Ian Lance Taylor
593f74bbab
libgo: Update to weekly.2012-03-04 release.
...
From-SVN: r185010
2012-03-06 17:57:23 +00:00
Ian Lance Taylor
501699af16
libgo: Update to weekly.2012-02-22 release.
...
From-SVN: r184819
2012-03-02 20:01:37 +00:00
Ian Lance Taylor
cbb6491d76
libgo: Update to weekly.2012-02-14 release.
...
From-SVN: r184798
2012-03-02 16:38:43 +00:00
Ian Lance Taylor
b65734ac6c
syscall: Fill out GNU/Linux support.
...
From-SVN: r184669
2012-02-29 20:02:31 +00:00
Ian Lance Taylor
5d46bf0538
libgo: Add mount flags, fallocate, statfs.
...
From-SVN: r184365
2012-02-18 01:22:02 +00:00
Ian Lance Taylor
a64b24bdef
re PR go/51874 (Many libgo testsuite failures on IRIX)
...
PR go/51874
math: Don't use libc log2 and trunc functions.
From-SVN: r184300
2012-02-16 07:17:03 +00:00
Ian Lance Taylor
2b120fe98e
syscall: Change Dup2 to only return an error.
...
From-SVN: r184222
2012-02-14 19:36:31 +00:00
Ian Lance Taylor
09578bcd52
net: Don't run UDP multicast tests on Alpha GNU/Linux.
...
From Uros Bizjak.
From-SVN: r184187
2012-02-14 00:30:12 +00:00
Ian Lance Taylor
14e50d352e
sync/atomic: Disable tests which can't run based on pointer size.
...
From-SVN: r184136
2012-02-12 05:57:02 +00:00
Ian Lance Taylor
1fd5b9687e
os: Fix Solaris stat functions.
...
From Rainer Orth.
From-SVN: r184065
2012-02-09 18:07:43 +00:00
Ian Lance Taylor
94252f4bcc
libgo: Update to weekly.2012-02-07.
...
From-SVN: r184034
2012-02-09 08:19:58 +00:00
Ian Lance Taylor
09839cde4c
os: Fix typo in //extern comment.
...
From-SVN: r184023
2012-02-08 22:21:04 +00:00
Ian Lance Taylor
b806269c9b
compiler, libgo: Use //extern comments rather than __asm__.
...
From-SVN: r183981
2012-02-07 19:26:30 +00:00
Ian Lance Taylor
4631101689
compiler, reflect: Fix hash codes of named types, fix PtrTo hash.
...
From-SVN: r183889
2012-02-04 01:41:24 +00:00
Ian Lance Taylor
10f5ffa4e9
syscall: Add syscall.Times.
...
From-SVN: r183826
2012-02-02 06:40:11 +00:00
Ian Lance Taylor
7c275c4339
os/exec: Make sure file descriptor is not closed early.
...
From-SVN: r183815
2012-02-01 20:47:15 +00:00
Ian Lance Taylor
9af4cb9545
libgo: Update to weekly.2012-01-27.
...
From-SVN: r183810
2012-02-01 19:26:59 +00:00
Ian Lance Taylor
7d18953823
syscall: Add Gettid on GNU/Linux systems.
...
From-SVN: r183775
2012-01-31 20:47:55 +00:00
Ian Lance Taylor
e8738e985e
syscall: Don't use PtraceRegs if it is not defined.
...
From-SVN: r183758
2012-01-31 14:23:07 +00:00
Ian Lance Taylor
4a1a859611
syscall: Support socket control messages.
...
From-SVN: r183745
2012-01-30 23:57:42 +00:00
Ian Lance Taylor
af5c13eb04
syscall: Define IPV6 constants for Irix.
...
From Rainer Orth.
From-SVN: r183652
2012-01-27 22:37:14 +00:00
Ian Lance Taylor
eb6a1fe097
libgo: Fix merge errors shown on Solaris.
...
From Rainer Orth.
From-SVN: r183651
2012-01-27 22:34:53 +00:00
Ian Lance Taylor
af92e38566
libgo: Update to weekly.2012-01-20.
...
From-SVN: r183540
2012-01-25 21:54:22 +00:00
Ian Lance Taylor
df1304ee03
libgo: Update to weekly.2012-01-15.
...
From-SVN: r183539
2012-01-25 20:56:26 +00:00
Ian Lance Taylor
b1b3aec1b1
compiler: Give an error if a variable is defined but not used.
...
From-SVN: r183458
2012-01-23 23:55:31 +00:00
Ian Lance Taylor
4cce1836bd
libgo: Only build iopl and ioperm on 386, amd64, alpha GNU/Linux.
...
From-SVN: r183171
2012-01-13 23:35:44 +00:00
Ian Lance Taylor
df4aa89a5e
libgo: Update to weekly.2011-12-22.
...
From-SVN: r183150
2012-01-13 05:11:45 +00:00
Ian Lance Taylor
9a0e3259f4
libgo: Update to weekly.2011-12-14.
...
From-SVN: r183118
2012-01-12 01:31:45 +00:00
Ian Lance Taylor
e44d7e3917
syscall: Don't define IPMreq in socket_irix.go.
...
From Rainer Orth.
From-SVN: r182549
2011-12-20 18:17:21 +00:00
Ian Lance Taylor
d48be5dfaf
libgo: Fix use of -D_GNU_SOURCE and friends when building libgo.
...
From-SVN: r182548
2011-12-20 18:14:30 +00:00
Ian Lance Taylor
a84bd8ba19
os: Fix fileInfoFromStat for Solaris.
...
From Rainer Orth.
From-SVN: r182402
2011-12-16 14:45:49 +00:00
Ian Lance Taylor
5f8090a435
syscall: Move Errno into its own file, for RTEMS.
...
From-SVN: r182356
2011-12-15 07:12:03 +00:00
Ian Lance Taylor
d536359059
libgo: Update to weekly.2011-12-06.
...
From-SVN: r182338
2011-12-14 15:41:54 +00:00
Ian Lance Taylor
9532fecfc5
runtime: Bump memory limit in gc_test.
...
From-SVN: r182332
2011-12-14 14:54:32 +00:00
Ian Lance Taylor
90a9ea010a
runtime: Change gc_test to test only newly allocated memory.
...
From-SVN: r182315
2011-12-13 23:15:36 +00:00
Ian Lance Taylor
de05aad683
syscall: Don't build wait status functions on RTEMS.
...
From-SVN: r182313
2011-12-13 22:07:25 +00:00
Ian Lance Taylor
9dadf3bf5e
libgo: Solaris compatibility patches.
...
From Rainer Orth.
From-SVN: r182296
2011-12-13 19:18:34 +00:00
Ian Lance Taylor
7b1c3dd9e6
libgo: Update to weekly.2011-12-02.
...
From-SVN: r182295
2011-12-13 19:16:27 +00:00
Ian Lance Taylor
ab61e9c4da
libgo: Update to weekly.2011-11-18.
...
From-SVN: r182266
2011-12-12 23:40:51 +00:00
Ian Lance Taylor
fe4bf59fb6
net/http: delete temporary files.
...
From-SVN: r182256
2011-12-12 18:45:08 +00:00
Ian Lance Taylor
9820d09c26
syslog: Fix name of C syslog function.
...
From Rainer Orth.
From-SVN: r182168
2011-12-09 16:46:44 +00:00
Ian Lance Taylor
c19bd76920
libgo: Add back tests of syscall time.
...
From-SVN: r182075
2011-12-07 01:55:49 +00:00
Ian Lance Taylor
598fd331d0
libgo: Remove debug/proc, os.Error.
...
From-SVN: r182074
2011-12-07 01:21:57 +00:00
Ian Lance Taylor
9c63abc9a1
libgo: Update to weekly 2011-11-09.
...
From-SVN: r182073
2011-12-07 01:11:29 +00:00
Ian Lance Taylor
6c025f46f0
libgo: Remove more os.Error cases.
...
From Rainer Orth.
From-SVN: r182060
2011-12-06 18:13:04 +00:00
Ian Lance Taylor
2fd401c8f1
libgo: Update to weekly.2011-11-02.
...
From-SVN: r181964
2011-12-03 02:17:34 +00:00
Ian Lance Taylor
506cf9aaea
libgo: Update to weekly.2011-11-01.
...
From-SVN: r181938
2011-12-02 19:34:41 +00:00
Ian Lance Taylor
b740cb6335
libgo: update to weekly.2011-10-25
...
Changes were mainly straightforward to merge.
From-SVN: r181824
2011-11-29 23:02:54 +00:00
Ian Lance Taylor
737087cbc8
runtime: Multiplex goroutines onto OS threads.
...
From-SVN: r181772
2011-11-28 05:45:49 +00:00
Ian Lance Taylor
f58abe3caa
syscall: Remove Linux system calls not available in older glibcs.
...
From-SVN: r180784
2011-11-02 17:53:20 +00:00
Ian Lance Taylor
c417a082ea
exp/terminal: Use tcgetattr/tcsetattr rather than ioctl.
...
From-SVN: r180780
2011-11-02 16:50:10 +00:00
Ian Lance Taylor
207c35fa9e
syscall: Portability code for epoll_event on GNU/Linux.
...
From-SVN: r180729
2011-11-01 04:12:01 +00:00
Ian Lance Taylor
7e547d7b31
syscall: Fix Errstr on systems without strerror_r.
...
From-SVN: r180714
2011-10-31 21:55:22 +00:00
Ian Lance Taylor
b59546bf65
syscall: Remove a couple more 3-parameter match's in mksyscall.awk.
...
From-SVN: r180712
2011-10-31 21:47:30 +00:00
Ian Lance Taylor
f6497cc6b5
syscalls: Rewrite awk script to work with nawk.
...
From-SVN: r180559
2011-10-27 04:56:46 +00:00
Ian Lance Taylor
d8f412571f
Update Go library to last weekly.
...
From-SVN: r180552
2011-10-26 23:57:58 +00:00
Ian Lance Taylor
04cc7d7c13
Solaris/Irix compatibility patches.
...
From-SVN: r180440
2011-10-25 18:06:32 +00:00
Ian Lance Taylor
f9367b7c70
Fix Solaris build.
...
From Rainer Orth.
From-SVN: r180439
2011-10-25 17:45:55 +00:00
Ian Lance Taylor
980889d814
Error if naked return when result variables are shadowed.
...
From-SVN: r180401
2011-10-24 19:44:18 +00:00
Ian Lance Taylor
703f56e5cb
Some minor fixes to the rewritten syscall library.
...
From-SVN: r180363
2011-10-24 04:57:08 +00:00
Ian Lance Taylor
de27caacfb
Implement new syscall package.
...
Calls to library functions now use entersyscall and
exitsyscall as appropriate. This is a first step toward
multiplexing goroutines onto threads.
From-SVN: r180345
2011-10-23 19:04:37 +00:00
Ian Lance Taylor
94bf1a5fb7
Update Go library to r60.3 release.
...
From-SVN: r180327
2011-10-22 16:19:46 +00:00
Ian Lance Taylor
9d49f4d0ab
Update Go library to release r60.1.
...
From-SVN: r179076
2011-09-22 04:47:32 +00:00
Ian Lance Taylor
270aae3307
Add html/testdata files accidentally omitted.
...
From-SVN: r179075
2011-09-22 04:02:11 +00:00
Ian Lance Taylor
adb0401dac
Update Go library to r60.
...
From-SVN: r178910
2011-09-16 15:47:21 +00:00
Ian Lance Taylor
d75dae75d7
json: fix test when rand returns 0.
...
Fixes using gccgo when optimizing, which changes the order of
calls to rand. Same patch proposed upstream.
From-SVN: r175927
2011-07-06 18:38:24 +00:00
Ian Lance Taylor
81a75bb28f
os: Correct Ctime_ns calculation.
...
From-SVN: r174501
2011-05-31 18:08:48 +00:00
Ian Lance Taylor
349ea8e855
re PR go/48502 (os_test.TestStartProcess FAILs on Solaris 2)
...
PR go/48502
libgo/os: Fix test to run on Solaris.
Patch brought over from upstream library.
From-SVN: r174167
2011-05-25 05:57:54 +00:00
Ian Lance Taylor
d14a6437c3
libgo: Solaris/Irix portability fixes.
...
From Rainer Orth.
From-SVN: r174144
2011-05-24 21:43:12 +00:00
Ian Lance Taylor
9ff56c9570
Update to current version of Go library.
...
From-SVN: r173931
2011-05-20 00:18:15 +00:00
Ian Lance Taylor
99e5f0cee1
libgo http/cgi: Pass down environment variables for irix and solaris.
...
From-SVN: r173181
2011-04-29 17:53:53 +00:00
Ian Lance Taylor
eb864be48f
libgo/time: Support Irix 6 location of zoneinfo files.
...
From-SVN: r172936
2011-04-25 19:42:33 +00:00
Ian Lance Taylor
9f3b1e6c60
libgo: Irix 6 patches.
...
From Rainer Orth.
From-SVN: r172935
2011-04-25 19:36:12 +00:00
Ian Lance Taylor
549dd8fe83
re PR go/48553 (fmt FAILs on 32-bit Solaris 2 with stack overflow)
...
PR go/48553
libgo: Bring over patch to lower recursion depth in fmt.
From-SVN: r172883
2011-04-23 00:09:23 +00:00
Ian Lance Taylor
90eadacd1e
re PR go/48503 (http/cgi FAILs if libgcc_s.so.1 isn't in default ld.so.1 search path)
...
PR go/48503
libgo: Bring over http/cgi environment inheritance patches.
From-SVN: r172864
2011-04-22 18:23:47 +00:00
Ian Lance Taylor
405ca10418
libgo: Update to current Go library.
...
From-SVN: r172106
2011-04-07 17:09:10 +00:00