diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2008-12-15 21:11:09 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2008-12-15 21:11:09 +0000 |
commit | cf51e47926aba6814750f199d7c200859aa1729c (patch) | |
tree | 760df939e3bcdc642ce6ddfa33b43d8dfc84c7d4 | |
parent | dd021c27bfb25fa957ea4bcde302c5626d7da66b (diff) | |
download | gcc-cf51e47926aba6814750f199d7c200859aa1729c.zip gcc-cf51e47926aba6814750f199d7c200859aa1729c.tar.gz gcc-cf51e47926aba6814750f199d7c200859aa1729c.tar.bz2 |
mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls if TARGET_ABICALLS is true.
gcc/
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls
if TARGET_ABICALLS is true.
From-SVN: r142770
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aeed705..490114d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2008-12-15 Richard Sandiford <rdsandiford@googlemail.com> + * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls + if TARGET_ABICALLS is true. + +2008-12-15 Richard Sandiford <rdsandiford@googlemail.com> + * config/mips/mips.md (move_doubleword_fpr<mode>): Use TARGET_FLOAT64 && !TARGET_64BIT to detect the mxhc1 case. diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index a6444b5..f5de061 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -529,6 +529,11 @@ enum mips_code_readable_setting { builtin_define ("_MIPSEL"); \ } \ \ + /* Whether calls should go through $25. The separate __PIC__ \ + macro indicates whether abicalls code might use a GOT. */ \ + if (TARGET_ABICALLS) \ + builtin_define ("__mips_abicalls"); \ + \ /* Whether Loongson vector modes are enabled. */ \ if (TARGET_LOONGSON_VECTORS) \ builtin_define ("__mips_loongson_vector_rev"); \ |