gcc-4.10-20140601 is now available

2014-06-01 Thread gccadmin
Snapshot gcc-4.10-20140601 is now available on
  ftp://gcc.gnu.org/pub/gcc/snapshots/4.10-20140601/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 4.10 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/trunk revision 211120

You'll find:

 gcc-4.10-20140601.tar.bz2Complete GCC

  MD5=9cbce1767cc158e83c9adafa80a8a435
  SHA1=5ad5ee205c76649d1b178891e985dfd156a218f2

Diffs from 4.10-20140525 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-4.10
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.


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 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.

In addition to the official documentation, a nice overview is at

https://gcc.gnu.org/wiki/FloatingPointMath

Though for the gory details and authoritative answers I suppose you'd
have to look into the source code.

> Also, are there any optimizations that you wish -ffast-math could
> perform, but for various architectural reasons they don't fit into
> gcc?

There are of course a (nearly endless?) list of optimizations that
could be done but aren't (lack of manpower, impractical, whatnot). I'm
not sure there are any interesting optimizations that would be
dependent on loosening -ffast-math further?

(One thing I wish wouldn't be included in -ffast-math is
-fcx-limited-range; the naive complex division algorithm can easily
lead to comically poor results.)

-- 
Janne Blomqvist