Enable -fsanitize-address-use-after-scope only if -fsanitize=address is enabled
authorDmitry Vyukov <dvyukov@google.com>
Thu, 8 Dec 2016 14:32:24 +0000 (06:32 -0800)
committerDmitry Vyukov <dvyukov@gcc.gnu.org>
Thu, 8 Dec 2016 14:32:24 +0000 (06:32 -0800)
commit04bfa1e4691afb9eb0edcd9e80ec1e542628c7d4
tree716c3a27d9d026e9a845aa1d821bc784d6972c30
parent48d73a936497f71a489b8708b34e210bd02c06eb
Enable -fsanitize-address-use-after-scope only if -fsanitize=address is enabled

2016-12-08  Dmitry Vyukov  <dvyukov@google.com>

* opts.c (finish_options): Enable
-fsanitize-address-use-after-scope only if -fsanitize=address is enabled
(not -fsanitize=kernel-address).
* doc/invoke.texi (-fsanitize=kernel-address):
Don't say that it enables -fsanitize-address-use-after-scope.

From-SVN: r243441
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/opts.c