Skip to content

Commit 590fb2e

Browse files
keith-packardstephanosio
authored andcommitted
aarch64: Make -mno-simd-memops default for aarch64*-*-elf targets
These targets are regularly used for embedded applications for portions of code where the Advanced SIMD registers may not be preserved, such as interrupt handlers. Disabling the use of SIMD registers for memset/memcpy operations by default ensures that code which doesn't overtly perform FPU or SIMD operations won't end up using those registers unintentially. Signed-off-by: Keith Packard <[email protected]> (cherry picked from commit d626b83)
1 parent dd01da6 commit 590fb2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gcc/config/aarch64/aarch64-elf.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,7 @@ ASM_MABI_SPEC
144144
#undef TYPE_OPERAND_FMT
145145
#define TYPE_OPERAND_FMT "%%%s"
146146

147+
#undef AARCH64_SIMD_MEMOPS_DEFAULT
148+
#define AARCH64_SIMD_MEMOPS_DEFAULT 0
149+
147150
#endif /* GCC_AARCH64_ELF_H */

0 commit comments

Comments
 (0)