* gcc.dg/struct/wo_prof_single_str_local.c: Mask return value.
* gcc.dg/struct/wo_prof_single_str_pointer.c: Mask return value.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143309
138bc75d-0d04-0410-961f-
82ee72b054a4
+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);
}
/*--------------------------------------------------------------------------*/