+2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR target/66048
+ * function.c (diddle_return_value_1): Process bounds first.
+ * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
+ register.
+
2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR rtl-optimization/64616
case SI_REG:
return TARGET_64BIT && ix86_abi != MS_ABI;
- case FIRST_BND_REG:
+ case BND0_REG:
+ case BND1_REG:
return chkp_function_instrumented_p (current_function_decl);
/* Complex values are returned in %st(0)/%st(1) pair. */
void
diddle_return_value (void (*doit) (rtx, void *), void *arg)
{
- diddle_return_value_1 (doit, arg, crtl->return_rtx);
diddle_return_value_1 (doit, arg, crtl->return_bnd);
+ diddle_return_value_1 (doit, arg, crtl->return_rtx);
}
static void
+2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
+
+ PR target/66048
+ * gcc.target/i386/mpx/pr66048.cc: New.
+
2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR rtl-optimization/64616
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O2 -fcheck-pointer-bounds -mmpx -march=corei7-avx" } */
+
+struct c1
+{
+ c1 (const c1 &other) : p (other.p) { };
+ int *p;
+};
+
+struct c2 : public c1 { };
+
+c1
+test (c2 a)
+{
+ return a;
+}