Patchwork Patch: Move "-fsanitize=" in doc/invoke.texi from Optimization to Debugging

login
register
mail settings
Submitter Tobias Burnus
Date Feb. 25, 2013, 10:24 a.m.
Message ID <512B3BC6.5040900@net-b.de>
Download mbox | patch
Permalink /patch/222892/
State New
Headers show

Comments

Tobias Burnus - Feb. 25, 2013, 10:24 a.m.
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
Dodji Seketeli - Feb. 25, 2013, 10:42 a.m.
Tobias Burnus <burnus@net-b.de> writes:

> 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?

This looks OK to my casual non (doc) maintainer eyes.

Thanks.

Patch

2013-02-25  Tobias Burnus  <burnus@net-b.de>

	* 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