Fixes: "gas/read.c:5087:12: error: left shift of negative"

PR gas/18446
	* read.c (output_big_sleb128): Use U suffix to prevent compile
	time warning.
This commit is contained in:
Nick Clifton 2015-05-22 14:27:36 +01:00
parent a4ea0946c3
commit 29798047af
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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 |= ~0U << loaded;
if (orig)
*p = val & 0x7f;
p++;