https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87067
--- Comment #3 from Frank Schaefer <kelledin at gmail dot com> --- Well...it looks like Vladislav Ivanishin actually nailed down the root-cause (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87076 ). His small test program reproduces the same issue I'm seeing--and based on his input, if I take the offending commands and add matching -march flags to the link command, the ICE no longer occurs. I'm guessing this didn't affect my AArch64 build because AArch64 just doesn't have significantly-different -march options (I just set it to -march=armv8-a and left it at that). I suggest we do any necessary changes under 87076 and mark this as a duplicate.