https://gcc.gnu.org/g:1138d716c449051aca30fc7a82db606bd2e8378c
commit r16-3123-g1138d716c449051aca30fc7a82db606bd2e8378c Author: Jakub Jelinek <ja...@redhat.com> Date: Mon Aug 11 09:04:19 2025 +0200 Fix comment typos This patch fixes some comment typos, singe -> single and unsinged -> unsigned. 2025-08-11 Jakub Jelinek <ja...@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. Diff: --- gcc/config/arc/arc.md | 6 +++--- gcc/fortran/gfortran.h | 2 +- gcc/testsuite/g++.dg/warn/template-1.C | 2 +- gcc/testsuite/gcc.dg/graphite/id-30.c | 2 +- gcc/testsuite/gcc.target/powerpc/builtins-2-p9-runnable.c | 2 +- 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 d119464176b8..8f7e5373fdf1 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 d9dcd1b504f9..2644cd822108 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 04ea5ae323bc..2e96300bbefe 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 f8144cec4f28..91838edf1fec 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 3ceae159cf2e..12d1e8be9163 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 275fc436d135..079bfc985634 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; }