aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-01-25 09:10:08 +0100
committerJakub Jelinek <jakub@redhat.com>2024-06-20 12:06:28 +0200
commit23c60f13b91aa21ffad01333b93724dfe797afcb (patch)
tree6c7169d4af271a2d8a820cd24021dcc5408654de
parent9b58a85de42eed538a866146a36bb3221daf5590 (diff)
docs: Fix 2 typos
When looking into PR113572, I've noticed a typo in VECTOR_CST documentation and grep found pasto of it elsewhere. 2024-01-25 Jakub Jelinek <jakub@redhat.com> * doc/generic.texi (VECTOR_CST): Fix typo - petterns -> patterns. * doc/rtl.texi (CONST_VECTOR): Likewise. (cherry picked from commit 36c1384038f3b9f01124f0fc38bb3c930b1cbe8a)
-rw-r--r--gcc/doc/generic.texi2
-rw-r--r--gcc/doc/rtl.texi2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/doc/generic.texi b/gcc/doc/generic.texi
index 642cbc83fe4..27985674745 100644
--- a/gcc/doc/generic.texi
+++ b/gcc/doc/generic.texi
@@ -1144,7 +1144,7 @@ vector. For example @{ 0, 1 @} could be seen as two patterns with
one element each or one pattern with two elements (@var{base0} and
@var{base1}). The canonical encoding is always the one with the
fewest patterns or (if both encodings have the same number of
-petterns) the one with the fewest encoded elements.
+patterns) the one with the fewest encoded elements.
@samp{vector_cst_encoding_nelts (@var{v})} gives the total number of
encoded elements in @var{v}, which is 6 in the example above.
diff --git a/gcc/doc/rtl.texi b/gcc/doc/rtl.texi
index edbc60fdfba..b80cc40b759 100644
--- a/gcc/doc/rtl.texi
+++ b/gcc/doc/rtl.texi
@@ -1844,7 +1844,7 @@ vector. For example @{ 0, 1 @} could be seen as two patterns with
one element each or one pattern with two elements (@var{base0} and
@var{base1}). The canonical encoding is always the one with the
fewest patterns or (if both encodings have the same number of
-petterns) the one with the fewest encoded elements.
+patterns) the one with the fewest encoded elements.
@samp{const_vector_encoding_nelts (@var{v})} gives the total number of
encoded elements in @var{v}, which is 6 in the example above.