aboutsummaryrefslogtreecommitdiff
path: root/gcc/bt-load.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/bt-load.c')
-rw-r--r--gcc/bt-load.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/bt-load.c b/gcc/bt-load.c
index 5e3d12c359a..e69e3c32b1f 100644
--- a/gcc/bt-load.c
+++ b/gcc/bt-load.c
@@ -38,6 +38,9 @@ along with GCC; see the file COPYING3. If not see
#include "tree-pass.h"
#include "recog.h"
#include "df.h"
+#include "multi-target.h"
+
+START_TARGET_SPECIFIC
/* Target register optimizations - these are performed after reload. */
@@ -1458,7 +1461,8 @@ migrate_btr_defs (enum reg_class btr_class, int allow_callee_save)
static void
branch_target_load_optimize (bool after_prologue_epilogue_gen)
{
- enum reg_class klass = targetm.branch_target_register_class ();
+ enum reg_class klass
+ = (enum reg_class) targetm.branch_target_register_class ();
if (klass != NO_REGS)
{
/* Initialize issue_rate. */
@@ -1572,3 +1576,5 @@ struct rtl_opt_pass pass_branch_target_load_optimize2 =
TODO_ggc_collect, /* todo_flags_finish */
}
};
+
+END_TARGET_SPECIFIC