aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@spamcop.net>2009-12-11 11:11:18 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2009-12-11 11:11:18 +0000
commit8a8d675f4148d4fbccba88f514da8656bf1f27f2 (patch)
tree06d80b41526f05e9fea2367f2232b4af2d8e963a /gcc
parent5d96330ac864e99e367c7ffcb88a685342a1e38c (diff)
downloadgcc-8a8d675f4148d4fbccba88f514da8656bf1f27f2.zip
gcc-8a8d675f4148d4fbccba88f514da8656bf1f27f2.tar.gz
gcc-8a8d675f4148d4fbccba88f514da8656bf1f27f2.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/plugin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d2d8f21..24e65e1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/plugin.c b/gcc/plugin.c
index 84c9f44..78f99ca 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);