From: Neil Booth Date: Tue, 13 Aug 2002 19:30:33 +0000 (+0000) Subject: opts.c (c_common_init_options): Extra braces needed. X-Git-Tag: releases/gcc-3.3.0~3305 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=293373516994fdd7eb1293f664a3a9784d9fdc87;p=thirdparty%2Fgcc.git opts.c (c_common_init_options): Extra braces needed. From-SVN: r56262 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cd38b3c95040..ea1be68c771d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-08-13 Neil Booth + + * c-opts.c (c_common_init_options): Extra braces needed. + Tue Aug 13 17:40:25 2002 J"orn Rennecke * sh.c (sh_init_builtins): Add PARAMS to declaration. diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 2be997147756..64369a6a8359 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -496,12 +496,14 @@ c_common_init_options (lang) qsort (cl_options, N_OPTS, sizeof (struct cl_option), opt_comp); #endif #if ENABLE_CHECKING + { size_t i; for (i = 1; i < N_OPTS; i++) if (strcmp (cl_options[i - 1].opt_text, cl_options[i].opt_text) >= 0) error ("options array incorrectly sorted: %s is before %s", cl_options[i - 1].opt_text, cl_options[i].opt_text); + } #endif c_language = lang;