From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100682 invoked by alias); 15 Jun 2018 20:52:52 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 100663 invoked by uid 89); 15 Jun 2018 20:52:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:Fc7nTNr, foremost, H*f:sk:8736xo1, H*f:sk:Y5Q@mai X-Spam-User: qpsmtpd, 2 recipients X-HELO: cc-smtpout2.netcologne.de Received: from cc-smtpout2.netcologne.de (HELO cc-smtpout2.netcologne.de) (89.1.8.212) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Jun 2018 20:52:50 +0000 Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout2.netcologne.de (Postfix) with ESMTP id 7D034124A2; Fri, 15 Jun 2018 22:52:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin2.netcologne.de (Postfix) with ESMTP id 7874D11D74; Fri, 15 Jun 2018 22:52:47 +0200 (CEST) Received: from [78.35.152.204] (helo=cc-smtpin2.netcologne.de) by localhost with ESMTP (eXpurgate 4.1.9) (envelope-from ) id 5b24271f-02b8-7f0000012729-7f00000184bb-1 for ; Fri, 15 Jun 2018 22:52:47 +0200 Received: from [192.168.178.68] (xdsl-78-35-152-204.netcologne.de [78.35.152.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA; Fri, 15 Jun 2018 22:52:37 +0200 (CEST) Subject: Re: libmvec in gcc to have vector math in fortran To: Richard Biener , Florian Weimer Cc: Jakub Jelinek , szabolcs.nagy@arm.com, Janne Blomqvist , nd@arm.com, GCC Development , "fortran@gcc.gnu.org" , sellcey@cavium.com References: <6a8d496b-d830-5eb2-eba3-c2e452d06493@arm.com> <80c395e1-9de5-1d9c-35b6-1ccfdfa6a9e5@arm.com> <20180410102954.GB8577@tucnak> <20180410130655.GD8577@tucnak> <877en01nvw.fsf@mid.deneb.enyo.de> <8736xo1kon.fsf@mid.deneb.enyo.de> From: Thomas Koenig Message-ID: Date: Fri, 15 Jun 2018 20:59:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-06/txt/msg00185.txt.bz2 Hi Richard, > First and foremost we need a syntax that actually works for the > Fortran frontend and a way to automatically include this special > header / module. I can imagine parsing the relevant headers while compiling gfortran and generating C code from it, which could then be #included in the compiler source code. It should be possible to extend mathbuiltins.def that way. How does that sound? Regards Thomas