Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC830713); site tjalk.UUCP Path: utzoo!linus!philabs!mcvax!vu44!tjalk!sater From: sater@tjalk.UUCP (Hans van Staveren) Newsgroups: net.bugs.v7 Subject: V7 PDP 11 C-optimizer bug (minor) Message-ID: <288@tjalk.UUCP> Date: Fri, 20-Jan-84 10:27:58 EST Article-I.D.: tjalk.288 Posted: Fri Jan 20 10:27:58 1984 Date-Received: Sat, 21-Jan-84 08:28:01 EST Organization: VU Informatica, Amsterdam Lines: 17 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