From ad19968eae4ddce82bd4ef4c0e0340ad9b5aaf5d Mon Sep 17 00:00:00 2001 From: Oleg Endo Date: Thu, 25 Sep 2014 15:50:38 +0000 Subject: [PATCH] re PR target/62218 (gcc produces invalid SH instruction (stc r2,sr) when building libgcc) gcc/ PR target/62218 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo in instruction sequence. From-SVN: r215607 --- gcc/ChangeLog | 6 ++++++ gcc/config/sh/sync.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ddf61bae30..607dc95da76 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-09-25 Oleg Endo + + PR target/62218 + * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo + in instruction sequence. + 2014-09-25 Nick Clifton PR target/62218 diff --git a/gcc/config/sh/sync.md b/gcc/config/sh/sync.md index e6a16fc6b15..7dcf6971e6e 100644 --- a/gcc/config/sh/sync.md +++ b/gcc/config/sh/sync.md @@ -1353,7 +1353,7 @@ " ldc r0,sr" "\n" " mov.b @%0,r0" "\n" " mov.b %1,@%0" "\n" - " stc %2,sr" "\n" + " ldc %2,sr" "\n" " tst r0,r0"; } [(set_attr "length" "16")]) -- 2.30.2