This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch for bug 16323

This patch fixes bu 16323, a documentation bug where invoke.texi didn't 
document that -Wendif-labels is on by default (although cppopts.texi has 
this correct).  It passes "make info" and "make dvi".  Applied to 

Joseph S. Myers      (personal mail) (CodeSourcery mail) (Bugzilla assignments and CCs)

Index: ChangeLog
RCS file: /cvs/gcc/gcc/gcc/ChangeLog,v
retrieving revision 2.7475
diff -u -r2.7475 ChangeLog
--- ChangeLog	14 Feb 2005 20:22:03 -0000	2.7475
+++ ChangeLog	14 Feb 2005 20:45:03 -0000
@@ -1,3 +1,8 @@
+2005-02-14  Joseph S. Myers  <>
+	PR preprocessor/16323
+	* doc/invoke.texi: Document that -Wendif-labels is on by default.
 2005-02-14  David Edelsohn  <>
 	PR target/19019
Index: doc/invoke.texi
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.578
diff -u -r1.578 invoke.texi
--- doc/invoke.texi	13 Feb 2005 21:31:35 -0000	1.578
+++ doc/invoke.texi	14 Feb 2005 20:45:08 -0000
@@ -214,7 +214,7 @@
 -w  -Wextra  -Wall  -Waggregate-return @gol
 -Wcast-align  -Wcast-qual  -Wchar-subscripts  -Wcomment @gol
 -Wconversion  -Wno-deprecated-declarations @gol
--Wdisabled-optimization  -Wno-div-by-zero  -Wendif-labels @gol
+-Wdisabled-optimization  -Wno-div-by-zero  -Wno-endif-labels @gol
 -Werror  -Werror-implicit-function-declaration @gol
 -Wfatal-errors  -Wfloat-equal  -Wformat  -Wformat=2 @gol
 -Wno-format-extra-args -Wformat-nonliteral @gol
@@ -2876,9 +2876,10 @@
 @opindex Wundef
 Warn if an undefined identifier is evaluated in an @samp{#if} directive.
-@item -Wendif-labels
+@item -Wno-endif-labels
+@opindex Wno-endif-labels
 @opindex Wendif-labels
-Warn whenever an @samp{#else} or an @samp{#endif} are followed by text.
+Do not warn whenever an @samp{#else} or an @samp{#endif} are followed by text.
 @item -Wshadow
 @opindex Wshadow

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]