From: Dehao Chen Date: Tue, 25 Sep 2012 21:32:29 +0000 (+0000) Subject: re PR middle-end/54704 (three-fold increase in compile-time between r191483 and r191569) X-Git-Tag: misc/gccgo-go1_1_2~636 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec6e0399926f0af8e911bf76a05552c7dfced39b;p=thirdparty%2Fgcc.git re PR middle-end/54704 (three-fold increase in compile-time between r191483 and r191569) libcpp: 2012-09-25 Dehao Chen PR middle-end/54704 * line-map.c (location_adhoc_data_hash): Fix the hash function. From-SVN: r191747 --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 76602042582e..a26def2b1ff5 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,8 @@ +2012-09-25 Dehao Chen + + PR middle-end/54704 + * line-map.c (location_adhoc_data_hash): Fix the hash function. + 2012-09-25 Dehao Chen PR middle-end/54645 diff --git a/libcpp/line-map.c b/libcpp/line-map.c index f0b2f8846a56..61ab0318c036 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. */