This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Sat, Jul 02, 2011 at 02:36:21PM +0200, Dominique Dhumieres wrote:
Associative is a forbidden transformation in the standard.
Note 7.18 [1] form F2003 has the following forbidden transformation
(X + Y) + Z X + (Y + Z) (X * Y) - (X * Z) X * (Y - Z) X * (Y - Z) X*Y-X*Z
If -funsafe-math-optimization any of these, then you get what you asked for. (NO, I haven't looked to see what the option allows).
[1] Yes, I know a Note is non-normative text.
-- Tim Prince
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |