PR debug/84637
* dbxout.c (dbxout_int): Perform negation in unsigned int type.
(stabstr_D): Change type of unum from unsigned int to
unsigned HOST_WIDE_INT. Perform negation in unsigned HOST_WIDE_INT
type.
From-SVN: r259451
+2018-04-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR debug/84637
+ * dbxout.c (dbxout_int): Perform negation in unsigned int type.
+ (stabstr_D): Change type of unum from unsigned int to
+ unsigned HOST_WIDE_INT. Perform negation in unsigned HOST_WIDE_INT
+ type.
+
2018-04-17 Jim Wilson <jimw@sifive.com>
PR 84856
if (num < 0)
{
putc ('-', asm_out_file);
- unum = -num;
+ unum = -(unsigned int) num;
}
else
unum = num;
{
char buf[64];
char *p = buf + sizeof buf;
- unsigned int unum;
+ unsigned HOST_WIDE_INT unum;
if (num == 0)
{
if (num < 0)
{
stabstr_C ('-');
- unum = -num;
+ unum = -(unsigned HOST_WIDE_INT) num;
}
else
unum = num;