diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-26 23:57:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-26 23:57:58 +0000 |
commit | d8f412571f8768df2d3239e72392dfeabbad1559 (patch) | |
tree | 19d182df05ead7ff8ba7ee00a7d57555e1383fdf /libgo/runtime/thread.c | |
parent | e0c39d66d4f0607177b1cf8995dda56a667e07b3 (diff) | |
download | gcc-d8f412571f8768df2d3239e72392dfeabbad1559.zip gcc-d8f412571f8768df2d3239e72392dfeabbad1559.tar.gz gcc-d8f412571f8768df2d3239e72392dfeabbad1559.tar.bz2 |
Update Go library to last weekly.
From-SVN: r180552
Diffstat (limited to 'libgo/runtime/thread.c')
-rw-r--r-- | libgo/runtime/thread.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/libgo/runtime/thread.c b/libgo/runtime/thread.c index bac3f7d..822d5da 100644 --- a/libgo/runtime/thread.c +++ b/libgo/runtime/thread.c @@ -14,19 +14,6 @@ runtime_initlock(Lock *l) runtime_throw("sem_init failed"); } -static uint32 -runtime_xadd(uint32 volatile *val, int32 delta) -{ - uint32 oval, nval; - - for(;;){ - oval = *val; - nval = oval + delta; - if(runtime_cas(val, oval, nval)) - return nval; - } -} - // noinline so that runtime_lock doesn't have to split the stack. static void runtime_lock_full(Lock *l) __attribute__ ((noinline)); |