invoke.texi: Label -Wbad-function-cast...

* invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
	-Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
	options. Also add a new item "C-only Warning Options" to the
	option summary.

From-SVN: r29980
This commit is contained in:
Gerald Pfeifer 1999-10-14 16:41:27 +00:00
parent a4ebb0e69f
commit fe50c0eb3b
2 changed files with 24 additions and 9 deletions

View File

@ -1,8 +1,16 @@
Wed Oct 13 00:09:18 1999 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
* invoke.texi: Label -Wbad-function-cast, -Wmissing-prototypes,
-Wnested-externs, -Wstrict-prototypes, and -Wtraditional as C only
options. Also add a new item "C-only Warning Options" to the
option summary.
1999-10-14 Gavin Romig-Koch <gavin@cygnus.com> 1999-10-14 Gavin Romig-Koch <gavin@cygnus.com>
* libgcc2.c (__do_global_dtors): Protect __deregister_frame_info * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
from multiple calls. from multiple calls.
>>>>>>> 1.4674
Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com> Thu Oct 14 04:54:54 1999 Richard Henderson <rth@cygnus.com>
* i386.md (call value patterns): Move to the end of the file. * i386.md (call value patterns): Move to the end of the file.
@ -259,6 +267,7 @@ Wed Oct 13 10:07:54 1999 Richard Henderson <rth@cygnus.com>
(struct rtvec_def): Likewise. (struct rtvec_def): Likewise.
* tree.h (struct tree_common): Likewise. * tree.h (struct tree_common): Likewise.
>>>>>>> 1.4673
Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com> Wed Oct 13 01:44:29 1999 Carol LePage <carolo@hal.com>
* configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines, * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines,
@ -305,6 +314,7 @@ Tue Oct 12 07:38:41 1999 Bruce Korb <autogen@linuxbox.com>
* fixincl/fixlib.h: protect against doubly defining t_bool * fixincl/fixlib.h: protect against doubly defining t_bool
* fixincl/server.h: protect against doubly defining t_bool * fixincl/server.h: protect against doubly defining t_bool
>>>>>>> 1.4648
Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com> Mon Oct 11 20:18:41 1999 Jim Wilson <wilson@cygnus.com>
* genoutput.c: Include toplev.h. * genoutput.c: Include toplev.h.

View File

@ -120,7 +120,7 @@ in the following sections.
@xref{Warning Options,,Options to Request or Suppress Warnings}. @xref{Warning Options,,Options to Request or Suppress Warnings}.
@smallexample @smallexample
-fsyntax-only -pedantic -pedantic-errors -fsyntax-only -pedantic -pedantic-errors
-w -W -Wall -Waggregate-return -Wbad-function-cast -w -W -Wall -Waggregate-return
-Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment
-Wconversion -Werror -Wformat -Wconversion -Werror -Wformat
-Wid-clash-@var{len} -Wimplicit -Wimplicit-int -Wid-clash-@var{len} -Wimplicit -Wimplicit-int
@ -128,14 +128,19 @@ in the following sections.
-Werror-implicit-function-declaration -Wfloat-equal -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 -Wmultichar -Wno-import
-Wparentheses -Wpointer-arith -Wredundant-decls -Wparentheses -Wpointer-arith -Wredundant-decls
-Wreturn-type -Wshadow -Wsign-compare -Wstrict-prototypes -Wreturn-type -Wshadow -Wsign-compare -Wswitch
-Wswitch -Wtraditional
-Wtrigraphs -Wundef -Wuninitialized -Wunknown-pragmas -Wunreachable-code -Wtrigraphs -Wundef -Wuninitialized -Wunknown-pragmas -Wunreachable-code
-Wunused -Wwrite-strings -Wunused -Wwrite-strings
@end smallexample @end smallexample
@item C-only Warning Options
@smallexample
-Wbad-function-cast -Wmissing-prototypes -Wnested-externs
-Wstrict-prototypes -Wtraditional
@end smallexample
@item Debugging Options @item Debugging Options
@xref{Debugging Options,,Options for Debugging Your Program or GCC}. @xref{Debugging Options,,Options for Debugging Your Program or GCC}.
@smallexample @smallexample
@ -1647,7 +1652,7 @@ struct s x = @{ 3, 4 @};
@item -Wfloat-equal @item -Wfloat-equal
Warn if floating point values are used in equality comparisons. Warn if floating point values are used in equality comparisons.
@item -Wtraditional @item -Wtraditional (C only)
Warn about certain constructs that behave differently in traditional and Warn about certain constructs that behave differently in traditional and
ANSI C. ANSI C.
@ -1689,7 +1694,7 @@ of @code{void}. GNU C assigns these types a size of 1, for
convenience in calculations with @code{void *} pointers and pointers convenience in calculations with @code{void *} pointers and pointers
to functions. to functions.
@item -Wbad-function-cast @item -Wbad-function-cast (C only)
Warn whenever a function call is cast to a non-matching type. Warn whenever a function call is cast to a non-matching type.
For example, warn if @code{int malloc()} is cast to @code{anything *}. For example, warn if @code{int malloc()} is cast to @code{anything *}.
@ -1739,13 +1744,13 @@ Warn if any functions that return structures or unions are defined or
called. (In languages where you can return an array, this also elicits called. (In languages where you can return an array, this also elicits
a warning.) a warning.)
@item -Wstrict-prototypes @item -Wstrict-prototypes (C only)
Warn if a function is declared or defined without specifying the Warn if a function is declared or defined without specifying the
argument types. (An old-style function definition is permitted without argument types. (An old-style function definition is permitted without
a warning if preceded by a declaration which specifies the argument a warning if preceded by a declaration which specifies the argument
types.) types.)
@item -Wmissing-prototypes @item -Wmissing-prototypes (C only)
Warn if a global function is defined without a previous prototype Warn if a global function is defined without a previous prototype
declaration. This warning is issued even if the definition itself declaration. This warning is issued even if the definition itself
provides a prototype. The aim is to detect global functions that fail provides a prototype. The aim is to detect global functions that fail
@ -1768,7 +1773,7 @@ bugs could be introduced.
Warn if anything is declared more than once in the same scope, even in Warn if anything is declared more than once in the same scope, even in
cases where multiple declaration is valid and changes nothing. cases where multiple declaration is valid and changes nothing.
@item -Wnested-externs @item -Wnested-externs (C only)
Warn if an @code{extern} declaration is encountered within a function. Warn if an @code{extern} declaration is encountered within a function.
@item -Wunreachable-code @item -Wunreachable-code