public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9750] Fix up duplicated words mostly in comments, part 1
@ 2024-04-02 11:40 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2024-04-02 11:40 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:94792057ad4a81bb10cdd20085c31df3ca59177e

commit r14-9750-g94792057ad4a81bb10cdd20085c31df3ca59177e
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Apr 2 13:39:11 2024 +0200

    Fix up duplicated words mostly in comments, part 1
    
    Like in r12-7519-g027e30414492d50feb2854aff38227b14300dc4b, I've done
    git grep -v 'long long\|optab optab\|template template\|double double' | grep ' \([a-zA-Z]\+\) \1 '
    
    This is just part of the changes, mostly for non-gcc directories.
    I'll try to get to the rest soon.  Obviously, the above command also
    finds cases which are correct as is and shouldn't be changed, so one
    needs to manually inspect everything.
    
    I'd hope most of it is pretty obvious, but the config/ and libstdc++-v3/
    hunks include a tweak in a license wording, though other copies of the
    similar license have the wording right.
    
    2024-04-02  Jakub Jelinek  <jakub@redhat.com>
    
            * Makefile.tpl: Fix duplicated words; returns returns ->
            returns.
    config/
            * lcmessage.m4: Fix duplicated words; can can -> can,
            package package -> package.
    libdecnumber/
            * decCommon.c (decFinalize): Fix duplicated words in
            comment; the the -> the.
    libgcc/
            * unwind-dw2-fde.c (struct fde_accumulator): Fix duplicated
            words in comment; is is -> is.
    libgfortran/
            * configure.host: Fix duplicated words; the the -> the.
    libgm2/
            * configure.host: Fix duplicated words; the the -> the.
    libgomp/
            * libgomp.texi (OpenMP 5.2): Fix duplicated words; with with ->
            with.
            (omp_target_associate_ptr): Fix duplicated words; either either ->
            either.
            (omp_init_allocator): Fix duplicated words; be be -> be.
            (omp_realloc): Fix duplicated words; is is -> is.
            (OMP_ALLOCATOR): Fix duplicated words; other other -> other.
            * priority_queue.h (priority_queue_multi_p): Fix duplicated words;
            to to -> to.
    libiberty/
            * regex.c (byte_re_match_2_internal): Fix duplicated words in comment;
            next next -> next.
            * dyn-string.c (dyn_string_init): Fix duplicated words in comment;
            of of -> of.
    libitm/
            * beginend.cc (GTM::gtm_thread::begin_transaction): Fix duplicated
            words in comment; not not -> not to.
    libobjc/
            * init.c (duplicate_classes): Fix duplicated words in comment; in in
            -> in.
            * sendmsg.c (__objc_prepare_dtable_for_class): Fix duplicated words
            in comment; the the -> the.
            * encoding.c (objc_layout_structure): Likewise.
    libstdc++-v3/
            * acinclude.m4: Fix duplicated words; file file -> file can.
            * configure.host: Fix duplicated words; the the -> the.
    libvtv/
            * vtv_rts.cc (vtv_fail): Fix duplicated words; to to -> to.
            * vtv_fail.cc (vtv_fail): Likewise.

Diff:
---
 Makefile.tpl                |  2 +-
 config/lcmessage.m4         |  4 ++--
 libdecnumber/decCommon.c    |  2 +-
 libgcc/unwind-dw2-fde.c     |  2 +-
 libgfortran/configure.host  |  2 +-
 libgm2/configure.host       |  2 +-
 libgomp/libgomp.texi        | 10 +++++-----
 libgomp/priority_queue.h    |  2 +-
 libiberty/dyn-string.c      |  2 +-
 libiberty/regex.c           |  2 +-
 libitm/beginend.cc          |  2 +-
 libobjc/encoding.c          |  2 +-
 libobjc/init.c              |  2 +-
 libobjc/sendmsg.c           |  2 +-
 libstdc++-v3/acinclude.m4   |  2 +-
 libstdc++-v3/configure.host |  2 +-
 libvtv/vtv_fail.cc          |  2 +-
 libvtv/vtv_rts.cc           |  2 +-
 18 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/Makefile.tpl b/Makefile.tpl
