This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH: PR 12815


On Mon, 5 Jan 2004 16:53:35 -0800, Mark Mitchell <mark@codesourcery.com> wrote:

> This patch fixes a code-gen problem in the C++ front end.  Jason (some
> while back) marked as all vtable references as TREE_CONSTANT, which
> doesn't make sense.  If the object isn't TREE_CONSTANT, and its
> dynamic type is not known, then it's vtable entries are not
> TREE_CONSTANT either, although they are TREE_READONLY.  Jason, am I
> missing something here?

What I was trying to express is that the vtable for a particular object can
be assumed to remain the same once it's been initialized; a vtable entry is
a pure function of the object and the slot.  But TREE_CONSTANT says it's a
compile-time constant, which of course it isn't.

I'd probably just remove the offending line rather than weaken it.
Likewise the line in build_base_path that went in at the same time.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]