rl78.c (rl78_expand_prologue): Always select register bank 0 at the start of an inter...
authorNick Clifton <nickc@redhat.com>
Tue, 8 Jan 2013 15:00:22 +0000 (15:00 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 8 Jan 2013 15:00:22 +0000 (15:00 +0000)
* config/rl78/rl78.c (rl78_expand_prologue): Always select
register bank 0 at the start of an interrupt handler.

From-SVN: r195019

gcc/ChangeLog
gcc/config/rl78/rl78.c

index d9bf3c58d7cab09aaf7275bbf458b241308b05e3..2e662e840ae1177759f31ef04ceb9bb9634919b3 100644 (file)
@@ -1,3 +1,8 @@
+2013-01-08  Nick Clifton  <nickc@redhat.com>
+
+       * config/rl78/rl78.c (rl78_expand_prologue): Always select
+       register bank 0 at the start of an interrupt handler.
+
 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/aarch64/aarch64-simd.md
@@ -42,7 +47,7 @@
 
        * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
        TF_SIZE): Define.
-                       
+
 2013-01-07  Steve Ellcey  <sellcey@mips.com>
 
        PR target/42661
index 42a2839db6d7edc68110ecfe353e3abfe563b45d..7b58be8f81c3e810e2bb1dcb1ce2c857081005d1 100644 (file)
@@ -839,6 +839,9 @@ rl78_expand_prologue (void)
   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])
       {