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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That looks like a binutils bug to me.
When gcc is emitting the DW_AT_const_value, it doesn't know if it is signed or
unsigned, CONST_INT it uses is always signed.
So it emits
.sleb128 -9223372036854775808   # DW_AT_const_value
for it.  That sleb128 value is certainly not too large, it fits into 64-bit
signed value, and then the producers should interpret it (because the variable
has unsigned rather than signed type) by casting it to unsigned 64-bit.

Reply via email to