From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11616 invoked by alias); 11 Jan 2008 09:29:07 -0000 Received: (qmail 11608 invoked by uid 22791); 11 Jan 2008 09:29:07 -0000 X-Spam-Check-By: sourceware.org Received: from TYO201.gate.nec.co.jp (HELO tyo201.gate.nec.co.jp) (202.32.8.193) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Jan 2008 09:28:50 +0000 Received: from relay21.aps.necel.com ([10.29.19.50]) by tyo201.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id m0B9SkxV010738; Fri, 11 Jan 2008 18:28:46 +0900 (JST) Received: from relay11.aps.necel.com ([10.29.19.16] [10.29.19.16]) by relay21.aps.necel.com with ESMTP; Fri, 11 Jan 2008 18:28:46 +0900 Received: from dhapc248.dev.necel.com ([10.114.112.215] [10.114.112.215]) by relay11.aps.necel.com with ESMTP; Fri, 11 Jan 2008 18:28:46 +0900 Received: by dhapc248.dev.necel.com (Postfix, from userid 31295) id D2672401; Fri, 11 Jan 2008 18:28:45 +0900 (JST) From: Miles Bader To: gcc-help@gcc.gnu.org Subject: is there a way to turn off the "-fassociative-math disabled" warning? Reply-To: Miles Bader System-Type: i686-pc-linux-gnu Blat: Foop Date: Sat, 12 Jan 2008 03:02:00 -0000 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-01/txt/msg00101.txt.bz2 I use both "-ffast-math" and "-ftrapping-math" together, and for a while gcc has been spitting the warning message: "warning: -fassociative-math disabled; other options take precedence" For _every_ file I compile, and this is very annoying. While I appreciated the warning the first time, I'd like to turn it off now that I know about the issue. I can do this by explicitly using the "-fno-associative-math" option myself, but I _don't want_ to do this -- if a future release somehow makes figures out a way to make associative-math optimizations work in this situation, I don't want to be in the situation where I've disabled the optimization for no good reason. Does anybody know if there's some option that just turns off the _warning_ without implying that I don't want associative math optimizations? One of the "-Wno-..." options I guess, but I didn't see anything that would handle this case. Thanks, -Miles A complete command-line is: g++ -DHAVE_CONFIG_H -I. -I/usr/include/libpng12 -pthread -I/usr/local/include/OpenEXR -I/usr/local/include -I/usr/include/lua5.1 -O5 -fomit-frame-pointer -ffast-math -march=native -mfpmath=sse -g -Wall -Wextra -std=c++98 -ftrapping-math -MT ellipse.o -MD -MP -MF .deps/ellipse.Tpo -c -o ellipse.o ellipse.cc Gcc version is: g++ (Debian 4.3-20080104-1) 4.3.0 20080104 (experimental) [trunk revision 131316] -- Everywhere is walking distance if you have the time. -- Steven Wright