https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71512
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Aug 12 19:57:35 2016 New Revision: 239431 URL: https://gcc.gnu.org/viewcvs?rev=239431&root=gcc&view=rev Log: PR c/71512 * ubsan.c (instrument_si_overflow): Pass true instead of false to gsi_replace. (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end of bbs. Return TODO_cleanup_cfg if any returned true. * g++.dg/ubsan/pr71512.C: New test. * c-c++-common/ubsan/pr71512-1.c: New test. * c-c++-common/ubsan/pr71512-2.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/c-c++-common/ubsan/pr71512-1.c branches/gcc-6-branch/gcc/testsuite/c-c++-common/ubsan/pr71512-2.c branches/gcc-6-branch/gcc/testsuite/g++.dg/ubsan/pr71512.C Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/ubsan.c --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Fixed.