https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83084
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Dec 15 21:53:29 2017 New Revision: 255710 URL: https://gcc.gnu.org/viewcvs?rev=255710&root=gcc&view=rev Log: Backported from mainline 2017-11-22 Jakub Jelinek <ja...@redhat.com> PR debug/83084 * valtrack.c (propagate_for_debug_subst, propagate_for_debug): Reset debug insns if they would contain UNSPEC_VOLATILE or volatile asm. (dead_debug_insert_temp): Likewise, but also ignore even non-volatile asm. * g++.dg/opt/pr83084.C: New test. Added: branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/pr83084.C Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/valtrack.c