From 015122d8c438b83cb069a6f42fae066cfb4749da Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 24 Feb 2017 23:32:46 +0100 Subject: c6x: Fix for RTL checking * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL. From-SVN: r245721 --- gcc/config/c6x/c6x.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/config/c6x') diff --git a/gcc/config/c6x/c6x.c b/gcc/config/c6x/c6x.c index f841266..c54d4d1 100644 --- a/gcc/config/c6x/c6x.c +++ b/gcc/config/c6x/c6x.c @@ -3799,6 +3799,7 @@ predicate_insn (rtx_insn *insn, rtx cond, bool doit) { if (doit) { + cond = copy_rtx (cond); rtx newpat = gen_rtx_COND_EXEC (VOIDmode, cond, PATTERN (insn)); PATTERN (insn) = newpat; INSN_CODE (insn) = -1; -- cgit v1.1