Re: Subversion 1.8.x on Solaris 10 x86
From: Philip Martin <philip_at_codematters.co.uk>
Date: Wed, 02 Aug 2017 23:55:21 +0100
Ian Mordey <ian.mordey_at_wandisco.com> writes:
> Thanks very much for your assistance. If you require any further info/tests
configure attempts to detect the builtin atomics by building and running
int main()
if (__sync_fetch_and_add(&val, 1010) != 1010 || val != 2020)
tmp = val;
if (__sync_fetch_and_sub(mem, 1010) != tmp || val != 1010)
if (__sync_sub_and_fetch(&val, 1010) != 0 || val != 0)
tmp = 3030;
if (__sync_val_compare_and_swap(mem, 0, tmp) != 0 || val != tmp)
if (__sync_lock_test_and_set(&val, 4040) != 3030)
mem = &tmp;
if (__sync_val_compare_and_swap(&mem, &tmp, &val) != &tmp)
__sync_synchronize();
if (mem != &val)
return 0;
So something like:
suncc -o conftest conftest.c
with whatever other optimisation flags you pass to cc. Does that
-- PhilipReceived on 2017-08-03 00:55:27 CEST |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.