[-fcompare-debug] find jump before debug insns in expand
commitb941a5edfa4801f0702a328341c64efde00b3d03
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2017 01:46:32 +0000 (5 01:46 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Jan 2017 01:46:32 +0000 (5 01:46 +0000)
tree667b218094a140a82f7e0a1580cd9223daa468b0
parent3aad3afc3d96d20f63f9088d02b86bb9d933d793
[-fcompare-debug] find jump before debug insns in expand

A debug insn after the final jump of a basic block may cause the
expander to emit a dummy move where the non-debug compile won't
because it finds the jump insn at the end of the insn stream.

Fix the condition so that, instead of requiring the jump as the last
insn, it also matches a jump followed by debug insns.

This fixes the compilation of libgcc/libgcov-profiler.c with
-fcompare-debug on i686-linux-gnu.

for  gcc/ChangeLog

* cfgexpand.c (expand_gimple_basic_block): Disregard debug
insns after final jump in test to emit dummy move.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244089 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgexpand.c