winnt.c (i386_pe_section_type_flags): Use const pointer cast.

* config/i386/winnt.c (i386_pe_section_type_flags): Use const
	pointer cast.

From-SVN: r205445
This commit is contained in:
Kai Tietz 2013-11-27 14:25:51 +01:00 committed by Kai Tietz
parent 30b8f78b72
commit 9fc023b767
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-11-27 Kai Tietz <ktietz@redhat.com>
* config/i386/winnt.c (i386_pe_section_type_flags): Use const
pointer cast.
2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
* doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.

View File

@ -498,7 +498,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 ((unsigned int *)name, INSERT);
slot = htab.find_slot ((const unsigned int *)name, INSERT);
if (!*slot)
{
*slot = (unsigned int *) xmalloc (sizeof (unsigned int));