]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Use builtin_define_with_int_value(...
authorCraig Rodrigues <rodrigc@gcc.gnu.org>
Thu, 15 Dec 2005 21:32:43 +0000 (21:32 +0000)
committerCraig Rodrigues <rodrigc@gcc.gnu.org>
Thu, 15 Dec 2005 21:32:43 +0000 (21:32 +0000)
        * 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

gcc/ChangeLog
gcc/config/freebsd-spec.h

index bcd57f9cf119d272fb4c6bd7f308bd0e2c4db5d5..208beb2deb4a65d78bc7f84ef09651496a6bc50f 100644 (file)
@@ -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.
index f60e94f3aeddbe8a1ac7b97dfe454948a1fabc8e..b3f18e20b65e1c71640b23f9b88ab5251b03204d 100644 (file)
@@ -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");                                 \