This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14737] New: Purge political statement from -ffast-math docs
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Mar 2004 23:36:30 -0000
- Subject: [Bug optimization/14737] New: Purge political statement from -ffast-math docs
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I object to the missionary use of the term "should never be
turned on by any -O option" in the description of -ffast-math.
Here is a patch that removes this, and also documents what
this flag is there for:
------------------------
Index: invoke.texi
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.390.2.22
diff -c -r1.390.2.22 invoke.texi
*** invoke.texi 15 Mar 2004 21:15:33 -0000 1.390.2.22
--- invoke.texi 25 Mar 2004 23:31:33 -0000
***************
*** 4395,4404 ****
This option causes the preprocessor macro @code{__FAST_MATH__} to be
defined.
! 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 for
! math functions.
@item -fno-math-errno
@opindex fno-math-errno
--- 4395,4405 ----
This option causes the preprocessor macro @code{__FAST_MATH__} to be
defined.
! This option is not 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 for
! math functions. It may, however, yield faster code for programs that do
! not require the guarantees of these specifications.
@item -fno-math-errno
@opindex fno-math-errno
ChangeLog entry:
2004-03-25 Wolfgang Bangerth <bangerth@dealii.org>
* doc/invoke.texi (optimization options): Reword description
of -ffast-math. Document its primary purpose.
--
Summary: Purge political statement from -ffast-math docs
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Keywords: patch
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14737