Commit 2e6315ef by William Schmidt

re PR tree-optimization/79908 (ICE in gimplify_expr (gimplify.c:12155) gimplification failed)

[gcc]

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.

[gcc/testsuite]

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.

From-SVN: r246418
parent 16e9eaa6
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);
}
......@@ -1058,7 +1058,7 @@ expand_ifn_va_arg_1 (function *fun)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment