]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sparc.c (output_return): Fix thinko in the output of an EH return when delayed branch...
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 5 Jun 2011 23:20:56 +0000 (23:20 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 5 Jun 2011 23:20:56 +0000 (23:20 +0000)
* config/sparc/sparc.c (output_return): Fix thinko in the output of an
EH return when delayed branches are disabled.

From-SVN: r174673

gcc/ChangeLog
gcc/config/sparc/sparc.c

index 3465c14cd043c9b16ee62eea10775fbbf6ff8f33..cf9bca94784f5eb297b014ed0699b45acc675114 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/sparc/sparc.c (output_return): Fix thinko in the output of an
+       EH return when delayed branches are disabled.
+
 2011-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        Backport from mainline
index 9f0bfa1dd21a508cd61cffade25be93f71eeb485..6e640f6a250161420ec3714f7bb4bca7ecfe2f7f 100644 (file)
@@ -4252,18 +4252,20 @@ output_return (rtx insn)
             machinery occupies the delay slot.  */
          gcc_assert (! final_sequence);
 
-         if (! flag_delayed_branch)
-           fputs ("\tadd\t%fp, %g1, %fp\n", asm_out_file);
-
-         if (TARGET_V9)
-           fputs ("\treturn\t%i7+8\n", asm_out_file);
-         else
-           fputs ("\trestore\n\tjmp\t%o7+8\n", asm_out_file);
+          if (flag_delayed_branch)
+           {
+             if (TARGET_V9)
+               fputs ("\treturn\t%i7+8\n", asm_out_file);
+             else
+               fputs ("\trestore\n\tjmp\t%o7+8\n", asm_out_file);
 
-         if (flag_delayed_branch)
-           fputs ("\t add\t%sp, %g1, %sp\n", asm_out_file);
+             fputs ("\t add\t%sp, %g1, %sp\n", asm_out_file);
+           }
          else
-           fputs ("\t nop\n", asm_out_file);
+           {
+             fputs ("\trestore\n\tadd\t%sp, %g1, %sp\n", asm_out_file);
+             fputs ("\tjmp\t%o7+8\n\t nop\n", asm_out_file);
+           }
        }
       else if (final_sequence)
        {