PR debug/82837
commitf5f219fdb75a8a7f6ee63d4ab5dbfa530b3b301d
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Nov 2017 08:54:19 +0000 (9 08:54 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 9 Nov 2017 08:54:19 +0000 (9 08:54 +0000)
tree8ca86eec5904dd459014b877b1bc6b7d7aa43bd9
parent37db795769ba631a989920dccc648c718c003bb4
PR debug/82837
* dwarf2out.c (const_ok_for_output_1): Reject NEG in addition to NOT.
(mem_loc_descriptor): Handle (const (neg (...))) as (neg (const (...)))
and similarly for not instead of neg.

* gcc.dg/debug/dwarf2/pr82837.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254561 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/debug/dwarf2/pr82837.c [new file with mode: 0644]