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 Checking _LP64 to determine the si...



details:   https://anonhg.NetBSD.org/src/rev/7d4344d76896
branches:  trunk
changeset: 326267:7d4344d76896
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 24 00:17:33 2014 +0000

description:
Checking _LP64 to determine the size of the built binary is just wrong. We
build n32 by default on mips64 now, we don't handle the compat build which
is n64. This is the same case for sparc64/sparc and amd64/i386 (lint does
not run in compat)

diffstat:

 usr.bin/xlint/arch/mips64/targparam.h |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r 6d5cc4472a1d -r 7d4344d76896 usr.bin/xlint/arch/mips64/targparam.h
--- a/usr.bin/xlint/arch/mips64/targparam.h     Thu Jan 23 22:52:15 2014 +0000
+++ b/usr.bin/xlint/arch/mips64/targparam.h     Fri Jan 24 00:17:33 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: targparam.h,v 1.4 2012/03/29 08:52:31 macallan Exp $   */
+/*     $NetBSD: targparam.h,v 1.5 2014/01/24 00:17:33 christos Exp $   */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -35,11 +35,9 @@
  * Machine-dependent target parameters for lint1.
  */
 #include "schar.h"
-#ifdef _LP64
-#include "lp64.h"
-#else
+// This is for __mips_n32
 #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