On 08/23/2012 08:59 AM, Andrew MacLeod wrote: > 2012-08-23 Andrew MacLeod <amacl...@redhat.com> > > gcc > PR target/54087 > * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code > from expand_atomic_fetch_op. > (expand_atomic_fetch_op): iTry atomic_{add|sub} operations in terms of > the other one if direct opcode fails. > > testsuite > * gcc.dg/pr54087.c: New testcase for atomic_sub -> atomic_add when > atomic_sub fails.
Ok. r~