preprocessor/2188: (-ffast-math implies -D__FAST_MATH__) not documented

lucier@math.purdue.edu lucier@math.purdue.edu
Mon Mar 5 13:16:00 GMT 2001


>Number:         2188
>Category:       preprocessor
>Synopsis:       (-ffast-math implies -D__FAST_MATH__) not documented
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 05 13:16:13 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     B. Lucier
>Release:        gcc 3.1 experimental
>Organization:
>Environment:
all
>Description:
In gcc.c, cpp_options are set up so that the
flag -ffast-math defines the preprocessor symbol
__FAST_MATH__, but this is not documented.
>How-To-Repeat:

>Fix:
Apply this patch.

===================================================================
RCS file: RCS/invoke.texi,v
retrieving revision 1.1
diff -p -r1.1 invoke.texi
*** invoke.texi 2001/03/05 21:08:13     1.1
--- invoke.texi 2001/03/05 21:09:17
*************** example, it allows the compiler to assum
*** 2940,2945 ****
--- 2940,2947 ----
  function are non-negative numbers and that no floating-point values
  are NaNs.

+ This option causes the preprocessor macro __FAST_MATH__ to be defined.
+
  This option should never be turned on by any @samp{-O} option since
  it can result in incorrect output for programs which depend on
  an exact implementation of IEEE or ISO rules/specifications for
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list