From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4572 invoked by alias); 19 Feb 2019 18:18:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 4546 invoked by uid 89); 19 Feb 2019 18:18:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY autolearn=ham version=3.3.2 spammy= X-HELO: troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (HELO troutmask.apl.washington.edu) (128.95.76.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 19 Feb 2019 18:18:39 +0000 Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id x1JIIMsR002343 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 19 Feb 2019 10:18:22 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id x1JIILPJ002342; Tue, 19 Feb 2019 10:18:21 -0800 (PST) (envelope-from sgk) Date: Tue, 19 Feb 2019 18:18:00 -0000 From: Steve Kargl To: Martin =?utf-8?B?TGnFoWth?= Cc: Thomas Koenig , Steve Ellcey , Matthias Klose , Joseph Myers , Jakub Jelinek , Bernhard Reutner-Fischer , Richard Biener , "fortran@gcc.gnu.org" , Toon Moene , GCC Patches Subject: Re: [PATCH][RFC] Extend locations where to seach for Fortran pre-include. Message-ID: <20190219181821.GA2117@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <2913f91265696d2b6557037da018e126e63e19fe.camel@caviumnetworks.com> <8f32c16a-53be-4639-e47f-389ec5452a77@netcologne.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.11.2 (2019-01-07) X-SW-Source: 2019-02/txt/msg01597.txt.bz2 On Mon, Feb 18, 2019 at 02:23:34PM +0100, Martin Liška wrote: > > As I installed all needed patches, I'm sending a documentation entry > for the new functionality. > > Thoughts? See below. Ok to commit with suggested changes. > Thanks, > Martin > >From 2d304e3b1d734548811f963c5bed1855b5375c43 Mon Sep 17 00:00:00 2001 > From: marxin > Date: Mon, 18 Feb 2019 14:21:56 +0100 > Subject: [PATCH] Document Fortran header directive. > > --- > gcc/fortran/gfortran.texi | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi > index 02ff32f741f..72771a851f7 100644 > --- a/gcc/fortran/gfortran.texi > +++ b/gcc/fortran/gfortran.texi > @@ -3596,6 +3596,25 @@ loop that follows. N is an integer constant specifying the unrolling factor. > The values of 0 and 1 block any unrolling of the loop. > > > +@node BUILTIN directive > +@subsection BUILTIN directive > + > +The syntax of the directive is > + > +@code{!GCC$ BUILTIN (B) attributes simd FLAGS IF('target')} > + > +You can used this directive to define which middle-end built-ins have vector s/used/use > +implementation. B is name of the middle-end built-in. FLAGS are optional s/B is/@code{B} is the S/FLAGS/@code{FLAGS} > +and must have be either "(inbranch)" or "(notinbranch)". IF statement delete 'have' s/IF/The @code{IF} > +is optional and is used to filter multilib ABIs for that > +the built-in should be vectorized. Example usage: Change "for that the built-in should be vectorized" to "for the built-in that should be vectorized" > + > +@smallexample > +!GCC$ builtin (sinf) attributes simd (notinbranch) if('x86_64') > +@end smallexample > + > +The purpose of the directive is to provide an API among the GCC compiler and > +the GNU C Library which would define vector implementation of math routines. > > @node Non-Fortran Main Program > @section Non-Fortran Main Program > -- > 2.20.1 > -- Steve 20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4 20161221 https://www.youtube.com/watch?v=IbCHE-hONow