decl2.c (lang_decode_option): Fix thinko.

2000-05-15  Gabriel Dos Reis  <gdr@codesourcery.com>

        * decl2.c (lang_decode_option): Fix thinko.

From-SVN: r33909
This commit is contained in:
Gabriel Dos Reis 2000-05-15 13:06:24 +00:00 committed by Gabriel Dos Reis
parent 1ccf6e4ffe
commit 72482e9290
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2000-05-15 Gabriel Dos Reis <gdr@codesourcery.com>
* decl2.c (lang_decode_option): Fix thinko.
2000-05-14 Jason Merrill <jason@casey.cygnus.com>
* except.c (check_handlers): New fn.

View File

@ -649,11 +649,11 @@ lang_decode_option (argc, argv)
set_message_length
(read_integral_parameter (p + 15, p - 2,
/* default line-wrap length */ 72));
else if (!strncmp (p, "diagnostics-show-location=", 24))
else if (!strncmp (p, "diagnostics-show-location=", 26))
{
if (!strncmp (p + 24, "once", 4))
if (!strncmp (p + 26, "once", 4))
set_message_prefixing_rule (DIAGNOSTICS_SHOW_PREFIX_ONCE);
else if (!strncmp (p + 24, "every-line", 10))
else if (!strncmp (p + 26, "every-line", 10))
set_message_prefixing_rule (DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE);
else
error ("Unrecognized option `%s'", p - 2);