summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/gcc/config/freebsd-spec.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/contrib/gcc/config/freebsd-spec.h b/contrib/gcc/config/freebsd-spec.h
index e0a5b66..e22a8d1 100644
--- a/contrib/gcc/config/freebsd-spec.h
+++ b/contrib/gcc/config/freebsd-spec.h
@@ -53,16 +53,7 @@ Boston, MA 02111-1307, USA. */
#define FBSD_TARGET_OS_CPP_BUILTINS() \
do \
{ \
- if (FBSD_MAJOR == 6) \
- builtin_define ("__FreeBSD__=6"); \
- else if (FBSD_MAJOR == 5) \
- builtin_define ("__FreeBSD__=5"); \
- else if (FBSD_MAJOR == 4) \
- builtin_define ("__FreeBSD__=4"); \
- else if (FBSD_MAJOR == 3) \
- builtin_define ("__FreeBSD__=3"); \
- else \
- builtin_define ("__FreeBSD__"); \
+ builtin_define_with_int_value ("__FreeBSD__", FBSD_MAJOR); \
builtin_define_std ("unix"); \
builtin_define ("__KPRINTF_ATTRIBUTE__"); \
builtin_assert ("system=unix"); \
OpenPOWER on IntegriCloud