From patchwork Wed Sep 1 07:50:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 63353 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 9D1A3B7160 for ; Wed, 1 Sep 2010 17:51:01 +1000 (EST) Received: (qmail 2807 invoked by alias); 1 Sep 2010 07:50:59 -0000 Received: (qmail 2790 invoked by uid 22791); 1 Sep 2010 07:50:58 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mx01.qsc.de (HELO mx01.qsc.de) (213.148.129.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Sep 2010 07:50:53 +0000 Received: from [192.168.178.22] (port-92-204-46-222.dynamic.qsc.de [92.204.46.222]) by mx01.qsc.de (Postfix) with ESMTP id 2AF2A3D622; Wed, 1 Sep 2010 09:50:48 +0200 (CEST) Message-ID: <4C7E05D7.9060004@net-b.de> Date: Wed, 01 Sep 2010 09:50:47 +0200 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100714 SUSE/3.1.1 Thunderbird/3.1.1 MIME-Version: 1.0 To: FX CC: Fortran List , gcc-patches@gcc.gnu.org Subject: Re: [fortran, patch] Handle POW/CPOW builtins for all floating-point types References: <550FFCCF-E4EB-4731-8683-B03BF3E71539@gmail.com> In-Reply-To: <550FFCCF-E4EB-4731-8683-B03BF3E71539@gmail.com> 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 On 08/31/2010 12:20 AM, FX wrote: > Extension of my previous front-end patch for builtins, which was missing POW/CPOW (and integer pow, i.e. powi and _gfortran_pow_r*_i*). > > Bootstrapped and regtesting on x86_64-linux (a really really clean tree this time, I promise!) > OK to commit? OK. Thanks for the patch. Tobias PS: You wrote for the RFC patch: "Array intrinsics *do not work at all*. This is a limitation of the array descriptor structure, which I cannot overcome by myself." Wouldn't it work to use a patch as the following - or have I missed some fine print? I think we have enough bits to fit 8 DTYPEs - and without the following patch I only count 7. Index: gcc/fortran/libgfortran.h =================================================================== --- gcc/fortran/libgfortran.h (revision 160548) +++ gcc/fortran/libgfortran.h (working copy) @@ -130,7 +130,8 @@ GFC_DTYPE_REAL, GFC_DTYPE_COMPLEX, GFC_DTYPE_DERIVED, - GFC_DTYPE_CHARACTER + GFC_DTYPE_CHARACTER, + GFC_DTYPE_FLOAT128 } dtype;