https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61713
--- Comment #7 from ktkachov at gcc dot gnu.org --- Author: ktkachov Date: Thu Aug 14 09:32:17 2014 New Revision: 213954 URL: https://gcc.gnu.org/viewcvs?rev=213954&root=gcc&view=rev Log: [optabs.c] Fix ICE when expanding single-threaded version of atomic_test_and_set Backport from mainline 2014-08-04 Kyrylo Tkachov <kyrylo.tkac...@arm.com> PR target/61713 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit move to subtarget in serial version if result is ignored. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr61756.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/optabs.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog