]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix a SPARC -mcbcond compare-and-branch out of range failure.
authorSheldon Lobo <smlobo@sheldon.us.oracle.com>
Fri, 26 May 2017 20:00:58 +0000 (20:00 +0000)
committerSheldon Lobo <smlobo@gcc.gnu.org>
Fri, 26 May 2017 20:00:58 +0000 (20:00 +0000)
Backported from mainline
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.

From-SVN: r248527

gcc/ChangeLog
gcc/config/sparc/sparc.md

index fa9c6db773ef99255e86aeeb3a0aa6a4fb7a6fb8..457f0f03c5babc9e58f32c3057836aaea4c02ced 100644 (file)
@@ -1,3 +1,11 @@
+2017-05-26  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
+
+       Backported from mainline
+       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-19  Uros Bizjak  <ubizjak@gmail.com>
 
        Backport from mainline
index 81e998472207a2a485c391fdfceb27bf3ae771fb..f04b3e06662e37755fd7fb30a87df1e4e2952ed2 100644 (file)
             (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))