diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 67148bb8162..3ccbf5c0c77 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-07-26 Uros Bizjak + + * gcc.target/alpha/pr66140.c (lpfc_bg_setup_bpl): Use unsigned + immediates to avoid shift-overflow warnings. + 2015-07-25 Patrick Palka PR c++/66857 diff --git a/gcc/testsuite/gcc.target/alpha/pr66140.c b/gcc/testsuite/gcc.target/alpha/pr66140.c index d559f69a02b..a69f0222521 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)) ; }