Evaluate side-effects in expand_ifn_va_arg_1 2015-04-27 Tom de Vries PR tree-optimization/65818 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are evaluated. --- gcc/tree-stdarg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index 16a9e2c..1356374 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -1078,6 +1078,8 @@ expand_ifn_va_arg_1 (function *fun) types. */ gimplify_assign (lhs, expr, &pre); } + else + gimplify_expr (&expr, &pre, &post, is_gimple_lvalue, fb_lvalue); pop_gimplify_context (NULL); -- 1.9.1