This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -ffast-math and floating point reordering
- From: Robert Dewar <dewar at gnat dot com>
- To: Joe Buck <Joe dot Buck at synopsys dot COM>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 25 Mar 2004 01:03:39 -0500
- Subject: Re: -ffast-math and floating point reordering
- References: <20040324170719.A12420@synopsys.com>
Joe Buck wrote:
Ada: the 1983 LRM seems to say that the rule is the same as for C++:
"... for a sequence of operators of the same precedence level, the
operators are associated in textual order from left to right;
parentheses can be used to impose specific associations"
First, that is the wrong document, describing a language that has been
obsolete for a decade, please reference the Ada 95 document :-)
Secondly, this statement is talking about the evaluation structure. The
rule about reassociation is else where (and is as I stated earlier, you
are allowed to reassociate the the result is in the same model interval)