* gcc.dg/struct/wo_prof_single_str_global.c: Mask return value.
* gcc.dg/struct/wo_prof_single_str_local.c: Mask return value.
* gcc.dg/struct/wo_prof_single_str_pointer.c: Mask return value.
From-SVN: r143309
+2009-01-12 Mark Mitchell <mark@codesourcery.com>
+
+ * gcc.dg/struct/wo_prof_single_str_global.c: Mask return value.
+ * gcc.dg/struct/wo_prof_single_str_local.c: Mask return value.
+ * gcc.dg/struct/wo_prof_single_str_pointer.c: Mask return value.
+
2009-01-12 Jason Merrill <jason@redhat.com>
* g++.dg/other/vararg-3.C: New test.
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);
}
/*--------------------------------------------------------------------------*/
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);
}
/*--------------------------------------------------------------------------*/
if (p->a != res)
abort ();
- return p->a;
+ /* POSIX ignores all but the 8 low-order bits, but other
+ environments may not. */
+ return (p->a & 255);
}
/*--------------------------------------------------------------------------*/