> On 09/01/2017 12:26 AM, Alexander Monakov wrote: >> On Thu, 31 Aug 2017, Jeff Law wrote: >>> This is OK. >>> >>> What's the point of the delete_insns_since calls in patch #3? >> >> Deleting the first barrier when maybe_expand_insn failed. >> Other functions in the file use a similar approach. > Thanks for clarifying. OK for the trunk. Sorry about the wait.
It looks that: 2017-09-04 Alexander Monakov <amona...@ispras.ru> PR rtl-optimization/57448 PR target/67458 PR target/81316 * optabs.c (expand_atomic_load): Place compiler memory barriers if using atomic_load pattern. (expand_atomic_store): Likewise. introduced a couple of regressions on x86 (-m32, 32bit) testsuite: New failures: FAIL: gcc.target/i386/pr71245-1.c scan-assembler-not (fistp|fild) FAIL: gcc.target/i386/pr71245-2.c scan-assembler-not movlps Uros.