aboutsummaryrefslogtreecommitdiff
path: root/gcc/sel-sched.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-19 16:39:52 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-19 16:39:52 +0000
commitc1286e0b87cad2589a09ae0380d969499c29ce43 (patch)
tree94d0ac625bc92985cbc40fe4a70a2d42ba530966 /gcc/sel-sched.c
parentb4e8ceb98c4ec844b4886e61363a70e5a2c6b140 (diff)
downloadgcc-c1286e0b87cad2589a09ae0380d969499c29ce43.zip
gcc-c1286e0b87cad2589a09ae0380d969499c29ce43.tar.gz
gcc-c1286e0b87cad2589a09ae0380d969499c29ce43.tar.bz2
BND_TO scaffolding
gcc/ 2014-08-19 David Malcolm <dmalcolm@redhat.com> * sel-sched-ir.h (BND_TO): insn_t will eventually be an rtx_insn *. To help with transition, for now, convert from an access macro into a pair of functions: BND_TO, returning an rtx_insn *, and... (SET_BND_TO): New function, for use where BND_TO is used as an lvalue. * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to SET_BND_TO. (BND_TO): New function, adding a checked cast. (SET_BND_TO): New function. * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to SET_BND_TO. (compute_av_set_on_boundaries): Likewise. / 2014-08-19 David Malcolm <dmalcolm@redhat.com> * rtx-classes-status.txt (TODO): Add SET_BND_TO From-SVN: r214170
Diffstat (limited to 'gcc/sel-sched.c')
-rw-r--r--gcc/sel-sched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c
index 2d9bc81..3248629 100644
--- a/gcc/sel-sched.c
+++ b/gcc/sel-sched.c
@@ -4954,7 +4954,7 @@ move_cond_jump (rtx insn, bnd_t bnd)
/* Jump is moved to the boundary. */
next = PREV_INSN (insn);
- BND_TO (bnd) = insn;
+ SET_BND_TO (bnd) = insn;
ft_edge = find_fallthru_edge_from (block_from);
block_next = ft_edge->dest;
@@ -5095,7 +5095,7 @@ compute_av_set_on_boundaries (fence_t fence, blist_t bnds, av_set_t *av_vliw_p)
{
gcc_assert (FENCE_INSN (fence) == BND_TO (bnd));
FENCE_INSN (fence) = bnd_to;
- BND_TO (bnd) = bnd_to;
+ SET_BND_TO (bnd) = bnd_to;
}
av_set_clear (&BND_AV (bnd));