* c-exp.y (yylex): `this' and `template' are only tokens in C++.
* target.c (target_xfer_memory): Return errno in preference to EIO.
Mon Jan 27 13:43:26 1992 John Gilmore (gnu at cygnus.com)
+ * buildsym.c (read_struct_type): Circumvent sun3 sunos "--"
+ compiler bug.
+ * c-exp.y (yylex): `this' and `template' are only tokens in C++.
+
+ * target.c (target_xfer_memory): Return errno in preference to EIO.
+
* xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
TYPE_NFN_FIELDS_TOTAL (TYPE_BASECLASS (type, i));
}
- for (n = nfn_fields; mainlist; mainlist = mainlist->next)
- TYPE_FN_FIELDLISTS (type)[--n] = mainlist->fn_fieldlist;
+ for (n = nfn_fields; mainlist; mainlist = mainlist->next) {
+ --n; /* Circumvent Sun3 compiler bug */
+ TYPE_FN_FIELDLISTS (type)[n] = mainlist->fn_fieldlist;
+ }
if (**pp == '~')
{
case 8:
if (!strncmp (tokstart, "unsigned", 8))
return UNSIGNED;
- if (!strncmp (tokstart, "template", 8))
+ if (current_language->la_language == language_cplus
+ && !strncmp (tokstart, "template", 8))
return TEMPLATE;
break;
case 6:
return ENUM;
if (!strncmp (tokstart, "long", 4))
return LONG;
- if (!strncmp (tokstart, "this", 4))
+ if (current_language->la_language == language_cplus
+ && !strncmp (tokstart, "this", 4))
{
static const char this_name[] =
{ CPLUS_MARKER, 't', 'h', 'i', 's', '\0' };