i386: Skip DF_REF_INSN if DF_REF_INSN_INFO is false
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 23 Oct 2017 15:49:19 +0000 (15:49 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 23 Oct 2017 15:49:19 +0000 (08:49 -0700)
commit66f4014d4bf82b7f92c99d18513cc6dc947b9ece
treeb03b077bc7d4720a368b1b76eaead92c84a2e610
parentdf41dbaf7eae8dcb0841b62647f7504ed13a1d64
i386: Skip DF_REF_INSN if DF_REF_INSN_INFO is false

We should check DF_REF_INSN_INFO before accessing DF_REF_INSN.

gcc/

PR target/82673
* config/i386/i386.c (ix86_finalize_stack_frame_flags): Skip
DF_REF_INSN if DF_REF_INSN_INFO is false.

gcc/testsuite/

PR target/82673
* gcc.target/i386/pr82673.c: New test.

From-SVN: r254013
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr82673.c [new file with mode: 0644]