pr66140.c (lpfc_bg_setup_bpl): Use unsigned immediates to avoid shift-overflow warnings.
authorUros Bizjak <ubizjak@gmail.com>
Sun, 26 Jul 2015 09:08:04 +0000 (11:08 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 26 Jul 2015 09:08:04 +0000 (11:08 +0200)
* gcc.target/alpha/pr66140.c (lpfc_bg_setup_bpl): Use unsigned
immediates to avoid shift-overflow warnings.

From-SVN: r226233

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/alpha/pr66140.c

index 67148bb..3ccbf5c 100644 (file)
@@ -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
index d559f69..a69f022 100644 (file)
@@ -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))
                ;
 }