aboutsummaryrefslogtreecommitdiff
path: root/libgo
AgeCommit message (Collapse)AuthorFilesLines
2011-11-22runtime: New lock/note implementation.Ian Lance Taylor21-293/+705
From-SVN: r181633
2011-11-14runtime: Use some of 6g runtime.c for easier merging.Ian Lance Taylor9-74/+257
From-SVN: r181368
2011-11-11Introduce G structure and thread-local global g.Ian Lance Taylor14-133/+102
From-SVN: r181301
2011-11-02syscall: Remove Linux system calls not available in older glibcs.Ian Lance Taylor1-6/+9
From-SVN: r180784
2011-11-02exp/terminal: Use tcgetattr/tcsetattr rather than ioctl.Ian Lance Taylor2-8/+13
From-SVN: r180780
2011-11-02libgo/Makefile: Fix dependency.Ian Lance Taylor2-2/+2
From-SVN: r180778
2011-11-01runtime: Don't ask mmap for wrapping memory.Ian Lance Taylor1-0/+2
From-SVN: r180732
2011-11-01runtime: Correct test of mmap return value.Ian Lance Taylor1-1/+6
From-SVN: r180731
2011-11-01syscall: Portability code for epoll_event on GNU/Linux.Ian Lance Taylor6-13/+301
From-SVN: r180729
2011-10-31syscall: Use sched_yield rather than pthread_yield.Ian Lance Taylor1-2/+2
From-SVN: r180716
2011-10-31syscall: Fix Errstr on systems without strerror_r.Ian Lance Taylor1-2/+2
From-SVN: r180714
2011-10-31syscall: Remove a couple more 3-parameter match's in mksyscall.awk.Ian Lance Taylor1-2/+2
From-SVN: r180712
2011-10-27syscalls: Rewrite awk script to work with nawk.Ian Lance Taylor1-15/+45
From-SVN: r180559
2011-10-26Update Go library to last weekly.Ian Lance Taylor535-12846/+43662
From-SVN: r180552
2011-10-25Solaris/Irix compatibility patches.Ian Lance Taylor9-6/+49
From-SVN: r180440
2011-10-25Fix Solaris build.Ian Lance Taylor2-2/+2
From Rainer Orth. From-SVN: r180439
2011-10-25Implement predeclared delete function.Ian Lance Taylor2-1/+7
From-SVN: r180438
2011-10-25Don't permit close of receive-only channel.Ian Lance Taylor1-0/+3
Better panic on attempt to close nil channel. From-SVN: r180437
2011-10-24Error if naked return when result variables are shadowed.Ian Lance Taylor3-18/+23
From-SVN: r180401
2011-10-24Some minor fixes to the rewritten syscall library.Ian Lance Taylor2-6/+8
From-SVN: r180363
2011-10-23Implement new syscall package.Ian Lance Taylor74-2053/+3554
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-22Update Go library to r60.3 release.Ian Lance Taylor14-1608/+288
From-SVN: r180327
2011-09-28mksysinfo: #include <ttold.h> on Irix.Ian Lance Taylor1-1/+4
From Rainer Orth. From-SVN: r179312
2011-09-27mksysinfo: Fix for systems that don't define TIOCSCTTY.Ian Lance Taylor1-0/+8
From Rainer Orth. From-SVN: r179269
2011-09-26Pass $(MATH_LIBS) $(NET_LIBS) when linking tests.Ian Lance Taylor3-1/+5
From-SVN: r179219
2011-09-26Fix sysinfo.go on systems which don't need to import "unsafe".Ian Lance Taylor1-0/+1
From-SVN: r179216
2011-09-23Include <termios.h> in mksysinfo.sh.Ian Lance Taylor1-0/+1
From Rainer Orth. From-SVN: r179120
2011-09-22Update Go library to release r60.1.Ian Lance Taylor17-27/+749
From-SVN: r179076
2011-09-22Add html/testdata files accidentally omitted.Ian Lance Taylor23-0/+5051
From-SVN: r179075
2011-09-21Increase default libgo test timeout.Ian Lance Taylor1-1/+1
From-SVN: r179062
2011-09-21Support nil maps.Ian Lance Taylor3-5/+18
From-SVN: r179054
2011-09-21Fix channels with element type of size zero.Ian Lance Taylor1-1/+1
From-SVN: r179030
2011-09-20Fix calling make with slice whose element type is size zero.Ian Lance Taylor1-1/+2
From-SVN: r179019
2011-09-20Implement goto restrictions.Ian Lance Taylor1-9/+12
From-SVN: r179018
2011-09-16Block forever on send/receive to/from nil channel.Ian Lance Taylor11-16/+47
From-SVN: r178920
2011-09-16Update Go library to r60.Ian Lance Taylor713-30293/+58730
From-SVN: r178910
2011-09-16Fix defer when not calling recover in function with named results.Ian Lance Taylor4-6/+27
From-SVN: r178905
2011-08-05Makefile.in (UNWIND_H): Remove.Rainer Orth2-2/+2
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-07-13libgo/testsuite/gotest: Run tests in source file order.Ian Lance Taylor1-2/+2
From-SVN: r176223
2011-07-11libgo: Define CC_FOR_BUILD in Makefile.Ian Lance Taylor4-2/+11
From-SVN: r176182
2011-07-11libgo/runtime: Change std::abort to abort.Ian Lance Taylor1-1/+1
From-SVN: r176181
2011-07-07re PR bootstrap/39150 (Configure scripts have no 64-Bit Solaris defined ↵Rainer Orth2-2/+2
(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-06libgo: Use GOCFLAGS when compiling tests.Ian Lance Taylor2-2/+2
From Uros Bizjak. From-SVN: r175930
2011-07-06json: fix test when rand returns 0.Ian Lance Taylor1-0/+3
Fixes using gccgo when optimizing, which changes the order of calls to rand. Same patch proposed upstream. From-SVN: r175927
2011-06-14Change builtin make to runtime call at lowering time.Ian Lance Taylor1-0/+57
Use kindNoPointers as 6g does. * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). From-SVN: r175020
2011-06-14Change builtin make to runtime call at lowering time.Ian Lance Taylor8-40/+62
Use kindNoPointers as 6g does. * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). From-SVN: r175008
2011-06-11Use backend interface for map descriptors.Ian Lance Taylor3-6/+6
From-SVN: r174943
2011-05-31libgo: Define PtraceRegs for Alpha GNU/Linux.Ian Lance Taylor1-0/+32
From Uros Bizjak. From-SVN: r174502
2011-05-31os: Correct Ctime_ns calculation.Ian Lance Taylor1-1/+1
From-SVN: r174501
2011-05-31libgo/mksysinfo: Remove structs within stat found on Alpha.Ian Lance Taylor1-0/+1
From-SVN: r174500