utah rcsid 1.12 87/05/02 13:58:32: Don't delete double => int conversions
authorDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 11 Dec 1987 14:55:25 +0000 (06:55 -0800)
committerDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 11 Dec 1987 14:55:25 +0000 (06:55 -0800)
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

index 1e492e1..43fc3bf 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)local2.c   1.20 (Berkeley) %G%";
+static char sccsid[] = "@(#)local2.c   1.21 (Berkeley) %G%";
 #endif
 
 # include "pass2.h"
 #endif
 
 # include "pass2.h"
@@ -1335,6 +1335,8 @@ optim2( p ) register NODE *p; {
                if (r->in.op == SCONV) {
                        int wdest, wconv, wsrc;
 
                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 && 
                        if (anyfloat(r, r->in.left)) {
                                /* let the code table handle two cases */
                                if (p->in.left->in.type == UNSIGNED &&