https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121412
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- -msve-vector-bits is not specially handled in lto-wrapper and thus it will go the "default" and ferry that over to the link command. The flag should get into the function-specific target attribute but global vars can be affected which is likely the issue here.