+2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
+
+ * toplev.c (default_get_pch_validity): Guard the use of
+ target_options with #ifdef TARGET_OPTIONS.
+ (default_pch_valid_p): Likewise.
+
2003-10-26 Andreas Jaeger <aj@suse.de>
Zack Weinberg <zack@codesourcery.com>
Andreas Tobler <toa@pop.agri.ch>
char *result, *r;
*len = sizeof (target_flags) + 2;
+#ifdef TARGET_OPTIONS
for (i = 0; i < ARRAY_SIZE (target_options); i++)
{
*len += 1;
if (*target_options[i].variable)
*len += strlen (*target_options[i].variable);
}
+#endif
result = r = xmalloc (*len);
r[0] = flag_pic;
memcpy (r, &target_flags, sizeof (target_flags));
r += sizeof (target_flags);
+#ifdef TARGET_OPTIONS
for (i = 0; i < ARRAY_SIZE (target_options); i++)
{
const char *str = *target_options[i].variable;
memcpy (r, str, l);
r += l;
}
+#endif
return result;
}
len -= sizeof (target_flags);
/* Check string options. */
+#ifdef TARGET_OPTIONS
for (i = 0; i < ARRAY_SIZE (target_options); i++)
{
const char *str = *target_options[i].variable;
data += l;
len -= l;
}
+#endif
return NULL;