From: Richard Sandiford Date: Wed, 16 Nov 2016 10:05:04 +0000 (+0000) Subject: Fix missing brackets in arc.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f857b8ef2f134eae71518b15bbfd1d998537ee2b;p=gcc.git 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 --- 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;