re PR middle-end/54704 (three-fold increase in compile-time between r191483 and r191569)
authorDehao Chen <dehao@google.com>
Tue, 25 Sep 2012 21:32:29 +0000 (21:32 +0000)
committerDehao Chen <dehao@gcc.gnu.org>
Tue, 25 Sep 2012 21:32:29 +0000 (21:32 +0000)
libcpp:
2012-09-25  Dehao Chen  <dehao@google.com>

PR middle-end/54704
* line-map.c (location_adhoc_data_hash): Fix the hash function.

From-SVN: r191747

libcpp/ChangeLog
libcpp/line-map.c

index 76602042582e8b0b218b6905611b1488f1177ca7..a26def2b1ff50018bed53f2179ed0c0206c1f13a 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-25  Dehao Chen  <dehao@google.com>
+
+       PR middle-end/54704
+       * line-map.c (location_adhoc_data_hash): Fix the hash function.
+
 2012-09-25  Dehao Chen  <dehao@google.com>
 
        PR middle-end/54645
index f0b2f8846a56f22f091294580e1cd1671da79527..61ab0318c036f79b029b05ba17fd4fefc55090f6 100644 (file)
@@ -58,7 +58,7 @@ location_adhoc_data_hash (const void *l)
 {
   const struct location_adhoc_data *lb =
       (const struct location_adhoc_data *) l;
-  return (hashval_t) lb->locus + (size_t) &lb->data;
+  return (hashval_t) lb->locus + (size_t) lb->data;
 }
 
 /* Compare function for location_adhoc_data hashtable.  */