Commit Graph

192 Commits

Author SHA1 Message Date
Ian Lance Taylor
4bfc521c9e Send on a closed channel panics.
Calling close on a closed channel panics.
Don't limit number of receives on a closed channel.

From-SVN: r171364
2011-03-23 21:13:57 +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
8046b66539 libgo: Add GOTESTFLAGS variable used when testing.
From Rainer Orth.

From-SVN: r171272
2011-03-21 22:01:53 +00:00
Ian Lance Taylor
7b5da51d4f Don't catch LIBPROF in Go code.
From-SVN: r171077
2011-03-16 23:18:40 +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
d2822509df Don't use intermediate .la files building libgo.
From-SVN: r170862
2011-03-11 01:00:15 +00:00
Ian Lance Taylor
25d5c0b020 re PR go/48020 (libgo flag test FAILs on Solaris 2)
PR go/48020
gotest: Pass -v to nm to avoid sorting on Solaris.

From-SVN: r170842
2011-03-10 00:51:14 +00:00
Ian Lance Taylor
bef18456b7 Solaris specific syslog support.
From-SVN: r170837
2011-03-09 22:13:09 +00:00
Ian Lance Taylor
0ad3134110 libgo/README.gcc: Mention GCCGO_RUN_ALL_TESTS.
From-SVN: r170828
2011-03-09 19:17:56 +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
7b5e671326 re PR go/48019 (Need to handle EINTR in libgo testsuite)
PR go/48019
Ignore EINTR in runtime_lock_full.

From-SVN: r170810
2011-03-09 06:31:37 +00:00
Ian Lance Taylor
8897c836a8 re PR go/48017 (Network tests should fail gracefully without network connectivity)
PR go/48017
Only run net tests if GCCGO_RUN_ALL_TESTS is set in environment.

From-SVN: r170809
2011-03-09 05:57:10 +00:00
Ian Lance Taylor
a601335076 re PR go/47910 (typo in __go_map_next_prime)
PR go/47910
Correct search for next prime in libgo map code.

From-SVN: r170808
2011-03-09 05:32:36 +00:00
Ian Lance Taylor
26bc022b8f Solaris libgo testsuite fixes.
From-SVN: r170762
2011-03-07 23:37:12 +00:00
Ian Lance Taylor
ec9dc45b75 Use _nuname on 32-bit Solaris 2/x86.
From-SVN: r170761
2011-03-07 22:39:45 +00:00
Ian Lance Taylor
d8b878dc29 Permit garbage collection on any compiler generated memory allocation.
From-SVN: r170760
2011-03-07 22:19:50 +00:00
Ian Lance Taylor
691a924baf Avoid race condition manipulating heap when goroutine exits.
From-SVN: r170758
2011-03-07 21:56:40 +00:00
Ian Lance Taylor
7b67393dff Permit comparing non-empty interfaces with empty interfaces.
From-SVN: r170385
2011-02-22 02:52:55 +00:00
Ian Lance Taylor
a3dbf764ae Support libgo on Solaris.
From Rainer Orth.

