https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78587

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Dec  1 09:24:55 2016
New Revision: 243100

URL: https://gcc.gnu.org/viewcvs?rev=243100&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/gcc.dg/debug/pr78587.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/dwarf2out.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to