]> gcc.gnu.org Git - gcc.git/commitdiff
w_prof_single_str_global.c: Mask return value.
authorUros Bizjak <ubizjak@gmail.com>
Sun, 15 Feb 2009 08:07:17 +0000 (09:07 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Sun, 15 Feb 2009 08:07:17 +0000 (09:07 +0100)
* gcc.dg/struct/w_prof_single_str_global.c: Mask return value.

From-SVN: r144187

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/struct/w_prof_single_str_global.c
gcc/testsuite/gcc.dg/struct/wo_prof_single_str_global.c

index 390b2fa86f7fff228ce67a9458af8db64e8affed..f7d499cf2963e1788062be370c29ce5e3287f245 100644 (file)
@@ -1,3 +1,7 @@
+2009-02-15  Uros Bizjak  <ubizjak@gmail.com>
+
+       * gcc.dg/struct/w_prof_single_str_global.c: Mask return value.
+       
 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * gcc.target/spu/intrinsics-sr.c: New test.
index 6a717ddb23f470966f3ad4f9cc627ecf30174d47..b2223c88b8bcce4d207078c5f21226aedb3d6d11 100644 (file)
@@ -22,7 +22,9 @@ main ()
   if (str.a != res)
     abort ();
 
-  return str.a;
+  /* POSIX ignores all but the 8 low-order bits, but other
+     environments may not.  */
+  return (str.a & 255);
 }
 
 /*--------------------------------------------------------------------------*/
index 1312a35494bdb3802b6d94a6843c1aca50816525..22193f2ae57c5f93167f496c3b960e25bf3a1354 100644 (file)
@@ -24,7 +24,7 @@ main ()
   
   if (str.a != res)
     abort ();
-  
+
   /* POSIX ignores all but the 8 low-order bits, but other
      environments may not.  */
   return (str.a & 255);
This page took 0.078123 seconds and 5 git commands to generate.