diff options
author | Toon Moene <toon@moene.indiv.nluug.nl> | 2002-08-31 16:40:23 +0200 |
---|---|---|
committer | Toon Moene <toon@gcc.gnu.org> | 2002-08-31 14:40:23 +0000 |
commit | 39abf68d8c37930a4b563f1a48b6b0123d40f472 (patch) | |
tree | a062e3548940babdd75210c94b9cb3875de7bce0 /gcc/f/invoke.texi | |
parent | cf7b9de4fb3dd2a95471915760c2c4260a4ea320 (diff) | |
download | gcc-39abf68d8c37930a4b563f1a48b6b0123d40f472.zip gcc-39abf68d8c37930a4b563f1a48b6b0123d40f472.tar.gz gcc-39abf68d8c37930a4b563f1a48b6b0123d40f472.tar.bz2 |
com.c: Don't set flag_finite_math_only by default.
2002-08-31 Toon Moene <toon@moene.indiv.nluug.nl>
* com.c: Don't set flag_finite_math_only by default.
* invoke.texi: Reverse the documentation of option
-ffinite-math-only to reflect the new default.
From-SVN: r56707
Diffstat (limited to 'gcc/f/invoke.texi')
-rw-r--r-- | gcc/f/invoke.texi | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/gcc/f/invoke.texi b/gcc/f/invoke.texi index 6bc3910..972b0c2 100644 --- a/gcc/f/invoke.texi +++ b/gcc/f/invoke.texi @@ -182,7 +182,7 @@ by type. Explanations are in the following sections. -malign-double @gol -ffloat-store -fforce-mem -fforce-addr -fno-inline @gol -ffast-math -fstrength-reduce -frerun-cse-after-loop @gol --funsafe-math-optimizations -fno-finite-math-only -fno-trapping-math @gol +-funsafe-math-optimizations -ffinite-math-only -fno-trapping-math @gol -fexpensive-optimizations -fdelayed-branch @gol -fschedule-insns -fschedule-insn2 -fcaller-saves @gol -funroll-loops -funroll-all-loops @gol @@ -1542,8 +1542,8 @@ Note that if you are not optimizing, no functions can be expanded inline. @cindex conformance, IEEE 754 Might allow some programs designed to not be too dependent on IEEE behavior for floating-point to run faster, or die trying. -Sets @option{-funsafe-math-optimizations}, and -@option{-fno-trapping-math}. +Sets @option{-funsafe-math-optimizations}, @option{-ffinite-math-only}, +and @option{-fno-trapping-math}. @cindex -funsafe-math-optimizations option @cindex options, -funsafe-math-optimizations @@ -1551,14 +1551,17 @@ Sets @option{-funsafe-math-optimizations}, and Allow optimizations that may be give incorrect results for certain IEEE inputs. -@cindex -fno-finite-math-only option -@cindex options, -fno-finite-math-only -@item -fno-finite-math-only -Fortran specifies all arithmetic that can result in a NaN or an -infinity as ``giving undefined results'', therefore the compiler -by default operates in a way that assumes no NaNs or +-Inf can -be generated. If your program might generate or use NaNs or -infinities, then you should use this option. +@cindex -ffinite-math-only option +@cindex options, -ffinite-math-only +@item -ffinite-math-only +Allow optimizations for floating-point arithmetic that assume +that arguments and results are not NaNs or +-Infs. + +This option should never be turned on by any @option{-O} option since +it can result in incorrect output for programs which depend on +an exact implementation of IEEE or ISO rules/specifications. + +The default is @option{-fno-finite-math-only}. @cindex -fno-trapping-math option @cindex options, -fno-trapping-math |