Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/common PR toolchain/53710
details: https://anonhg.NetBSD.org/src/rev/0e8709246d90
branches: trunk
changeset: 837028:0e8709246d90
user: scole <scole%NetBSD.org@localhost>
date: Fri Nov 16 20:49:08 2018 +0000
description:
PR toolchain/53710
allow 64bit target to compile on 32bit host
Ok'ed by <christos>
diffstat:
usr.bin/xlint/common/lp64.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 3b5c02942784 -r 0e8709246d90 usr.bin/xlint/common/lp64.h
--- a/usr.bin/xlint/common/lp64.h Fri Nov 16 19:55:18 2018 +0000
+++ b/usr.bin/xlint/common/lp64.h Fri Nov 16 20:49:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lp64.h,v 1.6 2018/10/07 14:20:01 christos Exp $ */
+/* $NetBSD: lp64.h,v 1.7 2018/11/16 20:49:08 scole Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -45,7 +45,9 @@
#define LONG_SIZE (8 * CHAR_BIT)
#define QUAD_SIZE (8 * CHAR_BIT)
#define PTR_SIZE (8 * CHAR_BIT)
+#ifdef _LP64
#define INT128_SIZE (16 * CHAR_BIT)
+#endif
#define TARG_SCHAR_MAX ((signed char) (((unsigned char) -1) >> 1))
#define TARG_SCHAR_MIN ((-TARG_CHAR_MAX) - 1)
@@ -67,7 +69,7 @@
#define TARG_QUAD_MIN ((-TARG_QUAD_MAX) - 1)
#define TARG_UQUAD_MAX ((uint64_t) -1)
-#ifndef _LP64
+#ifdef _LP64
/* XXX on a 32 build for a 64 build host we skip these */
#define TARG_INT128_MAX ((__int128_t) (((__uint128_t) -1) >> 1))
#define TARG_INT128_MIN ((-TARG_INT128_MAX) - 1)
Home |
Main Index |
Thread Index |
Old Index