re PR middle-end/80422 (ICE on valid code at -O3 in 32-bit mode on x86_64-linux-gnu...
authorJeff Law <law@redhat.com>
Tue, 18 Apr 2017 17:31:30 +0000 (11:31 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 18 Apr 2017 17:31:30 +0000 (11:31 -0600)
commitdd68669b66008ab4d8af324b1db3f187133e746b
tree797765178bd00aac43a514272bbfddb063251d55
parent1cda61fc28d476c194db1c9f03676688d796ac4f
re PR middle-end/80422 (ICE on valid code at -O3 in 32-bit mode on x86_64-linux-gnu: in operator[], at vec.h:732)

PR middle-end/80422
* cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
predecessors after walking up the insn chain.

PR middle-end/80422
* gcc.c-torture/compile/pr80422.c: New test.

From-SVN: r246975
gcc/ChangeLog
gcc/cfgcleanup.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr80422.c [new file with mode: 0644]