diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-19 16:00:59 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-19 16:00:59 +0000 |
commit | c2fc1aee966c9b65eb36b77b2087f76fa3fbe410 (patch) | |
tree | 40b0cac54f1e679a9fa754cd12c4b470e4479066 /gcc/sel-sched.c | |
parent | 3f4f5c9ad5536025c531a8702af9254ffe97a0ca (diff) | |
download | gcc-c2fc1aee966c9b65eb36b77b2087f76fa3fbe410.zip gcc-c2fc1aee966c9b65eb36b77b2087f76fa3fbe410.tar.gz gcc-c2fc1aee966c9b65eb36b77b2087f76fa3fbe410.tar.bz2 |
BB_NOTE_LIST scaffolding
gcc/
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
"note_list" field will eventually be an rtx_insn *. To help with
transition, for now, convert from an access macro into a pair of
functions: BB_NOTE_LIST, returning an rtx_insn *, and...
(SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
used as an lvalue.
* sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
of BB_NOTE_LIST to SET_BB_NOTE_LIST.
* sel-sched-ir.c (init_bb): Likewise.
(sel_restore_notes): Likewise.
(move_bb_info): Likewise.
(BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
(SET_BB_NOTE_LIST): New function.
/
2014-08-19 David Malcolm <dmalcolm@redhat.com>
* rtx-classes-status.txt (TODO): Add SET_BB_NOTE_LIST.
From-SVN: r214167
Diffstat (limited to 'gcc/sel-sched.c')
-rw-r--r-- | gcc/sel-sched.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index 7b3c433..2d9bc81 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -4585,8 +4585,8 @@ create_block_for_bookkeeping (edge e1, edge e2) /* Move note_list from the upper bb. */ gcc_assert (BB_NOTE_LIST (new_bb) == NULL_RTX); - BB_NOTE_LIST (new_bb) = BB_NOTE_LIST (bb); - BB_NOTE_LIST (bb) = NULL_RTX; + SET_BB_NOTE_LIST (new_bb) = BB_NOTE_LIST (bb); + SET_BB_NOTE_LIST (bb) = NULL_RTX; gcc_assert (e2->dest == bb); |