]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR sanitizer/81212 (-Wreturn-type is disabled when used together with...
authorJakub Jelinek <jakub@redhat.com>
Mon, 25 Jun 2018 16:57:59 +0000 (18:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 25 Jun 2018 16:57:59 +0000 (18:57 +0200)
commit6028f46a2fdfe5116aadb5fb8f68e56b9c1b6fbc
tree798ae49f66631c8ed2f765c6a920a5441f3d23b3
parent9997947e483e03fd35eb9f9f5c0a737b43408ede
backport: re PR sanitizer/81212 (-Wreturn-type is disabled when used together with -fsanitize=return)

Backported from mainline
2017-12-02  Jakub Jelinek  <jakub@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.

From-SVN: r262042
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr81212.C [new file with mode: 0644]
gcc/tree-cfg.c