This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: # Re: [RFD] -ffinite-math-only.


Brad Lucier <lucier@math.purdue.edu> writes:

| > Toon Moene wrote:
| > 
| > No, your mixing "undefined behaviour" with "yields a processor-dependent 
| > approximation to".  Undefined behaviour in Fortran speak means: The 
| > `processor' (compiler+assembler+linker+OS+hardware) can do what it likes 
| > with your program, because it just broke the rules.
| 
| Actually, I don't think I'm mixing those two things.  I just looked through
| the f77 standard and I can't find where dividing by zero, for example,
| leads to "undefined behavior".


Doesn't the FORTRAN standard says that results not mathematically
representable leads to undefined behaviour? (I'm asking, I'm not as
fluent in FORTRAN as I'm in Ewe).

-- Gaby


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