Message ID | 878v8a1llw.fsf@redhat.com |
---|---|
State | New |
Headers | show |
I think that's right, since the ISR return restores the flag register, which has the bank select bits in it.
Index: gcc/config/rl78/rl78.c =================================================================== --- gcc/config/rl78/rl78.c (revision 194833) +++ gcc/config/rl78/rl78.c (working copy) @@ -839,6 +839,9 @@ if (flag_stack_usage_info) current_function_static_stack_size = cfun->machine->framesize; + if (is_interrupt_func (cfun->decl)) + emit_insn (gen_sel_rb (GEN_INT (0))); + for (i = 0; i < 16; i++) if (cfun->machine->need_to_push [i]) {