2017-05-31 Richard Biener <rguenther@suse.de>
PR target/80880
* config/i386/i386.c (ix86_expand_builtin): Remove assert
for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
* gcc.target/i386/pr80880.c: New testcase.
From-SVN: r248731
+2017-05-31 Richard Biener <rguenther@suse.de>
+
+ PR target/80880
+ * config/i386/i386.c (ix86_expand_builtin): Remove assert
+ for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
+
2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
* tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
case IX86_BUILTIN_BNDRET:
arg0 = CALL_EXPR_ARG (exp, 0);
- gcc_assert (TREE_CODE (arg0) == SSA_NAME);
target = chkp_get_rtl_bounds (arg0);
/* If no bounds were specified for returned value,
+2017-05-31 Richard Biener <rguenther@suse.de>
+
+ PR target/80880
+ * gcc.target/i386/pr80880.c: New testcase.
+
2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
* gcc.dg/vect/vect-103.c: Update wording of dump message.
--- /dev/null
+/* PR target/65523 */
+/* { dg-do compile { target { ! x32 } } } */
+/* { dg-options "-O -fcheck-pointer-bounds -mmpx" } */
+
+int *fn1()
+{
+ int *r = fn1();
+ if (r == (void *)0)
+ return r;
+}