https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89704
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Apr 30 20:46:09 2019 New Revision: 270732 URL: https://gcc.gnu.org/viewcvs?rev=270732&root=gcc&view=rev Log: Backported from mainline 2019-03-15 Jakub Jelinek <ja...@redhat.com> PR debug/89704 * dwarf2out.c (add_const_value_attribute): Return false for MINUS, SIGN_EXTEND and ZERO_EXTEND. * gcc.dg/debug/pr89704.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/gcc.dg/debug/pr89704.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/dwarf2out.c branches/gcc-8-branch/gcc/testsuite/ChangeLog