From c2c596e49f4209e8304763677b9cdd398804d12f Mon Sep 17 00:00:00 2001 From: Donn Seeley Date: Fri, 11 Dec 1987 06:55:25 -0800 Subject: [PATCH 1/1] utah rcsid 1.12 87/05/02 13:58:32: Don't delete double => int conversions on the rhs of assignments to bit fields; we don't want to write double => bitfield templates... SCCS-vsn: old/pcc/ccom.tahoe/local2.c 1.21 --- usr/src/old/pcc/ccom.tahoe/local2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/src/old/pcc/ccom.tahoe/local2.c b/usr/src/old/pcc/ccom.tahoe/local2.c index 1e492e1a31..43fc3bf8c3 100644 --- a/usr/src/old/pcc/ccom.tahoe/local2.c +++ b/usr/src/old/pcc/ccom.tahoe/local2.c @@ -1,5 +1,5 @@ #ifndef lint -static char sccsid[] = "@(#)local2.c 1.20 (Berkeley) %G%"; +static char sccsid[] = "@(#)local2.c 1.21 (Berkeley) %G%"; #endif # include "pass2.h" @@ -1335,6 +1335,8 @@ optim2( p ) register NODE *p; { if (r->in.op == SCONV) { int wdest, wconv, wsrc; + if (p->in.left->in.op == FLD) + return; if (anyfloat(r, r->in.left)) { /* let the code table handle two cases */ if (p->in.left->in.type == UNSIGNED && -- 2.20.1