From 6cf624a0a5db1265c836e04134f3d8b4e7b86b3b Mon Sep 17 00:00:00 2001 From: Dave Brolley Date: Thu, 10 Sep 1998 14:56:22 +0000 Subject: [PATCH] actions.c (chill_convert_for_assignment): Make a copy of the result node before modifying it. Thu Sep 10 17:52:36 1998 Dave Brolley * actions.c (chill_convert_for_assignment): Make a copy of the result node before modifying it. From-SVN: r22382 --- gcc/ch/ChangeLog | 5 +++++ gcc/ch/actions.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index 59d7287e515..3bc0dccdfe2 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 10 17:52:36 1998 Dave Brolley + + * actions.c (chill_convert_for_assignment): Make a copy of the result + node before modifying it. + Sat Sep 5 16:55:37 1998 John Carr * Make-lang.in: Comment ^L characters. Sun make doesn't like them. diff --git a/gcc/ch/actions.c b/gcc/ch/actions.c index 79bacf04c4f..5937f85ec4a 100644 --- a/gcc/ch/actions.c +++ b/gcc/ch/actions.c @@ -589,6 +589,7 @@ chill_convert_for_assignment (type, expr, place) } } } + result = copy_node (result); TREE_OPERAND (result, 1) = nreverse (new_list); TREE_TYPE (result) = build_bitstring_type (TYPE_SIZE (type)); }