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] | |
Brad Lucier wrote:
Toon Moene wrote:
http://www.fortran.com/f77_std/rjcnf-6.html#sh-6.6: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". It may be there, but I can't find it.
Well, I'd say that if people use Fortran 77, they should either (1) know the model of arithmetic it supplies and adhere to that
I don't think that f77 *has* a model of arithmetic precise enough toIt *is* quite precise in what is prohibited. The operations that produce NaNs or Infinities are prohibited. That means that someone who relies on a Fortran 77 program to do this correctly is relying on an extension of Fortran 77.
"adhere to".
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |