aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/ia64/ia64.c
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-10-20 23:56:58 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-10-20 23:56:58 +0400
commitab177ad53847e22cc5aaf10ffc319060c633cc4f (patch)
tree0e9d4753f3b294a93db44e4981929dd97e700b80 /gcc/config/ia64/ia64.c
parent604f9a900c90b21ad33328e6a0b2fc1ba84dabd2 (diff)
downloadgcc-ab177ad53847e22cc5aaf10ffc319060c633cc4f.zip
gcc-ab177ad53847e22cc5aaf10ffc319060c633cc4f.tar.gz
gcc-ab177ad53847e22cc5aaf10ffc319060c633cc4f.tar.bz2
ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
* 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. From-SVN: r165734
Diffstat (limited to 'gcc/config/ia64/ia64.c')
-rw-r--r--gcc/config/ia64/ia64.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c
index c1135f9..801afa9 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)
{