* gcc.dg/struct/w_prof_single_str_global.c: Mask return value.
Backport from mainline:
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.
From-SVN: r144188
+2009-02-15 Uros Bizjak <ubizjak@gmail.com>
+
+ * gcc.dg/struct/w_prof_single_str_global.c: Mask return value.
+
+ Backport from mainline:
+ 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-02-13 Jason Merrill <jason@redhat.com>
PR c++/39070
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 (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);
}
/*--------------------------------------------------------------------------*/