index adbcbdd1d57..0d5f0a1b9b0 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1976,7 +1976,7 @@ configure-target-[+module+]: maybe-all-gcc[+
    (define dep-maybe (lambda ()
       (if (exist? "hard") "" "maybe-")))
 
-   ;; dep-kind returns returns "prebootstrap" for configure or build
+   ;; dep-kind returns "prebootstrap" for configure or build
    ;; dependencies of bootstrapped modules on a build module
    ;; (e.g. all-gcc on all-build-bison); "normal" if the dependency is
    ;; on an "install" target, or if the dependence module is not
diff --git a/config/lcmessage.m4 b/config/lcmessage.m4
index ffd4008b825..62a9186af2f 100644
--- a/config/lcmessage.m4
+++ b/config/lcmessage.m4
@@ -6,13 +6,13 @@ dnl Public License, this file may be distributed as part of a program
 dnl that contains a configuration script generated by Autoconf, under
 dnl the same distribution terms as the rest of that program.
 dnl
-dnl This file can can be used in projects which are not available under
+dnl This file can be used in projects which are not available under
 dnl the GNU General Public License or the GNU Library General Public
 dnl License but which still want to provide support for the GNU gettext
 dnl functionality.
 dnl Please note that the actual code of the GNU gettext library is covered
 dnl by the GNU Library General Public License, and the rest of the GNU
-dnl gettext package package is covered by the GNU General Public License.
+dnl gettext package is covered by the GNU General Public License.
 dnl They are *not* in the public domain.
 
 dnl Authors:
diff --git a/libdecnumber/decCommon.c b/libdecnumber/decCommon.c
index 6f7563de6e6..b899263aca9 100644
--- a/libdecnumber/decCommon.c
+++ b/libdecnumber/decCommon.c
@@ -388,7 +388,7 @@ static decFloat * decFinalize(decFloat *df, bcdnum *num,
 	    UBFROMUI(ub-3, 0);		     /* to 00000000 */
 	    }
 	  /* [note ub could now be to left of msd, and it is not safe */
-	  /* to write to the the left of the msd] */
+	  /* to write to the left of the msd] */
 	  /* now at most 3 digits left to non-9 (usually just the one) */
 	  for (; ub>=umsd; *ub=0, ub--) {
 	    if (*ub==9) continue;	     /* carry */
diff --git a/libgcc/unwind-dw2-fde.c b/libgcc/unwind-dw2-fde.c
index 9d503545677..eb8f69e6245 100644
--- a/libgcc/unwind-dw2-fde.c
+++ b/libgcc/unwind-dw2-fde.c
@@ -501,7 +501,7 @@ fde_mixed_encoding_extract (struct object *ob, _Unwind_Ptr *target,
 typedef void (*fde_extractor_t) (struct object *, _Unwind_Ptr *, const fde **,
 				 int);
 
-// Data is is sorted using radix sort if possible, using an temporary
+// Data is sorted using radix sort if possible, using an temporary
 // auxiliary data structure of the same size as the input. When running
 // out of memory do in-place heap sort.
 
diff --git a/libgfortran/configure.host b/libgfortran/configure.host
index 3d6c2db7772..b15969f0e65 100644
--- a/libgfortran/configure.host
+++ b/libgfortran/configure.host
@@ -1,7 +1,7 @@
 # configure.host
 #
 # This shell script handles all host based configuration for libgfortran.
-# It sets various shell variables based on the the host triplet.
+# It sets various shell variables based on the host triplet.
 # You can modify this shell script without rerunning autoconf/aclocal/etc.
 # This file is "sourced", not executed.
 #
diff --git a/libgm2/configure.host b/libgm2/configure.host
index 633678cb3b2..2806fd6872b 100644
--- a/libgm2/configure.host
+++ b/libgm2/configure.host
@@ -1,7 +1,7 @@
 # configure.host
 #
 # This shell script handles all host based configuration for libstdc++.
-# It sets various shell variables based on the the host and the
+# It sets various shell variables based on the host and the
 # configuration options.  You can modify this shell script without needing
 # to rerun autoconf/aclocal/etc.  This file is "sourced" not executed.
 #
diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi
index 57165e0e981..1ae0f01ccdc 100644
--- a/libgomp/libgomp.texi
+++ b/libgomp/libgomp.texi
@@ -385,7 +385,7 @@ to address of matching mapped list item per 5.1, Sect. 2.21.7.2 @tab N @tab
       @code{-Wunknown-pragmas} (implied by @code{-Wall}) and @code{-Wattributes}
       (enabled by default), respectively; for Fortran free-source code, there is
       a warning enabled by default and, for fixed-source code, the @code{omx}
-      sentinel is warned for with with @code{-Wsurprising} (enabled by
+      sentinel is warned for with @code{-Wsurprising} (enabled by
       @code{-Wall}).  Unknown clauses are always rejected with an error.}
 @item Clauses on @code{end} directive can be on directive @tab Y @tab
 @item @code{destroy} clause with destroy-var argument on @code{depobj}
@@ -2218,7 +2218,7 @@ in the @code{to} and @code{from} clauses of the @code{target update} directive
 to transfer data between the associated pointers. The reference count of such
 associated storage is infinite.  The association can be removed by calling
 @code{omp_target_disassociate_ptr} which should be done before the lifetime
-of either either storage ends.
+of either storage ends.
 
 The routine returns nonzero (@code{EINVAL}) when the @var{device_num} invalid,
 for when the initial device or the associated device shares memory with the
@@ -2815,7 +2815,7 @@ traits; if an allocator that fulfills the requirements cannot be created,
 @code{omp_null_allocator} is returned.
 
 The predefined memory spaces and available traits can be found at
-@ref{OMP_ALLOCATOR}, where the trait names have to be be prefixed by
+@ref{OMP_ALLOCATOR}, where the trait names have to be prefixed by
 @code{omp_atk_} (e.g. @code{omp_atk_pinned}) and the named trait values by
 @code{omp_atv_} (e.g. @code{omp_atv_true}); additionally, @code{omp_atv_default}
 may be used as trait value to specify that the default value should be used.
@@ -3210,7 +3210,7 @@ The @var{allocator} and @var{free_allocator} arguments must be a predefined
 allocator, an allocator handle or @code{omp_null_allocator}.  If
 @var{free_allocator} is @code{omp_null_allocator}, the implementation
 automatically determines the allocator used for the allocation of @var{ptr}.
-If @var{allocator} is @code{omp_null_allocator} and @var{ptr} is is not a
+If @var{allocator} is @code{omp_null_allocator} and @var{ptr} is not a
 null pointer, the same allocator as @code{free_allocator} is used and
 when @var{ptr} is a null pointer the allocator specified by the
 @var{def-allocator-var} ICV is used.
@@ -3468,7 +3468,7 @@ as listed below.  Except that the last three allocators have the
 
 For the @code{fallback} trait, the default value is @code{null_fb} for the
 @code{omp_default_mem_alloc} allocator and any allocator that is associated
-with device memory; for all other other allocators, it is @code{default_mem_fb}
+with device memory; for all other allocators, it is @code{default_mem_fb}
 by default.
 
 Examples:
diff --git a/libgomp/priority_queue.h b/libgomp/priority_queue.h
index 17f440b558b..f0c51de6d1c 100644
--- a/libgomp/priority_queue.h
+++ b/libgomp/priority_queue.h
@@ -137,7 +137,7 @@ extern struct gomp_task *priority_tree_next_task (enum priority_queue_type,
 						  bool *);
 
 /* Return TRUE if there is more than one priority in HEAD.  This is
-   used throughout to to choose between the fast path (priority 0 only
+   used throughout to choose between the fast path (priority 0 only
    items) and a world with multiple priorities.  */
 
 static inline bool
diff --git a/libiberty/dyn-string.c b/libiberty/dyn-string.c
index ecd8c069984..5805c0b4ff8 100644
--- a/libiberty/dyn-string.c
+++ b/libiberty/dyn-string.c
@@ -47,7 +47,7 @@ Boston, MA 02110-1301, USA.  */
 
 /* Performs in-place initialization of a dyn_string struct.  This
    function can be used with a dyn_string struct on the stack or
-   embedded in another object.  The contents of of the string itself
+   embedded in another object.  The contents of the string itself
    are still dynamically allocated.  The string initially is capable
    of holding at least SPACE characeters, including the terminating
    NUL.  If SPACE is 0, it will silently be increated to 1.  
diff --git a/libiberty/regex.c b/libiberty/regex.c
index 4841c5a08f9..67747e6ce5a 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -5597,7 +5597,7 @@ byte_re_match_2_internal (struct re_pattern_buffer *bufp,
      to resume scanning the pattern; the second one is where to resume
      scanning the strings.  If the latter is zero, the failure point is
      a ``dummy''; if a failure happens and the failure point is a dummy,
-     it gets discarded and the next next one is tried.  */
+     it gets discarded and the next one is tried.  */
 #ifdef MATCH_MAY_ALLOCATE /* otherwise, this is global.  */
   PREFIX(fail_stack_type) fail_stack;
 #endif
diff --git a/libitm/beginend.cc b/libitm/beginend.cc
index 51480f22a9a..5ae0fba987c 100644
--- a/libitm/beginend.cc
+++ b/libitm/beginend.cc
@@ -200,7 +200,7 @@ GTM::gtm_thread::begin_transaction (uint32_t prop, const gtm_jmpbuf *jb)
     {
       // Note that the snapshot of htm_fastpath that we take here could be
       // outdated, and a different method group than dispatch_htm may have
-      // been chosen in the meantime.  Therefore, take care not not touch
+      // been chosen in the meantime.  Therefore, take care not to touch
       // anything besides the serial lock, which is independent of method
       // groups.
       for (uint32_t t = serial_lock.get_htm_fastpath(); t; t--)
diff --git a/libobjc/encoding.c b/libobjc/encoding.c
index 789f1bf807c..7a2d2abe6d1 100644
--- a/libobjc/encoding.c
+++ b/libobjc/encoding.c
@@ -1088,7 +1088,7 @@ objc_layout_structure (const char *type,
          && *ntype++ != '=')
     /* do nothing */;
 
-  /* If there's a "<name>=", ntype - 1 points to '='; skip the the name */
+  /* If there's a "<name>=", ntype - 1 points to '='; skip the name.  */
   if (*(ntype - 1) == '=')
     type = ntype;
 
diff --git a/libobjc/init.c b/libobjc/init.c
index 6124764a2e1..6216546084b 100644
--- a/libobjc/init.c
+++ b/libobjc/init.c
@@ -63,7 +63,7 @@ static struct objc_list *uninitialized_statics = 0; 	/* !T:MUTEX */
    a class twice, we ignore it the second time.  On some platforms,
    where the order in which modules are loaded is well defined, this
    allows you to replace a class in a shared library by linking in a
-   new implementation which is loaded in in the right order, and which
+   new implementation which is loaded in the right order, and which
    overrides the existing one.
 
    Protected by __objc_runtime_mutex.  */
diff --git a/libobjc/sendmsg.c b/libobjc/sendmsg.c
index b6307216881..e781b2a9e50 100644
--- a/libobjc/sendmsg.c
+++ b/libobjc/sendmsg.c
@@ -1047,7 +1047,7 @@ __objc_prepare_dtable_for_class (Class cls)
 
   /* This table could be initialized in init.c.  We cannot use the
      class name since the class maintains the instance methods and the
-     meta class maintains the the class methods yet both share the
+     meta class maintains the class methods yet both share the
      same name.  Classes should be unique in any program.  */
   if (! prepared_dtable_table)
     prepared_dtable_table 
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index f72bd0f45b8..51a08bcc8b1 100644
--- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4
@@ -4493,7 +4493,7 @@ AC_DEFUN([GLIBCXX_CHECK_GTHREADS], [
 # Check whether LC_MESSAGES is available in <locale.h>.
 # Ulrich Drepper <drepper@cygnus.com>, 1995.
 #
-# This file file be copied and used freely without restrictions.  It can
+# This file can be copied and used freely without restrictions.  It can
 # be used in projects which are not available under the GNU Public License
 # but which still want to provide support for the GNU gettext functionality.
 # Please note that the actual code is *not* freely available.
diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
index 9dc42ad3edb..7bc43071616 100644
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -1,7 +1,7 @@
 # configure.host
 #
 # This shell script handles all host based configuration for libstdc++.
-# It sets various shell variables based on the the host and the
+# It sets various shell variables based on the host and the
 # configuration options.  You can modify this shell script without needing
 # to rerun autoconf/aclocal/etc.  This file is "sourced" not executed.
 #
diff --git a/libvtv/vtv_fail.cc b/libvtv/vtv_fail.cc
index d8d9c4bb1d4..d8b066c1eb0 100644
--- a/libvtv/vtv_fail.cc
+++ b/libvtv/vtv_fail.cc
@@ -201,7 +201,7 @@ vtv_fail (const char *msg, void **data_set_ptr, const void *vtbl_ptr)
               ptr_from_set_handle_handle (*data_set_ptr) :
 	      *data_set_ptr);
   buf_len = strlen (buffer);
-  /*  Send this to to stderr.  */
+  /* Send this to stderr.  */
   write (2, buffer, buf_len);
 
   if (!vtv_no_abort)
diff --git a/libvtv/vtv_rts.cc b/libvtv/vtv_rts.cc
index f43a259aa6e..5524df40e26 100644
--- a/libvtv/vtv_rts.cc
+++ b/libvtv/vtv_rts.cc
@@ -1791,7 +1791,7 @@ vtv_fail (const char *msg, void **data_set_ptr, const void *vtbl_ptr)
               ptr_from_set_handle_handle (*data_set_ptr) :
 	      *data_set_ptr);
   buf_len = strlen (buffer);
-  /*  Send this to to stderr.  */
+  /* Send this to stderr.  */
   write (2, buffer, buf_len);
 
 #ifndef VTV_NO_ABORT

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-02 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 11:40 [gcc r14-9750] Fix up duplicated words mostly in comments, part 1 Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).