diff options
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r-- | gcc/attribs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c index be360d36bf2..139e7026b47 100644 --- a/gcc/attribs.c +++ b/gcc/attribs.c @@ -184,15 +184,15 @@ init_attributes (void) for (k = 0; attribute_tables[i][k].name != NULL; k++) { struct substring str; - const void **slot; + void **slot; str.str = attribute_tables[i][k].name; str.length = strlen (attribute_tables[i][k].name); - slot = (const void **)htab_find_slot_with_hash (attribute_hash, &str, + slot = htab_find_slot_with_hash (attribute_hash, &str, substring_hash (str.str, str.length), INSERT); gcc_assert (!*slot); - *slot = &attribute_tables[i][k]; + *slot = CONST_CAST (struct attribute_spec*, &attribute_tables[i][k]); } attributes_initialized = true; } |