diff options
author | Craig Rodrigues <rodrigc@gcc.gnu.org> | 2005-12-15 21:32:43 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@gcc.gnu.org> | 2005-12-15 21:32:43 +0000 |
commit | 4976b95c37dd8245c7565d76cfb729dc1b7f603f (patch) | |
tree | 24a22dec9191cc4a1a2fecb6a34c3e49f1e1a40f /gcc | |
parent | cbe82f2170e3a6219a308c53a656ed8c5c64a55c (diff) | |
download | gcc-4976b95c37dd8245c7565d76cfb729dc1b7f603f.zip gcc-4976b95c37dd8245c7565d76cfb729dc1b7f603f.tar.gz gcc-4976b95c37dd8245c7565d76cfb729dc1b7f603f.tar.bz2 |
freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Use builtin_define_with_int_value() instead of adding a new check for every new...
* 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.
From-SVN: r108597
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/freebsd-spec.h | 17 |
2 files changed, 7 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bcd57f9..208beb2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-12-14 Craig Rodrigues <rodrigc@gcc.gnu.org> + + * 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. + 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu> * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h. diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h index f60e94f..b3f18e2 100644 --- a/gcc/config/freebsd-spec.h +++ b/gcc/config/freebsd-spec.h @@ -51,22 +51,7 @@ Boston, MA 02110-1301, USA. */ #define FBSD_TARGET_OS_CPP_BUILTINS() \ do \ { \ - if (FBSD_MAJOR == 9) \ - builtin_define ("__FreeBSD__=9"); \ - else if (FBSD_MAJOR == 8) \ - builtin_define ("__FreeBSD__=8"); \ - if (FBSD_MAJOR == 7) \ - builtin_define ("__FreeBSD__=7"); \ - else 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"); \ |