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

            Bug ID: 61900
           Summary: loc_descr_plus_const sanitizer runtime error in xgcc
                    while building libgcc_s
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeccav at gmail dot com

While building gcc/libgcc_s and using -fsanitize=undefined a runtime error is
detected in dwarf2out.c:1488:53
"loc->dw_loc_next = int_loc_descriptor (-offset);"
because offset==LONG_MIN
This is on x86-64.
The sanitizer exact message is
"../../gcc-4.9.1/gcc/dwarf2out.c:1488:53: runtime error: 
negation of -9223372036854775808 cannot be represented in type 'long int'; 
cast to an unsigned type to negate this value to itself"

This is in xgcc compiling bid128_add.c/bid128_to_int32.c/bid128_to_uint32.c
bid128_to_int64.c/bid128_to_uint64.c

Reply via email to