aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2011-05-01 16:33:13 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2011-05-01 16:33:13 +0400
commit6f76a8788eebd50b78213f086166889167f0fcb2 (patch)
tree9da28edb6adadb3c992cd303c7a4d0fc04b5f13d /gcc/ira.c
parent7c4f44cd604b5e655fcdf2a9c555cdbcecc7fc0e (diff)
downloadgcc-6f76a8788eebd50b78213f086166889167f0fcb2.zip
gcc-6f76a8788eebd50b78213f086166889167f0fcb2.tar.gz
gcc-6f76a8788eebd50b78213f086166889167f0fcb2.tar.bz2
reginfo.c (memory_move_cost): Change rclass argument type form 'enum reg_class' to reg_class_t.
* reginfo.c (memory_move_cost): Change rclass argument type form 'enum reg_class' to reg_class_t. * reload.h (memory_move_cost): Update prototype. * postreload.c reload_cse_simplify_set): Change type dclass var to reg_class_t. * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector): Update prototype. (ira_allocate_and_set_costs): Change aclass argument type form 'enum reg_class' to reg_class_t. * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector): Change aclass argument type to reg_class_t. (update_conflict_hard_reg_costs): Change type aclass and pref vars to reg_class_t. * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust memory_move_cost call. * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'. Change type tmp var to reg_class_t. From-SVN: r173232
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 49f3e76..32dfa18c 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -583,11 +583,11 @@ setup_class_subset_and_memory_move_costs (void)
ira_max_memory_move_cost[mode][cl][0]
= ira_memory_move_cost[mode][cl][0]
= memory_move_cost ((enum machine_mode) mode,
- (enum reg_class) cl, false);
+ (reg_class_t) cl, false);
ira_max_memory_move_cost[mode][cl][1]
= ira_memory_move_cost[mode][cl][1]
= memory_move_cost ((enum machine_mode) mode,
- (enum reg_class) cl, true);
+ (reg_class_t) cl, true);
/* Costs for NO_REGS are used in cost calculation on the
1st pass when the preferred register classes are not
known yet. In this case we take the best scenario. */