This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix LTO ICE introduced by ggc_collect patch
> On Wed, Sep 8, 2010 at 5:05 PM, Jan Hubicka <hubicka@ucw.cz> wrote:
> > - ?free(decl_data);
> > + ?ggc_free(decl_data);
> > + ?real_file_decl_data = NULL;
>
> Should you zero real_file_count also (well maybe -1).
Well, i guess it is harmless to keep it alone since GGC code tests
pointer for non-NULL first.
Obviously some places in LTO code could use conversion to VECtors...
Honza
>
> Thanks,
> Andrew Pinski