diff options
author | imp <imp@FreeBSD.org> | 2010-03-03 02:44:20 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-03-03 02:44:20 +0000 |
commit | ea9ee1ed47ce2b2ffee2c266413f1eca32ee0115 (patch) | |
tree | 8baac0857a54deefd08c6f09f7b8828224442e54 | |
parent | cf94d74eb88aabe7e5cd9000e584039b38a903e5 (diff) | |
download | FreeBSD-src-ea9ee1ed47ce2b2ffee2c266413f1eca32ee0115.zip FreeBSD-src-ea9ee1ed47ce2b2ffee2c266413f1eca32ee0115.tar.gz |
Also define _MIPS_ISA here.
Submitted by: jmallet@
-rw-r--r-- | contrib/gcc/config/mips/freebsd.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/contrib/gcc/config/mips/freebsd.h b/contrib/gcc/config/mips/freebsd.h index 6627e03..b4752ed 100644 --- a/contrib/gcc/config/mips/freebsd.h +++ b/contrib/gcc/config/mips/freebsd.h @@ -187,31 +187,47 @@ Boston, MA 02110-1301, USA. */ MIPS_CPP_SET_PROCESSOR ("_MIPS_TUNE", mips_tune_info); \ \ if (ISA_MIPS1) \ - builtin_define ("__mips=1"); \ + { \ + builtin_define ("__mips=1"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS1"); \ + } \ else if (ISA_MIPS2) \ - builtin_define ("__mips=2"); \ + { \ + builtin_define ("__mips=2"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS2"); \ + } \ else if (ISA_MIPS3) \ - builtin_define ("__mips=3"); \ + { \ + builtin_define ("__mips=3"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS3"); \ + } \ else if (ISA_MIPS4) \ - builtin_define ("__mips=4"); \ + { \ + builtin_define ("__mips=4"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS4"); \ + } \ else if (ISA_MIPS32) \ { \ builtin_define ("__mips=32"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS32"); \ builtin_define ("__mips_isa_rev=1"); \ } \ else if (ISA_MIPS32R2) \ { \ builtin_define ("__mips=32"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS32"); \ builtin_define ("__mips_isa_rev=2"); \ } \ else if (ISA_MIPS64) \ { \ builtin_define ("__mips=64"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS64"); \ builtin_define ("__mips_isa_rev=1"); \ } \ /* else if (ISA_MIPS64R2) \ { \ builtin_define ("__mips=64"); \ + builtin_define ("_MIPS_ISA=_MIPS_ISA_MIPS64"); \ builtin_define ("__mips_isa_rev=2"); \ } \ */ \ |