* vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
authorPedro Alves <palves@redhat.com>
Thu, 10 Feb 2011 18:31:28 +0000 (18:31 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 10 Feb 2011 18:31:28 +0000 (18:31 +0000)
side of the parenthesis.

Merge from GCC:
2010-07-13  Jakub Jelinek  <jakub@redhat.com>
        * vec.h (VEC_block_remove): Fix comment.

gdb/ChangeLog
gdb/vec.h

index 3dc994fb470f39d62e80db9f76b76a5a0fd1163e..0bdef1cecafc80f24581f0976ee2d1126e7563fd 100644 (file)
@@ -1,3 +1,12 @@
+2011-02-10  Pedro Alves  <pedro@codesourcery.com>
+
+       * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
+       side of the parenthesis.
+
+       Merge from GCC:
+       2010-07-13  Jakub Jelinek  <jakub@redhat.com>
+        * vec.h (VEC_block_remove): Fix comment.
+
 2011-02-08  Michael Snyder  <msnyder@vmware.com>
 
        * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
index 2c383df7d8761ab2c3bfc58b92e2a9a0539bb538..b287170fc2fc3aa019344d8ec384a5a26d7927b3 100644 (file)
--- a/gdb/vec.h
+++ b/gdb/vec.h
    void VEC_T_block_remove (VEC(T) *v, unsigned ix, unsigned len);
 
    Remove LEN elements starting at the IXth.  Ordering is retained.
-   This is an O(1) operation.  */
+   This is an O(N) operation due to memmove.  */
 
 #define VEC_block_remove(T,V,I,L)      \
-       (VEC_OP(T,block_remove)(V,I,L) VEC_ASSERT_INFO)
+       (VEC_OP(T,block_remove)(V,I,L VEC_ASSERT_INFO))
 
 /* Get the address of the array of elements
    T *VEC_T_address (VEC(T) v)