re PR c++/14865 (No instantiation of VTT at -O1)
PR C++/14865 * decl2.c (maybe_emit_vtables): Always import_export_vtable for the reachability analysis. From-SVN: r83707
This commit is contained in:
parent
5cb2183e8b
commit
e9e4d4ee5b
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-06-26 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
PR C++/14865
|
||||||
|
* decl2.c (maybe_emit_vtables): Always import_export_vtable for the
|
||||||
|
reachability analysis.
|
||||||
|
|
||||||
2004-06-25 Mark Mitchell <mark@codesourcery.com>
|
2004-06-25 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
* cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from
|
* cp-mudflap.c (mflang_flush_calls): Fix thinkos resulting from
|
||||||
|
|
|
@ -1564,12 +1564,14 @@ maybe_emit_vtables (tree ctype)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
import_export_class (ctype);
|
import_export_class (ctype);
|
||||||
import_export_vtable (primary_vtbl, ctype, 1);
|
|
||||||
|
|
||||||
/* See if any of the vtables are needed. */
|
/* See if any of the vtables are needed. */
|
||||||
for (vtbl = CLASSTYPE_VTABLES (ctype); vtbl; vtbl = TREE_CHAIN (vtbl))
|
for (vtbl = CLASSTYPE_VTABLES (ctype); vtbl; vtbl = TREE_CHAIN (vtbl))
|
||||||
if (!DECL_EXTERNAL (vtbl) && DECL_NEEDED_P (vtbl))
|
{
|
||||||
break;
|
import_export_vtable (vtbl, ctype, 1);
|
||||||
|
if (!DECL_EXTERNAL (vtbl) && DECL_NEEDED_P (vtbl))
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (!vtbl)
|
if (!vtbl)
|
||||||
{
|
{
|
||||||
/* If the references to this class' vtables are optimized away,
|
/* If the references to this class' vtables are optimized away,
|
||||||
|
|
Loading…
Add table
Reference in a new issue