Should gcc-4.0 apply mathematical associative rules for addition or multiplication

Andrew Pinski pinskia@physics.uc.edu
Tue Oct 5 00:58:00 GMT 2004


On Oct 4, 2004, at 7:53 PM, Fariborz Jahanian wrote:

>
> On Oct 4, 2004, at 4:05 PM, Gabriel Dos Reis wrote:
>> Multiplication on floating point datatypes is *NOT* associative.
>> Transformations that are predicated on associativity are not
>> optimizations in that case.  They may be applied only if
>> -funsafe-transformations.
>
> I don't see this flag defined in gcc-4.0. Are you proposing such a 
> flag?
>
> cc1: error: unrecognized command line option "-funsafe-transformations"

Obvious he means "-funsafe-math-optimizations".

Thanks,
Andrew Pinski



More information about the Gcc mailing list