From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19109 invoked by alias); 13 Jul 2005 19:08:30 -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 18621 invoked by uid 22791); 13 Jul 2005 19:08:24 -0000 Received: from mx-out.tiscali.fr (HELO mail.libertysurf.net) (213.36.80.91) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 13 Jul 2005 19:08:24 +0000 Received: from dyn-83-156-220-215.ppp.tiscali.fr (83.156.220.215) by mail.libertysurf.net (7.1.026) id 42A318CE007386FA; Wed, 13 Jul 2005 21:08:21 +0200 From: Eric Botcazou To: Hiroshi Fujishima Subject: Re: isinf Date: Wed, 13 Jul 2005 19:08:00 -0000 User-Agent: KMail/1.7.1 Cc: gcc@gcc.gnu.org References: <7cfyui3a9r.fsf@gmail.com> In-Reply-To: <7cfyui3a9r.fsf@gmail.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200507132109.47367.ebotcazou@libertysurf.fr> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-SW-Source: 2005-07/txt/msg00558.txt.bz2 > Why does the compilation of b.c fail, while that of a.c succeeds with > gcc-4.0.0 or later? Because the call to isinf is optimized away even at -O0 in the latter case (isinf being a pure function), but not in the former. That could be deemed a little questionable though. The gap is eliminated at -O1. -- Eric Botcazou