This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fixup hash table descriptor in winnt.c


From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>

Hi,

This is a straight forward fixup of the hash table descriptor in winnt.c
causing the PR.


Tested a cross to i686-cygwin now builds, and committing to trunk.

Trev

gcc/ChangeLog:

2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	PR c++/65835
	* config/i386/winnt.c (struct wrapped_symbol_hasher): Change
	value_type to const char *.
---
 gcc/ChangeLog           | 6 ++++++
 gcc/config/i386/winnt.c | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7df764b..4131b90 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
+
+	PR c++/65835
+	* config/i386/winnt.c (struct wrapped_symbol_hasher): Change
+	value_type to const char *.
+
 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
 
 	* config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
diff --git a/gcc/config/i386/winnt.c b/gcc/config/i386/winnt.c
index e698cd5..da67f5f 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 <char>
 {
-  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
-- 
2.4.0.78.g7c6ecbf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]