mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-11-25 09:28:08 +08:00
re PR middle-end/54704 (three-fold increase in compile-time between r191483 and r191569)
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
This commit is contained in:
parent
780405350c
commit
ec6e039992
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user