cp-gimplify.c (cp_maybe_instrument_return): Don't add __builtin_unreachable if -O0...
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 Dec 2017 09:17:32 +0000 (10:17 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Dec 2017 09:17:32 +0000 (10:17 +0100)
commit81e4859a97804dfe76eb090f8b4d6a68361ce658
treec4d6edfef9584b804b4cad0a69edcc27fc9758f2
parent9896696391d7b9ddcc3bd4631d18877f14edd557
cp-gimplify.c (cp_maybe_instrument_return): Don't add __builtin_unreachable if -O0 or if -fsanitize=unreachable.

* cp-gimplify.c (cp_maybe_instrument_return): Don't add
__builtin_unreachable if -O0 or if -fsanitize=unreachable.

* g++.dg/missing-return.C: Add -O to dg-options.

From-SVN: r255403
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/missing-return.C