aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2017-06-11 01:29:14 -0400
committerJason Merrill <jason@gcc.gnu.org>2017-06-11 01:29:14 -0400
commita01f151f1e03f9b2bf4148fc3f18f114bb6806b0 (patch)
treee673d9359df0faf119e7f7fa476fdb87ce07f1fa /gcc/dwarf2out.c
parentdc77253832d17c57f385695119cc5344555bd913 (diff)
downloadgcc-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/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 2a27ad5..92444e3 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -20625,7 +20625,7 @@ add_calling_convention_attribute (dw_die_ref subr_die, tree decl)
targetm.dwarf_calling_convention (TREE_TYPE (decl)));
if (is_fortran ()
- && !strcmp (IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)), "MAIN__"))
+ && id_equal (DECL_ASSEMBLER_NAME (decl), "MAIN__"))
{
/* DWARF 2 doesn't provide a way to identify a program's source-level
entry point. DW_AT_calling_convention attributes are only meant