[PATCH] Fix 65697. Add memory model support for stronger __sync operations.

Andrew MacLeod amacleod@redhat.com
Fri May 8 21:35:00 GMT 2015


On 05/08/2015 05:27 PM, Jeff Law wrote:
> On 05/07/2015 08:42 AM, Andrew MacLeod wrote:
>> There has been some debate over the strength requirement of barriers for
>>
> Curse you for the BZ reference.  I read maybe the first 75%, then 
> glossed over 15%, then read the last bit in detail.  Hard to do near 
> the end of a work week.
>
> I spot checked the (significant) mechanical parts of this patch. I'm 
> not entirely convinced that encoding the SYNC in the upper bits was 
> the best choice, but it works.
>
> OK for the trunk,
> Jeff
>

well, using the upper bit let me still do a reasonable  if (model > 
MEMMODEL_LAST) check to make sure none of the other bits are set..
Its easy enough to change to use the next bit up or something like that.

tough sledding thru that PR.. :-P

Andrew



More information about the Gcc-patches mailing list