From: Nathan Sidwell Date: Mon, 2 Nov 2020 16:43:17 +0000 (-0800) Subject: core: id_equal should forward X-Git-Tag: basepoints/gcc-12~3638 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a2e765d7773185efa109c12839ab6c8a18a1346;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/tree.h b/gcc/tree.h index 04e564c97989..caf6287f9096 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. */