commit c909315aa35130b84df9304b4799801af05a4e35 Author: Jason Merrill Date: Thu May 18 15:23:27 2017 -0400 * tree.h (id_strcmp): New. diff --git a/gcc/tree.h b/gcc/tree.h index c6e883c..0f01149 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -3618,6 +3618,20 @@ tree_operand_check_code (const_tree __t, enum tree_code __code, int __i, #endif +/* strcmp of an identifier and a C string. */ + +inline int +id_strcmp (const_tree id, const char *str) +{ + return strcmp (IDENTIFIER_POINTER (id), str); +} + +inline int +id_strcmp (const char *str, const_tree id) +{ + return strcmp (str, IDENTIFIER_POINTER (id)); +} + #define error_mark_node global_trees[TI_ERROR_MARK] #define intQI_type_node global_trees[TI_INTQI_TYPE]