From 1d93f083bf03400439b86271732e2b3f17ba284c Mon Sep 17 00:00:00 2001 From: obrien Date: Sun, 30 Oct 2005 19:04:47 +0000 Subject: Locate __FreeBSD_cc_version's value beside __FreeBSD__'s value to make it easier to keep them in sync. --- contrib/gcc/config/freebsd-spec.h | 2 +- gnu/usr.bin/cc/cc_tools/freebsd-native.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/gcc/config/freebsd-spec.h b/contrib/gcc/config/freebsd-spec.h index bdde3f0..a070936 100644 --- a/contrib/gcc/config/freebsd-spec.h +++ b/contrib/gcc/config/freebsd-spec.h @@ -70,7 +70,7 @@ Boston, MA 02111-1307, USA. */ #ifdef FREEBSD_NATIVE #define FBSD_NATIVE_TARGET_OS_CPP_BUILTINS() \ do { \ - builtin_define_std ("__FreeBSD_cc_version=700001"); \ + builtin_define_with_int_value ("__FreeBSD_cc_version", FBSD_CC_VER); \ } while (0) #else #define FBSD_NATIVE_TARGET_OS_CPP_BUILTINS() \ diff --git a/gnu/usr.bin/cc/cc_tools/freebsd-native.h b/gnu/usr.bin/cc/cc_tools/freebsd-native.h index 00ac78c..6504368 100644 --- a/gnu/usr.bin/cc/cc_tools/freebsd-native.h +++ b/gnu/usr.bin/cc/cc_tools/freebsd-native.h @@ -7,7 +7,8 @@ #define FREEBSD_NATIVE 1 /* Fake out gcc/config/freebsd.h. */ -#define FBSD_MAJOR 7 +#define FBSD_MAJOR 7 +#define FBSD_CC_VER 700001 /* form like __FreeBSD_version */ #undef SYSTEM_INCLUDE_DIR /* We don't need one for now. */ #undef TOOL_INCLUDE_DIR /* We don't need one for now. */ -- cgit v1.1