aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2016-10-12 15:18:36 +0200
committerThomas Schwinge <tschwinge@gcc.gnu.org>2016-10-12 15:18:36 +0200
commitd6aa94b0b7424a891d4896aa7ede56f5d72b6440 (patch)
treef57c6f7681d0f22a88c9a3d27d202e654678d73a /gcc
parent29e775304704a116185b45d1afd63a1387b5d348 (diff)
downloadgcc-d6aa94b0b7424a891d4896aa7ede56f5d72b6440.zip
gcc-d6aa94b0b7424a891d4896aa7ede56f5d72b6440.tar.gz
gcc-d6aa94b0b7424a891d4896aa7ede56f5d72b6440.tar.bz2
Fix LTO_STREAMER_DEBUG build
gcc/ * lto-streamer.c: Fix LTO_STREAMER_DEBUG build. From-SVN: r241046
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/lto-streamer.c12
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c66b7a7..e709adb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2016-10-12 Thomas Schwinge <thomas@codesourcery.com>
+ * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
+
* dwarf2out.c (dwarf2_lineno_debug_hooks): Use
dwarf2out_assembly_start.
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c
index bfde1fe..a44a916 100644
--- a/gcc/lto-streamer.c
+++ b/gcc/lto-streamer.c
@@ -267,23 +267,23 @@ struct tree_hash_entry
struct tree_entry_hasher : nofree_ptr_hash <tree_hash_entry>
{
- static inline hashval_t hash (const value_type *);
- static inline bool equal (const value_type *, const compare_type *);
+ static inline hashval_t hash (const tree_hash_entry *);
+ static inline bool equal (const tree_hash_entry *, const tree_hash_entry *);
};
inline hashval_t
-tree_entry_hasher::hash (const value_type *e)
+tree_entry_hasher::hash (const tree_hash_entry *e)
{
return htab_hash_pointer (e->key);
}
inline bool
-tree_entry_hasher::equal (const value_type *e1, const compare_type *e2)
+tree_entry_hasher::equal (const tree_hash_entry *e1, const tree_hash_entry *e2)
{
return (e1->key == e2->key);
}
-static hash_table<tree_hash_entry> *tree_htab;
+static hash_table<tree_entry_hasher> *tree_htab;
#endif
/* Initialization common to the LTO reader and writer. */
@@ -299,7 +299,7 @@ lto_streamer_init (void)
streamer_check_handled_ts_structures ();
#ifdef LTO_STREAMER_DEBUG
- tree_htab = new hash_table<tree_hash_entry> (31);
+ tree_htab = new hash_table<tree_entry_hasher> (31);
#endif
}