* config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
authorNick Clifton <nickc@redhat.com>
Thu, 16 Aug 2012 09:56:11 +0000 (09:56 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Thu, 16 Aug 2012 09:56:11 +0000 (09:56 +0000)
From-SVN: r190440

gcc/ChangeLog
gcc/config/bfin/bfin.c

index 7aeb8928a8302e497df7282429a2945b4daaa6e6..671c98789a8817dbcb738d9fda07b76db03f9835 100644 (file)
@@ -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.
index 0a0d702f26ee09158423190518c83333715958c2..3a4b8af9f9b6c365b774aaa2ee9e4cdcccf16eee 100644 (file)
@@ -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);