9fans archive / 1996 / 03 / 87 /    prev next

From: forsyth@pla... forsyth@pla...
Subject: a compiler bug?
Date: Wed, 27 Mar 1996 01:27:59 -0500

here is what i think is a correct fix for 8c; assuming it's right,
a similar change will be needed to cgen.c in all other compilers.

vortex% diff $home/cd/cmd/8c cgen.c
1194c1194
< 		 * rewrite so lhs has no fn call
---
> 		 * rewrite so lhs has no side effects
1196c1196
< 		if(nn != Z && nn->complex >= FNX) {
---
> 		if(side(nn)) {