From patchwork Mon Nov 2 13:43:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Hainque X-Patchwork-Id: 1392266 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=adacore-com.20150623.gappssmtp.com header.i=@adacore-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=emXmk58e; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CPvJW11mpz9sVT for ; Tue, 3 Nov 2020 00:43:39 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F05E038708D6; Mon, 2 Nov 2020 13:43:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 7039438708BF for ; Mon, 2 Nov 2020 13:43:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7039438708BF Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hainque@adacore.com Received: by mail-wr1-x42a.google.com with SMTP id g12so14635085wrp.10 for ; Mon, 02 Nov 2020 05:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:message-id:date:cc:to; bh=ReZ9iZmT/74usr1kT+Gt2LMo44Gg+YSq8+SZS3ft7Vk=; b=emXmk58eMTxiI9kwPY0o2DjGmE507jeqbPNVYOuW5hHAzUvmdTEuRTs5Btwq6Mh1t5 AVytv73f83hzlB5v/RtKJ+lJvMRPoET3ONsSoAuLf3lU4aFiWyrJgTqCD1phslD57LZJ KlASbqr69qyMwR1ALwzT6emDuPCw0H5tu2qF4SVFMES+Lp24wC40u/yB+XMm+8xDH8JY pDNmENxKQgqoAUOrRfAtGrmKFD0BGwWJPnjyrAZ0BE+Nk3+6v/BIwWmQVdOqw5pMApfK Hpxqj32HErOTx4y2d7ztEc06fyxXDyzqVBErpzW1Dkqk5EKSXmxKNCKrnyhShxiThzOA ozGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:cc:to; bh=ReZ9iZmT/74usr1kT+Gt2LMo44Gg+YSq8+SZS3ft7Vk=; b=EynzxIe7QFwYdD14fhpIkDdOVxQWxfaEUOj83I3bo49o2Qg3XKSBSV1WbPHuDyhPiP /xx1C6LapRu8l7oI9POK+sjGrTeNwjHE0BanHq+Nt4YDdBUsYrN5DxH6AbVVWcQU6fKc ZtB6mmUnGC7j4QA1NctZNldVAroD1PKwbefWxP2S7wEPk+5iTqfhEFh9lFeVtZCtfTFN UPrwjdVvn4L5/5x1cczb/3uRScD0DtR+M466TRzb0oGkCjqB5+f+G5Q4iqbRQpl3rnzL riYoydkvWTNmN3ON7WzXKJ+UtNHVfTQ/jK9+mfDScS1M3JMlYBt0A3KuirQHBSPwhA6K EECQ== X-Gm-Message-State: AOAM532oXAwcGon9iGYHoEX34fraNyFBXySJ9n44BDhLMRJheEGGWh3m HnojXmHYiisBQaLJi9+knmufj2/8JKbDqMxiTzU= X-Google-Smtp-Source: ABdhPJxIwmeKYU/hhlH2Z+z8HtUN1Zh/353y93+DKKKt12ZCJh60ziW8mVNa+8a8t6ZkKK01dT49Sg== X-Received: by 2002:adf:c847:: with SMTP id e7mr13631840wrh.346.1604324611331; Mon, 02 Nov 2020 05:43:31 -0800 (PST) Received: from imac-2020.home (2a01cb0002912700509f136f36f72f05.ipv6.abo.wanadoo.fr. [2a01:cb00:291:2700:509f:136f:36f7:2f05]) by smtp.gmail.com with ESMTPSA id h8sm19952137wro.14.2020.11.02.05.43.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Nov 2020 05:43:30 -0800 (PST) From: Olivier Hainque Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: [patch] openmp test: Add dg-require-effective-target fopenmp to g++ test using -fopenmp Message-Id: <3D95A440-F3F4-4C37-9A4D-E96B56632094@adacore.com> Date: Mon, 2 Nov 2020 14:43:30 +0100 To: GCC Patches X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, LIKELY_SPAM_BODY, 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 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: , Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" Hello, This prevents failures of a test using -fopenmp on targets not advertising support for that feature (VxWorks in my case). I have also verified that the test still runs and passes on a native x86_64-linux configuration. Ok to commit ? Thanks in advance! With Kind Regards, Olivier 2020-11-02 Olivier Hainque testsuite/ * g++.dg/pr80481.C: Add dg-require-effective-target fopenmp. diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C index 78c463b8e3b5..33f75b27653f 100644 --- a/gcc/testsuite/g++.dg/pr80481.C +++ b/gcc/testsuite/g++.dg/pr80481.C @@ -1,4 +1,5 @@ // { dg-do compile { target { i?86-*-* x86_64-*-* } && { ! *-*-solaris* } } } +// { dg-require-effective-target fopenmp } // { dg-options "-Ofast -funroll-loops -fopenmp -march=knl" } // Disabling epilogues until we find a better way to deal with scans. // { dg-additional-options "--param vect-epilogues-nomask=0" }