summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-10-27 23:57:55 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-10-27 23:57:55 +0000
commitcb365428c90da9041b7ec1a3c201469132863e66 (patch)
tree067a68a705baaa042f03747a279a5dc6b5c0de16 /contrib
parent887d35215c9c56cb9920586a2289c6af81cbc16a (diff)
downloadFreeBSD-src-cb365428c90da9041b7ec1a3c201469132863e66.zip
FreeBSD-src-cb365428c90da9041b7ec1a3c201469132863e66.tar.gz
Submitted following patch to FSF GCC:
* freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Use builtin_define_with_int_value() instead of adding a new check for every new major FreeBSD version. Motivated by: simon Discussed with: obrien, kan
Diffstat (limited to 'contrib')
-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