Commit db39aa0b by Alexandre Oliva Committed by Jeff Law

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

From-SVN: r27978
parent 0bf162b9
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) :
......
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment