This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Fix crash in print-tree
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH: Fix crash in print-tree
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 17 Feb 2001 22:09:38 -0800
- Organization: CodeSourcery, LLC
Jason's recent change to make BLOCK_CHAIN check that is actually being
applied to a BLOCK exposed a bug in print_node where it was applying
BLOCK_CHAIN to non-BLOCKs.
Lightly tested on i686-pc-linux-gnu, applied on mainline and branch
under the obvious fix rule.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
2001-02-17 Mark Mitchell <mark@codesourcery.com>
* print-tree.c (print_node): Do not use BLOCK_CHAIN when we're not
looking at a BLOCK.
Index: print-tree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/print-tree.c,v
retrieving revision 1.39
diff -c -p -r1.39 print-tree.c
*** print-tree.c 2001/02/06 13:12:56 1.39
--- print-tree.c 2001/02/18 05:47:07
*************** print_node (file, prefix, node, indent)
*** 641,647 ****
EXPR_WFL_FILENAME (node) : "(no file info)"),
EXPR_WFL_LINENO (node), EXPR_WFL_COLNO (node));
}
! print_node (file, "chain", BLOCK_CHAIN (node), indent + 4);
break;
case 'c':
--- 641,647 ----
EXPR_WFL_FILENAME (node) : "(no file info)"),
EXPR_WFL_LINENO (node), EXPR_WFL_COLNO (node));
}
! print_node (file, "chain", TREE_CHAIN (node), indent + 4);
break;
case 'c':