From: Kai Tietz Date: Wed, 27 Nov 2013 13:25:51 +0000 (+0100) Subject: winnt.c (i386_pe_section_type_flags): Use const pointer cast. X-Git-Tag: releases/gcc-4.9.0~2419 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9fc023b767c385acc28e91c6ab9f0830feddab7e;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 15ce5e698f26..3476e484adae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-11-27 Kai Tietz + + * config/i386/winnt.c (i386_pe_section_type_flags): Use const + pointer cast. + 2013-11-27 Kugan Vivekanandarajah * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define. diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 11dfea2e8e8e..10a637eddbcb 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -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));