* tree.c (tree_vec_elt_check_failed): New function.
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Nov 2002 21:58:38 +0000 (21:58 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 14 Nov 2002 21:58:38 +0000 (21:58 +0000)
commit66bc87dbe1928c819d5bfcfd2562dda954237c54
tree30bf88ca9d454be99af8fdef0fb816fd40bdf399
parent93f460bc2a78d455b9ce9ac0aab8aafcf41eddac
    * 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59114 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/search.c
gcc/tree-inline.c
gcc/tree.c
gcc/tree.h