This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
question about -ffast-math implementation
- From: Mike Izbicki <mike dot izbicki at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 31 May 2014 23:52:34 -0700
- Subject: question about -ffast-math implementation
- Authentication-results: sourceware.org; auth=none
- Reply-to: mike dot izbicki at gmail dot com
I'm trying to copy gcc's behavior with the -ffast-math compiler flag
into haskell's ghc compiler. The only documentation I can find about
it is at:
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
I understand how floating point operations work and have come up with
a reasonable list of optimizations to perform. But I doubt it is
exhaustive.
My question is: where can I find all the gory details about what gcc
will do with this flag? I'm perfectly willing to look at source code
if that's what it takes.
Also, are there any optimizations that you wish -ffast-math could
perform, but for various architectural reasons they don't fit into
gcc?