Fix compile time warning building gas for the NDS32 with gcc v6.1.1
gas * config/tc-nds32.c (nds32_get_align): Avoid left shifting a signed constant.
This commit is contained in:
parent
60a019a089
commit
d2dfe54d6c
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2016-06-14 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
* config/tc-nds32.c (nds32_get_align): Avoid left shifting a
|
||||||
|
signed constant.
|
||||||
|
|
||||||
2016-06-13 Maciej W. Rozycki <macro@imgtec.com>
|
2016-06-13 Maciej W. Rozycki <macro@imgtec.com>
|
||||||
|
|
||||||
* config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
|
* config/tc-mips.c (mips_fix_adjustable): Don't convert RELA
|
||||||
|
|
|
@ -5610,7 +5610,7 @@ nds32_get_align (addressT address, int align)
|
||||||
{
|
{
|
||||||
addressT mask, new_address;
|
addressT mask, new_address;
|
||||||
|
|
||||||
mask = ~((~0) << align);
|
mask = ~((~0U) << align);
|
||||||
new_address = (address + mask) & (~mask);
|
new_address = (address + mask) & (~mask);
|
||||||
return (new_address - address);
|
return (new_address - address);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue