From 3bf203945aaaedc9cefe03f32bb18bdd783f4e4f Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sun, 18 Sep 2011 22:02:27 +0000 Subject: [PATCH] re PR target/50091 (-fstack-check generates wrong assembly) PR target/50091 * config/rs6000/rs6000.md (probe_stack): Use explicit operand. Co-Authored-By: Iain Sandoe From-SVN: r178946 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 27d8169b47e1..c1458efab2b5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-09-18 Eric Botcazou + Iain Sandoe + + PR target/50091 + * config/rs6000/rs6000.md (probe_stack): Use explicit operand. + 2011-09-08 Martin Jambor Backport from mainline diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 7749806c98c5..a2695d1f1537 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -12473,7 +12473,11 @@ [(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")]) -- 2.47.2