Skip to content

Commit

Permalink
vec.h: Remove compatibility notes for previous distinction between ve…
Browse files Browse the repository at this point in the history
…ctors of objects...

2012-09-12  Diego Novillo  <[email protected]>

	* vec.h: Remove compatibility notes for previous distinction
	between vectors of objects and vectors of pointers.

From-SVN: r191223
  • Loading branch information
dnovillo authored and Diego Novillo committed Sep 12, 2012
1 parent 3fd42a6 commit 0dadc27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-09-12 Diego Novillo <[email protected]>

* vec.h: Remove compatibility notes for previous distinction
between vectors of objects and vectors of pointers.

2012-09-12 Christian Bruel <[email protected]>

* config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
Expand Down
18 changes: 0 additions & 18 deletions gcc/vec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0dadc27

Please sign in to comment.