re PR target/46881 (arm_preferred_rename_class uses keyword class as parameter name)

PR target/46881
	* doc/tm.texi: Regenerate.
	* target.def: Fix "preferred" spelling.  Refer to rclass by its
	exact name.
	* config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
	to rclass.

From-SVN: r167678
This commit is contained in:
Joern Rennecke 2010-12-10 03:58:30 +00:00 committed by Joern Rennecke
parent 80f4fc8ccc
commit 6d3fbe2fee
4 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,12 @@
2010-12-10 Joern Rennecke <amylaar@spamcop.net>
PR target/46881
* doc/tm.texi: Regenerate.
* target.def: Fix "preferred" spelling. Refer to rclass by its
exact name.
* config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
to rclass.
2010-12-09 Paul Koning <ni1d@arrl.net>
* config/pdp11/pdp11-protos.h (output_move_double,

View File

@ -248,7 +248,7 @@ static bool arm_builtin_support_vector_misalignment (enum machine_mode mode,
int misalignment,
bool is_packed);
static void arm_conditional_register_usage (void);
static reg_class_t arm_preferred_rename_class (reg_class_t class);
static reg_class_t arm_preferred_rename_class (reg_class_t rclass);
/* Table of machine attributes. */
@ -23473,12 +23473,12 @@ arm_conditional_register_usage (void)
}
static reg_class_t
arm_preferred_rename_class (reg_class_t class)
arm_preferred_rename_class (reg_class_t rclass)
{
/* Thumb-2 instructions using LO_REGS may be smaller than instructions
using GENERIC_REGS. During register rename pass, we prefer LO_REGS,
and code size can be reduced. */
if (TARGET_THUMB2 && class == GENERAL_REGS)
if (TARGET_THUMB2 && rclass == GENERAL_REGS)
return LO_REGS;
else
return NO_REGS;

View File

@ -2505,7 +2505,7 @@ only if neither labeling works.
@end defmac
@deftypefn {Target Hook} reg_class_t TARGET_PREFERRED_RENAME_CLASS (reg_class_t @var{rclass})
A target hook that places additional preference on the register class to use when it is necessary to rename a register in class @var{class} to another class, or perhaps @var{NO_REGS}, if no prefered register class is found or hook @code{preferred_rename_class} is not implemented. Sometimes returning a more restrictive class makes better code. For example, on ARM, thumb-2 instructions using @code{LO_REGS} may be smaller than instructions using @code{GENERIC_REGS}. By returning @code{LO_REGS} from @code{preferred_rename_class}, code size can be reduced.
A target hook that places additional preference on the register class to use when it is necessary to rename a register in class @var{rclass} to another class, or perhaps @var{NO_REGS}, if no preferred register class is found or hook @code{preferred_rename_class} is not implemented. Sometimes returning a more restrictive class makes better code. For example, on ARM, thumb-2 instructions using @code{LO_REGS} may be smaller than instructions using @code{GENERIC_REGS}. By returning @code{LO_REGS} from @code{preferred_rename_class}, code size can be reduced.
@end deftypefn
@deftypefn {Target Hook} reg_class_t TARGET_PREFERRED_RELOAD_CLASS (rtx @var{x}, reg_class_t @var{rclass})

View File

@ -2228,8 +2228,8 @@ DEFHOOK
(preferred_rename_class,
"A target hook that places additional preference on the register\
class to use when it is necessary to rename a register in class\
@var{class} to another class, or perhaps @var{NO_REGS}, if no\
prefered register class is found or hook @code{preferred_rename_class}\
@var{rclass} to another class, or perhaps @var{NO_REGS}, if no\
preferred register class is found or hook @code{preferred_rename_class}\
is not implemented.\
Sometimes returning a more restrictive class makes better code. For\
example, on ARM, thumb-2 instructions using @code{LO_REGS} may be\