Module Name:    src
Committed By:   macallan
Date:           Thu Mar 29 08:52:31 UTC 2012

Modified Files:
        src/usr.bin/xlint/arch/mips64: targparam.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.bin/xlint/arch/mips64/targparam.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/xlint/arch/mips64/targparam.h
diff -u src/usr.bin/xlint/arch/mips64/targparam.h:1.3 src/usr.bin/xlint/arch/mips64/targparam.h:1.4
--- src/usr.bin/xlint/arch/mips64/targparam.h:1.3	Tue Mar 27 19:24:02 2012
+++ src/usr.bin/xlint/arch/mips64/targparam.h	Thu Mar 29 08:52:31 2012
@@ -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

Reply via email to