* 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.
This commit is contained in:
John Gilmore
1992-01-27 22:10:05 +00:00
parent dc72b0b679
commit 5a4e721505
3 changed files with 14 additions and 4 deletions

View File

@@ -2475,8 +2475,10 @@ read_struct_type (pp, type)
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 == '~')
{