aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-10-06 22:12:49 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-10-06 22:12:49 +0400
commit32bd8fcfdabaf7b41714e75d722ee6c3ed380aec (patch)
tree06e65a39b8b30c010360e104fb790acb41078e7a /gcc
parentd2ab66aa02a67a736eb2063b9f94390204401478 (diff)
downloadgcc-32bd8fcfdabaf7b41714e75d722ee6c3ed380aec.zip
gcc-32bd8fcfdabaf7b41714e75d722ee6c3ed380aec.tar.gz
gcc-32bd8fcfdabaf7b41714e75d722ee6c3ed380aec.tar.bz2
tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
* 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. From-SVN: r165060
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/config/arm/arm.md2
-rw-r--r--gcc/doc/tm.texi18
-rw-r--r--gcc/doc/tm.texi.in18
-rw-r--r--gcc/system.h2
-rw-r--r--gcc/targhooks.c4
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 <aesok@post.ru>
+
+ * 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 <jh@suse.cz>
* 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. */