* decl2.c (mark_vtable_entries): Fix check for rtti offset.

From-SVN: r27978
This commit is contained in:
Alexandre Oliva 1999-07-07 00:32:23 +00:00 committed by Jeff Law
parent 0bf162b9a0
commit db39aa0b8d
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Wed Jul 7 01:26:47 1999 Alexandre Oliva <oliva@dcc.unicamp.br>
* decl2.c (mark_vtable_entries): Fix check for rtti offset.
1999-07-06 Gavin Romig-Koch <gavin@cygnus.com>
* typeck.c (unsigned_type,signed_type,signed_or_unsigned_type) :

View File

@ -2414,12 +2414,13 @@ mark_vtable_entries (decl)
tree fnaddr;
tree fn;
if (TREE_CODE (TREE_VALUE (entries)) == NOP_EXPR)
fnaddr = (flag_vtable_thunks ? TREE_VALUE (entries)
: FNADDR_FROM_VTABLE_ENTRY (TREE_VALUE (entries)));
if (TREE_CODE (fnaddr) == NOP_EXPR)
/* RTTI offset. */
continue;
fnaddr = (flag_vtable_thunks ? TREE_VALUE (entries)
: FNADDR_FROM_VTABLE_ENTRY (TREE_VALUE (entries)));
fn = TREE_OPERAND (fnaddr, 0);
TREE_ADDRESSABLE (fn) = 1;
if (DECL_LANG_SPECIFIC (fn) && DECL_ABSTRACT_VIRTUAL_P (fn))