Commit Graph

195 Commits

Author SHA1 Message Date
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
Ian Lance Taylor e59b917109 libgo: Support for alpha.
From Uros Bizjak.

From-SVN: r171860
2011-04-01 23:02:16 +00:00
Ian Lance Taylor 654d2ec080 re PR go/47515 (Issues porting libgo to IRIX 6.5)
PR go/47515
libgo: Add Irix support.

From Rainer Orth.

From-SVN: r171806
2011-03-31 23:55:21 +00:00
Ian Lance Taylor 4bce572db2 re PR go/48242 (gotest needs timeout mechanism)
PR go/48242
libgo: Add timeout for tests.

From-SVN: r171803
2011-03-31 22:36:10 +00:00
Ian Lance Taylor c9103dde96 libgo: Remove unnecessary EINTR checks.
We always use SA_RESTART with signals, so
read/write/etc. should never return EINTR.

From-SVN: r171802
2011-03-31 22:19:54 +00:00
Ian Lance Taylor f72f416913 Update to current Go library.
From-SVN: r171732
2011-03-30 15:33:16 +00:00
Ian Lance Taylor efbb12ae8a re PR go/48312 (http, rpc, websocket tests hang on Solaris 2/x86)
PR go/48312
Fix fd_select.go for changes in FD handling.

We have to wake up the goroutine waiting in select each time
we change the set of descriptors we are waiting for, unlike
epoll.

From-SVN: r171623
2011-03-28 18:35:53 +00:00
Ian Lance Taylor 80ec23acbd Rename net/fd_rtems.go to net/fd_select.go.
From-SVN: r171621
2011-03-28 18:30:21 +00:00
Ian Lance Taylor 8039ca76a5 Update to current version of Go library.
From-SVN: r171427
2011-03-24 23:46:17 +00:00
Ian Lance Taylor 4573f2cb64 Missed test data in libgo update.
From-SVN: r171362
2011-03-23 21:09:55 +00:00
Ian Lance Taylor 0d3e7f5d44 Somehow missed this addition when updating the library.
From-SVN: r171361
2011-03-23 21:04:39 +00:00
Ian Lance Taylor 5133f00ef8 Update to current version of Go library (revision 94d654be2064).
From-SVN: r171076
2011-03-16 23:05:44 +00:00
Ian Lance Taylor bef18456b7 Solaris specific syslog support.
From-SVN: r170837
2011-03-09 22:13:09 +00:00
Ian Lance Taylor a33d93c3df re PR go/48019 (Need to handle EINTR in libgo testsuite)
PR go/48019
Ignore EINTR in socket connect.

From-SVN: r170811
2011-03-09 06:57:04 +00:00
Ian Lance Taylor 26bc022b8f Solaris libgo testsuite fixes.
From-SVN: r170762
2011-03-07 23:37:12 +00:00
Ian Lance Taylor a3dbf764ae Support libgo on Solaris.
From Rainer Orth.

From-SVN: r170355
2011-02-21 04:17:20 +00:00
Ian Lance Taylor 43e4710147 time: Look for zoneinfo files in Solaris directory.
From-SVN: r169380
2011-01-29 00:07:56 +00:00
Ian Lance Taylor 51677e0338 Add Solaris version of os.Hostname.
From-SVN: r169350
2011-01-28 01:44:55 +00:00
Ian Lance Taylor b91b9ad43e When closing a file, call closedir if we called opendir.
Fixes Go issue 1448.

From-SVN: r169344
2011-01-28 00:01:08 +00:00
Ian Lance Taylor ffbdd13975 netchan: Avoid race condition in test.
Copied from master library.

From-SVN: r169311
2011-01-26 23:53:19 +00:00
Ian Lance Taylor 753e7b85bd net: Check for EINTR.
From-SVN: r169309
2011-01-26 22:37:13 +00:00
Ian Lance Taylor b800200de6 Update some net tests from master sources.
From-SVN: r169298
2011-01-26 19:51:26 +00:00
Ian Lance Taylor ca11cc98b9 Recognize m68k, mips, PPC. Don't require arch syscall files to exist.
From-SVN: r169185
2011-01-24 23:42:22 +00:00
Ian Lance Taylor 22afca6694 Fix race condition in test case.
Brought over from master repository.

From-SVN: r169106
2011-01-21 22:01:02 +00:00
Ian Lance Taylor ff5f50c52c Remove the types float and complex.
Update to current version of Go library.

Update testsuite for removed types.

	* go-lang.c (go_langhook_init): Omit float_type_size when calling
	go_create_gogo.
	* go-c.h: Update declaration of go_create_gogo.

From-SVN: r169098
2011-01-21 18:19:03 +00:00
Ian Lance Taylor 545d1aa13c Use GOARCH value of sparc64 rather than sparcv9.
From-SVN: r168740
2011-01-13 06:18:45 +00:00
Ian Lance Taylor f2ee78b861 Preliminary framework for Solaris support.
Partly from Rainer Orth.

From-SVN: r168697
2011-01-12 06:34:08 +00:00
Ian Lance Taylor c3b5b97b64 Simplify libgo Makefile conditionals.
From-SVN: r168696
2011-01-12 02:03:46 +00:00
Ian Lance Taylor 785e11cc21 Update to current master source.
From-SVN: r167972
2010-12-17 06:37:06 +00:00
Ian Lance Taylor 2bc4b68293 Don't split stack in bytes.IndexByte.
From-SVN: r167971
2010-12-17 06:36:10 +00:00
Ian Lance Taylor 73d520afa5 Fix test by copying from master.
From-SVN: r167575
2010-12-08 00:14:10 +00:00
Ian Lance Taylor 7a9389330e Add Go frontend, libgo library, and Go testsuite.
gcc/:
	* gcc.c (default_compilers): Add entry for ".go".
	* common.opt: Add -static-libgo as a driver option.
	* doc/install.texi (Configuration): Mention libgo as an option for
	--enable-shared.  Mention go as an option for --enable-languages.
	* doc/invoke.texi (Overall Options): Mention .go as a file name
	suffix.  Mention go as a -x option.
	* doc/frontends.texi (G++ and GCC): Mention Go as a supported
	language.
	* doc/sourcebuild.texi (Top Level): Mention libgo.
	* doc/standards.texi (Standards): Add section on Go language.
	Move references for other languages into their own section.
	* doc/contrib.texi (Contributors): Mention that I contributed the
	Go frontend.
gcc/testsuite/:
	* lib/go.exp: New file.
	* lib/go-dg.exp: New file.
	* lib/go-torture.exp: New file.
	* lib/target-supports.exp (check_compile): Match // Go.

From-SVN: r167407
2010-12-03 04:34:57 +00:00