This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: VEC re-write [patch 05/25]
- From: Ian Lance Taylor <iant at google dot com>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: joseph at codesourcery dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 Nov 2012 15:29:10 -0800
- Subject: Re: VEC re-write [patch 05/25]
- References: <20121115215332.1BCBFC0916@torture.tor.corp.google.com>
On Thu, Nov 15, 2012 at 1:53 PM, Diego Novillo <dnovillo@google.com> wrote:
> 2012-11-15 Diego Novillo <dnovillo@google.com>
>
> Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
>
> * c-common.c: Use new vec API in vec.h.
> * c-common.h: Likewise.
> * c-gimplify.c: Likewise.
> * c-pragma.c: Likewise.
> * c-pretty-print.c: Likewise.
> * c-pretty-print.h: Likewise.
> * c-semantics.c: Likewise.
> * c-decl.c: Likewise.
> * c-parser.c: Likewise.
> * c-tree.h: Likewise.
> * c-typeck.c: Likewise.
> {
> gcc_assert (decl && DECL_P (decl) && TREE_STATIC (decl));
>
> - while (!VEC_empty (tree, types_used_by_cur_var_decl))
> + while (types_used_by_cur_var_decl && !types_used_by_cur_var_decl->is_empty ())
vec_safe_is_empty?
This is OK.
Thanks.
Ian