summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2005-10-30 19:04:47 +0000
committerobrien <obrien@FreeBSD.org>2005-10-30 19:04:47 +0000
commit1d93f083bf03400439b86271732e2b3f17ba284c (patch)
tree8f8bba9b2ac9c8456ee8a2e9d92bf25b447ecf78
parent7c66d4d57066b0367c94c88d5a7d6bf65052fb41 (diff)
downloadFreeBSD-src-1d93f083bf03400439b86271732e2b3f17ba284c.zip
FreeBSD-src-1d93f083bf03400439b86271732e2b3f17ba284c.tar.gz
Locate __FreeBSD_cc_version's value beside __FreeBSD__'s value to make it
easier to keep them in sync.
-rw-r--r--contrib/gcc/config/freebsd-spec.h2
-rw-r--r--gnu/usr.bin/cc/cc_tools/freebsd-native.h3
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<version>.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. */
OpenPOWER on IntegriCloud