https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103503
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- RISCV does have the interrupt attribute too which should work here.
pinskia at gcc dot gnu.org via Gcc-bugs Tue, 30 Nov 2021 13:02:18 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103503
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- RISCV does have the interrupt attribute too which should work here.