Message ID | orzg5upaqt.fsf@lxoliva.fsfla.org |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2606866vqo; Tue, 23 May 2023 22:20:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5KAoLmUjTbEmeN9OlfaIc6pjNmYfAGN7CkQ1G7yXpdcMMWR64KB8FS4ip3nlE6lJ0kmFan X-Received: by 2002:a17:906:974b:b0:96f:8b64:c0 with SMTP id o11-20020a170906974b00b0096f8b6400c0mr17058887ejy.39.1684905617607; Tue, 23 May 2023 22:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684905617; cv=none; d=google.com; s=arc-20160816; b=Bd9WTDwbhIHmgaTstj1BOydVWv1GAfH2mqVVbk5mvpr7ac4gk0RbkETmxhvYW2JW6m p4p2DC1a6bTU7JuLGn+YGUwiB3Kn4UrBSvsRmwAij2+sakrKVn+6HSmyGBnBbbyOd+M7 WqwOkAuMNcO9eCaFc184xPvH/fwX1lS8NGY3jX52pKRpJ9hgiQXLMcOjsOhXazSVkb2C k/J1KC1bFIlC64NRIkAVyP+hxhh1biv3FzCN5b7dEAwjdM8YllQdfybp5JBoQR/ZRu/P ozDGFbMfKrAYOUmhdZ60QMQqmygt7dMZ6qG/OQ0E9SmArMjw2Xu1kQ6pTzk6jkDo094T szpg== 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:organization:subject:cc:to:dmarc-filter :delivered-to:dkim-signature:dkim-filter; bh=SGgg0f37iT1lanepkqGMf8t5sXKMF3TfFQIQdenQsSA=; b=xKowCKQu7RhPlqRjWhPplu/vUzc6TZc0aWL/y414dxXs7QLF/NI2D5Q6GB3B6DjTTa Aiqw2kCf9ZnTSM/F9AjAgLlRwUJEyM1JjGZlgQ6vjWHEqxr8i1Kh8jv2nzgaVLE1J35c n+K5MhHI7gf+x8QHbhU461b8NoH98VxtxrFyQ3Goi+7NnVu5MOk+nSODWKITeVy2Qucn im/acGmPwSixioMXa2fkldUO9+UNyxXXawaXw/kygMvGEyboTt4Ln8WEX9oYbDyb/9DP qxaVhjtBiNkuGw2a9IEIfX8i3C2OZVu11IwocMcyk+dKPLW+0fhBfs3UzsWZNVxjW2gl Bh0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=XjKJlnpd; 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 l6-20020a170906a40600b00969f6672981si6751996ejz.979.2023.05.23.22.20.17 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 22:20:17 -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=XjKJlnpd; 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 34E6E3858430 for <ouuuleilei@gmail.com>; Wed, 24 May 2023 05:20:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34E6E3858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684905616; bh=SGgg0f37iT1lanepkqGMf8t5sXKMF3TfFQIQdenQsSA=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=XjKJlnpdy59a7XwmI2AQo4NToQmCIwweAf7TgDNC6CksiwHgDJ7Cqy2KiymXvChAU 7IbD4ePHeMMtprYJ3B3JhgpuarJ14ZNZv68SFbo9uOaN9YROe57bPGBEOVJ9C65q0b d8iBIITDiPGtQTQqRS3JuZbZ3evYtPlLfP66y8XI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by sourceware.org (Postfix) with ESMTPS id 699013858434 for <gcc-patches@gcc.gnu.org>; Wed, 24 May 2023 05:19:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 699013858434 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-19a13476ffeso486903fac.0 for <gcc-patches@gcc.gnu.org>; Tue, 23 May 2023 22:19:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684905571; x=1687497571; h=mime-version:user-agent:message-id:date:errors-to:organization :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SGgg0f37iT1lanepkqGMf8t5sXKMF3TfFQIQdenQsSA=; b=Lhy3/rYZET8m+20Y6EFNt+oHDUCV8XfBlGK6uNJtA+pFw2AyWpGkkEtXNseVBjmivP +kS8P4laf9Wqpcvn41OIYoJKY5upeFsOI5mc7E9tkpioQzdISpsblDu/qqqgds6Q0fQW ai2uZY8FJsh5RI5QTlv5a7pMjRSEnCXWwDMfpoqGXcKCHF02U3AnI0BfP0p/kgeEHH0w AyaisRGHPbKn+ViGAwjDFxBMi9cFtY+DDQq/4sZa17Jaka5n5s4USN6xYakfEh3ISbPv z9w8ExbkY2ESXmvfpzMjX+QTzB78CPMrkl+iR05lg9HOvkai4AT1zpYZUur5rSv4LT6/ cDJg== X-Gm-Message-State: AC+VfDxYUQtflHTybPCwRHTdxmxhm7ToDuRy9jKD8Qw754CqevXNm8EO C9MbOXDzeTBw4KHirUvNNDGQHQ1dEx2Sok3Esz4= X-Received: by 2002:a05:6870:7734:b0:18e:8a68:fe41 with SMTP id dw52-20020a056870773400b0018e8a68fe41mr9797366oab.56.1684905571758; Tue, 23 May 2023 22:19:31 -0700 (PDT) Received: from free.home ([2804:7f1:2080:6383:46d9:ede8:ee97:8cc0]) by smtp.gmail.com with ESMTPSA id o2-20020a05687072c200b0017e0c13b29asm4386649oak.36.2023.05.23.22.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 22:19:31 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 34O5JMkl3580059 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 24 May 2023 02:19:22 -0300 To: gcc-patches@gcc.gnu.org Cc: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>, Mike Stump <mikestump@comcast.net> Subject: [PATCH] [testsuite] require pthread for openmp Organization: Free thinker, does not speak for AdaCore Date: Wed, 24 May 2023 02:19:22 -0300 Message-ID: <orzg5upaqt.fsf@lxoliva.fsfla.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: Alexandre Oliva via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Alexandre Oliva <oliva@adacore.com> 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?1766751592721106920?= X-GMAIL-MSGID: =?utf-8?q?1766751592721106920?= |
Series |
[testsuite] require pthread for openmp
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Alexandre Oliva
May 24, 2023, 5:19 a.m. UTC
Fix test that uses -fopenmp without declaring requirement for pthread support. Bootstrapped on x86_64-linux-gnu. Also tested on ppc- and x86-vx7r2 with gcc-12. for gcc/testsuite/ChangeLog * g++.dg/pr80481.C: Add explicit pthread requirement. --- gcc/testsuite/g++.dg/pr80481.C | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Wed, May 24, 2023 at 7:20 AM Alexandre Oliva via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > > Fix test that uses -fopenmp without declaring requirement for pthread > support. > > Bootstrapped on x86_64-linux-gnu. Also tested on ppc- and x86-vx7r2 > with gcc-12. OK > for gcc/testsuite/ChangeLog > > * g++.dg/pr80481.C: Add explicit pthread requirement. > --- > gcc/testsuite/g++.dg/pr80481.C | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C > index 78c463b8e3b58..3a8869914634f 100644 > --- a/gcc/testsuite/g++.dg/pr80481.C > +++ b/gcc/testsuite/g++.dg/pr80481.C > @@ -1,4 +1,6 @@ > // { dg-do compile { target { i?86-*-* x86_64-*-* } && { ! *-*-solaris* } } } > +// -fopenmp implies -pthread > +// { dg-require-effective-target pthread } > // { 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" } > > -- > Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ > Free Software Activist GNU Toolchain Engineer > Disinformation flourishes because many people care deeply about injustice > but very few check the facts. Ask me about <https://stallmansupport.org>
diff --git a/gcc/testsuite/g++.dg/pr80481.C b/gcc/testsuite/g++.dg/pr80481.C index 78c463b8e3b58..3a8869914634f 100644 --- a/gcc/testsuite/g++.dg/pr80481.C +++ b/gcc/testsuite/g++.dg/pr80481.C @@ -1,4 +1,6 @@ // { dg-do compile { target { i?86-*-* x86_64-*-* } && { ! *-*-solaris* } } } +// -fopenmp implies -pthread +// { dg-require-effective-target pthread } // { 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" }