Commit b60334e8 by Richard Kenner

(expand_expr, case MODIFY_EXPR): Don't preexpand calls if LHS is an

indirect via a constant pointer.

From-SVN: r14527
parent 2d59d98e
...@@ -6861,7 +6861,9 @@ expand_expr (exp, target, tmode, modifier) ...@@ -6861,7 +6861,9 @@ expand_expr (exp, target, tmode, modifier)
if (TREE_CODE (lhs) != VAR_DECL if (TREE_CODE (lhs) != VAR_DECL
&& TREE_CODE (lhs) != RESULT_DECL && TREE_CODE (lhs) != RESULT_DECL
&& TREE_CODE (lhs) != PARM_DECL) && TREE_CODE (lhs) != PARM_DECL
&& ! (TREE_CODE (lhs) == INDIRECT_REF
&& TYPE_READONLY (TREE_TYPE (TREE_OPERAND (lhs, 0)))))
preexpand_calls (exp); preexpand_calls (exp);
/* Check for |= or &= of a bitfield of size one into another bitfield /* Check for |= or &= of a bitfield of size one into another bitfield
......
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