Fix a SPARC -mcbcond compare-and-branch out of range failure.

* config/sparc/sparc.md (length): Return the correct value for -mflat
	sibcalls to match output_sibcall.

From-SVN: r248422
This commit is contained in:
Sheldon Lobo 2017-05-24 14:46:05 +00:00 committed by Sheldon Lobo
parent 6938e7f1d8
commit 657e5f8326
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
* config/sparc/sparc.md (length): Return the correct value for -mflat
sibcalls to match output_sibcall.
2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
PR bootstrap/80860

View File

@ -338,7 +338,8 @@
(const_int 2)
(const_int 1))
(eq_attr "type" "sibcall")
(if_then_else (eq_attr "leaf_function" "true")
(if_then_else (ior (eq_attr "leaf_function" "true")
(eq_attr "flat" "true"))
(if_then_else (eq_attr "empty_delay_slot" "true")
(const_int 3)
(const_int 2))