[Bug sanitizer/81212] [6 Regression] -Wreturn-type is disabled when used together with -fsanitize=return
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 25 16:58:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81212
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jun 25 16:57:59 2018
New Revision: 262042
URL: https://gcc.gnu.org/viewcvs?rev=262042&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/ubsan/pr81212.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/tree-cfg.c
More information about the Gcc-bugs
mailing list