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.