OSDN Git Service

gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2008 21:11:09 +0000 (21:11 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2008 21:11:09 +0000 (21:11 +0000)
* config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls
if TARGET_ABICALLS is true.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142770 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.h

index aeed705..490114d 100644 (file)
@@ -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.
 
index a6444b5..f5de061 100644 (file)
@@ -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");                  \