This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Provide a can_compare_and_swap_p target hook.
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew MacLeod <amacleod at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jeff Law <law at redhat dot com>, Richard Biener <richard dot guenther at gmail dot com>
- Date: Tue, 04 Nov 2014 18:25:45 +0100
- Subject: Re: [patch] Provide a can_compare_and_swap_p target hook.
- Authentication-results: sourceware.org; auth=none
- References: <5458FE9C dot 2090409 at redhat dot com>
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.
r~