invoke.texi: Label -Wbad-function-cast...
authorGerald Pfeifer <gerald@gcc.gnu.org>
Thu, 14 Oct 1999 16:41:27 +0000 (16:41 +0000)
committerGerald Pfeifer <gerald@gcc.gnu.org>
Thu, 14 Oct 1999 16:41:27 +0000 (16:41 +0000)
* 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

gcc/ChangeLog
gcc/invoke.texi

index c7b0ca783274941c2b80a550fdcded84b28248f3..6179ff0f006ffccfb385546086c43f4430e67757 100644 (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>
 
        * libgcc2.c (__do_global_dtors): Protect __deregister_frame_info
        from multiple calls.
 
+>>>>>>> 1.4674
 Thu Oct 14 04:54:54 1999  Richard Henderson  <rth@cygnus.com>
 
        * 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.
        * tree.h (struct tree_common): Likewise.
 
+>>>>>>> 1.4673
 Wed Oct 13 01:44:29 1999  Carol LePage  <carolo@hal.com>
 
         * 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/server.h: protect against doubly defining t_bool
 
+>>>>>>> 1.4648
 Mon Oct 11 20:18:41 1999  Jim Wilson  <wilson@cygnus.com>
 
        * genoutput.c: Include toplev.h.
index b128ec250e94c41415026fb6510eb34edd4066cb..126c7b8689496c833109b167d94953a23ff6d24e 100644 (file)
@@ -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