I noticed the two id_equal functions directly called strcmp.  This
changes one of them to call the other with args swapped.

        gcc/
        * tree.h (id_equal): Call the symetric predicate with swapped
        arguments.

pushing to trunk

--
Nathan Sidwell
diff --git c/gcc/tree.h w/gcc/tree.h
index 7f0aa5b8d1d..a4717c369aa 100644
--- c/gcc/tree.h
+++ w/gcc/tree.h
@@ -3859,7 +3859,7 @@ id_equal (const_tree id, const char *str)
 inline bool
 id_equal (const char *str, const_tree id)
 {
-  return !strcmp (str, IDENTIFIER_POINTER (id));
+  return id_equal (id, str);
 }
 
 /* Return the number of elements in the VECTOR_TYPE given by NODE.  */

Reply via email to