diff mbox

[SPARC] Fix another thinko

Message ID 201106092151.54818.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou June 9, 2011, 7:51 p.m. UTC
> 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.

Of course the length attribute needs to be adjusted as well.

Tested on SPARC/Solaris 8, applied on the mainline and 4.6/4.5/4.4 branches.


2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>

	* config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
diff mbox

Patch

Index: config/sparc/sparc.md
===================================================================
--- config/sparc/sparc.md	(revision 174014)
+++ config/sparc/sparc.md	(working copy)
@@ -6322,9 +6322,7 @@  (define_insn "*return_internal"
 			       (if_then_else (eq_attr "isa" "v9")
 					     (const_int 2)
 					     (const_int 3))
-			       (if_then_else (eq_attr "isa" "v9")
-					     (const_int 3)
-					     (const_int 4)))
+			       (const_int 4))
 	       (eq_attr "empty_delay_slot" "true")
 		 (if_then_else (eq_attr "delayed_branch" "true")
 			       (const_int 2)