Commit Graph

333 Commits

Author SHA1 Message Date
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
Ian Lance Taylor 34277c5228 Introduce G structure and thread-local global g.
From-SVN: r181301
2011-11-11 21:02:48 +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