[Bug debug/89704] [7/8 Regression] ICE in add_const_value_attribute, at dwarf2out.c:19685

2019-04-30 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89704

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Tue Apr 30 20:46:09 2019
New Revision: 270732

URL: https://gcc.gnu.org/viewcvs?rev=270732=gcc=rev
Log:
Backported from mainline
2019-03-15  Jakub Jelinek  

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

[Bug debug/89704] [7/8 Regression] ICE in add_const_value_attribute, at dwarf2out.c:19685

2019-03-15 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89704

Jakub Jelinek  changed:

   What|Removed |Added

Summary|[7/8/9 Regression] ICE in   |[7/8 Regression] ICE in
   |add_const_value_attribute,  |add_const_value_attribute,
   |at dwarf2out.c:19685|at dwarf2out.c:19685

--- Comment #4 from Jakub Jelinek  ---
Fixed on the trunk so far.