Re: [patch] PR middle-end/47530: tail call optimization corrupts stack (trans-mem)

2012-06-04 Thread Richard Henderson
On 06/04/2012 09:04 AM, Aldy Hernandez wrote: > PR middle-end/47530 > * trans-mem.c (expand_block_edges): Do not skip the first > statement when resetting the BB. Ok. r~

[patch] PR middle-end/47530: tail call optimization corrupts stack (trans-mem)

2012-06-04 Thread Aldy Hernandez
This PR was reopened because Luke Dalessandro found a testcase that was still causing the stack corruption. The problem here is that we split the block and call gsi_start_bb() to start scanning the new block, but immediately after we call gsi_next() which essentially skips the first instructio