diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2001-01-29 15:17:21 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2001-01-29 15:17:21 +0000 |
commit | 82acc2c5e72b389f6c60f8d6f0652eb24d8bb831 (patch) | |
tree | 905a8652e6b7f46dd180745ae1d1e10642d09ae7 /gnu/egcs/gcc/tree.c | |
parent | 3d7d6a84c69fb3e2c3a1738adce50bc3ead3544a (diff) |
2.95.3, test release 2
Diffstat (limited to 'gnu/egcs/gcc/tree.c')
-rw-r--r-- | gnu/egcs/gcc/tree.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/tree.c b/gnu/egcs/gcc/tree.c index 5e29d2f9115..b6cdf7bebf8 100644 --- a/gnu/egcs/gcc/tree.c +++ b/gnu/egcs/gcc/tree.c @@ -1121,6 +1121,26 @@ make_node (code) case 'c': TREE_CONSTANT (t) = 1; break; + + case 'e': + switch (code) + { + case INIT_EXPR: + case MODIFY_EXPR: + case RTL_EXPR: + case PREDECREMENT_EXPR: + case PREINCREMENT_EXPR: + case POSTDECREMENT_EXPR: + case POSTINCREMENT_EXPR: + /* All of these have side-effects, no matter what their + operands are. */ + TREE_SIDE_EFFECTS (t) = 1; + break; + + default: + break; + } + break; } return t; @@ -3107,6 +3127,24 @@ build1 (code, type, node) TREE_RAISES (t) = 1; } + switch (code) + { + case INIT_EXPR: + case MODIFY_EXPR: + case RTL_EXPR: + case PREDECREMENT_EXPR: + case PREINCREMENT_EXPR: + case POSTDECREMENT_EXPR: + case POSTINCREMENT_EXPR: + /* All of these have side-effects, no matter what their + operands are. */ + TREE_SIDE_EFFECTS (t) = 1; + break; + + default: + break; + } + return t; } |