re PR debug/89704 (ICE in add_const_value_attribute, at dwarf2out.c:19685)
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Mar 2019 08:00:46 +0000 (09:00 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Mar 2019 08:00:46 +0000 (09:00 +0100)
commit8eb2215d8dc2662c3edad179b842097e0dce2722
tree4639e847cee4e19100052541ec7fef851b4727bc
parentb1403b691a24fae2a96fa7ce5b93c3395e7bfd05
re PR debug/89704 (ICE in add_const_value_attribute, at dwarf2out.c:19685)

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.

From-SVN: r269700
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/pr89704.c [new file with mode: 0644]