From-SVN: r170355
2011-02-21 04:17:20 +00:00
Ralf Wildenhues
029c8f3e77 Remove freebsd1 from libtool.m4 macros and config.rpath.
/:
	Import from Libtool and gnulib:

	2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>

	Prepare for supporting FreeBSD 10.
	* config.rpath: Remove handling of freebsd1* which soon would
	match FreeBSD 10.0.

	2011-01-20  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)

	Remove support for FreeBSD 1.x.
	* libtool.m4 (_LT_LINKER_SHLIBS)
	(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
	soon would incorrectly match FreeBSD 10.0.

boehm-gc/:
	* configure: Regenerate.

gcc/:
	* configure: Regenerate.

libffi/:
	* configure: Regenerate.

libgfortran/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* configure: Likewise.

libgo/:
	* config/libtool.m4: (_LT_LINKER_SHLIBS)
	(_LT_SYS_DYNAMIC_LINKER): Remove handling of freebsd1* which
	soon would incorrectly match FreeBSD 10.0.
	* configure: Regenerate.

libgomp/:
	* configure: Regenerate.

libjava/:
	* configure: Regenerate.
	* shlibpath.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling
	of freebsd1* which soon would incorrectly match FreeBSD 10.0.

libjava/classpath/:
	* config.rpath, ltcf-c.sh, ltcf-gcj.sh, ltconfig: Remove
	handling of freebsd1* which soon would match FreeBSD 10.0.
	* configure: Regenerate.

libjava/libltdl/:
	* acinclude.m4 (AC_LIBTOOL_PROG_LD_SHLIBS)
	(AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove handling
	of freebsd1* which soon would incorrectly match FreeBSD 10.0.
	* configure: Regenerate.

libmudflap/:
	* configure: Regenerate.

libobjc/:
	* configure: Regenerate.

libquadmath/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* configure: Likewise.

libssp/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Likewise.
	* configure: Likewise.

libstdc++-v3/:
	* configure: Regenerate.

lto-plugin/:
	* Makefile.in: Regenerate.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.

zlib/:
	* configure: Regenerate.

From-SVN: r170106
2011-02-13 11:45:53 +00:00
Ian Lance Taylor
4a299bf4ff libgo/configure.ac: Use AC_COMPILE_IFELSE, not AC_PREPROC_IFELSE.
From-SVN: r170030
2011-02-10 23:43:42 +00:00
Ian Lance Taylor
ee6bde766a libgo: Pass compiler flags to mksysinfo.sh.
From-SVN: r169848
2011-02-05 02:00:32 +00:00
Ian Lance Taylor
084996f1d1 Implement __sync_fetch_and_add_4 if necessary.
From-SVN: r169820
2011-02-04 00:49:47 +00:00
Ian Lance Taylor
0c521d1875 Check whether we are using setjmp/longjmp exceptions.
From-SVN: r169777
2011-02-03 01:53:36 +00:00
Ian Lance Taylor
932e32375a libgo: Apply upstream libtool patch.
http://gcc.gnu.org/ml/gcc-patches/2011-02/msg00008.html

From-SVN: r169766
2011-02-02 18:41:27 +00:00
Ian Lance Taylor
d46efcfe97 libgo.exp: Set tmpdir.
From-SVN: r169529
2011-02-02 15:50:16 +00:00
Ian Lance Taylor
a7c48c8ec5 Test whether libgcc or kernel defines __sync_bool_compare_and_swap_4.
From-SVN: r169504
2011-02-01 21:23:07 +00:00
Ian Lance Taylor
e499b5eef4 Add __sync_bool_compare_and_swap_4 for targets which don't have it.
From-SVN: r169502
2011-02-01 20:15:13 +00:00
Ian Lance Taylor
7467fc4bcd libgo/Makefile.am: Simplify build to avoid unnecessary .a files.
From-SVN: r169456
2011-01-31 23:43:49 +00:00
Ian Lance Taylor
ca7174cf5c re PR go/47515 (Issues porting libgo to IRIX 6.5)
PR go/47515
runtime: If no MAP_ANON, use /dev/zero.

From-SVN: r169388
2011-01-29 07:16: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
c9610865d0 mksysinfo.sh: Use -std=gnu99.
From-SVN: r169379
2011-01-28 23:54:56 +00:00
Ian Lance Taylor
46adbf0c6b mksysinfo.sh: Fix Solaris specific define.
From-SVN: r169376
2011-01-28 23:33:28 +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
b47750fee3 mksysinfo: Add #defines for Solaris.
From-SVN: r169345
2011-01-28 00:11:23 +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
75d0b39856 mksysinfo: Always define IPV6_V6ONLY.
From-SVN: r169343
2011-01-27 23:28:09 +00:00
Ian Lance Taylor
24d6250f98 Don't force rebuild if mksysinfo.sh does not change sysinfo.go.
From-SVN: r169342
2011-01-27 23:25:31 +00:00
Ian Lance Taylor
afc9550b35 Add missing dependency in libgo/Makefile.am.
From-SVN: r169341
2011-01-27 22:49:34 +00:00
Ian Lance Taylor
dc75b81734 Fix typo in socket_bsd.go.
From-SVN: r169313
2011-01-27 00:08:02 +00:00
Ian Lance Taylor
83f2ff2ad3 mksysinfo.sh: #include <sys/uio.h>.
From-SVN: r169312
2011-01-27 00:03:51 +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
0544ed0caa re PR go/47452 (Bootstrap fails in libgo (argument has incompatible type))
PR go/47452
Pick up local .gox files for specially built packages.

From-SVN: r169192
2011-01-25 05:45:21 +00:00
Ian Lance Taylor
d62d06b6ff libgo: Fix typo in syscalls/socket_bsd.go.
From-SVN: r169190
2011-01-25 00:40:00 +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
71c67403a2 syscalls/sleep_rtems.go: Add missing package clause.
From-SVN: r169183
2011-01-24 22:44:52 +00:00
Ian Lance Taylor
47ba04ab54 Avoid crash when M structure free just before thread exit.
From-SVN: r169121
2011-01-22 02:59:24 +00:00
Ian Lance Taylor
039868965d libgo: Adjust deadlock avoidance.
From-SVN: r169120
2011-01-22 02:15:01 +00:00
Ian Lance Taylor
2e8e58aa8a syscalls: Add SPARC RTEMS specific file.
From-SVN: r169119
2011-01-22 02:01:38 +00:00
Ian Lance Taylor
7e33c4aadc Avoid deadlock creating new thread.
From-SVN: r169114
2011-01-22 00:12:00 +00:00
Ian Lance Taylor
cf606aeb06 Avoid deadlock when finalizer lock is held during gc.
From-SVN: r169112
2011-01-21 23:33:52 +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
15049fa5af libgo/Makefile.am: Fix typo naming socket_bsd.go.
From-SVN: r169037
2011-01-19 23:03:33 +00:00
Ian Lance Taylor
ed4ebabc90 libgo: Check whether we need -lrt for sched_yield.
From Rainer Orth.

From-SVN: r168816
2011-01-14 19:18:38 +00:00
Ian Lance Taylor
3ad3790dc0 libgo: Use $(SHELL) to invoke gotest.
From Rainer Orth.

From-SVN: r168815
2011-01-14 19:13:24 +00:00
Ian Lance Taylor
2ab1753476 libgo/syscalls: Finish Solaris code.
Mostly from Rainer Orth.

From-SVN: r168814
2011-01-14 19:10:02 +00:00
Ian Lance Taylor
8c954c529d libgo/Makefile.am: Correct typos in Solaris support.
From Rainer Orth.

From-SVN: r168804
2011-01-14 18:46:42 +00:00
Ian Lance Taylor
8610843513 mksysinfo: Define _pad128_t and _upad128_t if commented out.
From Rainer Orth.

From-SVN: r168800
2011-01-14 18:41:31 +00:00
Ian Lance Taylor
389295b785 Don't exit mksysinfo.sh if there is no _user_regs_struct.
From-SVN: r168764
2011-01-13 20:23:19 +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
5fd58e56f0 Add some Solaris support to mksysinfo.sh.
From Rainer Orth.

From-SVN: r168739
2011-01-13 05:42:40 +00:00
Ian Lance Taylor
cff0c39da1 Clean up syscalls, add some Solaris support.
From-SVN: r168738
2011-01-13 05:17:52 +00:00
Ian Lance Taylor
c7aca2ff21 Use correct nm and nm options.
From-SVN: r168730
2011-01-12 23:06:13 +00:00
Ian Lance Taylor
86d013a7f0 Make using DejaGNU work for libgo testing on a native system.
From-SVN: r168729
2011-01-12 21:56:10 +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
21822c903b Change libgo testsuite format to be more like DejaGNU.
From-SVN: r168685
2011-01-11 23:37:05 +00:00
Ian Lance Taylor
2e7e3e1de1 Add file missed in previous commit.
From-SVN: r168684
2011-01-11 23:26:03 +00:00
Ian Lance Taylor
9a270ad3c0 Add cgo support routines corresponding to the ones in 6g/8g.
From-SVN: r168679
2011-01-11 18:59:30 +00:00
Ian Lance Taylor
cd656e2360 re PR go/47176 (libgo doesn't compile if libunicode is installed)
PR go/47176
byte/libbytes.a depends on unicode.gox.

From-SVN: r168512
2011-01-05 14:12:37 +00:00
Ian Lance Taylor
9a00604e53 re PR go/46959 (M68K Not Supported by Go)
PR go/46959
	PR go/46960
	PR go/46961
	PR go/46962
	PR go/46963
	PR go/46964
Use __builtin_unwind_init rather than the SAVE_REGS hack.

From-SVN: r168500
2011-01-05 00:24:15 +00:00
Ian Lance Taylor
a3bc69c529 re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))
PR go/46958
	PR go/46965
Call __builtin_return_address with 0 rather than 1.

From-SVN: r168495
2011-01-05 00:07:59 +00:00
Ian Lance Taylor
a4ad1c7a08 Rework locking code to split stack much less.
From-SVN: r167973
2010-12-17 06:42:06 +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
b5343013fe Avoid always splitting the stack when calling append and copy.
From-SVN: r167970
2010-12-17 06:33:41 +00:00
Ian Lance Taylor
646abff51d Better error message if malloc gets a SIGSEGV.
From-SVN: r167785
2010-12-14 05:19:51 +00:00
Ian Lance Taylor
cac7efc966 Release cache while holding thread lock.
Don't bother to hold thread lock while allocating cache.

From-SVN: r167784
2010-12-14 05:16:18 +00:00
Ian Lance Taylor
d3de3f21fd re PR bootstrap/46812 (Linux libgo compilation fails when a "libnet" is already installed)
PR bootstrap/46812
Add explicit -I . when building libgo.

From-SVN: r167668
2010-12-09 22:17:25 +00:00
Ian Lance Taylor
505b439a06 re PR other/46840 (libgo should link against libm)
PR other/46840
Link libgo against -lm.

From-SVN: r167582
2010-12-08 02:08:59 +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
ac819ba59a re PR other/46789 (go configuration with --prefix=/usr pollutes the /usr/lib namespace)
PR other/46789
	PR bootstrap/46812
	* go-lang.c (go_char_p): Define type and vectors.
	(go_search_dirs): New static variable.
	(go_langhook_handle_option): Use version and version/machine
	directories for -L.
	(go_langhook_post_options): Add non-specific -L paths.
	* Make-lang.in (go/go-lang.o): Define DEFAULT_TARGET_VERSION and
	DEFAULT_TARGET_MACHINE when compiling.
	* gccgo.texi (Invoking gccgo): Only document -L for linking.
	(Import and Export): Don't mention -L for finding import files.

libgo: Install .gox files in version and target specific directory.

From-SVN: r167537
2010-12-07 14:18:35 +00:00
Ian Lance Taylor
bc24461fb6 LICENSE: separate, change PATENTS text.
Split patent grant clause out of LICENSE file
and update text to be more like that used by WebM.
These changes should make Go more acceptable
to the Fedora project and they are acceptable to the FSF.

From-SVN: r167520
2010-12-06 22:27:47 +00:00
Ian Lance Taylor
6c94a9fa16 Check for -pthread and -lpthread at configure time.
From-SVN: r167445
2010-12-03 21:27:06 +00:00
Ian Lance Taylor
3f8ea4759e It's a contributor license agreement, not a copyright LA.
From-SVN: r167443
2010-12-03 20:41:15 +00:00
Ian Lance Taylor
b02785a8d0 Typo.
From-SVN: r167440
2010-12-03 19:08:11 +00:00
Ian Lance Taylor
29fecdee3e Clarify copyright license agreement.
From-SVN: r167439
2010-12-03 19:03:38 +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