s390.h (PREFERRED_RELOAD_CLASS): Remove.

* config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
	* config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
	* config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
	(s390_preferred_reload_class): Make static. Change return and
	'rclass' argument type to reg_class_t.

From-SVN: r169333
This commit is contained in:
Anatoly Sokolov 2011-01-27 20:10:16 +03:00 committed by Anatoly Sokolov
parent 779d4b91eb
commit 5df974120e
4 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,11 @@
2011-01-27 Anatoly Sokolov <aesok@post.ru>
* config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
* config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
* config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
(s390_preferred_reload_class): Make static. Change return and
'rclass' argument type to reg_class_t.
2011-01-27 Jan Hubicka <jh@suse.cz>
PR middle-end/46949

View file

@ -70,7 +70,6 @@ extern int legitimate_constant_p (rtx);
extern bool legitimate_reload_constant_p (rtx);
extern rtx legitimize_pic_address (rtx, rtx);
extern rtx legitimize_reload_address (rtx, enum machine_mode, int, int);
extern enum reg_class s390_preferred_reload_class (rtx, enum reg_class);
extern enum reg_class s390_secondary_input_reload_class (enum reg_class,
enum machine_mode,
rtx);

View file

@ -2951,8 +2951,8 @@ legitimate_reload_fp_constant_p (rtx op)
/* Given an rtx OP being reloaded into a reg required to be in class RCLASS,
return the class of reg to actually use. */
enum reg_class
s390_preferred_reload_class (rtx op, enum reg_class rclass)
static reg_class_t
s390_preferred_reload_class (rtx op, reg_class_t rclass)
{
switch (GET_CODE (op))
{
@ -10717,6 +10717,9 @@ s390_loop_unroll_adjust (unsigned nunroll, struct loop *loop)
#undef TARGET_SCALAR_MODE_SUPPORTED_P
#define TARGET_SCALAR_MODE_SUPPORTED_P s390_scalar_mode_supported_p
#undef TARGET_PREFERRED_RELOAD_CLASS
#define TARGET_PREFERRED_RELOAD_CLASS s390_preferred_reload_class
#undef TARGET_SECONDARY_RELOAD
#define TARGET_SECONDARY_RELOAD s390_secondary_reload

View file

@ -531,11 +531,6 @@ extern const enum reg_class regclass_map[FIRST_PSEUDO_REGISTER];
#define REGNO_OK_FOR_BASE_P(REGNO) REGNO_OK_FOR_INDEX_P (REGNO)
/* Given an rtx X being reloaded into a reg required to be in class CLASS,
return the class of reg to actually use. */
#define PREFERRED_RELOAD_CLASS(X, CLASS) \
s390_preferred_reload_class ((X), (CLASS))
/* We need secondary memory to move data between GPRs and FPRs. With
DFP the ldgr lgdr instructions are available. But these
instructions do not handle GPR pairs so it is not possible for 31