aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/struct/w_prof_single_str_global.c4
-rw-r--r--gcc/testsuite/gcc.dg/struct/wo_prof_single_str_global.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 390b2fa..f7d499c 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/struct/w_prof_single_str_global.c b/gcc/testsuite/gcc.dg/struct/w_prof_single_str_global.c
index 6a717dd..b2223c8 100644
--- a/gcc/testsuite/gcc.dg/struct/w_prof_single_str_global.c
+++ b/gcc/testsuite/gcc.dg/struct/w_prof_single_str_global.c
@@ -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);
}
/*--------------------------------------------------------------------------*/
diff --git a/gcc/testsuite/gcc.dg/struct/wo_prof_single_str_global.c b/gcc/testsuite/gcc.dg/struct/wo_prof_single_str_global.c
index 1312a35..22193f2 100644
--- a/gcc/testsuite/gcc.dg/struct/wo_prof_single_str_global.c
+++ b/gcc/testsuite/gcc.dg/struct/wo_prof_single_str_global.c
@@ -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);