Commit 2507f3b5 by Richard Kenner

(duplicate_decls): Check simple_cst_equal result against 0.

From-SVN: r9803
parent 364e1f1c
...@@ -2532,7 +2532,8 @@ duplicate_decls (newdecl, olddecl) ...@@ -2532,7 +2532,8 @@ duplicate_decls (newdecl, olddecl)
t1 = TREE_CHAIN (t1), t2 = TREE_CHAIN (t2), i++) t1 = TREE_CHAIN (t1), t2 = TREE_CHAIN (t2), i++)
if (TREE_PURPOSE (t1) && TREE_PURPOSE (t2)) if (TREE_PURPOSE (t1) && TREE_PURPOSE (t2))
{ {
if (simple_cst_equal (TREE_PURPOSE (t1), TREE_PURPOSE (t2))) if (1 == simple_cst_equal (TREE_PURPOSE (t1),
TREE_PURPOSE (t2)))
{ {
if (pedantic) if (pedantic)
{ {
......
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