[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: Another Pentium gcc patch, -D__FreeBSD__=2 -Dbsd4_4
From:       Paul Traina <pst () cisco ! com>
Date:       1996-01-31 21:38:44
[Download RAW message or body]

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}"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic