[PATCH] PR67401: Fix wrong code generated by expand_atomic_compare_and_swap

Bernd Schmidt bschmidt@redhat.com
Fri Sep 11 08:38:00 GMT 2015

On 09/11/2015 01:21 AM, John David Anglin wrote:
> As noted in the PR, expand_atomic_compare_and_swap can generate wrong code when libcalls are emitted
> for the sync_compare_and_swap and the result comparison test.  This is fixed by emitting a move insn to copy
> the result rtx of the sync_compare_and_swap libcall to target_oval instead of directly assigning it.
Could you provide relevant parts of the rtl dumps or (preferrably) the 
patch you are using to enable the libcall?


More information about the Gcc-patches mailing list