diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-06-25 00:13:17 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2014-06-25 00:13:17 +0000 |
commit | 3c03222923b9a0509c0d98585eb70f15b2e64ffb (patch) | |
tree | cdd62a239ccf2be05d23848d09f11775d4d39180 | |
parent | 7b169c293d2abb82f93435cbe06bcb1e5735c178 (diff) | |
download | gcc-3c03222923b9a0509c0d98585eb70f15b2e64ffb.zip gcc-3c03222923b9a0509c0d98585eb70f15b2e64ffb.tar.gz gcc-3c03222923b9a0509c0d98585eb70f15b2e64ffb.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/winnt.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85503f1..a8c181d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index dd52133..7dbc39b 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -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)); |