[comp.bugs.sys5] another DMD SGS "optim" bug fix

gwyn@brl-smoke.ARPA (Doug Gwyn ) (04/30/87)

Third in a continuing series of bug (mostly null pointer dereferencing)
fixes for the 5620 DMD rel. 1.3 (M32, probably also some other 3Bs) SGS
"optim" portable assembly-language code improver:

========== $DMDSGS/sgs/mac/3b/ofc/optim/w1opt.c ==========

Near line 177 (the only occurrence of "isnumlit" in this file);
note that the second bug fix was previously posted:

    if (    pf->op1 && isnumlit(pf->op1)	/* DAG -- bug fix (added first check) */
	&&  (templ = atol(pf->op1+1), templ == (long)((int) templ))	/* DAG -- bug fix (order of evaluation was ill-defined) */
	)