Commit Graph

230 Commits

Author SHA1 Message Date
Ian Lance Taylor 3d43396098 runtime: Correct test of mmap return value.
From-SVN: r180731
2011-11-01 04:55:15 +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 f0080f6cf9 syscall: Use sched_yield rather than pthread_yield.
From-SVN: r180716
2011-10-31 22:09:21 +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 f29ce5f5f1 Implement predeclared delete function.
From-SVN: r180438
2011-10-25 17:21:07 +00:00
Ian Lance Taylor 09367c0d60 Don't permit close of receive-only channel.
Better panic on attempt to close nil channel.

From-SVN: r180437
2011-10-25 16:35:24 +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 fbfb84e623 mksysinfo: #include <ttold.h> on Irix.
From Rainer Orth.

From-SVN: r179312
2011-09-28 13:14:11 +00:00
Ian Lance Taylor 3019bbaeb3 mksysinfo: Fix for systems that don't define TIOCSCTTY.
From Rainer Orth.

From-SVN: r179269
2011-09-27 13:16:22 +00:00
Ian Lance Taylor 16e40fef8f Pass $(MATH_LIBS) $(NET_LIBS) when linking tests.
From-SVN: r179219
2011-09-26 22:33:31 +00:00
Ian Lance Taylor f0f91207e4 Fix sysinfo.go on systems which don't need to import "unsafe".
From-SVN: r179216
2011-09-26 21:49:08 +00:00
Ian Lance Taylor 6172a2f298 Include <termios.h> in mksysinfo.sh.
From Rainer Orth.

