Commit 6c73ad72 by Geoffrey Keating Committed by Geoffrey Keating

class.c (finish_struct_1): Correct comment.

	* class.c (finish_struct_1): Correct comment.
	* cp-tree.c (DECL_SORTED_FIELDS): Likewise.

From-SVN: r59828
parent c246c65d
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> 2002-12-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
PR C++/8799 PR C++/8799
......
...@@ -5280,8 +5280,7 @@ finish_struct_1 (t) ...@@ -5280,8 +5280,7 @@ finish_struct_1 (t)
/* Done with FIELDS...now decide whether to sort these for /* Done with FIELDS...now decide whether to sort these for
faster lookups later. faster lookups later.
The C front-end only does this when n_fields > 15. We use We use a small number because most searches fail (succeeding
a smaller number because most searches fail (succeeding
ultimately as the search bores through the inheritance ultimately as the search bores through the inheritance
hierarchy), and we want this failure to occur quickly. */ hierarchy), and we want this failure to occur quickly. */
......
...@@ -2189,7 +2189,7 @@ struct lang_decl GTY(()) ...@@ -2189,7 +2189,7 @@ struct lang_decl GTY(())
#define DECL_PENDING_INLINE_INFO(NODE) \ #define DECL_PENDING_INLINE_INFO(NODE) \
(DECL_LANG_SPECIFIC (NODE)->u.f.u.pending_inline_info) (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. */ and put them into a TREE_VEC. */
#define DECL_SORTED_FIELDS(NODE) \ #define DECL_SORTED_FIELDS(NODE) \
(DECL_LANG_SPECIFIC (TYPE_DECL_CHECK (NODE))->u.f.u.sorted_fields) (DECL_LANG_SPECIFIC (TYPE_DECL_CHECK (NODE))->u.f.u.sorted_fields)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment