From b60334e840e077c460eb5e9a08f990c9844f2a48 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 25 Jul 1997 08:36:42 -0400 Subject: [PATCH] (expand_expr, case MODIFY_EXPR): Don't preexpand calls if LHS is an indirect via a constant pointer. From-SVN: r14527 --- gcc/expr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/expr.c b/gcc/expr.c index 1cfb4538a2e..8db37e00562 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6861,7 +6861,9 @@ expand_expr (exp, target, tmode, modifier) if (TREE_CODE (lhs) != VAR_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); /* Check for |= or &= of a bitfield of size one into another bitfield