Re: [PATCH] #52291 - clarify sync_fetch_and_OP for pointers

2016-01-20 Thread Jeff Law
On 01/20/2016 05:11 PM, Martin Sebor wrote: The bug points out that while the __sync_fetch_and_OP intrinsics are documented to have semantics equivalent to the "x OP= y" compound assignment expressions, when used with pointer operands they actually behave as if they operated on integers. I.e., t

[PATCH] #52291 - clarify sync_fetch_and_OP for pointers

2016-01-20 Thread Martin Sebor
The bug points out that while the __sync_fetch_and_OP intrinsics are documented to have semantics equivalent to the "x OP= y" compound assignment expressions, when used with pointer operands they actually behave as if they operated on integers. I.e., they are not scaled by the size of the pointed