This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch committed] SH: Fix constraint of load_gbr insn
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Jun 2007 07:20:19 +0900 (JST)
- Subject: [patch committed] SH: Fix constraint of load_gbr insn
Several libgomp tests using TLS begin to fail on sh4-unknown-linux-gnu
with invalid instructions like "stc gbr,fr1". The appended patch fixes
this 4.3 regression with setting a correct operand constraint for load_gbr
insn. It's tested with bootstrap and the top level "make -k check" on
sh4-unknown-linux-gnu with no new failures.
Regards,
kaz
--
2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.md (load_gbr): Use correct operand constraint.
--- ORIG/trunk/gcc/config/sh/sh.md 2007-06-22 09:16:00.000000000 +0900
+++ LOCAL/trunk/gcc/config/sh/sh.md 2007-06-27 09:33:01.000000000 +0900
@@ -8966,7 +8966,7 @@ mov.l\\t1f,r0\\n\\
}")
(define_insn "load_gbr"
- [(set (match_operand:SI 0 "register_operand" "") (reg:SI GBR_REG))
+ [(set (match_operand:SI 0 "register_operand" "=r") (reg:SI GBR_REG))
(use (reg:SI GBR_REG))]
""
"stc gbr,%0"