aboutsummaryrefslogtreecommitdiff
path: root/gcc/print-tree.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-12-08 06:39:00 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-12-08 06:39:00 +0000
commitac1b13f457ad72970d58b53ef88b45ddab522d41 (patch)
treeb3753723eec1f756b6a00d572ba8b10d57776fb3 /gcc/print-tree.c
parent7fd64ba3723e2217309315b2399ae13b247574df (diff)
downloadgcc-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/print-tree.c')
-rw-r--r--gcc/print-tree.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index f47d21a..caba377 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -158,7 +158,6 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
enum machine_mode mode;
enum tree_code_class class;
int len;
- int first_rtl;
int i;
expanded_location xloc;
@@ -591,29 +590,12 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
len = TREE_CODE_LENGTH (TREE_CODE (node));
- /* Some nodes contain rtx's, not trees,
- after a certain point. Print the rtx's as rtx's. */
- first_rtl = TREE_CODE_LENGTH (TREE_CODE (node));
-
for (i = 0; i < len; i++)
{
- if (i >= first_rtl)
- {
- indent_to (file, indent + 4);
- fprintf (file, "rtl %d ", i);
- if (TREE_OPERAND (node, i))
- print_rtl (file, (rtx) TREE_OPERAND (node, i));
- else
- fprintf (file, "(nil)");
- fprintf (file, "\n");
- }
- else
- {
- char temp[10];
+ char temp[10];
- sprintf (temp, "arg %d", i);
- print_node (file, temp, TREE_OPERAND (node, i), indent + 4);
- }
+ sprintf (temp, "arg %d", i);
+ print_node (file, temp, TREE_OPERAND (node, i), indent + 4);
}
print_node (file, "chain", TREE_CHAIN (node), indent + 4);