From patchwork Fri Nov 23 11:27:31 2012
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: [wwwdocs] Mention -faddress-sanitizer in gcc-4.8/changes.html
From: Tobias Burnus
X-Patchwork-Id: 201295
Message-Id: <50AF5DA3.9040803@net-b.de>
To: Konstantin Serebryany
Cc: gcc patches , Dodji Seketeli ,
Gerald Pfeifer
Date: Fri, 23 Nov 2012 12:27:31 +0100
Konstantin Serebryany wrote:
> On Mon, Nov 19, 2012 at 10:44 PM, Tobias Burnus wrote:
>> attached is a first draft for -faddress-sanitizer in the release notes.
> stack overflow is something different, I guess we want to say "stack
> buffer overflow". I typically write something like "heap-, stack-, and global- buffer
> overflow as well as use-after-free bugs".
Fixed. See attached updated patch.
> I also suggest adding "use -O1 or higher for better performance"
> because otherwise "fast memory error detector" is not really true.
Is that needed? I think that's obvious that -O0 is not that fast.
Notes: I didn't mention Sparc, PowerPC, and Darwin as those aren't yet
available. I kept the current wording for ASAN even though global and
stack overflow are to my knowledge not yet available.
Tobias
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.8/changes.html,v
retrieving revision 1.63
diff -u -p -r1.63 changes.html
--- changes.html 21 Nov 2012 10:19:27 -0000 1.63
+++ changes.html 23 Nov 2012 11:21:19 -0000
@@ -110,6 +110,18 @@ by this change.
inlining decisions (for example in the case of Fortran
array descriptors) and devirtualization.
+ AddressSanitizer
+ , a fast memory error detector, has been added and can be
+ enabled via -fsanitize=address. Memory access
+ instructions will be instrumented to detect heap-, stack-, and
+ global-buffer overflow as well as use-after-free bugs. To get
+ nicer stacktraces, use -fno-omit-frame-pointer. The
+ AddressSanitizer is available on IA-32/x86-64/x32 Linux.
+ ThreadSanitizer has been added and can be enabled via
+ -fsanitize=thread. Instructions will be instrumented to
+ detect data races. The ThreadSanitizer is available on x86-64
+ Linux.