Module Name: src Committed By: christos Date: Fri Mar 21 01:17:40 UTC 2014
Modified Files: src/external/bsd/pcc/dist/pcc/cc/ccom: trees.c Log Message: fix Big Endian compilation To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/bsd/pcc/dist/pcc/cc/ccom/trees.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/trees.c diff -u src/external/bsd/pcc/dist/pcc/cc/ccom/trees.c:1.2 src/external/bsd/pcc/dist/pcc/cc/ccom/trees.c:1.3 --- src/external/bsd/pcc/dist/pcc/cc/ccom/trees.c:1.2 Thu Mar 13 20:06:52 2014 +++ src/external/bsd/pcc/dist/pcc/cc/ccom/trees.c Thu Mar 20 21:17:40 2014 @@ -1,5 +1,5 @@ /* Id: trees.c,v 1.306 2012/03/22 18:51:40 plunky Exp */ -/* $NetBSD: trees.c,v 1.2 2014/03/14 00:06:52 christos Exp $ */ +/* $NetBSD: trees.c,v 1.3 2014/03/21 01:17:40 christos Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ra...@ludd.luth.se). * All rights reserved. @@ -2540,7 +2540,7 @@ rmfldops(NODE *p) foff = UPKFOFF(q->n_rval); t = q->n_left->n_type; #if TARGET_ENDIAN == TARGET_BE - foff = tsz - fsz - foff; + foff = (int)tsize(t, 0, 0) - fsz - foff; #endif bt = NULL; if (p->n_right->n_op != ICON && p->n_right->n_op != NAME) {