This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/52178] [4.7 regression] Ada bootstrap failure in LTO mode
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 13 Feb 2012 14:13:39 +0000
- Subject: [Bug lto/52178] [4.7 regression] Ada bootstrap failure in LTO mode
- Auto-submitted: auto-generated
- References: <bug-52178-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52178
--- Comment #17 from rguenther at suse dot de <rguenther at suse dot de> 2012-02-13 14:13:39 UTC ---
On Mon, 13 Feb 2012, Richard Guenther wrote:
> On Mon, 13 Feb 2012, ebotcazou at gcc dot gnu.org wrote:
>
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52178
> >
> > --- Comment #14 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-02-13 13:55:47 UTC ---
> > > Or, alternatively - should DECL_QUALIFIER matter at all after gimplification?
> >
> > No, it shouldn't.
> >
> > > Can we simply not stream it (thus, have a NULL_TREE DECL_QUALIFIER in WPA
> > > and LTRANS stage)?
> >
> > Yes, I'd think so.
>
> I'm testing a patch to do that now.
Which should avoid the issue. But I suppose that variably_modified_type_p
wrongly checks
if (TREE_CODE (type) == QUAL_UNION_TYPE)
RETURN_TRUE_IF_VAR (DECL_QUALIFIER (t));
? It seems it should not look at DECL_QUALIFIER at all.