[Bug fortran/19310] unnecessary error for overflowing results

jvdelisle at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 8 01:05:00 GMT 2006



------- Comment #4 from jvdelisle at gcc dot gnu dot org  2006-06-08 01:04 -------
Steve,

I was just about to post an RFC to the list because this PR is requesting a
change of philosophy regarding compile time vs runtime behavior.  Your comment
about -fallow-inf-nan answers my question.  I can see where some users would
want the compile time error, while others may want to use, for example,
exp(1000) to give an infinity.

I think the patch will be straight forward including updating the appropriate
texi.  The -fallow-inf-nan can be applied to range_check in simplify.c and that
will cover most if not all relevant intrinsics.

The default behavior will be to do as is now and give the compile error.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19310



More information about the Gcc-bugs mailing list