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
This commit is contained in:
parent
80e963994a
commit
5dbed42856
@ -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"); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user