aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2012-09-12 09:51:52 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2012-09-12 09:51:52 -0400
commit0dadc27181235760099ae5c87a48b46b22b65d8b (patch)
tree7a7ee0df3be2b54b1b3d6eaf5e6caf07ef5e1b11
parent3fd42a6481086a4cdd7c9a95aa1d81ee971d489b (diff)
downloadgcc-0dadc27181235760099ae5c87a48b46b22b65d8b.zip
gcc-0dadc27181235760099ae5c87a48b46b22b65d8b.tar.gz
gcc-0dadc27181235760099ae5c87a48b46b22b65d8b.tar.bz2
vec.h: Remove compatibility notes for previous distinction between vectors of objects...
2012-09-12 Diego Novillo <dnovillo@google.com> * vec.h: Remove compatibility notes for previous distinction between vectors of objects and vectors of pointers. From-SVN: r191223
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/vec.h18
2 files changed, 5 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c6fd799..7aa2e4f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-12 Diego Novillo <dnovillo@google.com>
+
+ * vec.h: Remove compatibility notes for previous distinction
+ between vectors of objects and vectors of pointers.
+
2012-09-12 Christian Bruel <christian.bruel@st.com>
* config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
diff --git a/gcc/vec.h b/gcc/vec.h
index 88891d7..8858f6a 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -31,23 +31,6 @@ along with GCC; see the file COPYING3. If not see
sometimes backed by out-of-line generic functions. The vectors are
designed to interoperate with the GTY machinery.
- FIXME - Remove the following compatibility notes after a handler
- class for vec_t is implemented.
-
- To preserve compatibility with the existing API, some functions
- that manipulate vector elements implement two overloads: one taking
- a pointer to the element and others that take a pointer to a
- pointer to the element.
-
- This used to be implemented with three different families of macros
- and structures: structure objects, scalar objects and of pointers.
- Both the structure object and pointer variants passed pointers to
- objects around -- in the former case the pointers were stored into
- the vector and in the latter case the pointers were dereferenced and
- the objects copied into the vector. The scalar object variant was
- suitable for int-like objects, and the vector elements were returned
- by value.
-
There are both 'index' and 'iterate' accessors. The index accessor
is implemented by operator[]. The iterator returns a boolean
iteration condition and updates the iteration variable passed by
@@ -124,7 +107,6 @@ along with GCC; see the file COPYING3. If not see
VEC_safe_push(tree,gc,s->v,decl); // append some decl onto the end
for (ix = 0; VEC_iterate(tree,s->v,ix,elt); ix++)
{ do something with elt }
-
*/
#if ENABLE_CHECKING