From 3c03222923b9a0509c0d98585eb70f15b2e64ffb Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Wed, 25 Jun 2014 00:13:17 +0000 Subject: [PATCH] Fixup const qualification of the argument passed to hash_table::find_slot gcc/ * config/i386/winnt.c (i386_pe_section_type_flags): Fixup const qualification. From-SVN: r211962 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/winnt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85503f1580e..a8c181d5219 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-06-24 Trevor Saunders + + * config/i386/winnt.c (i386_pe_section_type_flags): Fix const + qualification in cast. + 2014-06-24 Jan Hubicka * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL. diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index dd521331984..7dbc39bf5f1 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -500,7 +500,7 @@ i386_pe_section_type_flags (tree decl, const char *name, int reloc) flags |= SECTION_LINKONCE; /* See if we already have an entry for this section. */ - slot = htab->find_slot ((const unsigned int *)name, INSERT); + slot = htab->find_slot ((unsigned int *)name, INSERT); if (!*slot) { *slot = (unsigned int *) xmalloc (sizeof (unsigned int));