summaryrefslogtreecommitdiffstats
path: root/llvm/configure
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-17 00:13:00 +0000
committerOwen Anderson <resistor@mac.com>2009-06-17 00:13:00 +0000
commit8d0fe6f0d72174bce80ec995352766d26fee6736 (patch)
treea715fd1a66619e59332ae5c6beb55ce693f71ff7 /llvm/configure
parentc39919151d0ee94b2086a063067ff2c42d12fc0b (diff)
downloadbcm5719-llvm-8d0fe6f0d72174bce80ec995352766d26fee6736.tar.gz
bcm5719-llvm-8d0fe6f0d72174bce80ec995352766d26fee6736.zip
Add an atomic increment and decrement implementation, which will be used for
thread-safe reference counting. llvm-svn: 73587
Diffstat (limited to 'llvm/configure')
-rwxr-xr-xllvm/configure2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/configure b/llvm/configure
index 7fdb067bf2f..6920d6d90f6 100755
--- a/llvm/configure
+++ b/llvm/configure
@@ -33760,6 +33760,8 @@ int main() {
volatile unsigned long val = 1;
__sync_synchronize();
__sync_val_compare_and_swap(&val, 1, 0);
+ __sync_add_and_fetch(&val, 1);
+ __sync_sub_and_fetch(&val, 1);
return 0;
}
OpenPOWER on IntegriCloud