GCC 4.2.0 Status Report (2007-03-04)

Manuel López-Ibáñez lopezibanez@gmail.com
Tue Mar 6 21:24:00 GMT 2007


On 05/03/07, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> On Mon, 5 Mar 2007, Manuel López-Ibáñez wrote:
> > In addition, there are two trivial doc fixes for GCC 4.2, one in
> > invoke.texi and another in opts.c, where it says -Werror- and it
> > should say -Werror=
> > Can I commit them as obvious or do I need to submit a patch?
>
> Both. :-)  That is, go ahead and commit the patch but post it to the
> gcc-patches list as well.
>

Done.
-------------- next part --------------
Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 122637)
+++ gcc/doc/invoke.texi	(revision 122638)
@@ -225,7 +225,7 @@
 -Wc++-compat -Wcast-align  -Wcast-qual  -Wchar-subscripts  -Wcomment @gol
 -Wconversion  -Wno-deprecated-declarations @gol
 -Wdisabled-optimization  -Wno-div-by-zero  -Wno-endif-labels @gol
--Werror  -Werror-* -Werror-implicit-function-declaration @gol
+-Werror  -Werror=* -Werror-implicit-function-declaration @gol
 -Wfatal-errors  -Wfloat-equal  -Wformat  -Wformat=2 @gol
 -Wno-format-extra-args -Wformat-nonliteral @gol
 -Wformat-security  -Wformat-y2k @gol
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 122637)
+++ gcc/ChangeLog	(revision 122638)
@@ -1,3 +1,9 @@
+2007-03-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+	* doc/invoke.texi (Warning Options): Replace -Werror- with
+	-Werror=.
+	* opts.c (common_handle_option): Likewise.
+	
 2006-03-06  Anatoly Sokolov <aesok@post.ru>
 
 	* config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
Index: gcc/opts.c
===================================================================
--- gcc/opts.c	(revision 122637)
+++ gcc/opts.c	(revision 122638)
@@ -688,7 +688,7 @@
 	option_index = find_opt (new_option, lang_mask);
 	if (option_index == N_OPTS)
 	  {
-	    error ("-Werror-%s: No option -%s", arg, new_option);
+	    error ("-Werror=%s: No option -%s", arg, new_option);
 	  }
 	else
 	  {


More information about the Gcc-patches mailing list