Commit 39abf68d by Toon Moene Committed by Toon Moene

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
parent cf7b9de4
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.
2002-08-30 Hans-Peter Nilsson <hp@bitrange.com> 2002-08-30 Hans-Peter Nilsson <hp@bitrange.com>
* target.c (ffetarget_memcpy_): Don't test nonexistent * target.c (ffetarget_memcpy_): Don't test nonexistent
......
...@@ -14176,7 +14176,6 @@ ffe_init_options () ...@@ -14176,7 +14176,6 @@ ffe_init_options ()
flag_reduce_all_givs = 1; flag_reduce_all_givs = 1;
flag_argument_noalias = 2; flag_argument_noalias = 2;
flag_merge_constants = 2; flag_merge_constants = 2;
flag_finite_math_only = 1;
flag_errno_math = 0; flag_errno_math = 0;
flag_complex_divide_method = 1; flag_complex_divide_method = 1;
} }
......
...@@ -182,7 +182,7 @@ by type. Explanations are in the following sections. ...@@ -182,7 +182,7 @@ by type. Explanations are in the following sections.
-malign-double @gol -malign-double @gol
-ffloat-store -fforce-mem -fforce-addr -fno-inline @gol -ffloat-store -fforce-mem -fforce-addr -fno-inline @gol
-ffast-math -fstrength-reduce -frerun-cse-after-loop @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 -fexpensive-optimizations -fdelayed-branch @gol
-fschedule-insns -fschedule-insn2 -fcaller-saves @gol -fschedule-insns -fschedule-insn2 -fcaller-saves @gol
-funroll-loops -funroll-all-loops @gol -funroll-loops -funroll-all-loops @gol
...@@ -1542,8 +1542,8 @@ Note that if you are not optimizing, no functions can be expanded inline. ...@@ -1542,8 +1542,8 @@ Note that if you are not optimizing, no functions can be expanded inline.
@cindex conformance, IEEE 754 @cindex conformance, IEEE 754
Might allow some programs designed to not be too dependent Might allow some programs designed to not be too dependent
on IEEE behavior for floating-point to run faster, or die trying. on IEEE behavior for floating-point to run faster, or die trying.
Sets @option{-funsafe-math-optimizations}, and Sets @option{-funsafe-math-optimizations}, @option{-ffinite-math-only},
@option{-fno-trapping-math}. and @option{-fno-trapping-math}.
@cindex -funsafe-math-optimizations option @cindex -funsafe-math-optimizations option
@cindex options, -funsafe-math-optimizations @cindex options, -funsafe-math-optimizations
...@@ -1551,14 +1551,17 @@ Sets @option{-funsafe-math-optimizations}, and ...@@ -1551,14 +1551,17 @@ Sets @option{-funsafe-math-optimizations}, and
Allow optimizations that may be give incorrect results Allow optimizations that may be give incorrect results
for certain IEEE inputs. for certain IEEE inputs.
@cindex -fno-finite-math-only option @cindex -ffinite-math-only option
@cindex options, -fno-finite-math-only @cindex options, -ffinite-math-only
@item -fno-finite-math-only @item -ffinite-math-only
Fortran specifies all arithmetic that can result in a NaN or an Allow optimizations for floating-point arithmetic that assume
infinity as ``giving undefined results'', therefore the compiler that arguments and results are not NaNs or +-Infs.
by default operates in a way that assumes no NaNs or +-Inf can
be generated. If your program might generate or use NaNs or This option should never be turned on by any @option{-O} option since
infinities, then you should use this option. 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 -fno-trapping-math option
@cindex options, -fno-trapping-math @cindex options, -fno-trapping-math
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment