From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12877 invoked by alias); 1 Nov 2006 05:05:32 -0000 Received: (qmail 12856 invoked by uid 48); 1 Nov 2006 05:05:24 -0000 Date: Wed, 01 Nov 2006 05:05:00 -0000 Message-ID: <20061101050524.12855.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libfortran/29302] nan_inf_fmt.f90 segfaults on Darwin PPC starting with Xcode 2.4 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg00015.txt.bz2 List-Id: ------- Comment #18 from howarth at nitro dot med dot uc dot edu 2006-11-01 05:05 ------- Andrew, I'll post the preprocessed source for write.c shortly. I did a quick test though moving... #define isfinite(x) (fpclassify(x) != FP_NAN && fpclassify(x) != FP_INFINITE) outside of the preprocessor statements so it is declared in libgfortran.h. This eliminates the incorrect evaluation of isfinite for the nan_inf_fmt testcase. If I move the other form... #define isfinite(x) ((x) - (x) == 0) outside of the preprocessor statement, it fails as before so that form seems to have a problem with optimizations beyond -O0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29302