From patchwork Mon Feb 25 10:24:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Patch: Move "-fsanitize=" in doc/invoke.texi from Optimization to Debugging Date: Mon, 25 Feb 2013 00:24:06 -0000 From: Tobias Burnus X-Patchwork-Id: 222892 Message-Id: <512B3BC6.5040900@net-b.de> To: gcc patches , Jakub Jelinek , Dodji Seketeli As Jeffry Walton realized at http://gcc.gnu.org/ml/gcc/2013-02/msg00280.html, invoke.texi is inconsistent: In the overview, -fsanitize= is listed as debug option (which makes sense) but the actual description is under the section optimization options. OK? Tobias 2013-02-25 Tobias Burnus * doc/invoke.texi (-fsanitize=): Move from optimization to debugging options. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index f18d07e..7088dd0 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -5033,6 +5033,18 @@ other options are processed, and it does so only once, no matter how many times it is given. This is mainly intended to be used with @option{-fcompare-debug}. +@item -fsanitize=address +Enable AddressSanitizer, a fast memory error detector. +Memory access instructions will be instrumented to detect +out-of-bounds and use-after-free bugs. +See @uref{http://code.google.com/p/address-sanitizer/} for more details. + +@item -fsanitize=thread +Enable ThreadSanitizer, a fast data race detector. +Memory access instructions will be instrumented to detect +data race bugs. +See @uref{http://code.google.com/p/data-race-test/wiki/ThreadSanitizer} for more details. + @item -fdump-final-insns@r{[}=@var{file}@r{]} @opindex fdump-final-insns Dump the final internal representation (RTL) to @var{file}. If the @@ -6866,18 +6878,6 @@ assumptions based on that. The default is @option{-fzero-initialized-in-bss}. -@item -fsanitize=address -Enable AddressSanitizer, a fast memory error detector. -Memory access instructions will be instrumented to detect -out-of-bounds and use-after-free bugs. -See @uref{http://code.google.com/p/address-sanitizer/} for more details. - -@item -fsanitize=thread -Enable ThreadSanitizer, a fast data race detector. -Memory access instructions will be instrumented to detect -data race bugs. -See @uref{http://code.google.com/p/data-race-test/wiki/ThreadSanitizer} for more details. - @item -fmudflap -fmudflapth -fmudflapir @opindex fmudflap @opindex fmudflapth