This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ PATCH to fix thinko
- To: gcc-patches at gcc dot gnu dot org
- Subject: C++ PATCH to fix thinko
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 15 May 2000 15:35:34 +0200
- Organization: CodeSourcery, LLC
This patchlet fixes a thinko I introduced lately.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
2000-05-15 Gabriel Dos Reis <gdr@codesourcery.com>
* decl2.c (lang_decode_option): Fix thinko.
Index: decl2.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl2.c,v
retrieving revision 1.346
diff -p -r1.346 decl2.c
*** decl2.c 2000/05/14 08:44:48 1.346
--- decl2.c 2000/05/15 12:51:51
*************** lang_decode_option (argc, argv)
*** 649,659 ****
set_message_length
(read_integral_parameter (p + 15, p - 2,
/* default line-wrap length */ 72));
! else if (!strncmp (p, "diagnostics-show-location=", 24))
{
! if (!strncmp (p + 24, "once", 4))
set_message_prefixing_rule (DIAGNOSTICS_SHOW_PREFIX_ONCE);
! else if (!strncmp (p + 24, "every-line", 10))
set_message_prefixing_rule (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE);
else
error ("Unrecognized option `%s'", p - 2);
--- 649,659 ----
set_message_length
(read_integral_parameter (p + 15, p - 2,
/* default line-wrap length */ 72));
! else if (!strncmp (p, "diagnostics-show-location=", 26))
{
! if (!strncmp (p + 26, "once", 4))
set_message_prefixing_rule (DIAGNOSTICS_SHOW_PREFIX_ONCE);
! else if (!strncmp (p + 26, "every-line", 10))
set_message_prefixing_rule (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE);
else
error ("Unrecognized option `%s'", p - 2);