]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fixup const qualification of the argument passed to hash_table::find_slot
authortbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jun 2014 00:13:17 +0000 (00:13 +0000)
committertbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jun 2014 00:13:17 +0000 (00:13 +0000)
gcc/

* config/i386/winnt.c (i386_pe_section_type_flags): Fixup const
qualification.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211962 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 85503f1580e8072e2fe339cecb1ccbeedfa8eeb3..a8c181d52195db5dad1310ef8566a7db05308986 100644 (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.
index dd52133198472d18964832fddafdab875f2a4c22..7dbc39bf5f1525007b06948225890e6d43eba6bc 100644 (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));