From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27600 invoked by alias); 8 Jun 2004 20:42:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 27417 invoked from network); 8 Jun 2004 20:42:17 -0000 Received: from unknown (HELO book.moene.indiv.nluug.nl) (195.109.255.217) by sourceware.org with SMTP; 8 Jun 2004 20:42:17 -0000 Received: from local ([127.0.0.1] helo=moene.indiv.nluug.nl) by book.moene.indiv.nluug.nl with esmtp (Exim 3.36 #1 (Debian)) id 1BXnXs-0000hP-00; Tue, 08 Jun 2004 22:50:08 +0200 Message-ID: <40C6266C.50609@moene.indiv.nluug.nl> Date: Tue, 08 Jun 2004 21:46:00 -0000 From: Toon Moene Organization: Moene Computational Physics, Maartensdijk, NL User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.6) Gecko/20040414 Debian/1.6-5 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Tobias_Schl=FCter?= CC: gfortran , "gcc-patches@gcc.gnu.org" Subject: Re: [gfortran] Compute x**(-n) as (1/x)**n References: <40C5F85F.80006@moene.indiv.nluug.nl> <40C5F929.8050908@physik.uni-muenchen.de> In-Reply-To: <40C5F929.8050908@physik.uni-muenchen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2004-06/txt/msg00456.txt.bz2 Tobias Schlüter wrote: > Toon Moene wrote: > >> The following change, which I bootstrapped on >> powerpc-unknown-linux-gnu (C and f95) without regressions, leads the >> Fortran front-end to generate expressions x**(-n) with n constant as >> if they were written (1/x)**n. >> > Does this deal correctly with integer x? I remember there were some > special cases somewhere. It doesn't have to :-) By the time control reaches the point where I made my change, INTEGER x has already been dealt with. Hope this helps, -- Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)