This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11421] [3.4 regression] vtables are not emitted in unit-at-a-time mode
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2003 06:37:12 -0000
- Subject: [Bug optimization/11421] [3.4 regression] vtables are not emitted in unit-at-a-time mode
- References: <20030703085958.11421.martin@mpa-garching.mpg.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11421
------- Additional Comments From mark at codesourcery dot com 2003-07-10 06:37 -------
Subject: Re: [3.4 regression] vtables are not
emitted in unit-at-a-time mode
On Mon, 2003-07-07 at 14:36, Jan Hubicka wrote:
> > PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> >
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11421
> >
> >
> >
> > ------- Additional Comments From martin at mpa-garching dot mpg dot de 2003-07-07 09:53 -------
> > Subject: Re: [3.4 regression] vtables are not emitted
> > in unit-at-a-time mode
> >
> > Hi,
> >
> > I finally have a testcase that reproduces the problem even with your
> > patch applied. Hopefully it helps you identify the problem; I'm
> > more or less at my wits' end.
>
> Hi,
> it is again problem with marking vtables as needed. I don't quite
> understand the rules, but it seems to me that all public vtables must be
> output. This is at least what old code did because it uses
> DECL_NEEDED_P that test it this way. This patch changes the code to
> imitate it in unit-at-a-time (for PUBLIC and !COMDAT vtables before
> comdat_linkage is called we mark the vtables as needed).
>
> Does this look OK?
Yes, thanks.