Commit 9698252f by Nathan Froyd Committed by Nathan Froyd

tree.h (struct tree_int_cst, [...]): Include tree_typed instead of tree_common.

	* tree.h (struct tree_int_cst, struct real_value): Include tree_typed
	instead of tree_common.
	(struct tree_fixed_cst, struct tree_string, struct tree_complex):
	Likewise.
	* tree.c (initialize_tree_contains_struct): Mark such nodes as being
	TS_TYPED rather than TS_COMMON.
	* print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.

From-SVN: r172386
parent 86d83530
2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
* tree.h (struct tree_int_cst, struct real_value): Include tree_typed
instead of tree_common.
(struct tree_fixed_cst, struct tree_string, struct tree_complex):
Likewise.
* tree.c (initialize_tree_contains_struct): Mark such nodes as being
TS_TYPED rather than TS_COMMON.
* print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
2011-04-01 Georg-Johann Lay <avr@gjlay.de> 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
PR target/45263 PR target/45263
......
...@@ -853,11 +853,6 @@ print_node (FILE *file, const char *prefix, tree node, int indent) ...@@ -853,11 +853,6 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
} }
fputc ('\"', file); fputc ('\"', file);
} }
/* Print the chain at second level. */
if (indent == 4)
print_node (file, "chain", TREE_CHAIN (node), indent + 4);
else
print_node_brief (file, "chain", TREE_CHAIN (node), indent + 4);
break; break;
case IDENTIFIER_NODE: case IDENTIFIER_NODE:
......
...@@ -371,15 +371,15 @@ initialize_tree_contains_struct (void) ...@@ -371,15 +371,15 @@ initialize_tree_contains_struct (void)
break; break;
case TS_COMMON: case TS_COMMON:
MARK_TS_TYPED (code);
break;
case TS_INT_CST: case TS_INT_CST:
case TS_REAL_CST: case TS_REAL_CST:
case TS_FIXED_CST: case TS_FIXED_CST:
case TS_VECTOR: case TS_VECTOR:
case TS_STRING: case TS_STRING:
case TS_COMPLEX: case TS_COMPLEX:
MARK_TS_TYPED (code);
break;
case TS_IDENTIFIER: case TS_IDENTIFIER:
case TS_DECL_MINIMAL: case TS_DECL_MINIMAL:
case TS_TYPE: case TS_TYPE:
......
...@@ -1455,7 +1455,7 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int, ...@@ -1455,7 +1455,7 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int,
&& TREE_INT_CST_LOW (A) < TREE_INT_CST_LOW (B))) && TREE_INT_CST_LOW (A) < TREE_INT_CST_LOW (B)))
struct GTY(()) tree_int_cst { struct GTY(()) tree_int_cst {
struct tree_common common; struct tree_typed typed;
double_int int_cst; double_int int_cst;
}; };
...@@ -1468,7 +1468,7 @@ struct real_value; ...@@ -1468,7 +1468,7 @@ struct real_value;
#define TREE_REAL_CST(NODE) (*TREE_REAL_CST_PTR (NODE)) #define TREE_REAL_CST(NODE) (*TREE_REAL_CST_PTR (NODE))
struct GTY(()) tree_real_cst { struct GTY(()) tree_real_cst {
struct tree_common common; struct tree_typed typed;
struct real_value * real_cst_ptr; struct real_value * real_cst_ptr;
}; };
...@@ -1480,7 +1480,7 @@ struct fixed_value; ...@@ -1480,7 +1480,7 @@ struct fixed_value;
#define TREE_FIXED_CST(NODE) (*TREE_FIXED_CST_PTR (NODE)) #define TREE_FIXED_CST(NODE) (*TREE_FIXED_CST_PTR (NODE))
struct GTY(()) tree_fixed_cst { struct GTY(()) tree_fixed_cst {
struct tree_common common; struct tree_typed typed;
struct fixed_value * fixed_cst_ptr; struct fixed_value * fixed_cst_ptr;
}; };
...@@ -1490,7 +1490,7 @@ struct GTY(()) tree_fixed_cst { ...@@ -1490,7 +1490,7 @@ struct GTY(()) tree_fixed_cst {
((const char *)(STRING_CST_CHECK (NODE)->string.str)) ((const char *)(STRING_CST_CHECK (NODE)->string.str))
struct GTY(()) tree_string { struct GTY(()) tree_string {
struct tree_common common; struct tree_typed typed;
int length; int length;
char str[1]; char str[1];
}; };
...@@ -1500,7 +1500,7 @@ struct GTY(()) tree_string { ...@@ -1500,7 +1500,7 @@ struct GTY(()) tree_string {
#define TREE_IMAGPART(NODE) (COMPLEX_CST_CHECK (NODE)->complex.imag) #define TREE_IMAGPART(NODE) (COMPLEX_CST_CHECK (NODE)->complex.imag)
struct GTY(()) tree_complex { struct GTY(()) tree_complex {
struct tree_common common; struct tree_typed typed;
tree real; tree real;
tree imag; tree imag;
}; };
...@@ -1509,7 +1509,7 @@ struct GTY(()) tree_complex { ...@@ -1509,7 +1509,7 @@ struct GTY(()) tree_complex {
#define TREE_VECTOR_CST_ELTS(NODE) (VECTOR_CST_CHECK (NODE)->vector.elements) #define TREE_VECTOR_CST_ELTS(NODE) (VECTOR_CST_CHECK (NODE)->vector.elements)
struct GTY(()) tree_vector { struct GTY(()) tree_vector {
struct tree_common common; struct tree_typed typed;
tree elements; tree elements;
}; };
......
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