]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
winnt.c (i386_pe_section_type_flags): Use const pointer cast.
authorKai Tietz <ktietz@redhat.com>
Wed, 27 Nov 2013 13:25:51 +0000 (14:25 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Wed, 27 Nov 2013 13:25:51 +0000 (14:25 +0100)
* config/i386/winnt.c (i386_pe_section_type_flags): Use const
pointer cast.

From-SVN: r205445

gcc/ChangeLog
gcc/config/i386/winnt.c

index 15ce5e698f26dc3eb2e1318805650f503bdf7cc5..3476e484adaea17a78e19990d0d5d4160a9bc436 100644 (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.
index 11dfea2e8e8ecea9f5e0a30a434227ce71bd1ff1..10a637eddbcb1e9ba435419c4b308b2123c81f88 100644 (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));