public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Guenther <richard.guenther@gmail.com>
To: Scott Robert Ladd <scott.ladd@coyotegulch.com>
Cc: Vincent Lefevre <vincent+gcc@vinc17.org>, gcc@gcc.gnu.org
Subject: Re: GCC and Floating-Point (A proposal)
Date: Thu, 26 May 2005 14:35:00 -0000	[thread overview]
Message-ID: <84fc9c0005052605045c75fe72@mail.gmail.com> (raw)
In-Reply-To: <4295B987.5070905@coyotegulch.com>

On 5/26/05, Scott Robert Ladd <scott.ladd@coyotegulch.com> wrote:
> Allan Sandfeld Jensen wrote:
> >>Yes. I still don't understand why gcc doesn't do -ffast-math by
> >>default like all other compilers.
> 
> Vincent Lefevre wrote:
> > No! And I really don't think that other compilers do that.
> > It would be very bad, would not conform to the C standard[*]
> > and would make lots of codes fail.
> 
> Perhaps what needs to be changed is the definition of -ffast-math
> itself. Some people (myself included) view it from the standpoint of
> using the full capabilities of our processors' hardware intrinsics;
> however, -ffast-math *also* implies the rearrangement of code that
> violates Standard behavior. Thus it does two things that perhaps should
> not be combined.
> 
> To be more pointed, it is -funsafe-math-optimizations (implied by
> -ffast-math) that is in need of adjustment.
> 
> May I be so bold as to suggest that -funsafe-math-optimizations be
> reduced in scope to perform exactly what it's name implies:
> transformations that may slightly alter the meanding of code. Then move
> the use of hardware intrinsics to a new -fhardware-math switch.

I think the other options implied by -ffast-math apart from
-funsafe-math-optimizations should (and do?) enable the use of
hardware intrinsics already.  It's only that some of the optimzations
guarded by -funsafe-math-optimizations could be applied in general.
A good start may be to enumerate the transformations done on a
Wiki page and list the flags it is guarded with.

Richard.

  reply	other threads:[~2005-05-26 12:05 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-24  7:43 GCC and Floating-Point Uros Bizjak
2005-05-25 14:57 ` Vincent Lefevre
2005-05-25 14:59   ` chris jefferson
2005-05-25 15:42     ` Vincent Lefevre
2005-05-29 18:23       ` Marc Espie
2005-05-30 15:35         ` Vincent Lefevre
2005-05-25 15:56     ` Dave Korn
2005-05-25 17:27       ` Vincent Lefevre
2005-05-25 18:44     ` Allan Sandfeld Jensen
2005-05-26 13:48       ` Vincent Lefevre
2005-05-26 13:55         ` GCC and Floating-Point (A proposal) Scott Robert Ladd
2005-05-26 14:35           ` Richard Guenther [this message]
2005-05-26 15:21             ` Scott Robert Ladd
2005-05-26 15:36               ` Paul Brook
2005-05-26 15:45                 ` Gabriel Dos Reis
2005-05-26 15:48                 ` Scott Robert Ladd
2005-05-27 14:08                 ` Vincent Lefevre
2005-05-26 15:08         ` GCC and Floating-Point Daniel Berlin
2005-05-27 12:36           ` Vincent Lefevre
2005-05-27 13:12             ` Daniel Berlin
2005-05-26 20:50         ` Allan Sandfeld Jensen
2005-05-26 21:08           ` Scott Robert Ladd
2005-05-27 13:21           ` Vincent Lefevre
2005-05-27 13:37             ` Scott Robert Ladd
2005-05-27 14:21               ` Vincent Lefevre
2005-05-27 18:06             ` Allan Sandfeld Jensen
2005-05-27 18:07               ` Paul Koning
2005-05-27 18:28                 ` Scott Robert Ladd
2005-05-27 18:29                   ` Richard Guenther
2005-05-27 18:43                     ` Scott Robert Ladd
2005-05-27 18:51                   ` Paul Koning
     [not found]             ` <13859538.1117219635886.JavaMail.root@dtm1eusosrv72.dtm.ops.eu.uu.net>
2005-05-28 12:35               ` Toon Moene
2005-05-28 14:09                 ` Scott Robert Ladd
2005-05-28 14:21                   ` Joseph S. Myers
2005-05-28 14:38                     ` Scott Robert Ladd
2005-05-28 15:55                       ` Joseph S. Myers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84fc9c0005052605045c75fe72@mail.gmail.com \
    --to=richard.guenther@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=scott.ladd@coyotegulch.com \
    --cc=vincent+gcc@vinc17.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).