Re: Fix Ada bootstrap with LTO

2015-06-01 Thread Jan Hubicka
> On 05/31/2015 01:55 AM, Marek Polacek wrote: > >On Sun, May 31, 2015 at 05:11:52AM +0200, Jan Hubicka wrote: > >>@@ -1548,6 +1503,10 @@ eliminate_unnecessary_stmts (void) > >>something_changed |= remove_dead_phis (bb); > >> } > >> > >>+ if (bb_postorder) > >>+free (bb_postorder)

Re: Fix Ada bootstrap with LTO

2015-06-01 Thread Jeff Law
On 05/31/2015 01:55 AM, Marek Polacek wrote: On Sun, May 31, 2015 at 05:11:52AM +0200, Jan Hubicka wrote: @@ -1548,6 +1503,10 @@ eliminate_unnecessary_stmts (void) something_changed |= remove_dead_phis (bb); } + if (bb_postorder) +free (bb_postorder); + bb_postorder = NULL;

Re: Fix Ada bootstrap with LTO

2015-05-31 Thread Marek Polacek
On Sun, May 31, 2015 at 05:11:52AM +0200, Jan Hubicka wrote: > @@ -1548,6 +1503,10 @@ eliminate_unnecessary_stmts (void) >something_changed |= remove_dead_phis (bb); > } > > + if (bb_postorder) > +free (bb_postorder); > + bb_postorder = NULL; Since free (NULL) is a no-op, that