[patch] Provide a can_compare_and_swap_p target hook.

Richard Henderson rth@redhat.com
Tue Nov 4 17:58:00 GMT 2014


On 11/04/2014 06:56 PM, Andrew MacLeod wrote:
> On 11/04/2014 12:25 PM, Richard Henderson wrote:
>> On 11/04/2014 05:28 PM, Andrew MacLeod wrote:
>>> + bool
>>> + default_can_compare_and_swap_p (machine_mode mode, bool allow_libcall)
>>> + {
>>> +   return can_compare_and_swap_p (mode, allow_libcall);
>>> + }
>> This is silly.  I think the problem you point out can be better fixed by moving
>> the can_compare_and_swap_p prototype elsewhere.
>>
> yeah, except it uses some of the optab table stuff that is static to
> optabs.c...   so the basic functionality remains there.

I said move the prototype.  Of course the implementation remains where it is.


r~



More information about the Gcc-patches mailing list