https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112734
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think that is pretty much what is implemented (but not taking it into account). Ok, will try to figure out why we ICE. I think -fnon-call-exceptions -ftrapv isn't really a good flag combination, because none of the trapv libgcc handlers are built with -fnon-call-exceptions nor marked as possibly throwing, so one gets a trap/abort rather than something that could be caught anyway.