This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19310] unnecessary error for overflowing results
- From: "jvdelisle at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2006 01:04:02 -0000
- Subject: [Bug fortran/19310] unnecessary error for overflowing results
- References: <bug-19310-9515@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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