Message ID | mvmfs7eciqg.fsf@suse.de |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2028429vqr; Tue, 30 May 2023 01:44:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Wp28GDp4BUpvgotRxO+kMRVHmoDhGMERqT05nGBTrCDFkWXyEf9mCdqKKhgW3Is2Pfzg7 X-Received: by 2002:aa7:c14a:0:b0:514:a5ee:2b04 with SMTP id r10-20020aa7c14a000000b00514a5ee2b04mr1269560edp.33.1685436247566; Tue, 30 May 2023 01:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685436247; cv=none; d=google.com; s=arc-20160816; b=FOvhwV9NrvwtKodY+kY1trwTG9jnBqgdHj9tpRpwQJMPrqx2iar/jMz2Z2qSDNATfS oRkaWUzjnHxzMZ91XwFx1i7kQKjRqIQgQbJpvhdnHZOmgC8g/MR2TLRWaaL4jGPPBUfl HwjZ0mXxfp2nNd9+bUh/kJDN0zWO9OU1cf/VT1Y7jkbcBRI7k/U4vrkf8aq5xE5SwZfV qFLcCbJdY3OIqy7DPAcHLP0NQM/1O8xQIwpD8MuCr+rto2B2/uOpGHK8nRaydNeyxZoJ RGZIPXjeul1+bmeoM6osTk2toskqxd5z0GSIPLesqw33CqGQrvSvhFQYWm1TkxVztj/R PyBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:mime-version :user-agent:message-id:date:subject:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=2EsPAk6d/pqt+MdTnQB0gDWsz+SYh3xqrJZq8Yhu0VY=; b=TgQkWTW2TujBSXMgmx8H2fXpWMTMQKabbOvtSoprf+/yzzVIpBKVGrSf4JuBBll/AN iO//FLtVKv8Ku69fybR885kFVEZg1LJhiCUK9ePnsLoXVawnNubyRjZ+pxSjwnAIW+hJ 9rXqTv/dqkFn++9U6yWsImEUJXVoOk5I1igyweZmRDcbC62QW/kf1VnFSkIXvR9H8OrR KN46a2g9tP9g5c7Ymo6GXknyja8G3MSe6cCDIUii37cAPFJODwPwxnogbibfzIBbsT0s jL1DCQ0ZEGI/fFmdX/XXQY+ZiSwHsZZiYtn6yzeaCwX2xdxpp4oRI94O3/fpOXChcuRc bI3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="V/rvcacC"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id h5-20020aa7de05000000b00514a6bcbfe3si51996edv.92.2023.05.30.01.44.07 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 01:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="V/rvcacC"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C1DA3858431 for <ouuuleilei@gmail.com>; Tue, 30 May 2023 08:44:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C1DA3858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685436246; bh=2EsPAk6d/pqt+MdTnQB0gDWsz+SYh3xqrJZq8Yhu0VY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=V/rvcacCLdx8XR6GlpTtZqgCLhU9g2QvzMWlvirgXBDi+5kPPL12ZEDJVBKAAlHCX sIy+peExV0BZDtN9LLUAiwX86GlZqk86w00tvSqQd9r9Bew+v6iyCe2ezcvsmU10Ig ednXr4PmRU4CfhsIlrsyhPGHpp8V93LrbqhKvbIw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 1A148385843E for <gcc-patches@gcc.gnu.org>; Tue, 30 May 2023 08:43:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1A148385843E Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 5089B21A59 for <gcc-patches@gcc.gnu.org>; Tue, 30 May 2023 08:43:19 +0000 (UTC) Received: from hawking.suse.de (unknown [10.168.4.11]) by relay2.suse.de (Postfix) with ESMTP id 45A932C141 for <gcc-patches@gcc.gnu.org>; Tue, 30 May 2023 08:43:19 +0000 (UTC) Received: by hawking.suse.de (Postfix, from userid 17005) id 3BD074A04CE; Tue, 30 May 2023 10:43:19 +0200 (CEST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] riscv: add work around for PR sanitizer/82501 X-Yow: .. here I am in 53 B.C. and all I want is a dill pickle!! Date: Tue, 30 May 2023 10:43:19 +0200 Message-ID: <mvmfs7eciqg.fsf@suse.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Andreas Schwab via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Andreas Schwab <schwab@suse.de> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767307998524291007?= X-GMAIL-MSGID: =?utf-8?q?1767307998524291007?= |
Series |
riscv: add work around for PR sanitizer/82501
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Andreas Schwab
May 30, 2023, 8:43 a.m. UTC
PR sanitizer/82501 * c-c++-common/asan/pointer-compare-1.c: Disable use of small data on RISC-V. --- gcc/testsuite/c-c++-common/asan/pointer-compare-1.c | 1 + 1 file changed, 1 insertion(+)
Comments
LGTM, thanks :) On Tue, May 30, 2023 at 4:43 PM Andreas Schwab via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > PR sanitizer/82501 > * c-c++-common/asan/pointer-compare-1.c: Disable use of small data > on RISC-V. > --- > gcc/testsuite/c-c++-common/asan/pointer-compare-1.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c b/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c > index 4b558bf8179..fb9126d6df1 100644 > --- a/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c > +++ b/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c > @@ -5,6 +5,7 @@ > /* FIXME: remove me after PR sanitizer/82501 is resolved. */ > /* { dg-additional-options "-fno-section-anchors" } */ > /* { dg-additional-options "-msdata=none" { target { powerpc*-*-* } } } */ > +/* { dg-additional-options "-msmall-data-limit=0" { target { riscv*-*-* } } } */ > > volatile int v; > > -- > 2.40.1 > > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different."
diff --git a/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c b/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c index 4b558bf8179..fb9126d6df1 100644 --- a/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c +++ b/gcc/testsuite/c-c++-common/asan/pointer-compare-1.c @@ -5,6 +5,7 @@ /* FIXME: remove me after PR sanitizer/82501 is resolved. */ /* { dg-additional-options "-fno-section-anchors" } */ /* { dg-additional-options "-msdata=none" { target { powerpc*-*-* } } } */ +/* { dg-additional-options "-msmall-data-limit=0" { target { riscv*-*-* } } } */ volatile int v;