From ef24330ddfb1206a90cf44bdda2d941abc05d5d3 Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Sun, 24 Aug 2014 02:52:46 +0000 Subject: [PATCH] Remove CALLER_SAVE_PROFITABLE since it is not used at present. * system.h (CALLER_SAVE_PROFITABLE): Poison. * regs.h (CALLER_SAVE_PROFITABLE): Remove. * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove. * doc/tm.texi: Regenerate. From-SVN: r214405 --- gcc/ChangeLog | 7 +++++++ gcc/doc/tm.texi | 10 ---------- gcc/doc/tm.texi.in | 10 ---------- gcc/regs.h | 8 -------- gcc/system.h | 3 ++- 5 files changed, 9 insertions(+), 29 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 905e300..d0ae1f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,12 @@ 2014-08-24 Kito Cheng + * system.h (CALLER_SAVE_PROFITABLE): Poison. + * regs.h (CALLER_SAVE_PROFITABLE): Remove. + * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove. + * doc/tm.texi: Regenerate. + +2014-08-24 Kito Cheng + * ira.c: Fix typo in comment. 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net> diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 9dd8d68..4d6492b 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -4528,16 +4528,6 @@ If you enable it, GCC can save registers around function calls. This makes it possible to use call-clobbered registers to hold variables that must live across calls. -@defmac CALLER_SAVE_PROFITABLE (@var{refs}, @var{calls}) -A C expression to determine whether it is worthwhile to consider placing -a pseudo-register in a call-clobbered hard register and saving and -restoring it around each function call. The expression should be 1 when -this is worth doing, and 0 otherwise. - -If you don't define this macro, a default is used which is good on most -machines: @code{4 * @var{calls} < @var{refs}}. -@end defmac - @defmac HARD_REGNO_CALLER_SAVE_MODE (@var{regno}, @var{nregs}) A C expression specifying which mode is required for saving @var{nregs} of a pseudo-register in call-clobbered hard register @var{regno}. If diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index dd72b98..7a63353 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -3683,16 +3683,6 @@ If you enable it, GCC can save registers around function calls. This makes it possible to use call-clobbered registers to hold variables that must live across calls. -@defmac CALLER_SAVE_PROFITABLE (@var{refs}, @var{calls}) -A C expression to determine whether it is worthwhile to consider placing -a pseudo-register in a call-clobbered hard register and saving and -restoring it around each function call. The expression should be 1 when -this is worth doing, and 0 otherwise. - -If you don't define this macro, a default is used which is good on most -machines: @code{4 * @var{calls} < @var{refs}}. -@end defmac - @defmac HARD_REGNO_CALLER_SAVE_MODE (@var{regno}, @var{nregs}) A C expression specifying which mode is required for saving @var{nregs} of a pseudo-register in call-clobbered hard register @var{regno}. If diff --git a/gcc/regs.h b/gcc/regs.h index be81db4..36e803d 100644 --- a/gcc/regs.h +++ b/gcc/regs.h @@ -214,14 +214,6 @@ extern short *reg_renumber; extern int caller_save_needed; -/* Predicate to decide whether to give a hard reg to a pseudo which - is referenced REFS times and would need to be saved and restored - around a call CALLS times. */ - -#ifndef CALLER_SAVE_PROFITABLE -#define CALLER_SAVE_PROFITABLE(REFS, CALLS) (4 * (CALLS) < (REFS)) -#endif - /* Select a register mode required for caller save of hard regno REGNO. */ #ifndef HARD_REGNO_CALLER_SAVE_MODE #define HARD_REGNO_CALLER_SAVE_MODE(REGNO, NREGS, MODE) \ diff --git a/gcc/system.h b/gcc/system.h index 29da797..3f2cfa1 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -933,7 +933,8 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; CONST_DOUBLE_OK_FOR_LETTER_P EXTRA_CONSTRAINT \ REG_CLASS_FROM_CONSTRAINT REG_CLASS_FOR_CONSTRAINT \ EXTRA_CONSTRAINT_STR EXTRA_MEMORY_CONSTRAINT \ - EXTRA_ADDRESS_CONSTRAINT CONST_DOUBLE_OK_FOR_CONSTRAINT_P + EXTRA_ADDRESS_CONSTRAINT CONST_DOUBLE_OK_FOR_CONSTRAINT_P \ + CALLER_SAVE_PROFITABLE /* Hooks that are no longer used. */ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \ -- 2.7.4