diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-12-08 06:39:00 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-12-08 06:39:00 +0000 |
commit | ac1b13f457ad72970d58b53ef88b45ddab522d41 (patch) | |
tree | b3753723eec1f756b6a00d572ba8b10d57776fb3 /gcc/tree.c | |
parent | 7fd64ba3723e2217309315b2399ae13b247574df (diff) | |
download | gcc-ac1b13f457ad72970d58b53ef88b45ddab522d41.zip gcc-ac1b13f457ad72970d58b53ef88b45ddab522d41.tar.gz gcc-ac1b13f457ad72970d58b53ef88b45ddab522d41.tar.bz2 |
c-common.c (verify_tree): Don't check code length if we know we are handling tcc_unary.
* c-common.c (verify_tree): Don't check code length if we know
we are handling tcc_unary.
* print_tree.c (print_node): Remove code to handle RTL
appearing as a part of a tree node.
* tree-gimple.c (recalculate_side_effects): Rename fro as len.
* tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
(PROCESS_ARG): Don't refer to fro.
(build2_stat, build3_stat, build4_stat): Don't compute fro.
From-SVN: r91855
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -2495,7 +2495,7 @@ build1_stat (enum tree_code code, tree type, tree node MEM_STAT_DECL) TREE_COMPLEXITY (t) = 0; TREE_OPERAND (t, 0) = node; TREE_BLOCK (t) = NULL_TREE; - if (node && !TYPE_P (node) && TREE_CODE_LENGTH (code) != 0) + if (node && !TYPE_P (node)) { TREE_SIDE_EFFECTS (t) = TREE_SIDE_EFFECTS (node); TREE_READONLY (t) = TREE_READONLY (node); @@ -2551,7 +2551,7 @@ build1_stat (enum tree_code code, tree type, tree node MEM_STAT_DECL) #define PROCESS_ARG(N) \ do { \ TREE_OPERAND (t, N) = arg##N; \ - if (arg##N &&!TYPE_P (arg##N) && fro > N) \ + if (arg##N &&!TYPE_P (arg##N)) \ { \ if (TREE_SIDE_EFFECTS (arg##N)) \ side_effects = 1; \ @@ -2569,7 +2569,6 @@ build2_stat (enum tree_code code, tree tt, tree arg0, tree arg1 MEM_STAT_DECL) { bool constant, read_only, side_effects, invariant; tree t; - int fro; gcc_assert (TREE_CODE_LENGTH (code) == 2); @@ -2580,7 +2579,6 @@ build2_stat (enum tree_code code, tree tt, tree arg0, tree arg1 MEM_STAT_DECL) result based on those same flags for the arguments. But if the arguments aren't really even `tree' expressions, we shouldn't be trying to do this. */ - fro = TREE_CODE_LENGTH (code); /* Expressions without side effects may be constant if their arguments are as well. */ @@ -2610,15 +2608,12 @@ build3_stat (enum tree_code code, tree tt, tree arg0, tree arg1, { bool constant, read_only, side_effects, invariant; tree t; - int fro; gcc_assert (TREE_CODE_LENGTH (code) == 3); t = make_node_stat (code PASS_MEM_STAT); TREE_TYPE (t) = tt; - fro = TREE_CODE_LENGTH (code); - side_effects = TREE_SIDE_EFFECTS (t); PROCESS_ARG(0); @@ -2659,15 +2654,12 @@ build4_stat (enum tree_code code, tree tt, tree arg0, tree arg1, { bool constant, read_only, side_effects, invariant; tree t; - int fro; gcc_assert (TREE_CODE_LENGTH (code) == 4); t = make_node_stat (code PASS_MEM_STAT); TREE_TYPE (t) = tt; - fro = TREE_CODE_LENGTH (code); - side_effects = TREE_SIDE_EFFECTS (t); PROCESS_ARG(0); |