|Fortran compiler optimisation email@example.com (1994-11-11)|
|re: Fortran compiler optimisation 7549-15328 (firstname.lastname@example.org (Dennis Ritchie0112710)) (1994-11-14)|
|From:||email@example.com (Dennis Ritchie <7549-15328> 0112710)|
|Organization:||AT&T Bell Labs, Murray Hill, NJ|
|Date:||Mon, 14 Nov 1994 06:53:09 GMT|
Bill Purvis observed that several Fortran compilers (including f2c)
fred = (fred*1000000)*500000
apparently by folding the constants as integers, and silently
suffering overflow. I confirm that the f77 supplied with local
SGI IRIX machines do this, and so did f2c.
Once David Gay learned of f2c's misbehavior, he fixed it;
the latest version of f2c at netlib.att.com no longer exhibits the bug.
Return to the
Search the comp.compilers archives again.