From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 129645 invoked by alias); 9 Sep 2019 10:06:24 -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 129635 invoked by uid 89); 9 Sep 2019 10:06:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:545, H*M:1e8a 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; Mon, 09 Sep 2019 10:06:23 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 66D1DABE3; Mon, 9 Sep 2019 10:06:21 +0000 (UTC) Subject: Re: [RFC][PATCH 6/X][libsanitizer] Add -fsanitize=hwaddress flags To: Matthew Malcomson , "gcc-patches@gcc.gnu.org" Cc: "dodji@redhat.com" , nd , "kcc@google.com" , "jakub@redhat.com" , "dvyukov@google.com" References: <156778058239.16148.17480879484406897649.scripted-patch-series@arm.com> From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: <6d5eed74-1e8a-cc93-b8f1-02093b2e322d@suse.cz> Date: Mon, 09 Sep 2019 10:06:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00482.txt.bz2 On 9/6/19 4:46 PM, Matthew Malcomson wrote: > This flag can't be used at the same time as any of the other sanitizers. > We add an equivalent flag to -static-libasan in -static-libhwasan to > ensure static linking. Hello. You're introducing new option argument -fsanitize=hwaddress. However, clang is using 'hwasan': https://github.com/llvm-mirror/clang/blob/master/lib/Driver/ToolChains/CommonArgs.cpp#L625 I would align it with the existing clang's option. Thanks, Martin