Commit 5cf36292 by Tom de Vries Committed by Tom de Vries

Fix va_arg ap_copy nop detection

2015-04-22  Tom de Vries  <tom@codesourcery.com>

	PR tree-optimization/65823
	* gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
	equality between ap_copy and ap.

From-SVN: r222318
parent 2aa84d43
2015-04-22 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/65823
* gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
equality between ap_copy and ap.
2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
PR target/47098 PR target/47098
......
...@@ -4792,7 +4792,7 @@ gimplify_modify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p, ...@@ -4792,7 +4792,7 @@ gimplify_modify_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p,
if (ap != NULL_TREE if (ap != NULL_TREE
&& TREE_CODE (ap) == ADDR_EXPR && TREE_CODE (ap) == ADDR_EXPR
&& TREE_CODE (ap_copy) == ADDR_EXPR && TREE_CODE (ap_copy) == ADDR_EXPR
&& TREE_OPERAND (ap, 0) != TREE_OPERAND (ap_copy, 0)) && !operand_equal_p (TREE_OPERAND (ap, 0), TREE_OPERAND (ap_copy, 0), 0))
gimplify_assign (TREE_OPERAND (ap, 0), TREE_OPERAND (ap_copy, 0), pre_p); gimplify_assign (TREE_OPERAND (ap, 0), TREE_OPERAND (ap_copy, 0), pre_p);
if (want_value) if (want_value)
......
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