From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9962 invoked by alias); 13 Jul 2014 21:10:29 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 9921 invoked by uid 89); 13 Jul 2014 21:10:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: ainaz.pair.com Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 13 Jul 2014 21:10:25 +0000 Received: from [192.168.0.131] (vie-188-118-252-235.dsl.sil.at [188.118.252.235]) by ainaz.pair.com (Postfix) with ESMTPSA id DC33B3F417; Sun, 13 Jul 2014 17:10:21 -0400 (EDT) Date: Sun, 13 Jul 2014 21:10:00 -0000 From: Gerald Pfeifer To: Marek Polacek cc: Jakub Jelinek , GCC Patches , Jeff Law Subject: Re: [PATCH] Implement -fsanitize=object-size In-Reply-To: <20140713175543.GB13277@redhat.com> Message-ID: References: <20140713175543.GB13277@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00925.txt.bz2 Hi Marek, On Sun, 13 Jul 2014, Marek Polacek wrote: > --- gcc/doc/invoke.texi > +++ gcc/doc/invoke.texi > @@ -5477,6 +5477,12 @@ This option enables instrumentation of array bounds. Various out of bounds > accesses are detected. Flexible array members and initializers of variables > with static storage are not instrumented. > > +@item -fsanitize=object-size > +@opindex fsanitize=object-size > +This option enables instrumentation of memory references using the > +@code{__builtin_object_size} function. Various out of bounds pointer > +accesses are detected. I believe this should be "out-of-bounds" and, yes, there is a variant without the dashes just above your patch already which would be good to adjust as well. (Best let's see what a native speaker suggests.) Thanks, Gerald