From f857b8ef2f134eae71518b15bbfd1d998537ee2b Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Wed, 16 Nov 2016 10:05:04 +0000 Subject: [PATCH] Fix missing brackets in arc.c The old code still built thanks to the brackets in the definition of XVECEXP. gcc/ * config/arc/arc.c (arc_loop_hazard): Add missing brackets. From-SVN: r242473 --- gcc/ChangeLog | 4 ++++ gcc/config/arc/arc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ed37d6dbe93..542d3a0fbec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-11-16 Richard Sandiford + + * config/arc/arc.c (arc_loop_hazard): Add missing brackets. + 2016-11-16 Kyrylo Tkachov PR target/78364 diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 3bce7ef3661..98c7298cf0c 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -7812,7 +7812,7 @@ arc_loop_hazard (rtx_insn *pred, rtx_insn *succ) jump = pred; else if (GET_CODE (PATTERN (pred)) == SEQUENCE && JUMP_P (XVECEXP (PATTERN (pred), 0, 0))) - jump = as_a XVECEXP (PATTERN (pred), 0, 0); + jump = as_a (XVECEXP (PATTERN (pred), 0, 0)); else return false; -- 2.30.2