diff options
| author | Doug Gilbert <dgilbert999@users.noreply.github.com> | 2017-02-15 11:25:51 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-15 11:25:51 -0600 |
| commit | 48b125d266b5776711a6b70886f6bf64fe168c84 (patch) | |
| tree | 04598b483570648284bb93fcff2b4ba540f3f529 /gas | |
| parent | 5b161fc30519a965f16e7e73c3410a388140cba1 (diff) | |
| parent | 65f124c64b37ab763c224819271bdeecafec3da0 (diff) | |
| download | ppe42-binutils-48b125d266b5776711a6b70886f6bf64fe168c84.tar.gz ppe42-binutils-48b125d266b5776711a6b70886f6bf64fe168c84.zip | |
Merge pull request #2 from dgilbert999/binutils-2_24-ppe42
Code clean up to satisfy gcc version 6
Diffstat (limited to 'gas')
| -rw-r--r-- | gas/config/tc-ppc.c | 2 | ||||
| -rw-r--r-- | gas/read.c | 2 | ||||
| -rw-r--r-- | gas/write.c | 2 |
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) |

