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

Re: [lno]: Patch: fix bootstrap heisenbug


Hello,

> This showed up as a not-easily-repeatable bootstrap failure on Darwin.
> The trees pointed to by chrec_top and chrec_bot were recreated for each
> function, and the variables were not cleared at the end of the function.
> As they used ggc memory but were not declared via GTY, they pointed to
> random values at the beginning of the second function, and if you were
> especially unlucky about what they were pointing at, the code that 
> recreates
> them would do the wrong thing.  This creates these variables only once 
> per
> compilation, and makes them known to the GTY machinery.  Bootstrapped
> and tested on Darwin.  OK?

OK.  Thanks.

Zdenek


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