On Wed, 7 Nov 2018 14:09:24 +0100 Richard Biener <richard.guent...@gmail.com> wrote:
> On Wed, Nov 7, 2018 at 1:34 PM Jan Hubicka <hubi...@ucw.cz> wrote: > > Bootstrapped/regtested x86_64-linux, will commit it after > > lto-bootstrapping uneless there are complains. > > +/* Save some WPA->ltrans streaming by freeing enum values. */ > > + > > +static void > > +free_enum_values () > > +{ > > + static bool enum_values_freed = false; > > + if (enum_values_freed || !flag_wpa || !odr_types_ptr) > > + return; > > + enum_values_freed = true; [] > > + enum_values_freed = true; > > } Short of a "verytrue" choice for boolean, i think setting it to true once should be enough though. cheers,