summaryrefslogtreecommitdiff
path: root/gcc/attribs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/attribs.c')
-rw-r--r--gcc/attribs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/attribs.c b/gcc/attribs.c
index a7f549e1dc8..5b18aa35751 100644
--- a/gcc/attribs.c
+++ b/gcc/attribs.c
@@ -194,16 +194,16 @@ init_attributes (void)
void
register_attribute (const struct attribute_spec *attr)
{
- struct substring str;
- const void **slot;
-
- str.str = attr->name;
- str.length = strlen (str.str);
- slot = (const void **)htab_find_slot_with_hash (attribute_hash, &str,
- substring_hash (str.str, str.length),
- INSERT);
- gcc_assert (!*slot);
- *slot = attr;
+ struct substring str;
+ const void **slot;
+
+ str.str = attr->name;
+ str.length = strlen (str.str);
+ slot = (const void **)htab_find_slot_with_hash (attribute_hash, &str,
+ substring_hash (str.str, str.length),
+ INSERT);
+ gcc_assert (!*slot);
+ *slot = attr;
}
/* Return the spec for the attribute named NAME. */