Re: PR 66076: invalid vec_grow in rtx iterators

2015-05-11 Thread Eric Botcazou
> gcc/ > PR rtl-optimization/66076 > * rtlanal.c (generic_subrtx_iterator ::add_single_to_queue): > Don't grow the heap array if it is already big enough from a > previous iteration. > > gcc/testsuite/ > PR rtl-optimization/66076 > * gcc.dg/torture/pr66076.c: Ne

PR 66076: invalid vec_grow in rtx iterators

2015-05-11 Thread Richard Sandiford
The rtx iterators start out using a stack worklist but fall back to a heap worklist if the stack one turns out to be too small (which is rare). PR 66076 showed up a bug in the code that makes the switch from the stack worklist to the heap worklist: the heap one might already have been allocated if