[comp.bugs.sys5] M32 C compiler

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

I found the following bug in the DMD (Release 2.0) SGS sources.
I would guess that it is present in other WE32000 (3B2, 3B5, etc.)
SGS packages also.

In $DMD/sgs/usr/src/cmd/sgs/comp2/m32/Makefile, delete the line:
		-@echo "Expect 2 \"... may be covered by ...\" messages"
Those messages were produced by the bug being fixed below:

Edit $DMD/sgs/usr/src/cmd/sgs/comp2/common/sty.y:
/* @(#) sty.y: 1.1 12/22/83				*/
...
shapeshr( s1, s2 )
...
	if ( s1 < 0 || s2 < 0 )
		return 0;		/* DAG -- added (bug fix) */

	for( i1 = s1;  shp[i1].sleft >= 0;  i1 = shp[i1].sleft )
...