https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85167
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Mon Jun 25 17:43:41 2018 New Revision: 262091 URL: https://gcc.gnu.org/viewcvs?rev=262091&root=gcc&view=rev Log: Backported from mainline 2018-04-03 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-6-branch/gcc/testsuite/gcc.dg/pr85167.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/shrink-wrap.c branches/gcc-6-branch/gcc/testsuite/ChangeLog