aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2002-12-04 20:17:49 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2002-12-04 20:17:49 +0000
commit6c73ad72f8211e0d6273853224422d5189698066 (patch)
tree8aa76fa03a1955a28c38ba1105ecf2a62554c131 /gcc/cp
parentc246c65d7638d21cf773a4fab446870c93635390 (diff)
downloadgcc-6c73ad72f8211e0d6273853224422d5189698066.zip
gcc-6c73ad72f8211e0d6273853224422d5189698066.tar.gz
gcc-6c73ad72f8211e0d6273853224422d5189698066.tar.bz2
class.c (finish_struct_1): Correct comment.
* class.c (finish_struct_1): Correct comment. * cp-tree.c (DECL_SORTED_FIELDS): Likewise. From-SVN: r59828
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c3
-rw-r--r--gcc/cp/cp-tree.h2
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)