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
This commit is contained in:
Trevor Saunders 2014-06-25 00:13:17 +00:00 committed by Trevor Saunders
parent 7b169c293d
commit 3c03222923
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
* config/i386/winnt.c (i386_pe_section_type_flags): Fix const
qualification in cast.
2014-06-24 Jan Hubicka <hubicka@ucw.cz>
* tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.

View file

@ -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));