From 3f60eeb4c5165d6dddb1facaf48ccdb4e1621865 Mon Sep 17 00:00:00 2001 From: aesok Date: Wed, 20 Oct 2010 19:56:58 +0000 Subject: * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros. * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove. * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define. (ia64_preferred_reload_class): Make static. Change rclass argument and result types from enum reg_class to reg_class_t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165734 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/ia64/ia64.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gcc/config/ia64/ia64.c') diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index c1135f996b2..801afa99e07 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -324,6 +324,8 @@ static void ia64_override_options_after_change (void); static void ia64_dwarf_handle_frame_unspec (const char *, rtx, int); static tree ia64_builtin_decl (unsigned, bool); + +static reg_class_t ia64_preferred_reload_class (rtx, reg_class_t); /* Table of valid machine attributes. */ static const struct attribute_spec ia64_attribute_table[] = @@ -595,6 +597,9 @@ static const struct attribute_spec ia64_attribute_table[] = #undef TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE #define TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE ia64_override_options_after_change +#undef TARGET_PREFERRED_RELOAD_CLASS +#define TARGET_PREFERRED_RELOAD_CLASS ia64_preferred_reload_class + struct gcc_target targetm = TARGET_INITIALIZER; typedef enum @@ -5346,11 +5351,11 @@ ia64_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, return 10; } -/* Implement PREFERRED_RELOAD_CLASS. Place additional restrictions on RCLASS - to use when copying X into that class. */ +/* Implement TARGET_PREFERRED_RELOAD_CLASS. Place additional restrictions + on RCLASS to use when copying X into that class. */ -enum reg_class -ia64_preferred_reload_class (rtx x, enum reg_class rclass) +static reg_class_t +ia64_preferred_reload_class (rtx x, reg_class_t rclass) { switch (rclass) { -- cgit v1.2.1