Commit b8d2540a by Dirk Zoller Committed by Jeff Law

* invoke.texi: Add docs for -Wfloat-equal warning.

From-SVN: r29723
parent b843d210
...@@ -6,6 +6,7 @@ Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com> ...@@ -6,6 +6,7 @@ Thu Sep 30 00:13:27 1999 Dirk Zoller <duz@rtsffm.com>
* c-typeck.c (build_binary_op): Conditionally warn * c-typeck.c (build_binary_op): Conditionally warn
about equality tests of floating point types. about equality tests of floating point types.
* toplev.c (documented_lan_options): Add -W[no-]float-equal. * toplev.c (documented_lan_options): Add -W[no-]float-equal.
* invoke.texi: Add docs for -Wfloat-equal warning.
Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com) Wed Sep 29 23:43:39 1999 Jeffrey A Law (law@cygnus.com)
......
...@@ -125,7 +125,7 @@ in the following sections. ...@@ -125,7 +125,7 @@ in the following sections.
-Wconversion -Werror -Wformat -Wconversion -Werror -Wformat
-Wid-clash-@var{len} -Wimplicit -Wimplicit-int -Wid-clash-@var{len} -Wimplicit -Wimplicit-int
-Wimplicit-function-declaration -Wimport -Wimplicit-function-declaration -Wimport
-Werror-implicit-function-declaration -Winline -Werror-implicit-function-declaration -Wfloat-equal -Winline
-Wlarger-than-@var{len} -Wlong-long -Wlarger-than-@var{len} -Wlong-long
-Wmain -Wmissing-declarations -Wmissing-noreturn -Wmain -Wmissing-declarations -Wmissing-noreturn
-Wmissing-prototypes -Wmultichar -Wnested-externs -Wno-import -Wmissing-prototypes -Wmultichar -Wnested-externs -Wno-import
...@@ -1389,6 +1389,9 @@ Warn when a declaration does not specify a type. ...@@ -1389,6 +1389,9 @@ Warn when a declaration does not specify a type.
Give a warning (or error) whenever a function is used before being Give a warning (or error) whenever a function is used before being
declared. declared.
@item -Wfloat-equal
Warn if floating point values are used in equality comparisons.
@item -Wimplicit @item -Wimplicit
Same as @samp{-Wimplicit-int} and @samp{-Wimplicit-function-}@* Same as @samp{-Wimplicit-int} and @samp{-Wimplicit-function-}@*
@samp{declaration}. @samp{declaration}.
......
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