From patchwork Mon Oct 14 10:26:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 283169 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A29752C0360 for ; Mon, 14 Oct 2013 21:26:51 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=LpwGbQ/Oy1kfXmSkpUwFb0rqTaIkCuSp6GFzmN+N37L NVMG6o8RajZaCLTCTrmhY0qM8vJaWExOYBHLOGFzZBF+YiUc4TCnK1/p16ETW5Bd ucBJNqEPR0rKfVQzrK8BX5ef+di9KKwEJQTQEGLmhHQts0/PERuPozZSkQhOZ9Gs = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=Y6eZDNXYMhZ9/NAXd4NFe9HAJ5Y=; b=dmjIdMOT1ztPuUk6h jyGdzLS/NI43FibSY2cI3mUtFsAgwJWCNEEt50Dd+HFERS7NaQ7b3/voDeT5Clg2 1tuXr0NXYV8DPmLlEH18w43JvupBEKI1ppi/c+CWMnw7ZqFltr8Lyqlasq/yC2Bk l9kQc/1bLPTBdKhLDpgK23wWaM= Received: (qmail 28212 invoked by alias); 14 Oct 2013 10:26:27 -0000 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 Received: (qmail 28179 invoked by uid 89); 14 Oct 2013 10:26:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 14 Oct 2013 10:26:26 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Mon, 14 Oct 2013 11:26:23 +0100 Received: from [10.1.208.24] ([10.1.255.212]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 14 Oct 2013 11:26:21 +0100 Message-ID: <525BC6CD.5070505@arm.com> Date: Mon, 14 Oct 2013 11:26:21 +0100 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-Version: 1.0 To: GCC Patches CC: thomas@codesourcery.com, 'Jakub Jelinek' Subject: [PATCH] Move effective target check after other directives in c-c++-common/cpp/openmp-define-3.c X-MC-Unique: 113101411262307701 X-IsSubscribed: yes Hi all, This minuscule patch moves the dg-require-effective-target fopenmp line after the other directives in the c-c++-common/cpp/openmp-define-3.c test. Otherwise dejagnu still proceeds to add -fopenmp to the options which fails on bare metal arm and aarch64 targets. [cc'ing Thomas because he added the test and Jakub because he merged the OpenMP support recently] Ok to commit to trunk? Thanks, Kyrill diff --git a/gcc/testsuite/c-c++-common/cpp/openmp-define-3.c b/gcc/testsuite/c-c++-common/cpp/openmp-define-3.c index 601a1c3..6986c55 100644 --- a/gcc/testsuite/c-c++-common/cpp/openmp-define-3.c +++ b/gcc/testsuite/c-c++-common/cpp/openmp-define-3.c @@ -1,6 +1,6 @@ -/* { dg-require-effective-target fopenmp } */ /* { dg-options "-fopenmp" } */ /* { dg-do preprocess } */ +/* { dg-require-effective-target fopenmp } */ #ifndef _OPENMP # error _OPENMP not defined