From-SVN: r179120
2011-09-23 15:29:17 +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 2d778bb7ab Increase default libgo test timeout.
From-SVN: r179062
2011-09-21 23:02:31 +00:00
Ian Lance Taylor e6f8e59016 Support nil maps.
From-SVN: r179054
2011-09-21 17:37:50 +00:00
Ian Lance Taylor f6cde0add6 Fix channels with element type of size zero.
From-SVN: r179030
2011-09-21 00:56:28 +00:00
Ian Lance Taylor 6fa2979911 Fix calling make with slice whose element type is size zero.
From-SVN: r179019
2011-09-20 22:06:20 +00:00
Ian Lance Taylor 6675c41604 Implement goto restrictions.
From-SVN: r179018
2011-09-20 21:00:07 +00:00
Ian Lance Taylor 31aeabd3c5 Block forever on send/receive to/from nil channel.
From-SVN: r178920
2011-09-16 22:56:32 +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 b9f04a8461 Fix defer when not calling recover in function with named results.
From-SVN: r178905
2011-09-16 05:47:20 +00:00
Rainer Orth 201cdb7438 Makefile.in (UNWIND_H): Remove.
gcc:
	* Makefile.in (UNWIND_H): Remove.
	(LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
	../libgcc/Makefile.in.
	(LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
	(LIBUNWINDDEP): Remove.
	(libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
	(libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
	LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
	(stmp-int-hdrs): Remove $(UNWIND_H) dependency.
	Don't copy $(UNWIND_H).
	* config.gcc (ia64*-*-linux*): Remove with_system_libunwind
	handling.
	* configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
	* aclocal.m4: Regenerate.
	* configure: Regenerate.
	* emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
	unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
	unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
	unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
	* unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
	* config/arm/libunwind.S, config/arm/pr-support.c,
	config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
	../libgcc/config/arm.
	* config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
	* config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
	* config/frv/t-frv ($(T)frvbegin$(objext)): Use
	$(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
	($(T)frvend$(objext)): Likewise.
	* config/ia64/t-glibc (LIB2ADDEH): Remove.
	* config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
	* config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
	config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
	../libgcc/config/ia64.
	* config/ia64/t-hpux (LIB2ADDEH): Remove.
	* config/ia64/t-ia64 (LIB2ADDEH): Remove.
	* config/ia64/t-vms (LIB2ADDEH): Remove.
	* config/ia64/vms.h (UNW_IVMS_MODE,
	MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
	* config/picochip/t-picochip (LIB2ADDEH): Remove.
	* config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
	* config/rs6000/t-darwin (LIB2ADDEH): Remove.
	* config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
	* config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
	$(srcdir)/../libgcc to refer to unwinder sources.
	* config/spu/t-spu-elf (LIB2ADDEH): Remove.
	* config/t-darwin (LIB2ADDEH): Remove.
	* config/t-freebsd (LIB2ADDEH): Remove.
	* config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
	* config/t-libunwind-elf: Move to ../libgcc/config.
	* config/t-linux (LIB2ADDEH): Remove.
	* config/t-sol2 (LIB2ADDEH): Remove.
	* config/xtensa/t-xtensa (LIB2ADDEH): Remove.
	* system.h (MD_FROB_UPDATE_CONTEXT): Poison.

	gcc/po:
	* EXCLUDES (unwind-c.c, unwind-dw2-fde-darwin.c)
	(unwind-dw2-fde-glibc.c, unwind-dw2-fde.c, unwind-dw2-fde.h)
	(unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h): Remove.

	libgcc:
	* Makefile.in (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): New
	variables.
	(LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): New variables.
	(LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Add $(srcdir)/emutls.c.
	(install-unwind_h): New target.
	(all): Depend on it.
	* config.host (unwind_header): New variable.
	(*-*-freebsd*): Set tmake_file to t-eh-dw2-dip.
	(*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu, *-*-knetbsd*-gnu,
	*-*-gnu*): Likewise, also for *-*-kopensolaris*-gnu.
	(*-*-solaris2*): Add t-eh-dw2-dip to tmake_file.
	(arm*-*-linux*): Add arm/t-bpabi for arm*-*-linux-*eabi.
	Set unwind_header.
	(arm*-*-uclinux*): Add arm/t-bpabi for arm*-*-uclinux*eabi.
	Set unwind_header.
	(arm*-*-eabi*, arm*-*-symbianelf*): Add arm/t-bpabi for
	arm*-*-eabi*.
	Add arm/t-symbian to tmake_file for arm*-*-symbianelf*.
	Set unwind_header.
	(ia64*-*-elf*): Add ia64/t-eh-ia64 to tmake_file.
	(ia64*-*-freebsd*): Likewise.
	(ia64*-*-linux*): Add ia64/t-glibc, ia64/t-eh-ia64, t-libunwind to
	tmake_file.
	Add t-libunwind-elf, ia64/t-glibc-libunwind unless
	$with_system_libunwind.
	(ia64*-*-hpux*): Set tmake_file.
	(ia64-hp-*vms*): Add ia64/t-eh-ia64 to tmake_file.
	(picochip-*-*): Set tmake_file.
	(rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Set
	md_unwind_header.
	(rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*): Likewise.
	(rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
	(s390x-ibm-tpf*): Add t-eh-dw2-dip to tmake_file.
	(xtensa*-*-elf*): Set tmake_file.
	(xtensa*-*-linux*): Likewise.
	* configure.ac: Include ../config/unwind_ipinfo.m4.
	Call GCC_CHECK_UNWIND_GETIPINFO.
	Link unwind.h to $unwind_header.
	* configure: Regenerate.
	* emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
	unwind-dw2-fde-compat.c, unwind-dw2-fde-dip.c, unwind-dw2-fde.c,
	unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
	unwind-pe.h, unwind-sjlj.c, unwind.inc: New files.
	* config/unwind-dw2-fde-darwin.c: New file.
	* config/arm/libunwind.S, config/arm/pr-support.c,
	config/arm/t-bpabi, config/arm/t-symbian, config/arm/unwind-arm.c,
	config/arm/unwind-arm.h,: New files.
	* config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
	config/ia64/t-eh-ia64, config/ia64/t-glibc,
	config/ia64/t-glibc-libunwind, config/ia64/t-hpux,
	config/ia64/t-vms, config/ia64/unwind-ia64.c,
	config/ia64/unwind-ia64.h: New files.
	* config/picochip/t-picochip: New file.
	* config/rs6000/aix-unwind.h, config/rs6000/darwin-fallback.c: New
	files.
	* config/rs6000/t-darwin (LIB2ADDEH): Set.
	* config/s390/t-tpf (LIB2ADDEH): Remove.
	* config/t-darwin (LIB2ADDEH): Set.
	* config/t-eh-dw2-dip: New file.
	* config/t-libunwind, config/t-libunwind-elf: New files.
	* config/t-sol2 (LIB2ADDEH): Remove.
	* config/xtensa/t-xtensa: New file.

	gcc/ada:
	* gcc-interface/Makefile.in (raise-gcc.o): Search
	$(srcdir)/../libgcc.

	libgo:
	* Makefile.am (AM_CFLAGS): Search $(srcdir)/../libgcc.
	* Makefile.in: Regenerate.

	libjava:
	* configure.ac (GCC_UNWIND_INCLUDE): Rename to
	LIBGCC_UNWIND_INCLUDE.
	Point to $(multi_basedir)/./libjava/../libgcc.
	* configure: Regenerate.
	* Makefile.am (GCC_UNWIND_INCLUDE): Reflect this.
	* Makefile.in: Regenerate.

	libobjc:
	* Makefile.in (INCLUDES): Search
	$(srcdir)/$(MULTISRCTOP)../libgcc.

	libstdc++-v3:
	* acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Point TOPLEVEL_INCLUDES
	to $(toplevel_srcdir)/libgcc.
	* configure: Regenerate.

From-SVN: r177447
2011-08-05 14:37:48 +00:00
Ian Lance Taylor 09df293c7a libgo/testsuite/gotest: Run tests in source file order.
From-SVN: r176223
2011-07-13 01:04:50 +00:00
Ian Lance Taylor d983a802f6 libgo: Define CC_FOR_BUILD in Makefile.
From-SVN: r176182
2011-07-11 20:27:50 +00:00
Ian Lance Taylor ae06570eb6 libgo/runtime: Change std::abort to abort.
From-SVN: r176181
2011-07-11 20:16:01 +00:00
Rainer Orth fbdd5d8715 re PR bootstrap/39150 (Configure scripts have no 64-Bit Solaris defined (only i386-solaris*).)
gcc:
	PR target/39150
	* configure.ac (gcc_cv_as_hidden): Also accept
	x86_64-*-solaris2.1[0-9]*.
	(gcc_cv_as_cfi_directive): Likewise.
	(gcc_cv_as_comdat_group_group): Likewise.
	(set_have_as_tls): Likewise.
	* configure: Regenerate.
	* config.gcc (i[34567]86-*-solaris2*): Also handle
	x86_64-*-solaris2.1[0-9]*.
	* config.host (i[34567]86-*-solaris2*): Likewise.
	* config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
	* config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
	[USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
	(TARGET_LD_EMULATION): Use it.
	* config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
	(SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
	* config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
	(ASM_CPU64_DEFAULT_SPEC): Define.
	(ASM_CPU_SPEC): Use %(asm_cpu_default).
	(ASM_SPEC): Redefine.
	(DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
	* config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
	* doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
	Document.
	(Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
	configuration.
	(Specific, x86_64-*-solaris2.1[0-9]*): Document.

	gcc/ada:
	PR target/39150
	* gcc-interface/Makefile.in: Handle x86_64-solaris2.

	libgcc:
	PR target/39150
	* config.host (*-*-solaris2*): Handle x86_64-*-solaris2.1[0-9]*
	like i?86-*-solaris2.1[0-9]*.
	(i[34567]86-*-solaris2*): Also handle x86_64-*-solaris2.1[0-9]*.
	* configure.ac (i?86-*-solaris2*): Likewise.
	* configure: Regenerate.

	gcc/testsuite:
	PR target/39150
	* gcc.misc-tests/linkage.exp: Handle x86_64-*-solaris2.1[0-9]*.

	toplevel:
	PR target/39150
	* configure.ac (i[3456789]86-*-solaris2*): Also accept
	x86_64-*-solaris2.1[0-9]*.
	* configure: Regenerate.

	boehm-gc:
	PR target/39150
	* configure.ac (i?86-*-solaris2.[89]): Also accept
	x86_64-*-solaris2.1?.
	* configure: Regenerate.

	gnattools:
	PR target/39150
	* configure.ac (*86-*-solaris2*): Also accept
	x86_64-*-solaris2.1[0-9]*.
	* configure: Regenerate.

	libcpp:
	PR target/39150
	* configure.ac (host_wide_int): Handle x86_64-*-solaris2.1[0-9]
	like i[34567]86-*-solaris2.1[0-9]*.
	* configure: Regenerate.

	libgo:
	PR target/39150
	* config/libtool.m4: Handle x86_64-*-solaris2.1[0-9]* like
	i?86-*-solaris*.
	* configure: Regenerate.

	libjava:
	PR target/39150
	* configure.host (x86_64-*): Add -Usun to libgcj_flags.
	(x86_64-*-solaris2.1[0-9]*): New case.
	(i?86-*-solaris2*): Also accept x86_64-*-solaris2.1[0-9]*.

From-SVN: r175958
2011-07-07 09:24:16 +00:00
Ian Lance Taylor b7758f2275 libgo: Use GOCFLAGS when compiling tests.
From Uros Bizjak.

From-SVN: r175930
2011-07-06 19:51:58 +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 de38eefaa7 Change builtin make to runtime call at lowering time.
Use kindNoPointers as 6g does.

	* Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).

From-SVN: r175020
2011-06-14 13:51:16 +00:00
Ian Lance Taylor 3b8dffe701 Change builtin make to runtime call at lowering time.
Use kindNoPointers as 6g does.

	* Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H).

From-SVN: r175008
2011-06-14 05:53:10 +00:00
Ian Lance Taylor 891daafaf8 Use backend interface for map descriptors.
From-SVN: r174943
2011-06-11 06:21:55 +00:00
Ian Lance Taylor 4ed2ca85c2 libgo: Define PtraceRegs for Alpha GNU/Linux.
From Uros Bizjak.

From-SVN: r174502
2011-05-31 18:15:14 +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 f718d442f6 libgo/mksysinfo: Remove structs within stat found on Alpha.
From-SVN: r174500
2011-05-31 18:06:47 +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 5bb92e54b7 libgo: Make os.setenv_c work on systems without setenv.
From-SVN: r174147
2011-05-24 22:21:34 +00:00
Ian Lance Taylor dd761d3aaf libgo: Irix portability fixes (no declaration for getaddrinfo).
From Rainer Orth.

From-SVN: r174145
2011-05-24 21:45:17 +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 4e7e7a49b7 More uses of backend interface for types.
From-SVN: r173507
2011-05-06 20:06:29 +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 aa5b0a0df3 libgo: Support multilib testing.
From Rainer Orth.

From-SVN: r172865
2011-04-22 18:38:24 +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 e1c2f29025 libgo: Fix append declaration.
From Rainer Orth.

From-SVN: r172659
2011-04-18 17:31:00 +00:00
Ian Lance Taylor b39c10b813 Unify handling of runtime support functions.
This introduces the new approach, and rewrites the lowering
code which uses runtime functions.  The code which calls
runtime functions at GENERIC conversion time is not yet
rewritten.

From-SVN: r172396
2011-04-13 21:00:59 +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 5c8e495222 libgo: Always use AM_LDFLAGS when linking libgo.la.
This ensures that we pass -fsplit-stack as required.

From-SVN: r172018
2011-04-06 06:01:53 +00:00
Ian Lance Taylor 49fd1b338c gotest: Add external timeout if internal timeout fails.
From-SVN: r172003
2011-04-05 21:11:35 +00:00
Ian Lance Taylor 69dd762a99 gotest: Avoid echo -n.
From-SVN: r172000
2011-04-05 19:53:33 +00:00
Ian Lance Taylor 9cc1bb97bc libgo: Use MAP_FIXED if necessary to grab arena.
From Rainer Orth.

	PR go/48240
	* configure.ac: Check for mincore.
	* configure: Regenerate.
	* config.h.in: Regenerate.
	* runtime/mem.c: Include unistd.h.
	(addrspace_free): New function.
	(runtime_SysMap): Retry 64-bit runtime_mmap with MAP_FIXED.

From-SVN: r171961
2011-04-05 00:02:15 +00:00
Rainer Orth 06ec98415a libgo: Always initialize semaphores.
2011-04-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR go/48222
	* runtime/malloc.goc (runtime_mallocinit): Call
	runtime_Mprof_Init, runtime_initfintab.
	* runtime/cpuprof.c (runtime_cpuprofinit): New function.
	* runtime/runtime.h (runtime_cpuprofinit): Declare it.
	* runtime/go-main.c (main): Use it.

From-SVN: r171960
2011-04-04 23:43:59 +00:00
Ian Lance Taylor 3b66f10536 Mark as executable in SVN.
From-SVN: r171913
2011-04-03 16:14:19 +00:00
Ian Lance Taylor bb0ce33a0e libgo: Sort test output in libgo.sum and libgo.log.
From-SVN: r171868
2011-04-02 00:29:49 +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 4ac7fcaac0 libgo: Try to guess the right type for select bits in mksysinfo.
From-SVN: r171858
2011-04-01 22:53:54 +00:00
Ian Lance Taylor 90630d1932 libgo: Support Solaris 8/9.
From Rainer Orth.

From-SVN: r171818
2011-04-01 05:11:23 +00:00
Ian Lance Taylor 85a0921018 libgo: Recognize MIPS ABIs.
From-SVN: r171809
2011-04-01 00:17:10 +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 de90644af8 libgo: Set name of test when using DejaGNU tests.
From-SVN: r171805
2011-03-31 23:03:20 +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 35ca26acc6 libgo/syscalls: Use _C_long as the type of the select bits array.
From-SVN: r171799
2011-03-31 20:37:31 +00:00
Ian Lance Taylor b5ad7facf3 libgo Makefile: Fix typo in test case name.
From-SVN: r171793
2011-03-31 16:49:36 +00:00
Ian Lance Taylor 34ccb9c02a libgo: Generate DejaGNU like .sum and .log files for "make check".
From-SVN: r171791
2011-03-31 16:11:56 +00:00
Ian Lance Taylor 0b3189e79f libgo: Use waitpid on systems which do not have wait4.
From-SVN: r171758
2011-03-30 23:05:04 +00:00
Ian Lance Taylor 8955c80a1c libgo: Support systems which do not have strerror_r.
From-SVN: r171757
2011-03-30 22:34:55 +00:00
Ian Lance Taylor 25a182be4f libgo: Use the right files on Solaris variants.
From-SVN: r171753
2011-03-30 21:45:57 +00:00
Ian Lance Taylor c019d84956 libgo/Makefile.am: Add missing dependencies for net/net.lo.
From-SVN: r171737
2011-03-30 17:37:58 +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 c29301d6b1 Add runtime profiling infrastructure, not yet working.
From-SVN: r171579
2011-03-27 19:14:55 +00:00
Ian Lance Taylor c570af00f6 Remove closedchan function.
From-SVN: r171577
2011-03-27 18:06:50 +00:00
Ian Lance Taylor fe052134f6 Remove closed function. Fix tuple receive in select.
From-SVN: r171440
2011-03-25 05:14:57 +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 3137991dfc Tuple receives indicate whether channel is closed.
From-SVN: r171380
2011-03-24 06:01:27 +00:00
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