Commit 8ae49a28 by Richard Kenner

(simple_cst_equal): Don't look at language-specific nodes since we

don't know what's in them.

From-SVN: r9754
parent f32da1f6
......@@ -3564,8 +3564,13 @@ simple_cst_equal (t1, t2)
return 0;
}
/* This general rule works for most tree codes.
All exceptions should be handled above. */
/* This general rule works for most tree codes. All exceptions should be
handled above. If this is a language-specific tree code, we can't
trust what might be in the operand, so say we don't know
the situation. */
if (code1
>= sizeof standard_tree_code_type / sizeof standard_tree_code_type[0])
return -1;
switch (TREE_CODE_CLASS (code1))
{
......
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