Re: [Ada] Fix to 64-bit atomic operation failures on ppc-linux

2012-07-17 Thread Andrew MacLeod
On 07/17/2012 11:56 AM, Richard Henderson wrote: On 07/17/2012 04:57 AM, Andrew MacLeod wrote: What is the nature of the atomic failures using the __atomic_compare_exchange built-in? Does it have anything to do with the expected value being returned by pointer? It's a rue. He never was using

Re: [Ada] Fix to 64-bit atomic operation failures on ppc-linux

2012-07-17 Thread Richard Henderson
On 07/17/2012 04:57 AM, Andrew MacLeod wrote: > What is the nature of the atomic failures using the > __atomic_compare_exchange built-in? Does it have anything to do > with the expected value being returned by pointer? It's a rue. He never was using __atomic_compare_exchange; the "Atomic_*" was

Re: [Ada] Fix to 64-bit atomic operation failures on ppc-linux

2012-07-17 Thread Richard Henderson
On 07/17/2012 03:15 AM, Arnaud Charlet wrote: > + function Sync_Compare_And_Swap_32 > (Ptr : Address; >Expected : uint32; >Desired : uint32) return uint32; > pragma Import (Intrinsic, > + Sync_Compare_And_Swap_32, >"__sync_val_c

Re: [Ada] Fix to 64-bit atomic operation failures on ppc-linux

2012-07-17 Thread Andrew MacLeod
On 07/17/2012 06:15 AM, Arnaud Charlet wrote: This patch fixes failures due to the use of 64-bit atomic operations on ppc-linux. Undo of the previous patch for 64-bit atomic operations only. Note: this does NOT address the failure on ppc-darwin, which will be addressed by another patch soon. Te

[Ada] Fix to 64-bit atomic operation failures on ppc-linux

2012-07-17 Thread Arnaud Charlet
This patch fixes failures due to the use of 64-bit atomic operations on ppc-linux. Undo of the previous patch for 64-bit atomic operations only. Note: this does NOT address the failure on ppc-darwin, which will be addressed by another patch soon. Tested on x86_64-pc-linux-gnu, committed on trunk