https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115554
--- Comment #1 from Christoph Müllner <cmuellner at gcc dot gnu.org> --- Forgot to mention: The ICE is triggered by an assertion in riscv_func_target_put(), which ensures we don't have more than one target-arch attribute in one function declaration.