https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78694
--- Comment #8 from ktkachov at gcc dot gnu.org --- No, sorry. It doesn't ICE for me. Given that the ICE is an RTL sharing ICE, I believe it should only appear when RTL checking is enabled through --enable-checking=rtl but I don't see that in your configure line, so how can you be getting that ICE? I also built an arm-rtems4.12 cc1 toolchain (no libraries) and tried compiling the testcase and it worked