From patchwork Mon Nov 3 17:36:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 406319 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 9C33C140082 for ; Tue, 4 Nov 2014 04:36:24 +1100 (AEDT) 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=cPr6dHPbYcws+3YBkIPMBBSda8/HcVIqyAyaag0ZdVf ezRemmMNf15WzZDUB71q3c/E1jIqOqHkYOXehg7HYcPN1Gwbs3RlTSShCSvGnEDE MYCG+nkdxUgpWlsF2Wcxxv+zETZpAQI39S3h77HNijnJZjb6NdEn4nGc3smtb/II = 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=plLNoG/1OcSp0lbj2dkA++a88LM=; b=YE/mSeeg/4u1IaKk9 ANJOQJnXhUbpKd0zfIyGzig6+bJH9tMBFFSbDoNuwMnL/g6ofXeTbgrSDgRkrlDi VBtqcDQYj4BxflqD7U+eA99/qRrDwhs6uMknv35GKtz0ruXVOysXGqCUhsE0uXwD EatddzfCGF8jJYrPioqs74a56c= Received: (qmail 15453 invoked by alias); 3 Nov 2014 17:36:16 -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 15440 invoked by uid 89); 3 Nov 2014 17:36:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 03 Nov 2014 17:36:14 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-01.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XlLY2-0003On-4R from Tom_deVries@mentor.com for gcc-patches@gcc.gnu.org; Mon, 03 Nov 2014 09:36:10 -0800 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.3.181.6; Mon, 3 Nov 2014 17:36:08 +0000 Message-ID: <5457BD06.3060708@mentor.com> Date: Mon, 3 Nov 2014 18:36:06 +0100 From: Tom de Vries User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Thomas Schwinge CC: GCC Patches Subject: [gomp4] Mark fopenacc as LTO option Thomas, This patch marks fopenacc as LTO option. This allows fopenacc to be passed to lto, which means the openacc builtins are recognized when reading in the LTO stream. This fixes a number of testcases in the libgomp testsuite. ok for gomp-4_0-branch? Thanks, - Tom 2014-11-03 Tom de Vries * c.opt (fopenacc): Mark as LTO option. * lang.opt (fopenacc): Mark as LTO option. diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 09951c9..fd5a615 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -1193,7 +1193,7 @@ ObjC ObjC++ Var(flag_objc1_only) Conform to the Objective-C 1.0 language as implemented in GCC 4.0 fopenacc -C ObjC C++ ObjC++ Var(flag_openacc) +C ObjC C++ ObjC++ LTO Var(flag_openacc) Enable OpenACC fopenmp diff --git a/gcc/fortran/lang.opt b/gcc/fortran/lang.opt index bbea334..48b47af 100644 --- a/gcc/fortran/lang.opt +++ b/gcc/fortran/lang.opt @@ -530,7 +530,7 @@ Fortran Set default accessibility of module entities to PRIVATE. fopenacc -Fortran +Fortran LTO ; Documented in C fopenmp -- 1.9.1