On 08/30/2012 05:33 PM, Richard Henderson wrote:
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.


Oops, approved but never checked in. Just did so after a new bootstrap/test cycle with no issues.
Andrew

Reply via email to