tree.c (tree_vec_elt_check_failed): New function.
authorZack Weinberg <zack@codesourcery.com>
Thu, 14 Nov 2002 21:58:38 +0000 (21:58 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Thu, 14 Nov 2002 21:58:38 +0000 (21:58 +0000)
commitfa7b533b7b995fce50516c78d0a9dcbcaa437124
tree30bf88ca9d454be99af8fdef0fb816fd40bdf399
parent9fc910d1ea18fde1720eaa8277d4ce6158772426
tree.c (tree_vec_elt_check_failed): New function.

        * tree.c (tree_vec_elt_check_failed): New function.
        * tree.h (TREE_VEC_ELT_CHECK): New checking macro.
        (TREE_VEC_ELT): Use it.

        * tree-inline.c (optimize_inline_calls): Don't copy a
        zero-length vector.
cp:
        * search.c (dfs_push_decls): Do not try to reorder elements
        3..n of method_vec if method_vec has only two elements.
        Reverse order of two tests to avoid accessing unallocated
        memory.

From-SVN: r59114
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/search.c
gcc/tree-inline.c
gcc/tree.c
gcc/tree.h