Subject: Re: xdr_float.c?
To: Simon Burge <simonb@telstra.com.au>
From: Aaron J. Grier <agrier@poofy.goof.com>
List: port-pmax
Date: 03/30/1999 00:15:46
On Mon, Mar 29, 1999 at 11:51:27PM -0800, Aaron J. Grier wrote:
> lint is only calling the preprocessor with -D__mipsel__ instead of
> -D__mips__.
>
> time to poke around in xlint.c?
Ahh... /usr/include/machine/param.h defines MACHINE_ARCH to be
"mipsel," and xlint.c has the following line:
#ifdef MACHINE_ARCH
if (strcmp(un.machine, MACHINE_ARCH) != 0) {
appdef(&cppflags, MACHINE_ARCH);
appstrg(&lcppflgs, concat2("-D", MACHINE_ARCH));
}
#endif
which means that "mipsel" and not "mips" gets passed by xlint to cpp...
so looks like the fix is to special case mipse{l,b} in xlint.c, right?
I should go to sleep... :)
----
Aaron J. Grier | "Not your ordinary poofy goof." | agrier@poofy.goof.com
I do not support US and NATO "police actions" in Bosnia.