https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81212
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 15 22:09:50 2017 New Revision: 255722 URL: https://gcc.gnu.org/viewcvs?rev=255722&root=gcc&view=rev Log: Backported from mainline 2017-12-02 Jakub Jelinek <ja...@redhat.com> PR c++/81212 * tree-cfg.c (pass_warn_function_return::execute): Handle __builtin_ubsan_handle_missing_return like __builtin_unreachable with BUILTINS_LOCATION. * g++.dg/ubsan/pr81212.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/ubsan/pr81212.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/tree-cfg.c