Commit 8a8d675f by Joern Rennecke Committed by Joern Rennecke

plugin.c (get_named_event_id): Fix hash table rebuild to include dynamically allocated events.

        * plugin.c (get_named_event_id): Fix hash table rebuild to include
        dynamically allocated events.

From-SVN: r155156
parent 5d96330a
2009-12-11 Joern Rennecke <amylaar@spamcop.net>
* plugin.c (get_named_event_id): Fix hash table rebuild to include
dynamically allocated events.
2009-12-11 Richard Guenther <rguenther@suse.de> 2009-12-11 Richard Guenther <rguenther@suse.de>
PR lto/42320 PR lto/42320
...@@ -316,7 +316,7 @@ get_named_event_id (const char *name, enum insert_option insert) ...@@ -316,7 +316,7 @@ get_named_event_id (const char *name, enum insert_option insert)
int i; int i;
event_tab = htab_create (150, htab_hash_string, htab_event_eq, NULL); event_tab = htab_create (150, htab_hash_string, htab_event_eq, NULL);
for (i = 0; i < PLUGIN_EVENT_FIRST_DYNAMIC; i++) for (i = 0; i < event_last; i++)
{ {
slot = htab_find_slot (event_tab, plugin_event_name[i], INSERT); slot = htab_find_slot (event_tab, plugin_event_name[i], INSERT);
gcc_assert (*slot == HTAB_EMPTY_ENTRY); gcc_assert (*slot == HTAB_EMPTY_ENTRY);
......
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