Merge rev 1.2 (-fformat-extensions); 1.{7,9} (complain about -O2 on the

Alpha & FORCE_OPTIMIZATION_DOWNGRADE); 1.8 (-Wnon-const-format)
into GCC 2.95.3(RC#1).
This commit is contained in:
David E. O'Brien 2001-01-03 18:05:31 +00:00
parent f0ae320070
commit ac82a333b2

View File

@ -4692,7 +4692,8 @@ check_lang_option (option, lang_option)
{
lang_independent_options * indep_options;
int len;
long k;
int numopts;
long k;
char * space;
/* Ignore NULL entries. */
@ -4722,8 +4723,14 @@ check_lang_option (option, lang_option)
switch (option[1])
{
case 'f': indep_options = f_options; break;
case 'W': indep_options = W_options; break;
case 'f':
indep_options = f_options;
numopts = NUM_ELEM (f_options);
break;
case 'W':
indep_options = W_options;
numopts = NUM_ELEM (W_options);
break;
default: return 1;
}
@ -4735,7 +4742,7 @@ check_lang_option (option, lang_option)
if (option[0] == 'n' && option[1] == 'o' && option[2] == '-')
option += 3;
for (k = NUM_ELEM (indep_options); k--;)
for (k = numopts; k--;)
{
if (!strcmp (option, indep_options[k].string))
{