re PR sanitizer/81275 (-fsanitize=thread produce incorrect -Wreturn-type warning)
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Dec 2017 08:11:56 +0000 (09:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Dec 2017 08:11:56 +0000 (09:11 +0100)
commit9ede7b1bf0f85e3c14e09891ce0720c636ab8ffc
tree5a2552079fa390068f7264ee3b5120c89d9521de
parent770cf505a1c1676f6d4c6968ddd05c5ea0f3af27
re PR sanitizer/81275 (-fsanitize=thread produce incorrect -Wreturn-type warning)

PR sanitizer/81275
* tree-cfg.c (group_case_labels_stmt): Don't optimize away
C++ FE implicitly added __builtin_unreachable () until -Wreturn-type
is diagnosed.

* c-c++-common/tsan/pr81275.c: Remove dg-skip-if.

From-SVN: r255296
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/tsan/pr81275.c
gcc/tree-cfg.c