From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 287243857C66 for ; Thu, 24 Dec 2020 12:28:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 287243857C66 Received: by mail-wr1-x431.google.com with SMTP id t30so2075968wrb.0 for ; Thu, 24 Dec 2020 04:28:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fPLYDFAP71vSfGpdaHPCn7GOsZrfn62PAhM9AD6wf8E=; b=lQjmCiZQvEdK5LQSBVbZrIP3P5vLTovPyjmjm2nhox5rX/uf4UhrF6yJjthOB0gUuR VO5v7eUSO4bOR/ubxEOU3yCl9Bp6YKOp2uuaaTXDbcbXi+nQDxopOP/+DExMWElK2/FL mDFjRz+xVJOUgoq96SWpPVYdqFeig/r42OhSZbP4MRkK3lAkp96Btoa6jeMMxw1GsKx4 gJPRktPy7OK8So7xeOBTIKvmil7aiSHtNqjzJ1Z01BPvxO8x2Z0JF9X6gUvoGV0Ebsg6 qy0FVZNAbtz3ccpAMKE4rCJB7KpeBim6Qz4lv010msj6JKXOfaR4aNYEe7mhvCHG7Skn ggZA== X-Gm-Message-State: AOAM532lZzP+AdSsf8AxwORakBJsnFAS8HgB2f+tQ46X27yxRSmkRWIL ETRomsmZHkHabpqpay7XchWmNsQnl0V6P2mCGPo= X-Google-Smtp-Source: ABdhPJxHFOghR+mKw+y4Yqw8XesV1XFbJ0/FlHgSqFJC1+67k+a1O7eZ7I8LFHYUCK9EO6zhteKfgSUL52eQ6vnWUTI= X-Received: by 2002:a5d:4e8c:: with SMTP id e12mr33233054wru.321.1608812912154; Thu, 24 Dec 2020 04:28:32 -0800 (PST) MIME-Version: 1.0 References: <2c875371-3d7f-4698-2024-597352665af8@linux.ibm.com> In-Reply-To: From: Jonathan Wakely Date: Thu, 24 Dec 2020 12:28:21 +0000 Message-ID: Subject: Re: GCC address sanitizer - supported architecture To: "Kewen.Lin" Cc: Qingnan Duan , gcc-help X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Dec 2020 12:28:34 -0000 On Thu, 24 Dec 2020, 12:06 Kewen.Lin, wrote: > > on 2020/12/24 =E4=B8=8B=E5=8D=886:10, Jonathan Wakely wrote: > > On Thu, 24 Dec 2020, 08:50 Kewen.Lin via Gcc-help, > wrote: > > > > Hi Qingnan, > > > > on 2020/12/24 =E4=B8=8A=E5=8D=8811:23, Qingnan Duan via Gcc-help wr= ote: > > > Hi everyone, > > > I was looking at this page Instrumentation Options (Using the GNU > Compiler Collection (GCC))< > https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html < > https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html>> and it > says "-fsanitize=3Daddress" is only supported on AArch64. However, I was = able > to compile my code on x86-64 CPU with -fsanitize=3Daddress flag. > > > > > > > I think the part "Note that the only target this option is currentl= y > supported on is AArch64. " > > is specific for option =E2=80=9C-fsanitize=3Dhwaddress=E2=80=9D not= for option > "-fsanitize=3Daddress". > > > > Only aarch64 port re-defines TARGET_MEMTAG_CAN_TAG_ADDRESSES which > is used for -fsanitize=3Dhwaddress, > > that matches the wordings. > > > > By the way, I also felt a bit confused without digging, not sure > whether it's confusing from > > native speaker's perspective. If yes, maybe it's worth to revise i= t > somehow. :) > > > > > > Yes, the documentation should be fixed. As currently written it's > incorrect. > > > > Could you please file a bug? > > > > Hi Jonathan, > > Thanks for confirming this. PR98437 was opened as you suggested. > Great, thanks. > > >