Commit d251bfca by Diego Novillo Committed by Diego Novillo

tree.c: Include debug.h.


	* tree.c: Include debug.h.
	(initialize_tree_contains_struct): New.
	(init_ttree): Call it.
	(tree_node_structure_for_code): Factor out of ...
	(tree_node_structure): ... here.
	* treestruct.def (TS_PHI_NODE): Remove.
	(TS_GIMPLE_STATEMENT): Remove.

From-SVN: r149290
parent e923c8ea
2009-07-06 Diego Novillo <dnovillo@google.com> 2009-07-06 Diego Novillo <dnovillo@google.com>
* tree.c: Include debug.h.
(initialize_tree_contains_struct): New.
(init_ttree): Call it.
(tree_node_structure_for_code): Factor out of ...
(tree_node_structure): ... here.
* treestruct.def (TS_PHI_NODE): Remove.
(TS_GIMPLE_STATEMENT): Remove.
2009-07-06 Diego Novillo <dnovillo@google.com>
* tree-pretty-print.c (dump_generic_node): Protect * tree-pretty-print.c (dump_generic_node): Protect
against NULL op0. against NULL op0.
(debug_tree_chain): Handle cycles. (debug_tree_chain): Handle cycles.
......
...@@ -20,13 +20,16 @@ along with GCC; see the file COPYING3. If not see ...@@ -20,13 +20,16 @@ along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
/* The format of this file is /* The format of this file is
DEFTREESTRUCT(enumeration value, printable name). DEFTREESTRUCT(enumeration value, printable name).
Each enumeration value should correspond with a single member of union
tree_node. Each enumeration value should correspond with a single member of
These enumerator values are used in order to distinguish members of union union tree_node.
tree_node for garbage collection purposes, as well as specifying what structures
contain what other structures in the tree_contains_struct array. */ These enumerator values are used in order to distinguish members of
union tree_node for garbage collection purposes, as well as
specifying what structures contain what other structures in the
tree_contains_struct array. */
DEFTREESTRUCT(TS_BASE, "base") DEFTREESTRUCT(TS_BASE, "base")
DEFTREESTRUCT(TS_COMMON, "common") DEFTREESTRUCT(TS_COMMON, "common")
DEFTREESTRUCT(TS_INT_CST, "integer cst") DEFTREESTRUCT(TS_INT_CST, "integer cst")
...@@ -54,13 +57,10 @@ DEFTREESTRUCT(TS_LIST, "list") ...@@ -54,13 +57,10 @@ DEFTREESTRUCT(TS_LIST, "list")
DEFTREESTRUCT(TS_VEC, "vec") DEFTREESTRUCT(TS_VEC, "vec")
DEFTREESTRUCT(TS_EXP, "exp") DEFTREESTRUCT(TS_EXP, "exp")
DEFTREESTRUCT(TS_SSA_NAME, "ssa name") DEFTREESTRUCT(TS_SSA_NAME, "ssa name")
DEFTREESTRUCT(TS_PHI_NODE, "phi node")
DEFTREESTRUCT(TS_BLOCK, "block") DEFTREESTRUCT(TS_BLOCK, "block")
DEFTREESTRUCT(TS_BINFO, "binfo") DEFTREESTRUCT(TS_BINFO, "binfo")
DEFTREESTRUCT(TS_STATEMENT_LIST, "statement list") DEFTREESTRUCT(TS_STATEMENT_LIST, "statement list")
DEFTREESTRUCT(TS_GIMPLE_STATEMENT, "gimple statement")
DEFTREESTRUCT(TS_CONSTRUCTOR, "constructor") DEFTREESTRUCT(TS_CONSTRUCTOR, "constructor")
DEFTREESTRUCT(TS_OMP_CLAUSE, "omp clause") DEFTREESTRUCT(TS_OMP_CLAUSE, "omp clause")
DEFTREESTRUCT(TS_OPTIMIZATION, "optimization options") DEFTREESTRUCT(TS_OPTIMIZATION, "optimization options")
DEFTREESTRUCT(TS_TARGET_OPTION, "target options") DEFTREESTRUCT(TS_TARGET_OPTION, "target options")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment