[Bug debug/78587] dwarf2out.c:1517:45: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int [4]'; cast to an unsigned type to negate this value to itself
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Nov 30 14:10:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78587
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 40202
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40202&action=edit
gcc7-pr78587.patch
Untested fix for the first issue, we even generate better debug info (and
conceptually more correct):
- .value 0x10 # Location expression size
+ .value 0xe # Location expression size
.byte 0xf3 # DW_OP_GNU_entry_value
.uleb128 0x1
.byte 0x55 # DW_OP_reg5
- .byte 0x11 # DW_OP_consts
- .sleb128 -9223372036854775808
+ .byte 0xe # DW_OP_const8u
+ .quad 0x8000000000000000
.byte 0x1c # DW_OP_minus
.byte 0x9f # DW_OP_stack_value
I couldn't reproduce the other issues.
More information about the Gcc-bugs
mailing list