From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28247 invoked by alias); 23 Sep 2004 20:04:29 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 28239 invoked from network); 23 Sep 2004 20:04:27 -0000 Received: from unknown (HELO book.moene.indiv.nluug.nl) (195.109.255.217) by sourceware.org with SMTP; 23 Sep 2004 20:04:27 -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 1CAZw3-0002pb-00; Thu, 23 Sep 2004 22:11:23 +0200 Message-ID: <41532DD7.4090405@moene.indiv.nluug.nl> Date: Thu, 23 Sep 2004 23:04: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: Bradley Lucier CC: gcc@gcc.gnu.org Subject: Re: why not consfold sin(const) References: <80881DE8-0D0B-11D9-B25D-003065BA681E@math.purdue.edu> In-Reply-To: <80881DE8-0D0B-11D9-B25D-003065BA681E@math.purdue.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-09/txt/msg01356.txt.bz2 Bradley Lucier wrote: >> All functions in can set errno for domain and range errors; >> in other words, those functions are not pure, and cannot be moved out >> of loops or CSE'd away. > > Which is one reason to have -fno-math-errno (which is part of -ffast-math). Sure, but the original implementation of -fno-math-errno I coded because Fortran programmers wouldn't have access to errno anyway, didn't concern itself with the pureness (or even constness) of the resulting function. This is a later addition. -- Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html A maintainer of GNU Fortran 95: http://gcc.gnu.org/fortran/