+2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+ Richard Biener <rguenth@suse.com>
+
+ PR tree-optimization/79908
+ PR tree-optimization/80136
+ * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
+ been cast away, gimplify_and_add suffices.
+
2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
* tree-vrp.c (identify_jump_threads): Delete avail_exprs.
+2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
+ Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/79908
+ PR tree-optimization/80136
+ * gcc.dg/torture/pr79908.c: New file.
+
2017-03-22 Nicolas Koenig <koenigni@student.ethz.ch>
- PR fortran/39239
+ PR fortran/39239
* gfortran.dg/equiv_constraint_bind_c.f90: New test.
2017-03-22 Jakub Jelinek <jakub@redhat.com>
+/* { dg-do compile } */
+
+/* Used to fail in the stdarg pass before fix for PR79908. */
+
+typedef __builtin_va_list __gnuc_va_list;
+typedef __gnuc_va_list va_list;
+
+void testva (int n, ...)
+{
+ va_list ap;
+ _Complex int i = __builtin_va_arg (ap, _Complex int);
+}
gimplify_assign (lhs, expr, &pre);
}
else
- gimplify_expr (&expr, &pre, &post, is_gimple_lvalue, fb_lvalue);
+ gimplify_and_add (expr, &pre);
input_location = saved_location;
pop_gimplify_context (NULL);