[net.bugs.v7] V7 PDP 11 C-optimizer bug

sater@tjalk.UUCP (Hans van Staveren) (01/20/84)

While massaging the C-optimizer to generate subroutine calls for
floating point instructions I encountered the following minor bug.

In the routine opsetup(), file c20.c there is a line

	if (ophp > &ophash[OPHS])

this must be changed to

	if (ophp >= &ophash[OPHS])

Due to luck of the implementors this does not matter for the standard
application of the C-optimizer.  The symptom is that the 'subf'
instruction falls off the end of the hashtable and is therefore lost.
-- 
			Hans van Staveren, Vrije Universiteit Amsterdam
			..!mcvax!vu44!tjalk!sater