summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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