aboutsummaryrefslogtreecommitdiff
path: root/gdb/vec.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-02-10 18:31:28 +0000
committerPedro Alves <palves@redhat.com>2011-02-10 18:31:28 +0000
commit2287cc7e0e068b31286225a679fb323a08ffc37d (patch)
tree86109570ac0042b18615c0a0187660f6c4dcee56 /gdb/vec.h
parent40c034ebed70c5af579b4dc69b4832698777eaa3 (diff)
downloadgdb-2287cc7e0e068b31286225a679fb323a08ffc37d.zip
gdb-2287cc7e0e068b31286225a679fb323a08ffc37d.tar.gz
gdb-2287cc7e0e068b31286225a679fb323a08ffc37d.tar.bz2
* 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.
Diffstat (limited to 'gdb/vec.h')
-rw-r--r--gdb/vec.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/vec.h b/gdb/vec.h
index 2c383df..b287170 100644
--- a/gdb/vec.h
+++ b/gdb/vec.h
@@ -353,10 +353,10 @@
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)