]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove CALLER_SAVE_PROFITABLE since it is not used at present.
authorjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Aug 2014 02:52:46 +0000 (02:52 +0000)
committerjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Aug 2014 02:52:46 +0000 (02:52 +0000)
* system.h (CALLER_SAVE_PROFITABLE): Poison.
* regs.h (CALLER_SAVE_PROFITABLE): Remove.
* doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
* doc/tm.texi: Regenerate.

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

gcc/ChangeLog
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/regs.h
gcc/system.h

index 905e300e101872103a74576b346f9ab19c227d6b..d0ae1f83a0bb4ebf7cbd93549a4c2564aebe280c 100644 (file)
@@ -1,3 +1,10 @@
+2014-08-24  Kito Cheng  <kito@0xlab.org>
+
+       * 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  <kito@0xlab.org>
 
        * ira.c: Fix typo in comment.
index 9dd8d68ddb9d762607a7aef6f17d49c0b7bc8266..4d6492b016930dd49ab8bf9c9d213606c3de10a2 100644 (file)
@@ -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
index dd72b985d042bcdc56e8de5fd1b7f3b322ff4194..7a63353b4ea1acc0214d760c0b8460ec605b9433 100644 (file)
@@ -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
index be81db46a7e46e2c3c40231750cb4af03955dcef..36e803ddaa60b9a8b283876c9ca67aa0d8c76951 100644 (file)
@@ -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) \
index 29da7974ced48df5bb910e3a9fd88b1114526a9f..3f2cfa12574d99aee38d9376c1bb2115a8655b55 100644 (file)
@@ -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  \