diff options
Diffstat (limited to 'gcc/config/rl78/rl78.c')
-rw-r--r-- | gcc/config/rl78/rl78.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index efa4b0bdaa2..eb07ca3b6d9 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -4153,20 +4153,22 @@ rl78_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED) #define TARGET_RTX_COSTS rl78_rtx_costs static bool -rl78_rtx_costs (rtx x, - int code, - int outer_code ATTRIBUTE_UNUSED, - int opno ATTRIBUTE_UNUSED, - int * total, - bool speed ATTRIBUTE_UNUSED) +rl78_rtx_costs (rtx x, + machine_mode mode, + int outer_code ATTRIBUTE_UNUSED, + int opno ATTRIBUTE_UNUSED, + int * total, + bool speed ATTRIBUTE_UNUSED) { + int code = GET_CODE (x); + if (code == IF_THEN_ELSE) { *total = COSTS_N_INSNS (10); return true; } - if (GET_MODE (x) == SImode) + if (mode == SImode) { switch (code) { |