From patchwork Wed Mar 8 04:58:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 66014 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp139759wrd; Tue, 7 Mar 2023 20:59:24 -0800 (PST) X-Google-Smtp-Source: AK7set8Dg6hI/2Sy4wy5kd03/aPsdTyCucnQ+hsvYurz/3iGv49qvVHLBYMWHXJoUuiUXXzgbuy7 X-Received: by 2002:a17:907:2ceb:b0:88a:8e57:f063 with SMTP id hz11-20020a1709072ceb00b0088a8e57f063mr14567487ejc.62.1678251564466; Tue, 07 Mar 2023 20:59:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678251564; cv=none; d=google.com; s=arc-20160816; b=y8ond1za5rKplxM7g6fro9VA95qEJc38sHciGLisKeli7GDQGoCkcB7HiDxWyllL4D 0nC449SEQeixsnjuwYRbHDzToFUxCPC9VvDbhabkeSaDofhEXX/rElCe5THlT+7lLjsB cCCzCUpGg48ybHDmFSES4sYoj45zlCkp3WtctdY8oHuMpSTArwLGhhV8JVS8/GhNcXQO EjfLTrKad3cPQsYuAIu/V3p7g+nndcakaVytx44RqJ1jPdhzOQPNUl4wTi29ui0P7nRs 0179iKiCIztPd4EiImsfZWpcmBlIgVLn+GwMfA0eojJlr27Hcd8kEyDnBEmXv7BGbnJ4 pJyw== 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:date:message-id :content-transfer-encoding:mime-version:subject:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=wYAdfVXTva/txNYaSd01/nZerejfqywZHMsGMXQPSw0=; b=CE15vI2lHdBO1cfkfjEVnS2MpSb6f5w77cd8oErMRPbJE8+rZMDd+v8RFw60k5zpm/ rnD8hYn/tRVHzlfckEbxfNF1wgPoIRZjeqd7hSiVT8rOhBTOHsq9ftYMr+Y9PHIepRLr C208SCuWJWxUcnjPW64Byes7eVg1rTYOUCONz9ezWU9MUub15XaWADEsqinuVsBoVUo4 uqSN0+4jKuFcq/9bYgCy0lfMgx7g5opgTLtjFAzzBmJqj6wSMMstajNR5bH6gglLvWl6 Tu3SUmIy2ZdMXtrMwtJE6ogmThliAaWW2wHqYRmkghIjoqyAf8hjkIb+KBi05gs+SCoZ Uzew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=p2swO9LB; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ha21-20020a170906a89500b008c8f5756068si2294279ejb.766.2023.03.07.20.59.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 20:59:24 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=p2swO9LB; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 4C67F385B522 for ; Wed, 8 Mar 2023 04:59:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C67F385B522 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678251563; bh=wYAdfVXTva/txNYaSd01/nZerejfqywZHMsGMXQPSw0=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=p2swO9LBqWzDCTlAkPATmasEIikkX9hzgChVTpxpPqqcWzIiYeAhVQjmorkFb3pOg ws+/WKcq46AVJpwIsZypfBx07GTATs8q5+tLWqhzQwAoGsCb//yuF9FkE+iD5NYT05 ndF0LdpEgrRitwqemJvEt482vMhZKWo7QJ+aOFGk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by sourceware.org (Postfix) with ESMTPS id 734B83858C30 for ; Wed, 8 Mar 2023 04:58:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 734B83858C30 To: CC: Subject: [PATCH] testsuite: Fix omp-parallel-for-get-min.c and -for-1.c for non-openmp MIME-Version: 1.0 Message-ID: <20230308045839.D4D7D203F2@pchp3.se.axis.com> Date: Wed, 8 Mar 2023 05:58:39 +0100 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, 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: Hans-Peter Nilsson via Gcc-patches From: Hans-Peter Nilsson Reply-To: Hans-Peter Nilsson Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759774312292647648?= X-GMAIL-MSGID: =?utf-8?q?1759774312292647648?= Committed as obvious. -- >8 -- The recently added tests missed checking for "fopenmp" (see other tests where "-fopenmp" is passed), which makes them fail on non-openmp systems. * gcc.dg/analyzer/omp-parallel-for-get-min.c, gcc.dg/analyzer/omp-parallel-for-1.c: Require effective target fopenmp. --- gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c | 1 + gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c index dae940dac200..cadacc842750 100644 --- a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c +++ b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-1.c @@ -1,3 +1,4 @@ +/* { dg-require-effective-target fopenmp } */ /* { dg-additional-options "-fopenmp -Wall" } */ typedef struct _Image diff --git a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c index a7e64e1a3a85..ba9f634cd716 100644 --- a/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c +++ b/gcc/testsuite/gcc.dg/analyzer/omp-parallel-for-get-min.c @@ -1,5 +1,6 @@ /* Reduced from ImageMagick-7.1.0-57's MagickCore/attribute.c: GetEdgeBackgroundColor */ +/* { dg-require-effective-target fopenmp } */ /* { dg-additional-options "-fopenmp -Wall" } */ extern double get_census (void);