Atomics: GCC fix for M23 (again)

Add another missing unified syntax directive. Was previously fixed in
03f1ac3ffd, but the same problem was not addressed in the pending PR that
added the `NEWVAL_2OP` assembler.
pull/11208/head
Kevin Bracey 2019-08-13 10:46:48 +03:00
parent f8dc035ae4
commit d31879a1d4
1 changed files with 1 additions and 0 deletions

View File

@ -141,6 +141,7 @@ extern "C" {
#elif defined __clang__ || defined __GNUC__
#define DO_MBED_LOCKFREE_NEWVAL_2OP_ASM(OP, Constants, M) \
__asm volatile ( \
".syntax unified\n\t" \
"LDREX"#M "\t%[newValue], %[value]\n\t" \
#OP "\t%[newValue], %[arg]\n\t" \
"STREX"#M "\t%[fail], %[newValue], %[value]\n\t" \