From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124861 invoked by alias); 13 Jun 2017 13:59:33 -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 124744 invoked by uid 89); 13 Jun 2017 13:59:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Jun 2017 13:59:31 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7DF46AE4D; Tue, 13 Jun 2017 13:59:33 +0000 (UTC) Subject: Re: [PATCH v2] Implement no_sanitize function attribute To: Richard Biener Cc: Jakub Jelinek , "Joseph S. Myers" , GCC Patches References: <83f8580a-03e1-81eb-3216-a1c998810b90@suse.cz> <58587d2d-f61b-e6d5-2d59-8520ca0ce59f@suse.cz> <7a8c52c8-5547-e3f2-02d1-9bc00e69d313@suse.cz> <20170608134715.GV2154@tucnak> <6a27b454-a2a7-ff42-f5b3-93690ca0cf05@suse.cz> <827faf71-693f-cd1b-3e67-212d9048ed65@suse.cz> <2a875298-ecbc-8ef2-991c-7018b82a309a@suse.cz> <32e841e7-6b3e-5c48-3d83-e93150c4a71e@suse.cz> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: <11a43f7a-7c27-2223-f892-e6aba4bccc15@suse.cz> Date: Tue, 13 Jun 2017 13:59:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00946.txt.bz2 On 06/13/2017 03:49 PM, Richard Biener wrote: > On Tue, Jun 13, 2017 at 1:09 PM, Martin Liška wrote: >> On 06/09/2017 03:35 PM, Richard Biener wrote: >>> You can directly transform to no_sanitize with integer mask, not sure why >>> you'd need an intermediate step with a string? >> >> Hello. >> >> Done in attached patch, I'm sending both incremental and final version (complete patch). >> I also decided to support no_sanitize attribute in pretty printer: >> >> __attribute__((no_sanitize (address | shift | shift-base | shift-exponent | integer-divide-by-zero | undefined | unreachable | vla-bound | return | null | signed-integer-overflow | bool | enum | float-divide-by-zero | float-cast-overflow | bounds | bounds-strict | alignment | nonnull-attribute | returns-nonnull-attribute | object-size | vptr))) >> fn1 () >> { >> char my_char[9]; >> char * ptr2; >> char * ptr; >> .. >> >> >> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. >> >> Ready to be installed? > > > +unsigned int > +parse_no_sanitize_attribute (char *value, char **wrong_argument) > +{ > > functions need a comment. > > Otherwise looks ok to me. Done and patch installed as r249158. Thanks for help with that. Martin > > Thanks, > Richard. > >> Martin