https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99540
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Ideally flag_trapv should be reimplemented on top of __builtin_*_overflow, and do that lowering early rather than at expansion, but that is too late for GCC 11.