https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102035
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Earnshaw <rearn...@gcc.gnu.org>: https://gcc.gnu.org/g:8933c1b66a6b7a66b8843e21c8cb6c0679fc2d09 commit r11-8904-g8933c1b66a6b7a66b8843e21c8cb6c0679fc2d09 Author: Richard Earnshaw <rearn...@arm.com> Date: Fri Jun 18 17:18:37 2021 +0100 arm: fix vlldm erratum for Armv8.1-m [PR102035] For Armv8.1-m we generate code that emits VLLDM directly and do not rely on support code in the library, so emit the mitigation directly as well, when required. In this case, we can use the compiler options to determine when to apply the fix and when it is safe to omit it. gcc: PR target/102035 * config/arm/arm.md (attribute arch): Add fix_vlldm. (arch_enabled): Use it. * config/arm/vfp.md (lazy_store_multiple_insn): Add alternative to use when erratum mitigation is needed. (cherry picked from commit 30461cf8dba3d3adb15a125e4da48800eb2b9b8f)