summaryrefslogtreecommitdiffstats
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-ppc.c2
-rw-r--r--gas/read.c2
-rw-r--r--gas/write.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c
index d5f8f13785..f66c721f7e 100644
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -1482,7 +1482,7 @@ insn_validate (const struct powerpc_opcode *op)
else
{
const struct powerpc_operand *operand = &powerpc_operands[*o];
- if (operand->shift != PPC_OPSHIFT_INV)
+ if (operand->shift != (int) PPC_OPSHIFT_INV)
{
unsigned long mask;
diff --git a/gas/read.c b/gas/read.c
index 082670c445..ac970613ba 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -5019,7 +5019,7 @@ output_big_sleb128 (char *p, LITTLENUM_TYPE *bignum, int size)
{
/* Sign-extend VAL. */
if (val & (1 << (loaded - 1)))
- val |= ~0 << loaded;
+ val |= -1U << loaded;
if (orig)
*p = val & 0x7f;
p++;
diff --git a/gas/write.c b/gas/write.c
index 745abe66d8..ba776e4d59 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -2292,7 +2292,7 @@ relax_align (register relax_addressT address, /* Address now. */
relax_addressT mask;
relax_addressT new_address;
- mask = ~((~0) << alignment);
+ mask = ~((-1U) << alignment);
new_address = (address + mask) & (~mask);
#ifdef LINKER_RELAXING_SHRINKS_ONLY
if (linkrelax)
OpenPOWER on IntegriCloud