Extern variables can now be written to.

This commit is contained in:
David Given 2017-01-06 23:24:05 +01:00
parent 73922f1d16
commit 77fc62285d

View file

@ -119,7 +119,7 @@ lvalexp(struct tnode *tr)
} else { /* NAME */
bs = (struct hshtab *) tr->tr1->tr1;
if (bs->class == EXTERN) {
C_ste_dnam(bs->name, 0);
C_ste_dnam(manglename(bs->name, 'b'), 0);
} else if (bs->class == AUTO) {
C_stl(bs->offset);
} else