Skip to content

Commit d31879a

Browse files
committed
Atomics: GCC fix for M23 (again)
Add another missing unified syntax directive. Was previously fixed in 03f1ac3, but the same problem was not addressed in the pending PR that added the `NEWVAL_2OP` assembler.
1 parent f8dc035 commit d31879a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform/internal/mbed_atomic_impl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ extern "C" {
141141
#elif defined __clang__ || defined __GNUC__
142142
#define DO_MBED_LOCKFREE_NEWVAL_2OP_ASM(OP, Constants, M) \
143143
__asm volatile ( \
144+
".syntax unified\n\t" \
144145
"LDREX"#M "\t%[newValue], %[value]\n\t" \
145146
#OP "\t%[newValue], %[arg]\n\t" \
146147
"STREX"#M "\t%[fail], %[newValue], %[value]\n\t" \

0 commit comments

Comments
 (0)