]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/50091 (-fstack-check generates wrong assembly)
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 18 Sep 2011 22:02:27 +0000 (22:02 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sun, 18 Sep 2011 22:02:27 +0000 (22:02 +0000)
PR target/50091
* config/rs6000/rs6000.md (probe_stack): Use explicit operand.

Co-Authored-By: Iain Sandoe <developer@sandoe-acoustics.co.uk>
From-SVN: r178946

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 27d8169b47e11e54974f14f3ce53b92bb8657181..c1458efab2b540dbce11238653dad84ab87d3a8d 100644 (file)
@@ -1,3 +1,9 @@
+2011-09-18  Eric Botcazou  <ebotcazou@adacore.com>
+           Iain Sandoe  <developer@sandoe-acoustics.co.uk>
+
+       PR target/50091
+       * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
+
 2011-09-08  Martin Jambor  <mjambor@suse.cz>
 
        Backport from mainline
index 7749806c98c5a2199d857d22463fb71e474db3c5..a2695d1f153775d925b47ebbdd3103f975ad801d 100644 (file)
   [(set (match_operand 0 "memory_operand" "=m")
         (unspec [(const_int 0)] UNSPEC_PROBE_STACK))]
   ""
-  "{st%U0%X0|stw%U0%X0} 0,%0"
+  "*
+{
+  operands[1] = gen_rtx_REG (Pmode, 0);
+  return \"{st%U0%X0|stw%U0%X0} %1,%0\";
+}"
   [(set_attr "type" "store")
    (set_attr "length" "4")])
 \f