From a01f151f1e03f9b2bf4148fc3f18f114bb6806b0 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Sun, 11 Jun 2017 01:29:14 -0400 Subject: tree.h (id_equal): New. * tree.h (id_equal): New. * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c, omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it instead of strcmp of IDENTIFIER_POINTER. c-family/ * c-ada-spec.c, c-pragma.c: Use it. cp/ * cp-tree.h, decl2.c, mangle.c, parser.c, pt.c, semantics.c: Use it. From-SVN: r249103 --- gcc/omp-simd-clone.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/omp-simd-clone.c') diff --git a/gcc/omp-simd-clone.c b/gcc/omp-simd-clone.c index 99589d44664..3aa8b131565 100644 --- a/gcc/omp-simd-clone.c +++ b/gcc/omp-simd-clone.c @@ -417,8 +417,7 @@ simd_clone_mangle (struct cgraph_node *node, if the simdlen is assumed to be 8 for the first one, etc. */ for (struct cgraph_node *clone = node->simd_clones; clone; clone = clone->simdclone->next_clone) - if (strcmp (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (clone->decl)), - str) == 0) + if (id_equal (DECL_ASSEMBLER_NAME (clone->decl), str)) return NULL_TREE; return get_identifier (str); -- cgit v1.2.3