diff options
author | Jason Merrill <jason@redhat.com> | 2017-06-11 01:29:14 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2017-06-11 01:29:14 -0400 |
commit | a01f151f1e03f9b2bf4148fc3f18f114bb6806b0 (patch) | |
tree | e673d9359df0faf119e7f7fa476fdb87ce07f1fa /gcc/cp/semantics.c | |
parent | dc77253832d17c57f385695119cc5344555bd913 (diff) | |
download | gcc-a01f151f1e03f9b2bf4148fc3f18f114bb6806b0.zip gcc-a01f151f1e03f9b2bf4148fc3f18f114bb6806b0.tar.gz gcc-a01f151f1e03f9b2bf4148fc3f18f114bb6806b0.tar.bz2 |
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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 94de17f..5b5ec54 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2913,7 +2913,7 @@ begin_class_definition (tree t) if (ns && TREE_CODE (ns) == NAMESPACE_DECL && DECL_CONTEXT (ns) == std_node && DECL_NAME (ns) - && !strcmp (IDENTIFIER_POINTER (DECL_NAME (ns)), "decimal")) + && id_equal (DECL_NAME (ns), "decimal")) { const char *n = TYPE_NAME_STRING (t); if ((strcmp (n, "decimal32") == 0) |