summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 23:49:39 +0000
committershebs <shebs@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-06 23:49:39 +0000
commitb6cba6cfcbec4d36f823fc1a15d7e1d6fc2a26fd (patch)
treeb828583415b6904f0f3b26659795e6820b423704
parent74b00d71449aed51c312c2f8ceed06ba362fb89c (diff)
downloadgcc-b6cba6cfcbec4d36f823fc1a15d7e1d6fc2a26fd.tar.gz
2001-09-06 Ira Ruben <ira@apple.com>
Remove OP_IDENTIFIER. * tree.def (OP_IDENTIFIER): Remove. * tree.c (tree_node_kind enum): Remove op_id_kind. (tree_node_kind_names): Remove "op_identifiers". (make_node): Remove OP_IDENTIFIER test. (build_op_identifier): Removed because it isn't being used. * print-tree.c (print_node): Remove OP_IDENTIFIER case. * cp/pt.c (tsubst): Remove OP_IDENTIFIER case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45457 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/cp/pt.c1
-rw-r--r--gcc/print-tree.c5
-rw-r--r--gcc/tree.c18
-rw-r--r--gcc/tree.def5
5 files changed, 11 insertions, 29 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4d81bca8544..dedc597e104 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,14 @@
+2001-09-06 Ira Ruben <ira@apple.com>
+
+ Remove OP_IDENTIFIER.
+ * tree.def (OP_IDENTIFIER): Remove.
+ * tree.c (tree_node_kind enum): Remove op_id_kind.
+ (tree_node_kind_names): Remove "op_identifiers".
+ (make_node): Remove OP_IDENTIFIER test.
+ (build_op_identifier): Removed because it isn't being used.
+ * print-tree.c (print_node): Remove OP_IDENTIFIER case.
+ * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
+
2001-09-06 Richard Henderson <rth@redhat.com>
* simplify-rtx.c (simplify_binary_operation): Revert last change.
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 36e6cb504f7..960ef44c5c3 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -6251,7 +6251,6 @@ tsubst (t, args, complain, in_decl)
case ERROR_MARK:
case IDENTIFIER_NODE:
- case OP_IDENTIFIER:
case VOID_TYPE:
case REAL_TYPE:
case COMPLEX_TYPE:
diff --git a/gcc/print-tree.c b/gcc/print-tree.c
index 517cc0d637c..c0550f7123e 100644
--- a/gcc/print-tree.c
+++ b/gcc/print-tree.c
@@ -740,11 +740,6 @@ print_node (file, prefix, node, indent)
}
break;
- case OP_IDENTIFIER:
- print_node (file, "op1", TREE_PURPOSE (node), indent + 4);
- print_node (file, "op2", TREE_VALUE (node), indent + 4);
- break;
-
default:
if (TREE_CODE_CLASS (TREE_CODE (node)) == 'x')
lang_print_xnode (file, node, indent);
diff --git a/gcc/tree.c b/gcc/tree.c
index 548ba7e970c..d3db28978c5 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -99,7 +99,6 @@ typedef enum
e_kind,
c_kind,
id_kind,
- op_id_kind,
perm_list_kind,
temp_list_kind,
vec_kind,
@@ -122,7 +121,6 @@ static const char * const tree_node_kind_names[] = {
"exprs",
"constants",
"identifiers",
- "op_identifiers",
"perm_tree_lists",
"temp_tree_lists",
"vecs",
@@ -380,8 +378,6 @@ make_node (code)
case 'x': /* something random, like an identifier. */
if (code == IDENTIFIER_NODE)
kind = id_kind;
- else if (code == OP_IDENTIFIER)
- kind = op_id_kind;
else if (code == TREE_VEC)
kind = vec_kind;
else
@@ -2526,20 +2522,6 @@ build_nt VPARAMS ((enum tree_code code, ...))
VA_CLOSE (p);
return t;
}
-
-#if 0
-/* Commented out because this wants to be done very
- differently. See cp-lex.c. */
-tree
-build_op_identifier (op1, op2)
- tree op1, op2;
-{
- register tree t = make_node (OP_IDENTIFIER);
- TREE_PURPOSE (t) = op1;
- TREE_VALUE (t) = op2;
- return t;
-}
-#endif
/* Create a DECL_... node of code CODE, name NAME and data type TYPE.
We do NOT enter this node in any sort of symbol table.
diff --git a/gcc/tree.def b/gcc/tree.def
index 5903355fab4..cd23dd32740 100644
--- a/gcc/tree.def
+++ b/gcc/tree.def
@@ -51,11 +51,6 @@ DEFTREECODE (ERROR_MARK, "error_mark", 'x', 0)
Use `get_identifier' to get it (or create it, the first time). */
DEFTREECODE (IDENTIFIER_NODE, "identifier_node", 'x', -1)
-/* Used to hold information to identify an operator (or combination
- of two operators) considered as a `noun' rather than a `verb'.
- The first operand is encoded in the TREE_TYPE field. */
-DEFTREECODE (OP_IDENTIFIER, "op_identifier", 'x', 2)
-
/* Has the TREE_VALUE and TREE_PURPOSE fields. */
/* These nodes are made into lists by chaining through the
TREE_CHAIN field. The elements of the list live in the