https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65697
--- Comment #53 from mwahab at gcc dot gnu.org --- (In reply to Andrew Macleod from comment #50) > Created attachment 35478 [details] > implement SYNC flag for memory model > > This compiles on all targets, but is only runtime tested on > x86_64-unknown-linux-gnu with no regressions. The patch passes check-gcc for aarch64-none-linux-gnu with no new failures. I'll also run the tests on arm. > With this you should be able to easily issue whatever different insn > sequence you need to within an atomic pattern. Give it a try. If it works > as required, then we'll see about executing on all targets for testing... I modified the Aarch64 backend to use the new is_mm_sync test to generate stronger barriers when needed and it all works as required.