This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: What is acceptable for -ffast-math? (Was: associative law in combine)


Alexandre Oliva <aoliva@redhat.com> writes:

| On Jul 30, 2001, Gabriel Dos Reis <gdr@codesourcery.com> wrote:
| 
| > I'm puzzled to see "optimization" used to designate a transformation
| > applying dubious rules to transmute the meaning of a computation :-(
| 
| In what sense is this different from Fortran's rules on parentheses?

The C/C++ Standard, for example, say that a/b/c is evaluated as
(a/b)/c. Someone proposed that it should be evaluated as a/(b*c)
-- which of course is incorrect -- when optimizing.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]