diff options
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/class.c | 3 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 60789ee..3ea81f7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2002-12-04 Geoffrey Keating <geoffk@apple.com> + + * class.c (finish_struct_1): Correct comment. + * cp-tree.c (DECL_SORTED_FIELDS): Likewise. + 2002-12-04 Gabriel Dos Reis <gdr@integrable-solutions.net> PR C++/8799 diff --git a/gcc/cp/class.c b/gcc/cp/class.c index e3ea2db..06d0968 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -5280,8 +5280,7 @@ finish_struct_1 (t) /* Done with FIELDS...now decide whether to sort these for faster lookups later. - The C front-end only does this when n_fields > 15. We use - a smaller number because most searches fail (succeeding + We use a small number because most searches fail (succeeding ultimately as the search bores through the inheritance hierarchy), and we want this failure to occur quickly. */ diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 4c0efd2..f8a0195 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -2189,7 +2189,7 @@ struct lang_decl GTY(()) #define DECL_PENDING_INLINE_INFO(NODE) \ (DECL_LANG_SPECIFIC (NODE)->u.f.u.pending_inline_info) -/* For a TYPE_DECL: if this function has many fields, we'll sort them +/* For a TYPE_DECL: if this structure has many fields, we'll sort them and put them into a TREE_VEC. */ #define DECL_SORTED_FIELDS(NODE) \ (DECL_LANG_SPECIFIC (TYPE_DECL_CHECK (NODE))->u.f.u.sorted_fields) |