From 07d32235cebff42afd317381e544fabcf9b39f38 Mon Sep 17 00:00:00 2001 From: aesok Date: Wed, 6 Oct 2010 18:12:49 +0000 Subject: [PATCH] * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation. * doc/tm.texi.in: Regenerate. * system.h (CLASS_LIKELY_SPILLED_P): Poison. * targhooks.c (default_class_likely_spilled_p): Don't use the CLASS_LIKELY_SPILLED_P macro. * config\arm\arm.md: Update comment. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165060 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/arm/arm.md | 2 +- gcc/doc/tm.texi | 18 ------------------ gcc/doc/tm.texi.in | 18 ------------------ gcc/system.h | 2 +- gcc/targhooks.c | 4 ---- 6 files changed, 12 insertions(+), 42 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1a2eecf..a195c3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2010-10-06 Anatoly Sokolov + + * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation. + * doc/tm.texi.in: Regenerate. + * system.h (CLASS_LIKELY_SPILLED_P): Poison. + * targhooks.c (default_class_likely_spilled_p): Don't use the + CLASS_LIKELY_SPILLED_P macro. + + * config\arm\arm.md: Update comment. + 2010-10-06 Jan Hubicka * ipa.c (cgraph_remove_unreachable_nodes): External references can always diff --git a/gcc/config/arm/arm.md b/gcc/config/arm/arm.md index c54bb2a..6c63e64 100644 --- a/gcc/config/arm/arm.md +++ b/gcc/config/arm/arm.md @@ -6671,7 +6671,7 @@ ;; Sigh! This variant shouldn't be needed, but combine often fails to ;; merge cases like this because the op1 is a hard register in -;; CLASS_LIKELY_SPILLED_P. +;; arm_class_likely_spilled_p. (define_peephole2 [(set (match_operand:SI 0 "low_register_operand" "") (match_operand:SI 1 "low_register_operand" "")) diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index e1e0957..c686cbc 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -2852,24 +2852,6 @@ the only effect of such implementation would be to slow down register allocation. @end deftypefn -@defmac CLASS_LIKELY_SPILLED_P (@var{class}) -A C expression whose value is nonzero if pseudos that have been assigned -to registers of class @var{class} would likely be spilled because -registers of @var{class} are needed for spill registers. - -The default value of this macro returns 1 if @var{class} has exactly one -register and zero otherwise. On most machines, this default should be -used. Only define this macro to some other expression if pseudos -allocated by @file{local-alloc.c} end up in memory because their hard -registers were needed for spill registers. If this macro returns nonzero -for those classes, those pseudos will only be allocated by -@file{global.c}, which knows how to reallocate the pseudo to another -register. If there would not be another register available for -reallocation, you should not change the definition of this macro since -the only effect of such a definition would be to slow down register -allocation. -@end defmac - @defmac CLASS_MAX_NREGS (@var{class}, @var{mode}) A C expression for the maximum number of consecutive registers of class @var{class} needed to hold a value of mode @var{mode}. diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index cb22a05..4c43fd5 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -2852,24 +2852,6 @@ the only effect of such implementation would be to slow down register allocation. @end deftypefn -@defmac CLASS_LIKELY_SPILLED_P (@var{class}) -A C expression whose value is nonzero if pseudos that have been assigned -to registers of class @var{class} would likely be spilled because -registers of @var{class} are needed for spill registers. - -The default value of this macro returns 1 if @var{class} has exactly one -register and zero otherwise. On most machines, this default should be -used. Only define this macro to some other expression if pseudos -allocated by @file{local-alloc.c} end up in memory because their hard -registers were needed for spill registers. If this macro returns nonzero -for those classes, those pseudos will only be allocated by -@file{global.c}, which knows how to reallocate the pseudo to another -register. If there would not be another register available for -reallocation, you should not change the definition of this macro since -the only effect of such a definition would be to slow down register -allocation. -@end defmac - @defmac CLASS_MAX_NREGS (@var{class}, @var{mode}) A C expression for the maximum number of consecutive registers of class @var{class} needed to hold a value of mode @var{mode}. diff --git a/gcc/system.h b/gcc/system.h index f7ce1ef..4bfebaf 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -716,7 +716,7 @@ extern void fancy_abort (const char *, int, const char *) ATTRIBUTE_NORETURN; CAN_ELIMINATE TRAMPOLINE_TEMPLATE INITIALIZE_TRAMPOLINE \ TRAMPOLINE_ADJUST_ADDRESS STATIC_CHAIN STATIC_CHAIN_INCOMING \ RETURN_POPS_ARGS UNITS_PER_SIMD_WORD OVERRIDE_OPTIONS \ - OPTIMIZATION_OPTIONS \ + OPTIMIZATION_OPTIONS CLASS_LIKELY_SPILLED_P \ USING_SJLJ_EXCEPTIONS TARGET_UNWIND_INFO /* Other obsolete target macros, or macros that used to be in target diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 82e59a8..5a36f0e 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1226,11 +1226,7 @@ default_profile_before_prologue (void) bool default_class_likely_spilled_p (reg_class_t rclass) { -#ifndef CLASS_LIKELY_SPILLED_P return (reg_class_size[(int) rclass] == 1); -#else - return CLASS_LIKELY_SPILLED_P ((enum reg_class) rclass); -#endif } /* Determine the debugging unwind mechanism for the target. */ -- 2.7.4