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
Andreas Schwab
0b8ca8fefe
libgo: Link against libatomic.
...
./:
PR go/55201
* Makefile.def (all-target-libgo): Depend on all-target-libatomic.
* Makefile.in: Regenerate.
gcc/go:
PR go/55201
* gospec.c (LIBATOMIC): Define.
(LIBATOMIC_PROFILE): Define.
(lang_specific_driver): Add LIBATOMIC[_PROFILE] option.
gcc/testsuite:
* lib/go.exp (go_link_flags): Add libatomic location to flags and
ld_library_path.
From-SVN: r194581
2012-12-18 14:28:24 +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
35f33e3802
runtime: Delete from a nil map is now a no-op.
...
From-SVN: r194462
2012-12-12 23:29:10 +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
98fd70c20f
mksysinfo: Fix TIOCNOTTY and TIOCSCTTY for ARM.
...
From Matthias Klose.
From-SVN: r194118
2012-12-04 06:23:37 +00:00
Ian Lance Taylor
4731f878b7
runtime: Fix build failures with -D_FORTIFY_SOURCE=2.
...
From-SVN: r194116
2012-12-04 06:18:07 +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
95d89457e2
runtime: Fix use of __atomic_compare_exchange_n: not weak, consistent.
...
From-SVN: r193581
2012-11-17 00:52:22 +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
8273ed8077
compiler, runtime: Size of int is now 64 bits on x86_64.
...
From-SVN: r193255
2012-11-06 18:46:38 +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
855a44ee8f
compiler, runtime: Memcmp routine returns intgo.
...
From-SVN: r193253
2012-11-06 18:12:45 +00:00
Ian Lance Taylor
0be1a5898f
runtime: provide initcontext and fixcontext for NetBSD
...
From-SVN: r193173
2012-11-05 17:41:07 +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
556ea3915a
runtime: Fix reflect.Call support for 64-bit ints.
...
From-SVN: r193110
2012-11-02 23:17:05 +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
e212c7f56c
runtime/goc2c: Drop gc support, change int to intgo.
...
From-SVN: r193046
2012-10-31 20:49:53 +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
1a6c552d12
mksysinfo: Define SIGPOLL and SIGCLD if necessary.
...
From-SVN: r192775
2012-10-24 19:00:44 +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
e8028ecdd0
re PR go/54918 (libgo.so.0 is not runtime compatible between gcc-4.6.2 and gcc-4.7.x)
...
PR go/54918
libgo: Set library version number.
From-SVN: r192706
2012-10-23 05:01:24 +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
fb521d54f1
runtime: Fix __go_symbol_value val argument to backtrace_syminfo.
...
From-SVN: r192194
2012-10-08 04:29:47 +00:00
Ian Lance Taylor
686750d25d
runtime: Use argv[0] to get executable name for backtrace.
...
From-SVN: r192123
2012-10-05 13:44:40 +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
ddd06f5372
runtime: Better detection of memory allocation request overflow.
...
From-SVN: r191841
2012-09-28 21:25:20 +00:00
Ian Lance Taylor
92aecb446a
runtime: runtime.Caller should succeed even without debug info.
...
From-SVN: r191833
2012-09-28 17:42:53 +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
a2383b317b
runtime: Reject surrogate pairs in range over string.
...
From-SVN: r191638
2012-09-22 07:18:45 +00:00
Ian Lance Taylor
1e39ea0812
compiler, runtime: Reject surrogate pair converting int to string.
...
From-SVN: r191636
2012-09-22 06:51:59 +00:00
Ian Lance Taylor
2afc1e0b30
runtime: Return random number of hash of NaN.
...
From-SVN: r191632
2012-09-22 06:06:31 +00:00
Ian Lance Taylor
ee6440f8d8
libgo: Add no-dist and -Wno-portability to AM_INIT_AUTOMAKE.
...
From-SVN: r191575
2012-09-20 16:32:27 +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
e162e288ec
mksysinfo: Fix syscall.F_GETLK and friends for 32-bit x86.
...
From-SVN: r190554
2012-08-21 05:29:30 +00:00
Ian Lance Taylor
938ff79ae7
runtime: use sched_getaffinity for runtime.NumCPU() on Linux
...
Fixes Go issue 3921 for gccgo.
From Shenghou Ma.
From-SVN: r190282
2012-08-10 06:08:11 +00:00
Ian Lance Taylor
233115eaf5
runtime: support NumCPU() on more platforms Added support for Solaris, Irix, *BSD (including Darwin).
...
runtime: support NumCPU() on more platforms
Added support for Solaris, Irix, *BSD (including Darwin).
Still missing support for RTEMS.
Fixes issue 3698 in Go issue tracker.
From-SVN: r190197
2012-08-07 04:42:49 +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
0abcd2ef51
runtime: correct a logic error in hashmap growth.
...
The bug prevented maps to grow properly to sizes
larger than 1.3 million.
From Rémy Oudompheng.
From-SVN: r189766
2012-07-23 03:57:28 +00:00
Ian Lance Taylor
5ede5aa54e
mksysinfo.sh: Fix handling of glibc 2.16 bits/resource.h.
...
From Jakub Jelinek.
From-SVN: r189372
2012-07-09 11:13:49 +00:00
Ian Lance Taylor
25bab91e01
gotest: Only look in data segment for ppc64, not ppc*.
...
From Andreas Schwab.
From-SVN: r188944
2012-06-25 16:26:27 +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
d71ec0cdd6
libgo: Make the subdirectory in the CHECK target.
...
From Andreas Schwab.
From-SVN: r188547
2012-06-14 04:47:45 +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
f3dbbfcedf
runtime: Fix printing of names in stack dumps.
...
From-SVN: r188297
2012-06-07 06:34:52 +00:00
Ian Lance Taylor
0d7afaa749
runtime: Use dl_iterate_phdr to get TLS size.
...
From-SVN: r188290
2012-06-07 00:55:20 +00:00
Ian Lance Taylor
9bb40b3b23
runtime: Comment out code adding TLS size to stack size.
...
From-SVN: r188238
2012-06-05 13:12:13 +00:00
Ian Lance Taylor
44072af5b0
runtime: Fix call to _dl_get_tls_static_info for i386.
...
From-SVN: r188230
2012-06-05 06:19:19 +00:00
Ian Lance Taylor
70b9f51628
mksysinfo: Fix for recent change to glibc <sys/resource.h>.
...
From-SVN: r188228
2012-06-05 05:32:54 +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
d4dc840de4
runtime: More efficient implementation of trampolines.
...
From-SVN: r187899
2012-05-25 21:51:39 +00:00
Ian Lance Taylor
e5159e6070
runtime: Fix cast error in print.c on 32-bit systems.
...
From-SVN: r187889
2012-05-25 18:22:01 +00:00
Ian Lance Taylor
bac564c53e
runtime: Make runtime.Stack actually work.
...
From-SVN: r187854
2012-05-24 21:07:18 +00:00
Ian Lance Taylor
9e65cec2fd
runtime: Correct definition of __go_file_line to match declaration.
...
From Rainer Orth.
From-SVN: r187851
2012-05-24 20:47:09 +00:00
Ian Lance Taylor
41f9e67527
runtime: Copy runtime_printf from other Go library.
...
From-SVN: r187850
2012-05-24 20:45:37 +00:00
Ian Lance Taylor
86ba147f54
runtime: Copy runtime_printf from other Go library.
...
From-SVN: r187848
2012-05-24 20:44:34 +00:00
Ian Lance Taylor
4579805199
runtime: Tweak runtime.Callers for Go 1 compatibility.
...
From-SVN: r187781
2012-05-22 21:52:56 +00:00
Ian Lance Taylor
ef1f343258
runtime: Use getcontext, not setjmp, to save regs for GC.
...
From-SVN: r187777
2012-05-22 16:57:23 +00:00
Ian Lance Taylor
d7b8f2b781
runtime: Print stack trace on panic or signal.
...
From-SVN: r187623
2012-05-17 05:30:25 +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
fe725c000b
runtime: Make all variables used across getcontext volatile.
...
From-SVN: r187549
2012-05-15 18:56:48 +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
324612b351
re PR go/52358 (math FAILs on Solaris 8 and 9)
...
PR go/52358
configure, runtime: Provide i386 long double math functions if needed.
From-SVN: r186915
2012-04-27 16:38:11 +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
f07bb470ae
runtime: Correct syscall.Setenv for systems that don't have setenv.
...
From-SVN: r186911
2012-04-27 16:28:21 +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
bc9201591d
gotest: Remove race in use of ../testdata.
...
From-SVN: r186781
2012-04-24 20:13:12 +00:00
Ian Lance Taylor
1a985a5642
mksysinfo: Only define PathMax if PATH_MAX is defined.
...
From-SVN: r186778
2012-04-24 19:12:26 +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
6eea77093d
libgo: Make sure log/syslog subdirectory exists before using it.
...
From-SVN: r186715
2012-04-23 17:02:54 +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
df32732fa8
mksysinfo: Define more structs.
...
From-SVN: r186683
2012-04-22 19:26:01 +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
63d1e46df0
compiler, runtime: Add explicit checks for zero and overflow division.
...
* lang.opt: Add -fgo-check-divide-zero and
-fgo-check-divide-overflow.
* gccgo.texi (Invoking gccgo): Document new options.
From-SVN: r186637
2012-04-20 19:21:39 +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
8a72417502
runtime: Ignore stack sizes when deciding when to GC.
...
Also allocate heap bitmaps bit in page size units and clear
context when putting G structures on free list.
From-SVN: r186607
2012-04-20 04:58:26 +00:00
Ian Lance Taylor
8198dc134f
gotest: Don't get confused by data tables named Test on PPC.
...
From-SVN: r186605
2012-04-20 04:49:19 +00:00
Ian Lance Taylor
b059fba469
syscall: Add more constants.
...
From-SVN: r186144
2012-04-04 18:50:09 +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
8db6380aa7
mksysinfo.sh: Add some more networking constants.
...
From-SVN: r186114
2012-04-03 19:42:24 +00:00
Ian Lance Taylor
572a2f6886
gotest: Fix finding functions on PPC.
...
From-SVN: r186112
2012-04-03 18:26:57 +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
199ebde370
mksysinfo: Fix use of _in6_addr in _zone_net_addr_t.
...
From Rainer Orth.
From-SVN: r185938
2012-03-28 23:19:06 +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
42cd874911
re PR go/52557 (Timex undefined on arm-linux-gnueabi)
...
PR go/52557
mksysinfo: Fix handling of timex for ARM GNU/Linux.
From-SVN: r185354
2012-03-13 20:56:23 +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
c3f87aa909
runtime: Implement runtime.Callers.
...
From-SVN: r184944
2012-03-05 17:07:37 +00:00
Ian Lance Taylor
5e60b5708e
re PR go/52342 (64-bit go.test/test/chan/doubleselect.go times out on Solaris/SPARC)
...
PR go/52342
runtime: Better big-endian identity hash function.
From-SVN: r184914
2012-03-05 06:39:08 +00:00
Ian Lance Taylor
dbe1e4a5a6
libgo: Fix Solaris ustat.h test.
...
From-SVN: r184913
2012-03-05 06:04:14 +00:00
Ian Lance Taylor
2aeaf0fb26
libgo: Try to fix use of <ustat.h> for Solaris and older GNU/Linux.
...
From-SVN: r184828
2012-03-02 21:07:52 +00:00
Ian Lance Taylor
cd33b08fbd
runtime: Add type casts to fix Solaris build.
...
From Rainer Orth.
From-SVN: r184823
2012-03-02 20:48:21 +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
116b061e74
mksysinfo: Define MADV_ constants for madvise.
...
From-SVN: r184752
2012-03-01 17:22:29 +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
5c46e29317
runtime: Call exit rather than _exit.
...
This fixes --coverage and perhaps other things as well.
From-SVN: r184642
2012-02-28 20:57:15 +00:00
Ian Lance Taylor
2ef7cdff1e
runtime: Fix typo in go-nosys.c.
...
From Rainer Orth.
From-SVN: r184569
2012-02-25 02:11:29 +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
061793a4cc
re PR go/52266 (syntax error in libgo/configure)
...
PR go/52266
libgo: Remove accidental AC_INCLUDES_DEFAULT from configure script.
From-SVN: r184345
2012-02-17 15:44:29 +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
ca59d219fe
runtime: Support broken makecontext on Solaris 8/9.
...
From Rainer Orth.
From-SVN: r184289
2012-02-15 22:29:35 +00:00
Ian Lance Taylor
35ea42ebad
re PR go/48407 (libgo/configure --without-libffi doesn't work)
...
PR go/48407
runtime: Permit building libgo without libffi.
From-SVN: r184234
2012-02-14 20:47:35 +00:00
Ian Lance Taylor
317ea7c0f4
re PR go/48410 (weird installation dir)
...
PR go/48410
libgo: Don't put .gox files in version-specific directory.
From-SVN: r184223
2012-02-14 19:40:09 +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
95787705db
re PR go/48501 (64bit-out.go, select5-out.go, tmp.go compilation times out)
...
PR go/48501
runtime: Fix identity hash function for big-endian systems.
From-SVN: r184218
2012-02-14 18:02:09 +00:00
Ian Lance Taylor
4ea063cacb
re PR go/50654 (Many Go tests fail on emutls targets)
...
PR go/50654
runtime: Reload m and g if necessary after getcontext returns.
From-SVN: r184188
2012-02-14 00:38:07 +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
12e3c39614
re PR go/52084 (go tests fail to link on powerpc-linux-gnu (undefined reference to __sync_add_and_fetch_8))
...
PR go/52084
libgo: Provide more __sync functions if required.
From-SVN: r184138
2012-02-12 06:23:08 +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
83a5c149a6
runtime: Handle FFI promoting result types.
...
From-SVN: r184123
2012-02-11 07:08:13 +00:00
Ian Lance Taylor
96431d5772
runtime: Tweak __go_can_recover for SPARC.
...
From-SVN: r184117
2012-02-11 00:15:54 +00:00
Ian Lance Taylor
41da64ed3a
runtime: Fix chan code for big-endian strict-alignment systems
...
From-SVN: r184115
2012-02-11 00:03:10 +00:00
Ian Lance Taylor
d3229873ae
runtime: For g0 set stack_size to 0 when not -fsplit-stack.
...
From-SVN: r184099
2012-02-10 15:55:37 +00:00
Ian Lance Taylor
c91e24907b
runtime: Save all registers on stack for GC scan.
...
From-SVN: r184098
2012-02-10 15:52:37 +00:00
Ian Lance Taylor
e6c5817dca
libgo/configure: Fixes for Solaris 8 and cross-compilation.
...
From Rainer Orth.
From-SVN: r184092
2012-02-10 14:07:44 +00:00
Ian Lance Taylor
16d62226d1
runtime: Use __builtin_{inf,nan} rather than INFINITY/NAN.
...
From-SVN: r184080
2012-02-10 00:40:27 +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
d2b480bc96
runtime: Add matherr function when appropriate.
...
From-SVN: r184024
2012-02-08 22:35:30 +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
9d465faf92
math: Compile with -mfancy-math-387 -funsafe-optimizations on x86.
...
From-SVN: r184015
2012-02-08 19:38:17 +00:00
Ian Lance Taylor
047cff816d
compiler, runtime: Check make int64 args for overflow.
...
From-SVN: r183994
2012-02-08 06:18:41 +00:00
Ian Lance Taylor
7f57843fbe
runtime: System-specific hack fix for x86_64 Solaris 10.
...
Fixes problem in which setcontext changes all thread-specific
information.
From-SVN: r183993
2012-02-08 05:30:12 +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
cf54a93ca9
mksysinfo: Fix type of last field of Cmsghdr.
...
From-SVN: r183860
2012-02-03 01:06:19 +00:00
Ian Lance Taylor
1c69e5e28a
runtime: Correct ENOSYS functions.
...
From-SVN: r183852
2012-02-02 22:58:54 +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
e02ed81e1b
libgo: Build stubs for some syscall functions not on older systems.
...
From-SVN: r183577
2012-01-26 20:24:01 +00:00
Ian Lance Taylor
2887732181
libgo/mksysinfo: Always define IPV6_TCLASS.
...
From-SVN: r183552
2012-01-26 05:43:42 +00:00
Ian Lance Taylor
70a3ffe8c7
libgo/mksysinfo: Correct typo.
...
From-SVN: r183549
2012-01-26 01:08:20 +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
98dfd7ff16
runtime: Make builtin print exactly match gc builtin print.
...
From-SVN: r183378
2012-01-21 21:58:09 +00:00
Ian Lance Taylor
1efa38d1a7
libgo: Solaris and Irix compatibility patches.
...
From Rainer Orth.
From-SVN: r183246
2012-01-17 14:18:39 +00:00
Ian Lance Taylor
eec3e72c11
mksysinfo: Fix Alpha GNU/Linux compatibility patch.
...
From Uros Bizjak.
From-SVN: r183245
2012-01-17 14:13:33 +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
dd1628807a
mksysinfo: Pick up TIOCGWINSZ even if expression is too complex.
...
From-SVN: r183169
2012-01-13 23:17:20 +00:00
Ian Lance Taylor
daeae9f196
mksysinfo: Make sure EPOLL_CLOEXEC is defined.
...
From-SVN: r183168
2012-01-13 23:03:02 +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
f9f9698753
compiler, runtime: Implement struct and array comparisons.
...
From-SVN: r182971
2012-01-06 21:47:49 +00:00
Ian Lance Taylor
bbe847a162
libgo: Use -std=gnu99 on Solaris 10.
...
From Rainer Orth.
From-SVN: r182637
2011-12-22 20:39:29 +00:00
Ian Lance Taylor
a05fe19071
runtime: Fix missing USING_SPLIT_STACK ifdef.
...
From Uros Bizjak.
From-SVN: r182633
2011-12-22 19:07:12 +00:00
Ian Lance Taylor
a6dcb7d465
runtime: Catch signals on altstack, disable splitstack signal blocking.
...
From-SVN: r182607
2011-12-21 22:24:47 +00:00
Ian Lance Taylor
d8fa39bfc8
libgo/runtime: Don't define _GNU_SOURCE in source code.
...
From-SVN: r182550
2011-12-20 18:49:40 +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
c915f63f73
mksysinfo.sh: Ensure that IPV6 constants and types are defined.
...
From-SVN: r182314
2011-12-13 22:25:30 +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
03eee7f75c
runtime: RTEMS build fixes.
...
From Joel Sherrill.
From-SVN: r182309
2011-12-13 21:59:26 +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
ec2c72551e
runtime: make print() built-in write to stderr.
...
Fixes issue 2294.
From-SVN: r182167
2011-12-09 16:42:40 +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
18c700754e
libgo: Generate dependencies automatically.
...
From-SVN: r181955
2011-12-03 00:16:12 +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
bfa9b58039
merge.sh: Add files, add revision option, handle middle dot.
...
From-SVN: r181937
2011-12-02 19:27:25 +00:00
Ian Lance Taylor
f4c016e605
runtime: Remove temporary runtime_cond_wait function.
...
From-SVN: r181897
2011-12-01 23:50:48 +00:00
Ian Lance Taylor
17dcf07581
runtime: Rename sigignore to sig_ignore for Solaris.
...
From-SVN: r181885
2011-12-01 17:08:12 +00:00
Ian Lance Taylor
3e68d6d75a
compiler/runtime: Copy channel implementation from master library.
...
From-SVN: r181874
2011-12-01 08:06:16 +00:00
Ian Lance Taylor
b87974949f
runtime: Copy runtime_panicstring from master library.
...
From-SVN: r181830
2011-11-30 00:21:52 +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
08ee945e0b
runtime: If no sem_timedwait, use pthread_cond_timedwait.
...
From-SVN: r181821
2011-11-29 21:58:48 +00:00
Ian Lance Taylor
421ecf992e
runtime: If O_CLOEXEC is not defined, define it as 0.
...
From-SVN: r181814
2011-11-29 19:26:00 +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
48e7d50e9f
runtime: New lock/note implementation.
...
From-SVN: r181633
2011-11-22 20:24:44 +00:00
Ian Lance Taylor
5c262e9444
runtime: Use some of 6g runtime.c for easier merging.
...
From-SVN: r181368
2011-11-14 22:26:45 +00:00