diff options
Diffstat (limited to 'gcc/attribs.cc')
-rw-r--r-- | gcc/attribs.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/attribs.cc b/gcc/attribs.cc index b219f87..6d4a30d 100644 --- a/gcc/attribs.cc +++ b/gcc/attribs.cc @@ -499,7 +499,7 @@ diag_attr_exclusions (tree last_decl, tree node, tree attrname, /* Iterate over the mutually exclusive attribute names and verify that the symbol doesn't contain it. */ - for (unsigned i = 0; i != sizeof attrs / sizeof *attrs; ++i) + for (unsigned i = 0; i != ARRAY_SIZE (attrs); ++i) { if (!attrs[i]) continue; @@ -2106,7 +2106,7 @@ decls_mismatched_attributes (tree tmpl, tree decl, tree attrlist, }; for (unsigned i = 0; i != 2; ++i) - for (unsigned j = 0; j != sizeof whitelist / sizeof *whitelist; ++j) + for (unsigned j = 0; j != ARRAY_SIZE (whitelist); ++j) if (lookup_attribute (whitelist[j], tmpl_attrs[i]) || lookup_attribute (whitelist[j], decl_attrs[i])) return 0; |