diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-04-16 09:55:25 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2024-04-16 09:56:16 +0200 |
commit | 274f6bbe2328f899fd4e24636e0d71ac08c99856 (patch) | |
tree | 73c5ef1796de3bcd60d595d43fede1436976c51e | |
parent | dc17e7544ef419b3f777b469a2668b26b31d2150 (diff) | |
download | gcc-274f6bbe2328f899fd4e24636e0d71ac08c99856.zip gcc-274f6bbe2328f899fd4e24636e0d71ac08c99856.tar.gz gcc-274f6bbe2328f899fd4e24636e0d71ac08c99856.tar.bz2 |
Fix some comment nits
While studying the TYPE_CANONICAL/TYPE_STRUCTURAL_EQUALITY_P stuff,
I've noticed some nits in comments, the following patch fixes them.
2024-04-16 Jakub Jelinek <jakub@redhat.com>
* tree.cc (array_type_nelts): Ensure 2 spaces after . in comment
instead of just one.
(build_variant_type_copy): Likewise.
(tree_check_failed): Likewise.
(build_atomic_base): Likewise.
* ipa-free-lang-data.cc (fld_incomplete_type_of): Use an indefinite
article rather than a.
-rw-r--r-- | gcc/ipa-free-lang-data.cc | 2 | ||||
-rw-r--r-- | gcc/tree.cc | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gcc/ipa-free-lang-data.cc b/gcc/ipa-free-lang-data.cc index 16ed55e..3ad203f 100644 --- a/gcc/ipa-free-lang-data.cc +++ b/gcc/ipa-free-lang-data.cc @@ -234,7 +234,7 @@ fld_decl_context (tree ctx) return ctx; } -/* For T being aggregate type try to turn it into a incomplete variant. +/* For T being aggregate type try to turn it into an incomplete variant. Return T if no simplification is possible. */ static tree diff --git a/gcc/tree.cc b/gcc/tree.cc index 787168e..83f3bf3 100644 --- a/gcc/tree.cc +++ b/gcc/tree.cc @@ -3689,7 +3689,7 @@ int_byte_position (const_tree field) } /* Return, as a tree node, the number of elements for TYPE (which is an - ARRAY_TYPE) minus one. This counts only elements of the top array. */ + ARRAY_TYPE) minus one. This counts only elements of the top array. */ tree array_type_nelts (const_tree type) @@ -5757,7 +5757,7 @@ build_variant_type_copy (tree type MEM_STAT_DECL) t = build_distinct_type_copy (type PASS_MEM_STAT); /* Since we're building a variant, assume that it is a non-semantic - variant. This also propagates TYPE_STRUCTURAL_EQUALITY_P. */ + variant. This also propagates TYPE_STRUCTURAL_EQUALITY_P. */ TYPE_CANONICAL (t) = TYPE_CANONICAL (type); /* Type variants have no alias set defined. */ TYPE_ALIAS_SET (t) = -1; @@ -8915,7 +8915,7 @@ get_file_function_name (const char *type) #if defined ENABLE_TREE_CHECKING && (GCC_VERSION >= 2007) /* Complain that the tree code of NODE does not match the expected 0 - terminated list of trailing codes. The trailing code list can be + terminated list of trailing codes. The trailing code list can be empty, for a more vague error message. FILE, LINE, and FUNCTION are of the caller. */ @@ -9332,7 +9332,7 @@ make_or_reuse_accum_type (unsigned size, int unsignedp, int satp) /* Create an atomic variant node for TYPE. This routine is called during initialization of data types to create the 5 basic atomic - types. The generic build_variant_type function requires these to + types. The generic build_variant_type function requires these to already be set up in order to function properly, so cannot be called from there. If ALIGN is non-zero, then ensure alignment is overridden to this value. */ |