[PATCH, tree-optimization]: Fix PR tree-optimization/32821, segfault with -ftree-dump-tree-ifcvt-details

Richard Guenther richard.guenther@gmail.com
Thu Sep 6 17:04:00 GMT 2007

On 9/6/07, Daniel Berlin <dberlin@dberlin.org> wrote:
> On 9/6/07, Uros Bizjak <ubizjak@gmail.com> wrote:
> > Hello!
> >
> > As described in PR, compiler segfaults when trying to iterate through bb
> > with no stmt. Attached patch adds checking for NULL bb_stmt_list in
> > [c]bsi_start() and [c]bsi_last() to solve this problem.
> We should never end up with a BB with no statement, IMHO.

At least if you split critical edges you have these.  Or if you need
one for a PHI source.


More information about the Gcc-patches mailing list