diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/hwint.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 69342ebbb91..738dee31511 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com> + + * hwint.h (zext_hwi): Fix signed overflow for prec == 63. + 2014-05-02 Alan Lawrence <alan.lawrence@arm.com> * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip diff --git a/gcc/hwint.h b/gcc/hwint.h index 229fb94b565..ac9c9a295b4 100644 --- a/gcc/hwint.h +++ b/gcc/hwint.h @@ -344,7 +344,7 @@ zext_hwi (unsigned HOST_WIDE_INT src, unsigned int prec) else { gcc_checking_assert (prec < HOST_BITS_PER_WIDE_INT); - return src & (((HOST_WIDE_INT) 1 << prec) - 1); + return src & (((unsigned HOST_WIDE_INT) 1 << prec) - 1); } } |