diff options
author | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-25 21:32:29 +0000 |
---|---|---|
committer | dehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-25 21:32:29 +0000 |
commit | bda16c7ca0bc1ec56857241a7313068f4824950f (patch) | |
tree | 58f2104f6e2633e8ff5ce517a446ce52140e65a5 /libcpp | |
parent | 4d6e7ebc65220ba21c97bca7757d48b105858c87 (diff) | |
download | gcc-bda16c7ca0bc1ec56857241a7313068f4824950f.tar.gz |
libcpp:
2012-09-25 Dehao Chen <dehao@google.com>
PR middle-end/54704
* line-map.c (location_adhoc_data_hash): Fix the hash function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191747 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/line-map.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 76602042582..a26def2b1ff 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,5 +1,10 @@ 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 * include/line-map.h (location_adhoc_data): Move location_adhoc_data into GC. diff --git a/libcpp/line-map.c b/libcpp/line-map.c index f0b2f8846a5..61ab0318c03 100644 --- a/libcpp/line-map.c +++ b/libcpp/line-map.c @@ -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. */ |