public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* is there a way to turn off the "-fassociative-math disabled" warning?
@ 2008-01-12  3:02 Miles Bader
  0 siblings, 0 replies; only message in thread
From: Miles Bader @ 2008-01-12  3:02 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-11  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-12  3:02 is there a way to turn off the "-fassociative-math disabled" warning? Miles Bader

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).