GCC Bugzilla – Attachment 43963 Details for
Bug 84637
gcc/dbxout.c:684:14: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int'; cast to an unsigned type to negate this value to itself
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
gcc8-pr84637.patch
gcc8-pr84637.patch (text/plain), 928 bytes, created by
Jakub Jelinek
on 2018-04-17 14:27:15 UTC
(
hide
)
Description:
gcc8-pr84637.patch
Filename:
MIME Type:
Creator:
Jakub Jelinek
Created:
2018-04-17 14:27:15 UTC
Size:
928 bytes
patch
obsolete
>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. > >--- gcc/dbxout.c.jj 2018-01-18 21:11:58.613207125 +0100 >+++ gcc/dbxout.c 2018-04-17 16:23:59.456993115 +0200 >@@ -464,7 +464,7 @@ dbxout_int (int num) > if (num < 0) > { > putc ('-', asm_out_file); >- unum = -num; >+ unum = -(unsigned int) num; > } > else > unum = num; >@@ -671,7 +671,7 @@ stabstr_D (HOST_WIDE_INT num) > { > char buf[64]; > char *p = buf + sizeof buf; >- unsigned int unum; >+ unsigned HOST_WIDE_INT unum; > > if (num == 0) > { >@@ -681,7 +681,7 @@ stabstr_D (HOST_WIDE_INT num) > if (num < 0) > { > stabstr_C ('-'); >- unum = -num; >+ unum = -(unsigned HOST_WIDE_INT) num; > } > else > unum = num;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 84637
: 43963