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++: Correct the size of construction vtables


Daniel Jacobowitz wrote:

> build_ctor_vtbl_group first builds a decl with the wrong type, then
> uses it to construct various other things and determine the proper
> type, then sets the proper type.

Yes, that's disgusting.  In general, all of this stuff with vtables
should be done later and more lazily; right now, we proactively generate
vtables without having any evidence we'll actually need them.

> Bootstrapped and regression tested on x86_64-pc-linux-gnu (C, C++, and
> Java since this is a front end change).  Also verified that it
> fixes the testcase on ARM.  OK to commit?

OK.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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