]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix up duplicated words mostly in comments, part 1
authorJakub Jelinek <jakub@redhat.com>
Tue, 2 Apr 2024 11:39:11 +0000 (13:39 +0200)
committerJakub Jelinek <jakub@redhat.com>
Tue, 2 Apr 2024 11:39:11 +0000 (13:39 +0200)
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.

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

index adbcbdd1d572fceb6ffd2ff34b5d58123ddc4bf1..0d5f0a1b9b097dce6a996adae512bb5f9d4258c9 100644 (file)
@@ -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
index ffd4008b8252a44bbbba1c30e167da2cc2a2a8c9..62a9186af2f1bc66d5f44cef9c3f780eb928cebd 100644 (file)
@@ -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:
index 6f7563de6e6d1bcdd958dfd52fdeadd555d87579..b899263aca990e9baf8a16520d9d0c4e1abb241b 100644 (file)
@@ -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 */
index 9d503545677adbf3d7cd08c26a2c7694fdafa323..eb8f69e6245728981e6ea92e8a2e00ca1321046a 100644 (file)
@@ -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.
 
index 3d6c2db7772e1caafc421e5498f580376f6fbe26..b15969f0e65a7bda179ed0e2136375c81da92d5a 100644 (file)
@@ -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.
 #
index 633678cb3b2c7c06dae0cc3d92d391372cf1d781..2806fd6872b3fdeb519bfc678046e7a9776304db 100644 (file)
@@ -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.
 #
index 57165e0e9813c580a7539777fda5e35f3608ed65..1ae0f01ccdc28574bdc7855ad31a77bf7a4831ce 100644 (file)
@@ -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:
index 17f440b558b1ac185c5586bce23612ca4a56f316..f0c51de6d1cfbf7cd5ad04301df5fb7239b30dea 100644 (file)
@@ -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
index ecd8c06998461ccf29d4df62b17c481d2c52b758..5805c0b4ff8c13e87e376b45e243b07bdee73d6a 100644 (file)
@@ -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.  
index 4841c5a08f97affa4153c83bf790d0aafb4b6a1d..67747e6ce5a1ccf41f65cf3bc9a5782161678bdf 100644 (file)
@@ -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
index 51480f22a9a6a8b6a27f913399146b2b3daef018..5ae0fba987cbc246ebf2c794111f2b2e7829e131 100644 (file)
@@ -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--)
index 789f1bf807c932de158d1c5b7079489d3f9ee0b0..7a2d2abe6d142da6ff8a468b91075875b2cc312e 100644 (file)
@@ -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;
 
index 6124764a2e1255ce50d0b52bc5613c26aa5e1b09..6216546084b87cf52c615dd80d38e37bd781509b 100644 (file)
@@ -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.  */
index b6307216881f5dde387cccf234f04d55b71f75bf..e781b2a9e505240d12679afdb4631e1a61662acd 100644 (file)
@@ -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 
index f72bd0f45b8bd88af69460658189709d7b7861d9..51a08bcc8b1d07d8ab9144caf80ba0406ae12fca 100644 (file)
@@ -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.
index 9dc42ad3edb59b45adc706fb47b30b48fa2480c5..7bc430716168748b96053d0c4d7785268706dd1c 100644 (file)
@@ -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.
 #
index d8d9c4bb1d4b6d32c7447c3c98e97373d025b1a3..d8b066c1eb0d0fe1cfed939016af07cbd92d891a 100644 (file)
@@ -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)
index f43a259aa6e86f79eb9b145fa425e6689bee82e9..5524df40e26231a106ca7c9262e133288ce71616 100644 (file)
@@ -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