diff options
author | wschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-23 13:13:44 +0000 |
---|---|---|
committer | wschmidt <wschmidt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-03-23 13:13:44 +0000 |
commit | 9479533b09a5ce9a02224ed80bb93a55a0c8e05f (patch) | |
tree | 45ce6980dee49758352b663866ffdb54957f7720 /gcc/tree-stdarg.c | |
parent | 94b464a5a71f6398f2534742e4796c99fdec51b8 (diff) |
[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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246418 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-stdarg.c')
-rw-r--r-- | gcc/tree-stdarg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-stdarg.c b/gcc/tree-stdarg.c index 8972822f5b7d..923b315e79e1 100644 --- a/gcc/tree-stdarg.c +++ b/gcc/tree-stdarg.c @@ -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); |