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: "falk dot hueffner at student dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2003 21:56:00 -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 falk dot hueffner at student dot uni-tuebingen dot de 2003-07-07 21:55 -------
Subject: Re: [3.4 regression] vtables are not emitted in unit-at-a-time mode
"jh at suse dot cz" <gcc-bugzilla@gcc.gnu.org> writes:
> --- 1635,1641 ----
> {
> tree vtbl;
> tree primary_vtbl;
> + bool needed;
Shouldn't this be initialized to false?
> --- 1663,1671 ----
> note_debug_info_needed (ctype);
> return false;
> }
> + else if (TREE_PUBLIC (vtbl) && !DECL_COMDAT (vtbl))
> + needed = 1;
> +
And this should probably be true instead of 1...