From owner-freebsd-ports Wed Jan 31 13:40:11 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA13604 for ports-outgoing; Wed, 31 Jan 1996 13:40:11 -0800 (PST) Received: from puli.cisco.com (puli.cisco.com [171.69.1.174]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA13508 Wed, 31 Jan 1996 13:39:57 -0800 (PST) Received: from localhost.cisco.com (localhost.cisco.com [127.0.0.1]) by puli.cisco.com (8.6.8+c/8.6.5) with SMTP id NAA21667; Wed, 31 Jan 1996 13:38:44 -0800 Message-Id: <199601312138.NAA21667@puli.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 In-Reply-To: andreas@knobel.gun.de's message of 31 Jan 1996 11:35:52 PST Date: Wed, 31 Jan 1996 13:38:44 -0800 From: Paul Traina Sender: owner-ports@FreeBSD.org Precedence: bulk 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 #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}"