From: palves Date: Thu, 10 Feb 2011 18:31:25 +0000 (+0000) Subject: * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=0f7ae9cecde3feeb0ec110876ff329c49da361de;p=pf3gnuchains%2Fpf3gnuchains4x.git * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right side of the parenthesis. Merge from GCC: 2010-07-13 Jakub Jelinek * vec.h (VEC_block_remove): Fix comment. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3dc994fb47..0bdef1ceca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2011-02-10 Pedro Alves + + * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right + side of the parenthesis. + + Merge from GCC: + 2010-07-13 Jakub Jelinek + * vec.h (VEC_block_remove): Fix comment. + 2011-02-08 Michael Snyder * linux-nat.c (linux_nat_filter_event): Fix typo in comment. diff --git a/gdb/vec.h b/gdb/vec.h index 2c383df7d8..b287170fc2 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)