V7 PDP 11 C-optimizer bug (minor)

Hans van Staveren sater at tjalk.UUCP
Sat Jan 21 01:27:58 AEST 1984


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



More information about the Net.bugs.v7 mailing list