On 3/5/24 22:06, Nathaniel Shead wrote:
Bootstrapped and regtested on x86_64-pc-linux-gnu, OK for trunk?

-- >8 --

Currently, reading a variable definition always marks that decl as
DECL_NOT_REALLY_EXTERN, with anything else imported still being
considered external. This is not sufficient for vtables, however; for an
extern template, a vtable may be generated (and its definition emitted)
but nonetheless the vtable should only be emitted in the TU where that
template is actually instantiated.

Does the vtable go through import_export_decl? I've been thinking that that function (and import_export_class) need to be more module-aware. Would it make sense to do that rather than stream DECL_NOT_REALLY_EXTERN?

Jason

Reply via email to