diff options
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/epiphany/epiphany-protos.h | 4 | ||||
-rw-r--r-- | gcc/config/epiphany/epiphany.cc | 2 | ||||
-rw-r--r-- | gcc/config/epiphany/mode-switch-use.cc | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.cc | 2 | ||||
-rw-r--r-- | gcc/config/riscv/riscv.cc | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh.cc | 4 |
6 files changed, 9 insertions, 7 deletions
diff --git a/gcc/config/epiphany/epiphany-protos.h b/gcc/config/epiphany/epiphany-protos.h index 72c141c..ef49a1e 100644 --- a/gcc/config/epiphany/epiphany-protos.h +++ b/gcc/config/epiphany/epiphany-protos.h @@ -44,7 +44,9 @@ extern void emit_set_fp_mode (int entity, int mode, int prev_mode, #endif extern void epiphany_insert_mode_switch_use (rtx_insn *insn, int, int); extern void epiphany_expand_set_fp_mode (rtx *operands); -extern int epiphany_mode_needed (int entity, rtx_insn *insn); +#ifdef HARD_CONST +extern int epiphany_mode_needed (int entity, rtx_insn *insn, HARD_REG_SET); +#endif extern int epiphany_mode_after (int entity, int last_mode, rtx_insn *insn); extern bool epiphany_epilogue_uses (int regno); extern bool epiphany_optimize_mode_switching (int entity); diff --git a/gcc/config/epiphany/epiphany.cc b/gcc/config/epiphany/epiphany.cc index a5460db..60a9b49 100644 --- a/gcc/config/epiphany/epiphany.cc +++ b/gcc/config/epiphany/epiphany.cc @@ -2400,7 +2400,7 @@ epiphany_mode_priority (int entity, int priority) } int -epiphany_mode_needed (int entity, rtx_insn *insn) +epiphany_mode_needed (int entity, rtx_insn *insn, HARD_REG_SET) { enum attr_fp_mode mode; diff --git a/gcc/config/epiphany/mode-switch-use.cc b/gcc/config/epiphany/mode-switch-use.cc index 7153061..183b9b7 100644 --- a/gcc/config/epiphany/mode-switch-use.cc +++ b/gcc/config/epiphany/mode-switch-use.cc @@ -58,7 +58,7 @@ insert_uses (void) { if (!INSN_P (insn)) continue; - mode = epiphany_mode_needed (e, insn); + mode = epiphany_mode_needed (e, insn, {}); if (mode == no_mode) continue; if (target_insert_mode_switch_use) diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index eec9b42..a041e87 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -15060,7 +15060,7 @@ ix86_i387_mode_needed (int entity, rtx_insn *insn) prior to the execution of insn. */ static int -ix86_mode_needed (int entity, rtx_insn *insn) +ix86_mode_needed (int entity, rtx_insn *insn, HARD_REG_SET) { switch (entity) { diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index fa2d4d4..750eaf9 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -9426,7 +9426,7 @@ riscv_frm_mode_needed (rtx_insn *cur_insn, int code) prior to the execution of insn. */ static int -riscv_mode_needed (int entity, rtx_insn *insn) +riscv_mode_needed (int entity, rtx_insn *insn, HARD_REG_SET) { int code = recog_memoized (insn); diff --git a/gcc/config/sh/sh.cc b/gcc/config/sh/sh.cc index 294faf7..c363490 100644 --- a/gcc/config/sh/sh.cc +++ b/gcc/config/sh/sh.cc @@ -195,7 +195,7 @@ static int calc_live_regs (HARD_REG_SET *); static HOST_WIDE_INT rounded_frame_size (int); static bool sh_frame_pointer_required (void); static void sh_emit_mode_set (int, int, int, HARD_REG_SET); -static int sh_mode_needed (int, rtx_insn *); +static int sh_mode_needed (int, rtx_insn *, HARD_REG_SET); static int sh_mode_after (int, int, rtx_insn *); static int sh_mode_entry (int); static int sh_mode_exit (int); @@ -12531,7 +12531,7 @@ sh_emit_mode_set (int entity ATTRIBUTE_UNUSED, int mode, } static int -sh_mode_needed (int entity ATTRIBUTE_UNUSED, rtx_insn *insn) +sh_mode_needed (int entity ATTRIBUTE_UNUSED, rtx_insn *insn, HARD_REG_SET) { return recog_memoized (insn) >= 0 ? get_attr_fp_mode (insn) : FP_MODE_NONE; } |