summaryrefslogtreecommitdiff
path: root/gcc/plugin.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-11 11:11:18 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2009-12-11 11:11:18 +0000
commitc6ba609cc702dc83848ffcb6fa4a9eecf7f6bd85 (patch)
tree06d80b41526f05e9fea2367f2232b4af2d8e963a /gcc/plugin.c
parentd91c3d409b2d1be25bbe371d08b80b3f8a07ae79 (diff)
downloadgcc-c6ba609cc702dc83848ffcb6fa4a9eecf7f6bd85.tar.gz
* plugin.c (get_named_event_id): Fix hash table rebuild to include
dynamically allocated events. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155156 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/plugin.c')
-rw-r--r--gcc/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/plugin.c b/gcc/plugin.c
index 84c9f4434dc..78f99ca5d3b 100644
--- a/gcc/plugin.c
+++ b/gcc/plugin.c
@@ -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);