sh.c (sh_gimplify_va_arg_expr): Wrap the result with a NOP_EXPR if needed.

* config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
	with a NOP_EXPR if needed.

From-SVN: r149854
This commit is contained in:
Kaz Kojima 2009-07-21 12:45:52 +00:00
parent cba146eb32
commit a1516d0836
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2009-07-21 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
with a NOP_EXPR if needed.
2009-07-21 Paul Brook <paul@codesourcery.com>
* tree-vectorizer.c (increase_alignment): Handle nested arrays.

View file

@ -7857,7 +7857,7 @@ sh_gimplify_va_arg_expr (tree valist, tree type, gimple_seq *pre_p,
if (result)
{
gimplify_assign (result, tmp, pre_p);
result = build1 (NOP_EXPR, TREE_TYPE (result), result);
tmp = build1 (LABEL_EXPR, void_type_node, unshare_expr (lab_over));
gimplify_and_add (tmp, pre_p);
}