This is the mail archive of the gcc-bugs@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: FW: GNU f77 bug report


In a message dated 5/26/99 10:25:04 PM Pacific Daylight Time, 
bessel@earthlink.net writes:

>    while (t1 != t1o)
>        {
>        t1o=t1
>        t2=0.0d0
>        t2o=-999.0d0
>        c3=1.0d0
>        c4=c2
>        m2=0
>        while (t2 != t2o)
Not a gnu bug, a programming bug.  Your program depends on lucky rounding 
behavior to avoid the infinite looping.  In fact, there is more discussion of 
this in the g77 info pages than in most Fortran compiler vendors' manuals.  
Lahey lf90 gives lots of uncomplimentary messages by default while compiling 
this kind of thing.  Maybe we should have an option -fmore-insults in g77 to 
accomplish the same.

Tim
tprince@computer.org


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