diff mbox

[testsuite,alpha] : Use unsigned immediates to avoid shift-overflow warning

Message ID CAFULd4Y2Q==PSVNW_Mjbao893_6HyJKbu_EgYycrsq90OwgNNw@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 26, 2015, 9:09 a.m. UTC
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.

Tested on alpha-linux-gnu and committed to mainline SVN.

Uros.
diff mbox

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 226232)
+++ ChangeLog	(working copy)
@@ -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: gcc.target/alpha/pr66140.c
===================================================================
--- gcc.target/alpha/pr66140.c	(revision 226216)
+++ gcc.target/alpha/pr66140.c	(working copy)
@@ -34,7 +34,7 @@  static inline void lpfc_bg_setup_bpl(struct lpfc_h
 	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))
 		;
 }