Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/xlint/arch/mips64 XXX
details: https://anonhg.NetBSD.org/src/rev/350fef94d8ff
branches: trunk
changeset: 778480:350fef94d8ff
user: macallan <macallan%NetBSD.org@localhost>
date: Thu Mar 29 08:52:31 2012 +0000
description:
XXX
Don't assume LP64 unless lint itself is built as LP64
On mips64 we default to n32 which produces errors when things like
TARG_LONG_MAX don't fit into a long
A proper fix would be to teach lint about different target ABIs so it can
pick the right parameters, this is just a bandaid to make it slightly less
wrong and allow a mips64 build to complete.
diffstat:
usr.bin/xlint/arch/mips64/targparam.h | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 462e2bb12c4d -r 350fef94d8ff usr.bin/xlint/arch/mips64/targparam.h
--- a/usr.bin/xlint/arch/mips64/targparam.h Thu Mar 29 06:16:56 2012 +0000
+++ b/usr.bin/xlint/arch/mips64/targparam.h Thu Mar 29 08:52:31 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: targparam.h,v 1.3 2012/03/27 19:24:02 christos Exp $ */
+/* $NetBSD: targparam.h,v 1.4 2012/03/29 08:52:31 macallan Exp $ */
/*
* Copyright (c) 1994, 1995 Jochen Pohl
@@ -35,8 +35,11 @@
* Machine-dependent target parameters for lint1.
*/
#include "schar.h"
+#ifdef _LP64
#include "lp64.h"
-
+#else
+#include "ilp32.h"
+#endif
/*
* Should be set to 1 if the difference of two pointers is of type long
* or the value of sizeof is of type unsigned long. Note this MUST be
Home |
Main Index |
Thread Index |
Old Index