From 9fc023b767c385acc28e91c6ab9f0830feddab7e Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 27 Nov 2013 14:25:51 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/winnt.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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)); -- 2.47.3