Commit a7fcb968 by Richard Kenner

(make_node, stabilize_reference_1): Abort if unknown class.

From-SVN: r6647
parent 0575fe3c
...@@ -926,6 +926,10 @@ make_node (code) ...@@ -926,6 +926,10 @@ make_node (code)
/* Identifier nodes are always permanent since they are /* Identifier nodes are always permanent since they are
unique in a compiler run. */ unique in a compiler run. */
if (code == IDENTIFIER_NODE) obstack = &permanent_obstack; if (code == IDENTIFIER_NODE) obstack = &permanent_obstack;
break;
default:
abort ();
} }
t = (tree) obstack_alloc (obstack, length); t = (tree) obstack_alloc (obstack, length);
...@@ -2375,6 +2379,9 @@ stabilize_reference_1 (e) ...@@ -2375,6 +2379,9 @@ stabilize_reference_1 (e)
/* Recursively stabilize each operand. */ /* Recursively stabilize each operand. */
result = build_nt (code, stabilize_reference_1 (TREE_OPERAND (e, 0))); result = build_nt (code, stabilize_reference_1 (TREE_OPERAND (e, 0)));
break; break;
default:
abort ();
} }
TREE_TYPE (result) = TREE_TYPE (e); TREE_TYPE (result) = TREE_TYPE (e);
......
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