🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.v7
Article #131

V7 PDP 11 C-optimizer bug (minor)

#131
From: Hans van Staveren
Date: Fri, 20 Jan 1984 15:27
17 lines
1085 bytes
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
Technical Details
Message-ID: <288@tjalk.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!mcvax!vu44!tjalk!sater

Show Full Headers
Complete Article Headers
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: arc1-ca.pugleaf.net!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