This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r229317 - in /trunk/gcc: ChangeLog optabs.c tes...
- From: ktkachov at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 26 Oct 2015 10:28:12 -0000
- Subject: r229317 - in /trunk/gcc: ChangeLog optabs.c tes...
Author: ktkachov
Date: Mon Oct 26 10:28:12 2015
New Revision: 229317
URL: https://gcc.gnu.org/viewcvs?rev=229317&root=gcc&view=rev
Log:
[optabs.c] Fix PR 67989: Handle const0_rtx target in expand_atomic_compare_and_swap
PR middle-end/67989
* optabs.c (expand_atomic_compare_and_swap): Handle case when
ptarget_oval or ptarget_bool are const0_rtx.
* g++.dg/pr67989.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/pr67989.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/optabs.c
trunk/gcc/testsuite/ChangeLog