Subject: Re: xdr_float.c?
To: Aaron J. Grier <agrier@poofy.goof.com>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 03/30/1999 11:39:54
"Aaron J. Grier" wrote:
> I had to add a '|| defined(__mipsel__)' in lib/libc/rpc/xdr_float.c and
> a few other places (lib/libc/stdlib/strtod.c, perhaps others) to get
> (today's) -current to compile. Are the __mips__ defines obsolete now?
>
> Don't tell me, somebody fixed this a couple hours ago and it'll show up
> in tomorrows sup. :)
I can't see where the problem is at the moment. For example (line
wrapped to hopefully make it easier to read):
mona:src/lib/libc 3> make "CC=cc -v" strtod.o
cc -v -O2 -DALL_STATE -fPIC -I/NetBSD/src/lib/libc/arch/mips -DPIC \
-DABICALLS -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wpointer-arith -Werror -D_LIBC -DNLS -DYP -DHESIOD \
-DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT \
-I/NetBSD/src/lib/libc/include -D__DBINTERFACE_PRIVATE \
-DRESOLVSORT -I. -DPOSIX_MISTAKE -DFLOATING_POINT -c \
/NetBSD/src/lib/libc/stdlib/strtod.c
Using builtin specs.
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
/usr/libexec/cpp -lang-c -v -I/NetBSD/src/lib/libc/arch/mips \
-I/NetBSD/src/lib/libc/include -I. -undef -D__GNUC__=2 \
-D__GNUC_MINOR__=91 -D__ANSI_COMPAT -DMIPSEL -DR3000 \
-DSYSTYPE_BSD -D_SYSTYPE_BSD -D__NetBSD__ -D__ELF__ -Dmips \
-D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ -D_R3000 \
-D__ANSI_COMPAT -D__MIPSEL__ -D__R3000__ -D__SYSTYPE_BSD__ \
-D_SYSTYPE_BSD -D__NetBSD__ -D__ELF__ -D__mips__ \
-D__NO_LEADING_UNDERSCORES__ -D__GP_SUPPORT__ -D_R3000 \
-D__MIPSEL -D__R3000 -D__SYSTYPE_BSD -D__mips -Asystem(unix) \
-Asystem(NetBSD) -Amachine(mips) -D__OPTIMIZE__ -Wall \
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
-Werror -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int \
-DALL_STATE -DPIC -DABICALLS -D_LIBC -DNLS -DYP -DHESIOD \
-DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT \
-D__DBINTERFACE_PRIVATE -DRESOLVSORT -DPOSIX_MISTAKE \
-DFLOATING_POINT /NetBSD/src/lib/libc/stdlib/strtod.c \
/tmp/ccqHm88B.i
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) \
[AL 1.1, MM 40] BSD Mips
#include "..." search starts here:
#include <...> search starts here:
/NetBSD/src/lib/libc/arch/mips
/NetBSD/src/lib/libc/include
.
/usr/include
End of search list.
/usr/libexec/cc1 /tmp/ccqHm88B.i -mabicalls -quiet -dumpbase \
strtod.c -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes \
-Wpointer-arith -Werror -version -fPIC -o /tmp/ccBdytIY.s
GNU C version egcs-2.91.60 19981201 (egcs-1.1.1 release) \
(mipsel-netbsd) compiled by GNU C version egcs-2.91.60 \
19981201 (egcs-1.1.1 release).
as -v -O2 -KPIC -o strtod.o.o /tmp/ccBdytIY.s
GNU assembler version 2.9.1 (mips-dec-netbsd), using BFD version 2.9.1
Note that cc passes -D__mips__ to cpp in there. What problems are you
seeing?
Simon.