]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
docs: Fix 2 typos
authorJakub Jelinek <jakub@redhat.com>
Thu, 25 Jan 2024 08:10:08 +0000 (09:10 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 11 Jun 2024 10:35:30 +0000 (12:35 +0200)
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)

gcc/doc/generic.texi
gcc/doc/rtl.texi

index e5f9d1be8ea81f3da002ec3bb925590d331a2551..1f7b00a240396ad7b73f8eeb0008a746b1928615 100644 (file)
@@ -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.
index 43c9ee8bffeac5d7b0509234b4ea9b1bf2f460ab..2aed9a0454effbe549c8e002bb3befb11a0f9ed3 100644 (file)
@@ -1843,7 +1843,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.