From: Sheldon Lobo Date: Fri, 26 May 2017 20:00:58 +0000 (+0000) Subject: Fix a SPARC -mcbcond compare-and-branch out of range failure. X-Git-Tag: releases/gcc-5.5.0~334 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=328646000f25807ed278f59d35a08d321ac9e4f7;p=thirdparty%2Fgcc.git Fix a SPARC -mcbcond compare-and-branch out of range failure. Backported from mainline 2017-05-24 Sheldon Lobo * config/sparc/sparc.md (length): Return the correct value for -mflat sibcalls to match output_sibcall. From-SVN: r248527 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa9c6db773ef..457f0f03c5ba 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-05-26 Sheldon Lobo + + Backported from mainline + 2017-05-24 Sheldon Lobo + + * config/sparc/sparc.md (length): Return the correct value for -mflat + sibcalls to match output_sibcall. + 2017-05-19 Uros Bizjak Backport from mainline diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md index 81e998472207..f04b3e06662e 100644 --- a/gcc/config/sparc/sparc.md +++ b/gcc/config/sparc/sparc.md @@ -328,7 +328,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))