Re: [cxx-mem-model] compare_exchange implementation II

2011-10-20 Thread Richard Henderson
On 10/19/2011 05:43 PM, Andrew MacLeod wrote: > * optabs.h (direct_optab_index): Replace DOI_atomic_compare_exchange > with DOI_atomic_compare_and_swap. > (direct_op): Add DOI_atomic_compare_and_swap. > * genopinit.c: Set atomic_compare_and_swap_optab. > * expr.h (expa

[cxx-mem-model] compare_exchange implementation II

2011-10-19 Thread Andrew MacLeod
OK, here's the updated patch. I also made the changes to the C++ include files to use __atomic_compare_exchange in the header file. I think I covered everything that was mentioned previously... Bootstraps and no new regressions on x86_64-unknown-linux-gnu. Andrew * optabs.h (direct_o