| Submitter | Nick Clifton |
|---|---|
| Date | Jan. 3, 2013, 12:45 p.m. |
| Message ID | <878v8a1llw.fsf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/209242/ |
| State | New |
| Headers | show |
Comments
I think that's right, since the ISR return restores the flag register, which has the bank select bits in it.
Patch
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]) {