Skip to content
Commit 37363d5e authored by Fabio Baltieri's avatar Fabio Baltieri Committed by Anas Nashif
Browse files

arch: arm: cortex_m: add memory to the clobber list



Add "memory" to the clobber list"

From GCC 14 the compiler optimizes away memory accesses that do not
impact the asm block. Adding the memory to the clobber list lets the
compiler know that the memory state is to be preserved.

Signed-off-by: default avatarWilfried Chauveau <wilfried.chauveau@arm.com>
Signed-off-by: default avatarFabio Baltieri <fabiobaltieri@google.com>
(cherry picked from commit 63890e25)
parent 8926e65d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment