diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-16 09:56:11 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-16 09:56:11 +0000 |
commit | 179ebaa76f67aaa5f4528a3018dfd47cc2d198b1 (patch) | |
tree | 81cfc5beb1a7d5af10e163b1c534d24af3216a66 | |
parent | 95dcc8ad8eb25336ab24e00bc69b00ff3435e2c5 (diff) | |
download | gcc-179ebaa76f67aaa5f4528a3018dfd47cc2d198b1.tar.gz |
* config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190440 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/config/bfin/bfin.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7aeb8928a83..671c98789a8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2012-08-16 Nick Clifton <nickc@redhat.com> + * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro. + * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER). * config/avr/avr.c (avr_legitimize_reload_address): Add casts for reload_type enums. diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 0a0d702f26e..3a4b8af9f9b 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -3478,7 +3478,7 @@ hwloop_optimize (hwloop_info loop) /* If we have to insert the LSETUP before a jump, count that jump in the length. */ if (VEC_length (edge, loop->incoming) > 1 - || !(VEC_last (edge, loop->incoming).flags & EDGE_FALLTHRU)) + || !(VEC_last (edge, loop->incoming)->flags & EDGE_FALLTHRU)) { gcc_assert (JUMP_P (insn)); insn = PREV_INSN (insn); @@ -3747,7 +3747,7 @@ hwloop_optimize (hwloop_info loop) { rtx prev = BB_END (loop->incoming_src); if (VEC_length (edge, loop->incoming) > 1 - || !(VEC_last (edge, loop->incoming).flags & EDGE_FALLTHRU)) + || !(VEC_last (edge, loop->incoming)->flags & EDGE_FALLTHRU)) { gcc_assert (JUMP_P (prev)); prev = PREV_INSN (prev); |