diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-01-16 16:59:44 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-01-16 16:59:44 +0000 |
commit | 70ae32012466e09d67dd4eed3f74ea74f9c2629e (patch) | |
tree | 474362df55656c988b876cb23e1ad22cf0bc2401 /gcc/cp/expr.c | |
parent | 2f4facc91eb1b0917f951bb0ff2571ed24d66e08 (diff) | |
download | gcc-70ae32012466e09d67dd4eed3f74ea74f9c2629e.tar.gz |
cp-tree.h (num_extra_vtbl_entries): New function.
* cp-tree.h (num_extra_vtbl_entries): New function.
(size_extra_vtbl_entries): Likewise.
(dfs_vtable_path_unmark): Likewise.
(dfs_vtable_path_unmarked_real_bases_queue_p): Likewise.
(dfs_vtable_path_marked_real_bases_queue_p): Likewise.
* class.c (num_extra_vtbl_entries): New function.
(size_extra_vtbl_entries): Likewise.
(dfs_build_vbase_offset_vtbl_entries): New function.
(build_vbase_offset_vtbl_entries): Likewise.
(build_vtbl_initializer): Use it.
(finish_struct_1): Adjust vtable sizes (using
num_extra_vtbl_entries).
* expr.c (cplus_expand_expr): Assert that the DECL_RTL for a
THUNK_DECL is non-NULL before expanding it.
* init.c (expand_virtual_init): Adjust the vtable pointer by
size_extra_vtbl_entries before storing it.
* search.c (get_shared_vase_if_not_primary): Adjust prototype.
Handle TREE_LIST parameters here, not in the dfs_* functions.
(dfs_unmarked_real_bases_queue_p): Adjust.
(dfs_marked_real_bases_queue_p): Likewise.
(dfs_vtable_path_unmarked_real_bases_queue_p): New function.
(dfs_vtable_path_marked_real_bases_queue_p): New function.
(dfs_vtable_path_unmark): Likewise.
From-SVN: r31439
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r-- | gcc/cp/expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index 2ac29f9f2c6..32838f4af8f 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -1,6 +1,6 @@ /* Convert language-specific tree expression to rtl instructions, for GNU compiler. - Copyright (C) 1988, 92-97, 1998 Free Software Foundation, Inc. + Copyright (C) 1988, 92-97, 1998, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -131,6 +131,7 @@ cplus_expand_expr (exp, target, tmode, modifier) } case THUNK_DECL: + my_friendly_assert (DECL_RTL (exp) != NULL_RTX, 20000115); return DECL_RTL (exp); case THROW_EXPR: |