Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/pcc/dist/pcc/cc/ccom fix Big Endian compilation



details:   https://anonhg.NetBSD.org/src/rev/910cb2cad4dc
branches:  trunk
changeset: 327919:910cb2cad4dc
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 21 01:17:40 2014 +0000

description:
fix Big Endian compilation

diffstat:

 external/bsd/pcc/dist/pcc/cc/ccom/trees.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 49995f61aecb -r 910cb2cad4dc external/bsd/pcc/dist/pcc/cc/ccom/trees.c
--- a/external/bsd/pcc/dist/pcc/cc/ccom/trees.c Thu Mar 20 22:28:37 2014 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/ccom/trees.c Fri Mar 21 01:17:40 2014 +0000
@@ -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 (ragge%ludd.luth.se@localhost).
  * All rights reserved.
@@ -2540,7 +2540,7 @@
                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) {



Home | Main Index | Thread Index | Old Index