Re: [PATCH 1/2] cfgrtl: Don't crash in rtl_dump_bb if BB_END(bb) is NULL

2017-07-24 Thread Richard Biener
On July 24, 2017 3:54:05 PM GMT+02:00, Segher Boessenkool wrote: >Currently rtl_dump_bb crashes if BB_END(bb) is NULL, like it can be >during expand (rtl_dump_bb can be called at any time, by the emergency >dump added recently for example). Ick. >This fixes it. OK. Richard. > >Segher > > >20

[PATCH 1/2] cfgrtl: Don't crash in rtl_dump_bb if BB_END(bb) is NULL

2017-07-24 Thread Segher Boessenkool
Currently rtl_dump_bb crashes if BB_END(bb) is NULL, like it can be during expand (rtl_dump_bb can be called at any time, by the emergency dump added recently for example). This fixes it. Segher 2017-07-24 Segher Boessenkool * gcc/cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NUL