From 9a2e765d7773185efa109c12839ab6c8a18a1346 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 2 Nov 2020 08:43:17 -0800 Subject: [PATCH] core: id_equal should forward 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. --- gcc/tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/tree.h b/gcc/tree.h index 04e564c9798..caf6287f909 100644 --- a/gcc/tree.h +++ b/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. */ -- 2.30.2