diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2015-07-26 11:08:04 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2015-07-26 11:08:04 +0200 |
commit | 6e07a52e7795822f4953aa6b5016ad17e5df34b7 (patch) | |
tree | ac4950c31030f2531bdb99438b130666458b2648 /gcc | |
parent | e4e040f1a2914f075b9a7f7af04da78f721a7119 (diff) | |
download | gcc-6e07a52e7795822f4953aa6b5016ad17e5df34b7.zip gcc-6e07a52e7795822f4953aa6b5016ad17e5df34b7.tar.gz gcc-6e07a52e7795822f4953aa6b5016ad17e5df34b7.tar.bz2 |
pr66140.c (lpfc_bg_setup_bpl): Use unsigned immediates to avoid shift-overflow warnings.
* gcc.target/alpha/pr66140.c (lpfc_bg_setup_bpl): Use unsigned
immediates to avoid shift-overflow warnings.
From-SVN: r226233
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/alpha/pr66140.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 67148bb..3ccbf5c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-26 Uros Bizjak <ubizjak@gmail.com> + + * gcc.target/alpha/pr66140.c (lpfc_bg_setup_bpl): Use unsigned + immediates to avoid shift-overflow warnings. + 2015-07-25 Patrick Palka <ppalka@gcc.gnu.org> PR c++/66857 diff --git a/gcc/testsuite/gcc.target/alpha/pr66140.c b/gcc/testsuite/gcc.target/alpha/pr66140.c index d559f69..a69f022 100644 --- a/gcc/testsuite/gcc.target/alpha/pr66140.c +++ b/gcc/testsuite/gcc.target/alpha/pr66140.c @@ -34,7 +34,7 @@ static inline void lpfc_bg_setup_bpl(struct lpfc_hba *phba, struct scsi_cmnd *sc void *sgde; int i; - *pde5 = (((0x85 & 0x000000ff) << 24) | (*pde5 & ~(0x000000ff << 24))); + *pde5 = (((0x85 & 0x000000ffu) << 24) | (*pde5 & ~(0x000000ffu << 24))); for (i = 0, sgde = scsi_sglist(sc); i < 2; i++, sgde = sg_next(sgde)) ; } |