Commit ec6e0399 by Dehao Chen Committed by Dehao Chen

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
parent 78040535
2012-09-25 Dehao Chen <dehao@google.com> 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 PR middle-end/54645
* include/line-map.h (location_adhoc_data): Move location_adhoc_data * include/line-map.h (location_adhoc_data): Move location_adhoc_data
into GC. into GC.
......
...@@ -58,7 +58,7 @@ location_adhoc_data_hash (const void *l) ...@@ -58,7 +58,7 @@ location_adhoc_data_hash (const void *l)
{ {
const struct location_adhoc_data *lb = const struct location_adhoc_data *lb =
(const struct location_adhoc_data *) l; (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. */ /* Compare function for location_adhoc_data hashtable. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment