This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33871] [4.3 Regression] typeinfo name referenced in ... defined in discarded section
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2007 19:36:09 -0000
- Subject: [Bug c++/33871] [4.3 Regression] typeinfo name referenced in ... defined in discarded section
- References: <bug-33871-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #24 from hjl at lucon dot org 2007-10-30 19:36 -------
(In reply to comment #23)
> Subject: Re: [4.3 Regression] typeinfo name referenced in ... defined in
> discarded section
>
> On 30/10/2007, at 12:12 PM, hjl at lucon dot org wrote:
>
> > The problem is "typeinfo for (anonymous namespace)::t" in .rodata
> > section
> > references "typeinfo name for (anonymous namespace)::t" in a comdat
> > section.
> > When the comdat section is discarded, we got a problem.
>
> Why is the comdat section being discarded when something is
> referencing it?
>
It is due to "S1.C S1.C". Only one comdat group in S1.C is kept.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33871