From patchwork Tue Aug 15 18:32:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2 via Gcc-patches" X-Patchwork-Id: 135686 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:3f2:4152:657d with SMTP id x8csp618991vqo; Tue, 15 Aug 2023 11:36:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTlfXSbkKmPHu8iXUB6uUt6MDaf2kAn7GGo2TRIEA4FSJp9ja0yp01AxtAyDjWsqWpiftU X-Received: by 2002:a05:6512:3453:b0:4fb:9497:b2a5 with SMTP id j19-20020a056512345300b004fb9497b2a5mr7836263lfr.21.1692124582152; Tue, 15 Aug 2023 11:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692124582; cv=none; d=google.com; s=arc-20160816; b=B97tmz/sbXxaM0CQv8VKf4Ar7vvHEA8Gg6yOKgtLtpJuL5GXtPLPsQ1lea3RrN+s4V ShpFl4LSBFZC507vlmLTgkFzU4r494lK9RLwoFlVCaHLa81ct1XvrGtH8Gkgd6pRBumS GHkeGd24BEHz3ggHeC8oI0h03oZ51m0QKKusYqKrMM0/oSqHfI9NZ/DpKTcLErlg3Sg8 5rpc2DS4w3r0+7oZ2RNkCiPP+OHaIXvshyOQhpzRiwI1lvo9tz81I++lM0op16l8smsf 22acpuLX4q04WyLlDQFXoPn0Hpe7VE9n/7w4cULGg1WSnjvTsuWQW21cOzDgzBFLxcA4 1Vwg== 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 :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Y7X8vHtsQrcuFrfR23wsmSmO+YYk3cKhiBA8KMdEeHo=; fh=se9AvlvO6nAQ+5ltUc700CnLSEFsJZH/SLcWO+v9loY=; b=ITQs8LP0egoUDe+hXImYsCuv4EQCO/e4qYiKThaAP/ad0TkLP7IeitjxSUbKR3n7rV kOdSWVnOWBaYf2yEa/b4nbK2qY7aUMSjrXRIE9U6GswbYV+GRSiZSkujs59WbU/jkBPE 5LKoUoVYqL2J5YQBfbcxLx1lqUd8+iG2A+/Wk7HyubuNRlY0sVLLZZWWV+leSVoMis88 MXAfFDLMpbhVFf2I4oItzMfdtEwoJuH8OzD0oviF0z5AXAECZakZXM0amhgPxGhiFa4b lC6dDKejQX9XbEowUXKafKUzr76zNRJO1BmXDb3R3g3BvNc0Anoof7dr5gMqm3QRrlR7 RgTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=NDMgHPw3; 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b23-20020aa7df97000000b005231ebef9aasi9048686edy.581.2023.08.15.11.36.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 11:36:22 -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=NDMgHPw3; 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 CB7D03858002 for ; Tue, 15 Aug 2023 18:36:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB7D03858002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692124580; bh=Y7X8vHtsQrcuFrfR23wsmSmO+YYk3cKhiBA8KMdEeHo=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=NDMgHPw3hI4EhmUpv+1yxvqGey8GAMKLHLzJuZxgmfLS4L7hoBlPtMtoisUWP1qzj Y0AFSoBupIyv0fkE7GH2bvFtxHJa6v6CvIptMaUlNVJ/GmvAxquBHVCL4sVh9G4wQQ 6fTkhKaRVrFOsHbUDqzxLFfPQMCAQBl6kpHToJ2w= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id 993E93858002; Tue, 15 Aug 2023 18:35:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 993E93858002 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe8a1591c7so42304465e9.3; Tue, 15 Aug 2023 11:35:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692124536; x=1692729336; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y7X8vHtsQrcuFrfR23wsmSmO+YYk3cKhiBA8KMdEeHo=; b=Gp2agKBMFBBlS++pQbKxbjF9f5wbOrQ3i78QGbzM3f25hD0y0zNd3Lg4FSwogySz3W cJcJWyqgYuxOs4n6FOFFU1XYJdQufMjNkgT1CxZv4xEOa6GGW+LlM96ceNuXt15SThtS BRW2Z44IsQNtYBpyjx38SMbFRit6n7Z6FONqBL9moafLV3yeXs/48J9hJMZBB7DuP/cm Rmbt59iD+y77GH3EGpVD4cB357/ViJ4Y8G7KXGrr9noFWzqQtJkPy66plGRjaou2k8QU YBUYV/jNSHIAwNcWiwO9xSvrr5y/3FJExEk/zVglfnaVzvXrLUbVqCIjGl6tUWxDygTd UNPg== X-Gm-Message-State: AOJu0YxWmGlBSNd8Q6w9cSgJo2VJfAQc+6xciT4SRyBpxNt2UNQABNep KX3DJu8eSu7WhlLJNUQoI0niO7CAwA== X-Received: by 2002:a1c:7910:0:b0:3fb:e643:1225 with SMTP id l16-20020a1c7910000000b003fbe6431225mr11295763wme.13.1692124536073; Tue, 15 Aug 2023 11:35:36 -0700 (PDT) Received: from localhost ([2a01:e0a:2ec:f0d0:6b11:2827:634d:1830]) by smtp.gmail.com with UTF8SMTPSA id y2-20020adffa42000000b00317e6f06e22sm18769793wrr.77.2023.08.15.11.35.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 11:35:35 -0700 (PDT) X-Google-Original-From: vultkayn@gcc.gnu.org To: gcc-patches@gcc.gnu.org Cc: dmalcolm@redhat.com, benjamin priour Subject: [PATCH] testsuite: Remove unused dg-line in ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83 Date: Tue, 15 Aug 2023 20:32:09 +0200 Message-Id: <20230815183208.330060-1-vultkayn@gcc.gnu.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Benjamin Priour via Gcc-patches From: "Li, Pan2 via Gcc-patches" Reply-To: priour.be@gmail.com Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774321225603470982 X-GMAIL-MSGID: 1774321225603470982 From: benjamin priour Yet another blunder. Succesfully regstrapped against ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83 on x86_64-linux-gnu. OK to push on trunk ? Sorry, Benjamin. Fixup below. --- Test case g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C introduced by patch ce8cdf5bcf96a2db6d7b9f656fc9ba58d7942a83 emitted a warning for an unused dg-line variable. This fixes up the blunder. Signed-off-by: benjamin priour gcc/testsuite/ChangeLog: * g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C: Remove dg-line var declare_a. --- .../g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C b/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C index 4cc93d129f0..aa964f93563 100644 --- a/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C +++ b/gcc/testsuite/g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C @@ -6,7 +6,7 @@ struct A {int x; int y;}; int main () { /* { dg-message "\\(1\\) entry to 'main'" "telltale event that we are going within a deeper frame than 'main'" } */ - std::shared_ptr a; /* { dg-line declare_a } */ + std::shared_ptr a; a->x = 4; /* { dg-line deref_a } */ /* { dg-warning "dereference of NULL" "" { target *-*-* } deref_a } */