From patchwork Tue Jul 5 10:07:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 103236 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id C8E051007D5 for ; Tue, 5 Jul 2011 20:07:56 +1000 (EST) Received: (qmail 21619 invoked by alias); 5 Jul 2011 10:07:54 -0000 Received: (qmail 21605 invoked by uid 22791); 5 Jul 2011 10:07:53 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mo-p00-ob.rzone.de (HELO mo-p00-ob.rzone.de) (81.169.146.160) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jul 2011 10:07:40 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT2k715jHQaJercGObUOFkj18odoYNahU4Q== X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (business-188-111-022-002.static.arcor-ip.net [188.111.22.2]) by smtp.strato.de (jimi mo45) (RZmta 26.0) with ESMTPA id 603d84n659d3cf ; Tue, 5 Jul 2011 12:07:36 +0200 (MEST) Message-ID: <4E12E264.8090407@gjlay.de> Date: Tue, 05 Jul 2011 12:07:32 +0200 From: Georg-Johann Lay User-Agent: Thunderbird 2.0.0.24 (X11/20100302) MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: Mike Stump , Dodji Seketeli Subject: [testsuite]: Add require fopenmp as needed X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org There is a testcase that fails if no openmp is available. This patch fixed that. CCed contributor. Johann * gcc.dg/cpp/pragma-3.c: Add dg-require-effective-target fopenmp. Index: gcc.dg/cpp/pragma-3.c =================================================================== --- gcc.dg/cpp/pragma-3.c (revision 175811) +++ gcc.dg/cpp/pragma-3.c (working copy) @@ -1,6 +1,7 @@ /* { dg-options "-fopenmp" } { dg-do preprocess } + { dg-require-effective-target fopenmp } */ void foo (void)