Date: Wed, 31 Jan 1996 13:38:44 -0800 From: Paul Traina <pst@cisco.com> To: andreas@knobel.gun.de (Andreas Klemm) Cc: asami@cs.berkeley.edu (Satoshi Asami), jkh@FreeBSD.org, ports@FreeBSD.org, hackers@FreeBSD.org Subject: Re: Another Pentium gcc patch, -D__FreeBSD__=2 -Dbsd4_4 Message-ID: <199601312138.NAA21667@puli.cisco.com> In-Reply-To: andreas@knobel.gun.de's message of 31 Jan 1996 11:35:52 PST
next in thread | raw e-mail | index | archive | help
I don't think our current gcc defines bsd4_4, I'm certain it shouldn't. :-)
There's a well defined way to find out what version of the OS you're running
under.
#ifdef _HAVE_PARAM_H
#include <sys/param.h>
#endif
#if defined(BSD) && (BSD >= datecode)
...
#endif
This gives us much finer grained control.
The other change (__FreeBSD__=2) is absolutely positively correct.
> *** gcc-2.7.2/config/i386/freebsd.h.orig Wed Jan 31 20:16:50 1996
> --- gcc-2.7.2/config/i386/freebsd.h Wed Jan 31 20:17:43 1996
> ***************
> *** 35,41 ****
> #include "i386/perform.h"
>
> #undef CPP_PREDEFINES
> ! #define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__ -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
>
> /* Like the default, except no -lg. */
> #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
> --- 35,41 ----
> #include "i386/perform.h"
>
> #undef CPP_PREDEFINES
> ! #define CPP_PREDEFINES "-Dunix -Di386 -Dbsd4_4 -D__FreeBSD__=2 -D__386BSD__ -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)"
>
> /* Like the default, except no -lg. */
> #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601312138.NAA21667>
