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: Optimization Question


  In message <199907281712.NAA00732@ronispc.chem.mcgill.ca>you write:
  > I think Jerry has made a good point.  As far as I know, -ffast-math
  > (not to mention -mno-ieee-fp) can alter the results of calculations,
  > albeit often in cases where the results are likely to be wrong in any
  > case.
-ffast-math is allowed to alter results, particularly around boundary 
conditions (ie stuff like allowing X + 0 -> X).

Allowing some reassociations with -ffast-math is (IMHO) reasonable.  But we
want to be careful that we do not go overboard as that would make -ffast-math
useless.

I actually have an implementation of this in Cygnus's tree as a side effect
of implementing some integer reassociations, but I haven't had the time to
clean up the changes and submit them.

jeff


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