This is the mail archive of the gcc-bugs@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]

[Bug lto/52178] [4.7 regression] Ada bootstrap failure in LTO mode


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.


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