From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2854 invoked by alias); 13 Jul 2005 23:29:10 -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 2838 invoked by uid 22791); 13 Jul 2005 23:29:06 -0000 Received: from us02smtp1.synopsys.com (HELO vaxjo.synopsys.com) (198.182.60.75) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 13 Jul 2005 23:29:06 +0000 Received: from maiden.synopsys.com (maiden.synopsys.com [146.225.100.170]) by vaxjo.synopsys.com (Postfix) with ESMTP id 007EADB24; Wed, 13 Jul 2005 16:29:03 -0700 (PDT) Received: from piper.synopsys.com (localhost [127.0.0.1]) by maiden.synopsys.com (8.9.1/8.9.1) with ESMTP id QAA15128; Wed, 13 Jul 2005 16:29:03 -0700 (PDT) Received: from piper.synopsys.com (localhost [127.0.0.1]) by piper.synopsys.com (8.12.10/8.12.3) with ESMTP id j6DNT3Oe014182; Wed, 13 Jul 2005 16:29:03 -0700 Received: (from jbuck@localhost) by piper.synopsys.com (8.12.10/8.12.10/Submit) id j6DNT3G8014180; Wed, 13 Jul 2005 16:29:03 -0700 Date: Wed, 13 Jul 2005 23:29:00 -0000 From: Joe Buck To: Hiroshi Fujishima Cc: Eric Botcazou , gcc@gcc.gnu.org Subject: Re: isinf Message-ID: <20050713232903.GA14174@synopsys.com> References: <7cfyui3a9r.fsf@gmail.com> <200507132109.47367.ebotcazou@libertysurf.fr> <7cr7e2uyki.fsf@gmail.com> <200507140101.15197.ebotcazou@libertysurf.fr> <7c64vee1qg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c64vee1qg.fsf@gmail.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-07/txt/msg00570.txt.bz2 On Thu, Jul 14, 2005 at 08:16:07AM +0900, Hiroshi Fujishima wrote: > Eric Botcazou writes: > > >> The configure script which is included in rrdtool[1] checks whether > >> the system has isinf() as below. > >> > >> #include > >> int > >> main () > >> { > >> float f = 0.0; isinf(f) > >> ; > >> return 0; > >> } > > > > The test is clearly fragile. Assigning the return value of isinf to a > > variable should be sufficient for 4.0.x at -O0. > > Yes, I contact rrdtool maintainer. Thank you. Best to make it a global variable, to guard against dead code elimination.