From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17403 invoked by alias); 26 Feb 2007 18:02:47 -0000 Received: (qmail 17371 invoked by uid 48); 26 Feb 2007 18:02:37 -0000 Date: Mon, 26 Feb 2007 18:02:00 -0000 Message-ID: <20070226180237.17370.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/30936] __builtin_nanf("") != __builtin_nanf("") is false for sh4-linux-gnu In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg02899.txt.bz2 ------- Comment #8 from pinskia at gcc dot gnu dot org 2007-02-26 18:02 ------- Actually it turns out this is not a bug but rather you did not read the full documentation: http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/SH-Options.html -mieee Increase IEEE-compliance of floating-point code. At the moment, this is equivalent to -fno-finite-math-only. When generating 16 bit SH opcodes, getting IEEE-conforming results for comparisons of NANs / infinities incurs extra overhead in every floating point comparison, therefore the default is set to -ffinite-math-only. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30936