+2000-12-18 Christian Groessler <cpg@aladdin.de>
+
+ * toplev.c (check_lang_option): Use NUM_ELEM only on arrays, not on
+ pointers.
+
2000-12-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* linux.h (DEFAULT_VTABLE_THUNKS): Switch back to version 1.
{
lang_independent_options * indep_options;
int len;
- long k;
+ int numopts;
+ long k;
char * space;
/* Ignore NULL entries. */
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;
}
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))
{