From 34ff484bfc20fa5ff17c0366b51c454b41262297 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Thu, 29 Oct 1998 22:11:08 +0000 Subject: [PATCH] Per request from ache, change the numbering scheme of __FreeBSD_cc_version. Its form is now like __FreeBSD_version, with the FreeBSD revision in the top digits. --- contrib/gcc/config/i386/freebsd.h | 2 +- contrib/gcc/config/i386/freebsd.h.fixed | 2 +- sys/sys/cdefs.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h index 3391f3739df..e610b5fb876 100644 --- a/contrib/gcc/config/i386/freebsd.h +++ b/contrib/gcc/config/i386/freebsd.h @@ -477,7 +477,7 @@ do { \ #endif /* FREEBSD_NATIVE */ #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=3 -D__FreeBSD_cc_version=272101 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" +#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=3 -D__FreeBSD_cc_version=300001 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" #undef CPP_SPEC #if TARGET_CPU_DEFAULT == 2 diff --git a/contrib/gcc/config/i386/freebsd.h.fixed b/contrib/gcc/config/i386/freebsd.h.fixed index 3391f3739df..e610b5fb876 100644 --- a/contrib/gcc/config/i386/freebsd.h.fixed +++ b/contrib/gcc/config/i386/freebsd.h.fixed @@ -477,7 +477,7 @@ do { \ #endif /* FREEBSD_NATIVE */ #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=3 -D__FreeBSD_cc_version=272101 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" +#define CPP_PREDEFINES "-Dunix -Di386 -D__FreeBSD__=3 -D__FreeBSD_cc_version=300001 -Asystem(unix) -Asystem(FreeBSD) -Acpu(i386) -Amachine(i386)" #undef CPP_SPEC #if TARGET_CPU_DEFAULT == 2 diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h index d73dfa606ba..587e7d72eca 100644 --- a/sys/sys/cdefs.h +++ b/sys/sys/cdefs.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)cdefs.h 8.8 (Berkeley) 1/9/95 - * $Id: cdefs.h,v 1.22 1998/09/20 03:24:55 jdp Exp $ + * $Id: cdefs.h,v 1.23 1998/10/29 04:41:24 jdp Exp $ */ #ifndef _SYS_CDEFS_H_ @@ -145,7 +145,7 @@ #endif /* Compiler-dependent macros that rely on FreeBSD-specific extensions. */ -#if 272101 <= __FreeBSD_cc_version && __FreeBSD_cc_version < 1000000 +#if __FreeBSD_cc_version >= 300001 #define __printf0like(fmtarg, firstvararg) \ __attribute__((__format__ (__printf0__, fmtarg, firstvararg))) #else