Re: question about -ffast-math implementation

2014-06-02 Thread Andi Kleen
Mike Izbicki writes: > Right, but I've never taken a look at the gcc codebase. Where would I > start looking for the relevant files? Is there a general introduction > to the codebase anywhere that I should start with? grep for all the flags set in the two functions below (from gcc/opts.c), wit

Re: question about -ffast-math implementation

2014-06-02 Thread Mike Izbicki
Right, but I've never taken a look at the gcc codebase. Where would I start looking for the relevant files? Is there a general introduction to the codebase anywhere that I should start with? On Mon, Jun 2, 2014 at 11:20 AM, Ian Lance Taylor wrote: > On Mon, Jun 2, 2014 at 12:18 AM, Mike Izbicki

Re: question about -ffast-math implementation

2014-06-02 Thread Ian Lance Taylor
On Mon, Jun 2, 2014 at 12:18 AM, Mike Izbicki wrote: >> Though for the gory details and authoritative answers I suppose you'd > have to look into the source code. > > Where would I find the code for this? This is the GCC source code. There isn't one file that implements -ffast-math. -ffast-math

Re: question about -ffast-math implementation

2014-06-02 Thread Tim Prince
On 6/2/2014 3:00 AM, Andrew Pinski wrote: On Sun, Jun 1, 2014 at 11:09 PM, Janne Blomqvist wrote: On Sun, Jun 1, 2014 at 9:52 AM, Mike Izbicki wrote: 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 i

Re: question about -ffast-math implementation

2014-06-02 Thread Mike Izbicki
> Though for the gory details and authoritative answers I suppose you'd have to look into the source code. Where would I find the code for this?

Re: question about -ffast-math implementation

2014-06-02 Thread Andrew Pinski
On Sun, Jun 1, 2014 at 11:09 PM, Janne Blomqvist wrote: > On Sun, Jun 1, 2014 at 9:52 AM, Mike Izbicki wrote: >> 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/onl

Re: question about -ffast-math implementation

2014-06-01 Thread Janne Blomqvist
On Sun, Jun 1, 2014 at 9:52 AM, Mike Izbicki wrote: > 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

question about -ffast-math implementation

2014-05-31 Thread Mike Izbicki
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