re PR rtl-optimization/85167 (shrink-wrap.c:333:15: runtime error with UBSAN)
authorJakub Jelinek <jakub@redhat.com>
Tue, 3 Apr 2018 21:45:52 +0000 (23:45 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 3 Apr 2018 21:45:52 +0000 (23:45 +0200)
commitb6a7a294ce823917dd08e8d5923137ff75b09fae
treedbdc41c7fea93688e556dfdeed9b17283f6a1196
parent0d2f7959f7b5fed2f74f5ed1f3e2d7db77bb5361
re PR rtl-optimization/85167 (shrink-wrap.c:333:15: runtime error with UBSAN)

PR rtl-optimization/85167
* shrink-wrap.c (move_insn_for_shrink_wrap): Don't set bb_uses and
bb_defs if *split_p, instead preinitialize it to NULL.

* gcc.dg/pr85167.c: New test.

From-SVN: r259058
gcc/ChangeLog
gcc/shrink-wrap.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85167.c [new file with mode: 0644]