summaryrefslogtreecommitdiff
path: root/gcc/config/freebsd-spec.h
diff options
context:
space:
mode:
authorrodrigc <rodrigc@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-15 21:32:43 +0000
committerrodrigc <rodrigc@138bc75d-0d04-0410-961f-82ee72b054a4>2005-12-15 21:32:43 +0000
commitd98001e90dbc502e76c41b47fa90cfc6da1cfe93 (patch)
tree24a22dec9191cc4a1a2fecb6a34c3e49f1e1a40f /gcc/config/freebsd-spec.h
parent3fecdf2804d6c16a1d296dafcc53c0d3b3bf7f47 (diff)
downloadgcc-d98001e90dbc502e76c41b47fa90cfc6da1cfe93.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108597 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/freebsd-spec.h')
-rw-r--r--gcc/config/freebsd-spec.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/gcc/config/freebsd-spec.h b/gcc/config/freebsd-spec.h
index f60e94f3aed..b3f18e20b65 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"); \