From: Trevor Saunders Date: Wed, 20 May 2015 01:03:51 +0000 (+0000) Subject: fixup hash table descriptor in winnt.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca5db45b8acffae092a10a716ba887047a211503;p=gcc.git fixup hash table descriptor in winnt.c gcc/ChangeLog: 2015-05-19 Trevor Saunders PR c++/65835 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change value_type to const char *. From-SVN: r223423 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7df764b2dae..4131b902311 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-05-19 Trevor Saunders + + PR c++/65835 + * config/i386/winnt.c (struct wrapped_symbol_hasher): Change + value_type to const char *. + 2015-05-19 Sandra Loosemore * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c index e698cd5df98..da67f5fe5ea 100644 --- a/gcc/config/i386/winnt.c +++ b/gcc/config/i386/winnt.c @@ -738,11 +738,11 @@ i386_pe_record_stub (const char *name) struct wrapped_symbol_hasher : typed_noop_remove { - typedef char *value_type; - typedef char *compare_type; + typedef const char *value_type; + typedef const char *compare_type; static inline hashval_t hash (const char *); static inline bool equal (const char *, const char *); - static inline void remove (char *); + static inline void remove (const char *); }; inline hashval_t