diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2005-10-27 23:57:55 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2005-10-27 23:57:55 +0000 |
commit | cb365428c90da9041b7ec1a3c201469132863e66 (patch) | |
tree | 067a68a705baaa042f03747a279a5dc6b5c0de16 /contrib | |
parent | 887d35215c9c56cb9920586a2289c6af81cbc16a (diff) | |
download | FreeBSD-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.h | 11 |
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"); \ |