aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/thread.c
AgeCommit message (Collapse)AuthorFilesLines
2019-02-01runtime, sync: use __atomic intrinsics instead of __syncIan Lance Taylor1-161/+0
GCC has supported the __atomic intrinsics since 4.7. They are better than the __sync intrinsics in that they specify a memory model and, more importantly for our purposes, they are reliably implemented either in the compiler or in libatomic. Fixes https://gcc.gnu.org/PR52084 Reviewed-on: https://go-review.googlesource.com/c/160820 From-SVN: r268458
2013-07-16libgo: Update to Go 1.1.1.Ian Lance Taylor1-21/+0
From-SVN: r200974
2012-03-06libgo: Update to weekly.2012-03-04 release.Ian Lance Taylor1-0/+33
From-SVN: r185010
2012-02-12re PR go/52084 (go tests fail to link on powerpc-linux-gnu (undefined ↵Ian Lance Taylor1-1/+58
reference to __sync_add_and_fetch_8)) PR go/52084 libgo: Provide more __sync functions if required. From-SVN: r184138
2011-12-01runtime: Remove temporary runtime_cond_wait function.Ian Lance Taylor1-24/+0
From-SVN: r181897
2011-11-28runtime: Multiplex goroutines onto OS threads.Ian Lance Taylor1-0/+43
From-SVN: r181772
2011-11-22runtime: New lock/note implementation.Ian Lance Taylor1-74/+42
From-SVN: r181633
2011-10-26Update Go library to last weekly.Ian Lance Taylor1-13/+0
From-SVN: r180552
2011-03-09re PR go/48019 (Need to handle EINTR in libgo testsuite)Ian Lance Taylor1-2/+7
PR go/48019 Ignore EINTR in runtime_lock_full. From-SVN: r170810
2011-02-01Test whether libgcc or kernel defines __sync_bool_compare_and_swap_4.Ian Lance Taylor1-1/+1
From-SVN: r169504
2011-02-01Add __sync_bool_compare_and_swap_4 for targets which don't have it.Ian Lance Taylor1-0/+36
From-SVN: r169502
2011-01-22Avoid crash when M structure free just before thread exit.Ian Lance Taylor1-6/+10
From-SVN: r169121
2010-12-17Rework locking code to split stack much less.Ian Lance Taylor1-13/+48
From-SVN: r167973
2010-12-03Add Go frontend, libgo library, and Go testsuite.Ian Lance Taylor1-0/+38
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