OSDN Git Service

* plugin.c (get_named_event_id): Fix hash table rebuild to include
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 11:11:18 +0000 (11:11 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Dec 2009 11:11:18 +0000 (11:11 +0000)
        dynamically allocated events.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155156 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/plugin.c

index d2d8f21..24e65e1 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR lto/42320
index 84c9f44..78f99ca 100644 (file)
@@ -316,7 +316,7 @@ get_named_event_id (const char *name, enum insert_option insert)
       int i;
 
       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);
          gcc_assert (*slot == HTAB_EMPTY_ENTRY);