From: Gerald Pfeifer Date: Thu, 14 Oct 1999 16:41:27 +0000 (+0000) Subject: invoke.texi: Label -Wbad-function-cast... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe50c0eb3bcd01019e3b8e610b3906510a5d4b8e;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c7b0ca78327..6179ff0f006 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,8 +1,16 @@ +Wed Oct 13 00:09:18 1999 Gerald Pfeifer + + * 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 * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info from multiple calls. +>>>>>>> 1.4674 Thu Oct 14 04:54:54 1999 Richard Henderson * 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 (struct rtvec_def): Likewise. * tree.h (struct tree_common): Likewise. +>>>>>>> 1.4673 Wed Oct 13 01:44:29 1999 Carol LePage * configure.in (sparc-hal-solaris2*): Fix xm_file, xm_defines, @@ -305,6 +314,7 @@ Tue Oct 12 07:38:41 1999 Bruce Korb * fixincl/fixlib.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 * genoutput.c: Include toplev.h. diff --git a/gcc/invoke.texi b/gcc/invoke.texi index b128ec250e9..126c7b86894 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -120,7 +120,7 @@ in the following sections. @xref{Warning Options,,Options to Request or Suppress Warnings}. @smallexample -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 -Wconversion -Werror -Wformat -Wid-clash-@var{len} -Wimplicit -Wimplicit-int @@ -128,14 +128,19 @@ in the following sections. -Werror-implicit-function-declaration -Wfloat-equal -Winline -Wlarger-than-@var{len} -Wlong-long -Wmain -Wmissing-declarations -Wmissing-noreturn --Wmissing-prototypes -Wmultichar -Wnested-externs -Wno-import +-Wmultichar -Wno-import -Wparentheses -Wpointer-arith -Wredundant-decls --Wreturn-type -Wshadow -Wsign-compare -Wstrict-prototypes --Wswitch -Wtraditional +-Wreturn-type -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wundef -Wuninitialized -Wunknown-pragmas -Wunreachable-code -Wunused -Wwrite-strings @end smallexample +@item C-only Warning Options +@smallexample +-Wbad-function-cast -Wmissing-prototypes -Wnested-externs +-Wstrict-prototypes -Wtraditional +@end smallexample + @item Debugging Options @xref{Debugging Options,,Options for Debugging Your Program or GCC}. @smallexample @@ -1647,7 +1652,7 @@ struct s x = @{ 3, 4 @}; @item -Wfloat-equal 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 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 to functions. -@item -Wbad-function-cast +@item -Wbad-function-cast (C only) Warn whenever a function call is cast to a non-matching type. 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 a warning.) -@item -Wstrict-prototypes +@item -Wstrict-prototypes (C only) Warn if a function is declared or defined without specifying the argument types. (An old-style function definition is permitted without a warning if preceded by a declaration which specifies the argument types.) -@item -Wmissing-prototypes +@item -Wmissing-prototypes (C only) Warn if a global function is defined without a previous prototype declaration. This warning is issued even if the definition itself 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 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. @item -Wunreachable-code