diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-08-11 09:04:19 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-08-11 09:05:46 +0200 |
commit | 1138d716c449051aca30fc7a82db606bd2e8378c (patch) | |
tree | 8a8bc2d3d8e806df1a77b07444358355687a4165 | |
parent | b7e4b5e862fcb12cfeaa3bee4e8c77098201d5f4 (diff) | |
download | gcc-1138d716c449051aca30fc7a82db606bd2e8378c.zip gcc-1138d716c449051aca30fc7a82db606bd2e8378c.tar.gz gcc-1138d716c449051aca30fc7a82db606bd2e8378c.tar.bz2 |
Fix comment typos
This patch fixes some comment typos, singe -> single and unsinged -> unsigned.
2025-08-11 Jakub Jelinek <jakub@redhat.com>
gcc/
* tree-cfg.cc (find_case_label_for_value): Fix comment typo,
singe-valued -> single-valued.
* config/arc/arc.md: Fix comment typos, unsinged -> unsigned.
gcc/fortran/
* gfortran.h (gfc_case): Fix comment typo, singe -> single.
gcc/testsuite/
* g++.dg/warn/template-1.C: Fix comment typo, unsinged -> unsigned.
* gcc.target/powerpc/builtins-2-p9-runnable.c (main): Likewise.
* gcc.dg/graphite/id-30.c: Likewise.
-rw-r--r-- | gcc/config/arc/arc.md | 6 | ||||
-rw-r--r-- | gcc/fortran/gfortran.h | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/warn/template-1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/graphite/id-30.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/builtins-2-p9-runnable.c | 2 | ||||
-rw-r--r-- | gcc/tree-cfg.cc | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index d119464..8f7e537 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -66,9 +66,9 @@ ;; I signed 12-bit immediate (for ARCompact) ;; K unsigned 3-bit immediate (for ARCompact) ;; L unsigned 6-bit immediate (for ARCompact) -;; M unsinged 5-bit immediate (for ARCompact) -;; O unsinged 7-bit immediate (for ARCompact) -;; P unsinged 8-bit immediate (for ARCompact) +;; M unsigned 5-bit immediate (for ARCompact) +;; O unsigned 7-bit immediate (for ARCompact) +;; P unsigned 8-bit immediate (for ARCompact) ;; N constant '1' (for ARCompact) diff --git a/gcc/fortran/gfortran.h b/gcc/fortran/gfortran.h index d9dcd1b..2644cd8 100644 --- a/gcc/fortran/gfortran.h +++ b/gcc/fortran/gfortran.h @@ -2944,7 +2944,7 @@ typedef struct gfc_equiv_list upwards, if *low is NULL the selection is *high downwards. This structure has separate fields to allow single and double linked - lists of CASEs at the same time. The singe linked list along the NEXT + lists of CASEs at the same time. The single linked list along the NEXT field is a list of cases for a single CASE label. The double linked list along the LEFT/RIGHT fields is used to detect overlap and to build a table of the cases for SELECT constructs with a CHARACTER diff --git a/gcc/testsuite/g++.dg/warn/template-1.C b/gcc/testsuite/g++.dg/warn/template-1.C index 04ea5ae..2e96300 100644 --- a/gcc/testsuite/g++.dg/warn/template-1.C +++ b/gcc/testsuite/g++.dg/warn/template-1.C @@ -2,7 +2,7 @@ //PR c++/11490 //Since N is know at instantiation time, there // should be no warning about comparision between -// unsinged and signed interegers. +// unsigned and signed interegers. // { dg-do compile } // { dg-options "-W" } diff --git a/gcc/testsuite/gcc.dg/graphite/id-30.c b/gcc/testsuite/gcc.dg/graphite/id-30.c index f8144ce..91838ed 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-30.c +++ b/gcc/testsuite/gcc.dg/graphite/id-30.c @@ -1,5 +1,5 @@ /* The modulo constraints we generate for the niter expression - (unsinged long)ubound - (unsigned long)lbound + (unsigned long)ubound - (unsigned long)lbound end up with a modulo that we cannot represent in the expression type we are using (int64_t), so we run into the codegen error where ISL generates a modulo/divide by sth that doesn't fit the diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-2-p9-runnable.c b/gcc/testsuite/gcc.target/powerpc/builtins-2-p9-runnable.c index 3ceae15..12d1e8b 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-2-p9-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-2-p9-runnable.c @@ -21,7 +21,7 @@ int main() { /* Returns a vector with each element containing the parity of the low-order bit of each of the bytes in that element. Note results are always - returned in an unsinged type, per the ABI spec. */ + returned in an unsigned type, per the ABI spec. */ vsia = (vector int) {0x10101010, 0x10101011, 0x10101111, 0x10111111}; vsiexpt = (vector unsigned int){0x0, 0x1, 0x0, 0x1}; diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc index 275fc43..079bfc9 100644 --- a/gcc/tree-cfg.cc +++ b/gcc/tree-cfg.cc @@ -2473,7 +2473,7 @@ find_case_label_for_value (const gswitch *switch_stmt, tree val) if (CASE_HIGH (t) == NULL) { - /* A singe-valued case label. */ + /* A single-valued case label. */ if (cmp == 0) return t; } |