@@ -1020,7 +1020,7 @@ rl78_expand_prologue (void)
if (rl78_is_naked_func ())
return;
- rb = is_interrupt_func (cfun->decl) ? -1 : 0;
+ rb = (is_interrupt_func (cfun->decl) && !TARGET_G10)? -1 : 0;
if (!cfun->machine->computed)
rl78_compute_frame_info ();
@@ -1049,7 +1049,7 @@ rl78_expand_prologue (void)
}
/* Interrupt functions use rb3 instead of rb0. */
- if (is_interrupt_func (cfun->decl))
+ if (is_interrupt_func (cfun->decl) && !TARGET_G10)
{
if (rb != 3)
emit_insn (gen_sel_rb (GEN_INT (3)));
@@ -1089,7 +1089,7 @@ rl78_expand_epilogue (void)
if (rl78_is_naked_func ())
return;
- rb = is_interrupt_func (cfun->decl) ? 3 : 0;
+ rb = (is_interrupt_func (cfun->decl) && !TARGET_G10) ? 3 : 0;
if (frame_pointer_needed)
{