aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl2.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-06-23 19:46:26 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2003-06-23 17:46:26 +0000
commitbb4f6e6bb7e8116f062df0acf5fe6e682f787049 (patch)
tree3fdd057575368667bd9bdbd3ecc5786dd2f79ee3 /gcc/cp/decl2.c
parent2b491e3a3b2126c32b3d77932a2d1a09592b088f (diff)
downloadgcc-bb4f6e6bb7e8116f062df0acf5fe6e682f787049.zip
gcc-bb4f6e6bb7e8116f062df0acf5fe6e682f787049.tar.gz
gcc-bb4f6e6bb7e8116f062df0acf5fe6e682f787049.tar.bz2
decl.c (register_dtor_fn): Mark cleanup as used.
* decl.c (register_dtor_fn): Mark cleanup as used. * decl2.c (mark_vtable_entries): Skip nops. * rtti.c (get_tinfo_ptr): Mark tinfo as used. (build_dynamic_cast_1): Likewise. (tinfo_base_init): Likewise. (emit_tinfo_decl): Likewise. From-SVN: r68377
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r--gcc/cp/decl2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index 3fa4d74..44ea6a3 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -1393,7 +1393,9 @@ mark_vtable_entries (tree decl)
{
tree fnaddr = TREE_VALUE (entries);
tree fn;
-
+
+ STRIP_NOPS (fnaddr);
+
if (TREE_CODE (fnaddr) != ADDR_EXPR
&& TREE_CODE (fnaddr) != FDESC_EXPR)
/* This entry is an offset: a virtual base class offset, a