[RFD] -ffinite-math-only.
Toon Moene
toon@moene.indiv.nluug.nl
Mon Jul 29 12:43:00 GMT 2002
Gabriel Dos Reis wrote:
> Toon Moene <toon@moene.indiv.nluug.nl> writes:
> | [1 <text/plain; us-ascii (7bit)>]
> | Often, one knows that a program won't generate (or consume) NaNs and
> | Infinities; it would be nice if the compiler could be told about that fact.
> |
> | The patch below implements -ffinite-math-only, which does just that.
> | The Fortran front-end sets it by default, as there is no way to generate a
> | NaN or an Infinity in Fortran without invoking undefined behaviour.
> |
> | Would this be a useful addition to GCC ?
> Oh, yes I vote for it. Additionally, it would be helpful it that
> options is reflected in a CPP define (__FINITE_MATH_ONLY__?) so that
> loosely coupled libraries like libstdc++-v3 could take advantages of
> it.
If we can agree on the name, that's an easy addition for me to make.
Thanks,
--
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
More information about the Gcc-patches
mailing list