projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4ea094
)
Fixes: "gas/read.c:5087:12: error: left shift of negative"
author
Nick Clifton
<nickc@redhat.com>
Fri, 22 May 2015 13:27:36 +0000
(14:27 +0100)
committer
Nick Clifton
<nickc@redhat.com>
Fri, 22 May 2015 13:27:36 +0000
(14:27 +0100)
PR gas/18446
* read.c (output_big_sleb128): Use U suffix to prevent compile
time warning.
gas/ChangeLog
patch
|
blob
|
history
gas/read.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index cc0ad425b6328e743c4f891afcd3c82f80075b09..f3a30d2624b64803a2e4b421bb769ec50f2386d2 100644
(file)
--- a/
gas/ChangeLog
+++ b/
gas/ChangeLog
@@
-1,3
+1,9
@@
+2015-05-22 Nick Clifton <nickc@redhat.com>
+
+ PR gas/18446
+ * read.c (output_big_sleb128): Use U suffix to prevent compile
+ time warning.
+
2015-05-19 Jiong Wang <jiong.wang@arm.com>
* config/tc-aarch64.c (process_movw_reloc_info): Sort relocation case
diff --git
a/gas/read.c
b/gas/read.c
index 2224c0ed241845eb2e73f59b807dedd617f2a0e0..816c255bf265d7cb3a17fc0cfd850eaa90dc8f71 100644
(file)
--- a/
gas/read.c
+++ b/
gas/read.c
@@
-5084,7
+5084,7
@@
output_big_sleb128 (char *p, LITTLENUM_TYPE *bignum, int size)
{
/* Sign-extend VAL. */
if (val & (1 << (loaded - 1)))
- val |= ~0 << loaded;
+ val |= ~0
U
<< loaded;
if (orig)
*p = val & 0x7f;
p++;