print identifier name when multiple declared

This commit is contained in:
ceriel 1987-10-02 09:55:16 +00:00
parent 539de05556
commit c974e9176f

View File

@ -43,6 +43,7 @@ offset opr_size(instr)
return (offset) 2*ws; return (offset) 2*ws;
case op_lae: case op_lae:
case op_fil: case op_fil:
case op_gto:
return (offset) UNKNOWN_SIZE; return (offset) UNKNOWN_SIZE;
default: default:
error("illegal operand of opr_size: %d", instr); error("illegal operand of opr_size: %d", instr);
@ -377,7 +378,7 @@ dblock_p block_of_lab(ident)
dbl = symlookup(ident,DEFINING); dbl = symlookup(ident,DEFINING);
VD(dbl); VD(dbl);
if (dbl->d_pseudo != DUNKNOWN) { if (dbl->d_pseudo != DUNKNOWN) {
error("identifier redeclared"); error("identifier %s redeclared", ident);
} }
return dbl; return dbl;
} }