From cf51e47926aba6814750f199d7c200859aa1729c Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 15 Dec 2008 21:11:09 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aeed7051e48..490114d30d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-12-15 Richard Sandiford + + * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_abicalls + if TARGET_ABICALLS is true. + 2008-12-15 Richard Sandiford * config/mips/mips.md (move_doubleword_fpr): Use diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index a6444b5f993..f5de061d44c 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"); \ -- 2.30.2