Module Name: src
Committed By: plunky
Date: Wed Aug 10 08:08:39 UTC 2011
Modified Files:
src/external/bsd/pcc/dist/pcc/cc/ccom: pftn.c
Log Message:
fix up some undefined behaviour, to appease gcc 4.5
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/bsd/pcc/dist/pcc/cc/ccom/pftn.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/pcc/dist/pcc/cc/ccom/pftn.c
diff -u src/external/bsd/pcc/dist/pcc/cc/ccom/pftn.c:1.5 src/external/bsd/pcc/dist/pcc/cc/ccom/pftn.c:1.6
--- src/external/bsd/pcc/dist/pcc/cc/ccom/pftn.c:1.5 Thu Jun 3 19:07:59 2010
+++ src/external/bsd/pcc/dist/pcc/cc/ccom/pftn.c Wed Aug 10 08:08:39 2011
@@ -1,5 +1,5 @@
/* Id: pftn.c,v 1.280 2010/05/23 19:52:04 ragge Exp */
-/* $NetBSD: pftn.c,v 1.5 2010/06/03 19:07:59 plunky Exp $ */
+/* $NetBSD: pftn.c,v 1.6 2011/08/10 08:08:39 plunky Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson ([email protected]).
* All rights reserved.
@@ -3056,7 +3056,7 @@
case PLUS:
if (li && ri) {
p = buildtree(PLUS, l, r);
- p->n_type = p->n_type += (FIMAG-FLOAT);
+ p->n_type += (FIMAG-FLOAT);
} else {
/* If one is imaginary and one is real, make complex */
if (li)
@@ -3073,7 +3073,7 @@
case MINUS:
if (li && ri) {
p = buildtree(MINUS, l, r);
- p->n_type = p->n_type += (FIMAG-FLOAT);
+ p->n_type += (FIMAG-FLOAT);
} else if (li) {
q = cxstore(mxtyp);
p = buildtree(ASSIGN, structref(ccopy(q), DOT, real),
@@ -3097,7 +3097,7 @@
if (li && ri)
p = buildtree(UMINUS, p, NIL);
if (li ^ ri)
- p->n_type = p->n_type += (FIMAG-FLOAT);
+ p->n_type += (FIMAG-FLOAT);
break;
case DIV:
@@ -3105,7 +3105,7 @@
if (ri && !li)
p = buildtree(UMINUS, p, NIL);
if (li ^ ri)
- p->n_type = p->n_type += (FIMAG-FLOAT);
+ p->n_type += (FIMAG-FLOAT);
break;
default:
cerror("imop");