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.
This commit is contained in:
macallan 2012-03-29 08:52:31 +00:00
parent 06f1efeb34
commit 1b769feadc

View File

@ -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