Maxim Kuvyrkov - [PING][PATCH]: Fix PR rtl-optimization/29841: cfgbuild.c: control_flow_i (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.

Hi,This patch was proposed by Jan Hubicka but wasn't committed because of some unknown reason. I bootstrapped/regtested it on x86-64 and took the liberty of submitting it here.

The patch forces any insn that has a barrier after it be control_flow_insn_p thus making it impossible for barrier to appear inside basic block. An example of such insn is (insn (trap_if (const_int 1))) on i586-pc-linux-gnu.

Jan, can you please check in the patch?
Thanks,Maxim