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]

[patch] fix memory corruption bug in tm_region_init


Hi folks.

Torvald has a testcase from the STAMP benchmark that is showing a memory corruption error after my fix to publication safety problems.

The problem is we're allocating a chunk of worklist memory of size n_basic_blocks which changes with tail merge optimization and such. We end up with a smaller n_basic_blocks than some of the BB's left in the region. I believe what we want is last_basic_block.

This fixes the memory corruption bug. I couldn't minimize a sensible testcase.

OK?

Attachment: curr
Description: Text document


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