summaryrefslogtreecommitdiff
path: root/libgo/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Fix defer when not calling recover in function with named results.Ian Lance Taylor2011-09-164-6/+27
| | | | From-SVN: r178905
* libgo/runtime: Change std::abort to abort.Ian Lance Taylor2011-07-111-1/+1
| | | | From-SVN: r176181
* Change builtin make to runtime call at lowering time.Ian Lance Taylor2011-06-141-0/+57
| | | | | | | | Use kindNoPointers as 6g does. * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). From-SVN: r175020
* Change builtin make to runtime call at lowering time.Ian Lance Taylor2011-06-146-9/+21
| | | | | | | | Use kindNoPointers as 6g does. * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). From-SVN: r175008
* Use backend interface for map descriptors.Ian Lance Taylor2011-06-113-6/+6
| | | | From-SVN: r174943
* libgo: Make os.setenv_c work on systems without setenv.Ian Lance Taylor2011-05-241-4/+20
| | | | From-SVN: r174147
* Update to current version of Go library.Ian Lance Taylor2011-05-2032-143/+458
| | | | From-SVN: r173931
* More uses of backend interface for types.Ian Lance Taylor2011-05-066-12/+16
| | | | From-SVN: r173507
* libgo: Fix append declaration.Ian Lance Taylor2011-04-181-1/+1
| | | | | | From Rainer Orth. From-SVN: r172659
* Unify handling of runtime support functions.Ian Lance Taylor2011-04-1315-68/+75
| | | | | | | | | 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
* libgo: Use MAP_FIXED if necessary to grab arena.Ian Lance Taylor2011-04-051-0/+23
| | | | | | | | | | | | | | 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
* libgo: Always initialize semaphores.Rainer Orth2011-04-044-0/+14
| | | | | | | | | | | | | 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
* Add runtime profiling infrastructure, not yet working.Ian Lance Taylor2011-03-276-38/+582
| | | | From-SVN: r171579
* Remove closedchan function.Ian Lance Taylor2011-03-271-11/+0
| | | | From-SVN: r171577
* Remove closed function. Fix tuple receive in select.Ian Lance Taylor2011-03-256-41/+23
| | | | From-SVN: r171440
* Update to current version of Go library.Ian Lance Taylor2011-03-246-26/+51
| | | | From-SVN: r171427
* Tuple receives indicate whether channel is closed.Ian Lance Taylor2011-03-244-15/+30
| | | | From-SVN: r171380
* Send on a closed channel panics.Ian Lance Taylor2011-03-239-66/+32
| | | | | | | Calling close on a closed channel panics. Don't limit number of receives on a closed channel. From-SVN: r171364
* Don't catch LIBPROF in Go code.Ian Lance Taylor2011-03-161-3/+0
| | | | From-SVN: r171077
* Update to current version of Go library (revision 94d654be2064).Ian Lance Taylor2011-03-1626-678/+982
| | | | From-SVN: r171076
* re PR go/48019 (Need to handle EINTR in libgo testsuite)Ian Lance Taylor2011-03-091-2/+7
| | | | | | | PR go/48019 Ignore EINTR in runtime_lock_full. From-SVN: r170810
* re PR go/47910 (typo in __go_map_next_prime)Ian Lance Taylor2011-03-091-1/+1
| | | | | | | PR go/47910 Correct search for next prime in libgo map code. From-SVN: r170808
* Permit garbage collection on any compiler generated memory allocation.Ian Lance Taylor2011-03-071-1/+1
| | | | From-SVN: r170760
* Avoid race condition manipulating heap when goroutine exits.Ian Lance Taylor2011-03-071-8/+15
| | | | From-SVN: r170758
* Permit comparing non-empty interfaces with empty interfaces.Ian Lance Taylor2011-02-221-0/+32
| | | | From-SVN: r170385
* Implement __sync_fetch_and_add_4 if necessary.Ian Lance Taylor2011-02-041-0/+32
| | | | From-SVN: r169820
* Check whether we are using setjmp/longjmp exceptions.Ian Lance Taylor2011-02-031-1/+1
| | | | From-SVN: r169777
* Test whether libgcc or kernel defines __sync_bool_compare_and_swap_4.Ian Lance Taylor2011-02-011-1/+1
| | | | From-SVN: r169504
* Add __sync_bool_compare_and_swap_4 for targets which don't have it.Ian Lance Taylor2011-02-011-0/+36
| | | | From-SVN: r169502
* re PR go/47515 (Issues porting libgo to IRIX 6.5)Ian Lance Taylor2011-01-292-1/+30
| | | | | | | PR go/47515 runtime: If no MAP_ANON, use /dev/zero. From-SVN: r169388
* Avoid crash when M structure free just before thread exit.Ian Lance Taylor2011-01-222-6/+17
| | | | From-SVN: r169121
* libgo: Adjust deadlock avoidance.Ian Lance Taylor2011-01-221-9/+9
| | | | From-SVN: r169120
* Avoid deadlock creating new thread.Ian Lance Taylor2011-01-221-0/+8
| | | | From-SVN: r169114
* Avoid deadlock when finalizer lock is held during gc.Ian Lance Taylor2011-01-213-2/+41
| | | | From-SVN: r169112
* Remove the types float and complex.Ian Lance Taylor2011-01-217-45/+48
| | | | | | | | | | | | 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
* Add file missed in previous commit.Ian Lance Taylor2011-01-111-0/+42
| | | | From-SVN: r168684
* re PR go/46959 (M68K Not Supported by Go)Ian Lance Taylor2011-01-051-17/+2
| | | | | | | | | | | | 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
* re PR go/46958 (ARM Go Does Not Compile (__builtin_return_address))Ian Lance Taylor2011-01-051-1/+1
| | | | | | | | PR go/46958 PR go/46965 Call __builtin_return_address with 0 rather than 1. From-SVN: r168495
* Rework locking code to split stack much less.Ian Lance Taylor2010-12-178-31/+83
| | | | From-SVN: r167973
* Avoid always splitting the stack when calling append and copy.Ian Lance Taylor2010-12-172-19/+45
| | | | From-SVN: r167970
* Better error message if malloc gets a SIGSEGV.Ian Lance Taylor2010-12-141-0/+6
| | | | From-SVN: r167785
* Release cache while holding thread lock.Ian Lance Taylor2010-12-141-5/+4
| | | | | | Don't bother to hold thread lock while allocating cache. From-SVN: r167784
* Add Go frontend, libgo library, and Go testsuite.Ian Lance Taylor2010-12-03115-0/+12060
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