* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169333
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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);
/* 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))
{
#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
#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