PR debug/78587
commit8fa88b6bd770889286eb9b9be85d866fd87ec751
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Dec 2016 09:24:55 +0000 (1 09:24 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Dec 2016 09:24:55 +0000 (1 09:24 +0000)
treef3854e70ac4403b06fc4365497d9de9c5d72f937
parent0a4535e0f41532ba85f12915ec4b84b415a2afb3
PR debug/78587
* dwarf2out.c (loc_descr_plus_const): For negative offset use
uint_loc_descriptor instead of int_loc_descriptor and perform negation
in unsigned HOST_WIDE_INT type.
(scompare_loc_descriptor): Shift UINTVAL left instead of INTVAL.

* gcc.dg/debug/pr78587.c: New test.

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