diff options
author | obrien <obrien@FreeBSD.org> | 2001-01-03 18:05:31 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-01-03 18:05:31 +0000 |
commit | 784d223de9178eb7b18dcadebd9c173d304f4232 (patch) | |
tree | 9cc1d9cd684b04e75f9f594b9d5949d4b5184aa8 /contrib | |
parent | b2d68729b209563670578d03c54d470ec5edefdf (diff) | |
download | FreeBSD-src-784d223de9178eb7b18dcadebd9c173d304f4232.zip FreeBSD-src-784d223de9178eb7b18dcadebd9c173d304f4232.tar.gz |
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).
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/gcc/toplev.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/gcc/toplev.c b/contrib/gcc/toplev.c index 051dcae..4889637 100644 --- a/contrib/gcc/toplev.c +++ b/contrib/gcc/toplev.c @@ -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)) { |