From patchwork Mon Feb 25 10:24:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 222892 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9F3F12C02B1 for ; Mon, 25 Feb 2013 21:33:28 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1362393209; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=nB3j4Lr 2w28rMFgRS648xlzMsNs=; b=Y8WBAaQ0rxYQjtaYm/qfgQNguNfwUFy3XGMGIIe YdnSfDhhMaaQULrJiuqKOvWt39GvlQ9ySyqlwvErd2Zqou/eyhucm/B2k1avBEuW CO9dzYTzZKBGayoWotL4K/jrIP9Wwaa8DcUWMH/cMD18uGWbP6DjpB/+zEGB42aO kj50= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=fEl7BdjPlas8Bk6uuKeeC20UgoDeXCoA7iVHrnFdcxmmenG82yRq61YWv/AWCJ 0rJVYTPyZolZWYrqsYkG/+6O4E5jCn1vvcHYRJfSFLICxyf4N+w8KHu4oIkHQmYh 58h6d2qlfyXY82jtW/J/iHmOoP+5XWV3SxKnf7pV3cJL8=; Received: (qmail 24539 invoked by alias); 25 Feb 2013 10:33:20 -0000 Received: (qmail 20065 invoked by uid 22791); 25 Feb 2013 10:24:13 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mx02.qsc.de (HELO mx02.qsc.de) (213.148.130.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Feb 2013 10:24:08 +0000 Received: from archimedes.net-b.de (port-92-195-58-102.dynamic.qsc.de [92.195.58.102]) by mx02.qsc.de (Postfix) with ESMTP id C2ECD24D46; Mon, 25 Feb 2013 11:24:06 +0100 (CET) Message-ID: <512B3BC6.5040900@net-b.de> Date: Mon, 25 Feb 2013 11:24:06 +0100 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: gcc patches , Jakub Jelinek , Dodji Seketeli Subject: Patch: Move "-fsanitize=" in doc/invoke.texi from Optimization to Debugging Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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