diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c/c-decl.c | 13 |
2 files changed, 9 insertions, 8 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index c937261..4ab7160 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,7 @@ +2014-06-24 Trevor Saunders <tsaunders@mozilla.com> + + * c-decl.c: Adjust. + 2014-06-24 Jakub Jelinek <jakub@redhat.com> * c-parser.c (c_parser_omp_for_loop): For diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index 3456030..def10a2 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -7076,7 +7076,7 @@ is_duplicate_field (tree x, tree y) static void detect_field_duplicates_hash (tree fieldlist, - hash_table <pointer_hash <tree_node> > htab) + hash_table<pointer_hash <tree_node> > *htab) { tree x, y; tree_node **slot; @@ -7084,7 +7084,7 @@ detect_field_duplicates_hash (tree fieldlist, for (x = fieldlist; x ; x = DECL_CHAIN (x)) if ((y = DECL_NAME (x)) != 0) { - slot = htab.find_slot (y, INSERT); + slot = htab->find_slot (y, INSERT); if (*slot) { error ("duplicate member %q+D", x); @@ -7104,7 +7104,7 @@ detect_field_duplicates_hash (tree fieldlist, && TREE_CODE (TYPE_NAME (TREE_TYPE (x))) == TYPE_DECL) { tree xn = DECL_NAME (TYPE_NAME (TREE_TYPE (x))); - slot = htab.find_slot (xn, INSERT); + slot = htab->find_slot (xn, INSERT); if (*slot) error ("duplicate member %q+D", TYPE_NAME (TREE_TYPE (x))); *slot = xn; @@ -7176,11 +7176,8 @@ detect_field_duplicates (tree fieldlist) } else { - hash_table <pointer_hash <tree_node> > htab; - htab.create (37); - - detect_field_duplicates_hash (fieldlist, htab); - htab.dispose (); + hash_table<pointer_hash <tree_node> > htab (37); + detect_field_duplicates_hash (fieldlist, &htab); } } |