projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cb64c6
)
(expand_increment): Handle case where INCREMENTED has a non-trivial
author
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 8 Apr 1995 20:32:01 +0000
(16:32 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 8 Apr 1995 20:32:01 +0000
(16:32 -0400)
conversion.
From-SVN: r9337
gcc/expr.c
patch
|
blob
|
history
diff --git
a/gcc/expr.c
b/gcc/expr.c
index d65445a172af915536f1ffc363cb075e20b9027c..14ca3660310ac5cbc16be6abc94f81124ba9318e 100644
(file)
--- a/
gcc/expr.c
+++ b/
gcc/expr.c
@@
-8494,6
+8494,14
@@
expand_increment (exp, post)
TREE_TYPE (exp),
incremented,
TREE_OPERAND (exp, 1));
+
+ while (TREE_CODE (incremented) == NOP_EXPR
+ || TREE_CODE (incremented) == CONVERT_EXPR)
+ {
+ newexp = convert (TREE_TYPE (incremented), newexp);
+ incremented = TREE_OPERAND (incremented, 0);
+ }
+
temp = expand_assignment (incremented, newexp, ! post, 0);
return post ? op0 : temp;
}