https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65984
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Jun 3 15:33:59 2015 New Revision: 224092 URL: https://gcc.gnu.org/viewcvs?rev=224092&root=gcc&view=rev Log: Backported from mainline 2015-05-04 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/65984 * ubsan.c: Include tree-cfg.h. (instrument_bool_enum_load): Use stmt_ends_bb_p instead of stmt_could_throw_p test, rename can_throw variable to ends_bb. * c-c++-common/ubsan/pr65984.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/c-c++-common/ubsan/pr65984.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/testsuite/ChangeLog branches/gcc-4_9-branch/gcc/ubsan.c