diff options
author | Kai Tietz <ktietz@redhat.com> | 2013-11-27 14:25:51 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2013-11-27 14:25:51 +0100 |
commit | 9fc023b767c385acc28e91c6ab9f0830feddab7e (patch) | |
tree | 3b5a287d2c471d953e0ba5c3ad0c5107a429f298 | |
parent | 30b8f78b72ce08c5fdc00eead80282ca12e433ac (diff) | |
download | gcc-9fc023b767c385acc28e91c6ab9f0830feddab7e.zip gcc-9fc023b767c385acc28e91c6ab9f0830feddab7e.tar.gz gcc-9fc023b767c385acc28e91c6ab9f0830feddab7e.tar.bz2 |
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
-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 15ce5e6..3476e48 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index 11dfea2..10a637e 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)); |