Evaluate side-effects in expand_ifn_va_arg_1
authorTom de Vries <tom@codesourcery.com>
Tue, 28 Apr 2015 06:05:14 +0000 (06:05 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 28 Apr 2015 06:05:14 +0000 (06:05 +0000)
2015-04-28  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/65818
* tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
evaluated.

From-SVN: r222509

gcc/ChangeLog
gcc/tree-stdarg.c

index 1ffe147b0cd8b7cf91c2899f64a94f932e34521a..c35f52375a00fd51d98e23f8827feaac1af92e43 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-28  Tom de Vries  <tom@codesourcery.com>
+
+       PR tree-optimization/65818
+       * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
+       evaluated.
+
 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
 
        * calls.c (save_fixed_argument_area): Don't check
index 16a9e2cf66f4a1c5ca775fcbbdd288899759c30f..1356374ba1401959b95947c7068849d85e086c6d 100644 (file)
@@ -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);