https://gcc.gnu.org/g:e9a576fd48fc74695cfa85fad073bc08e07f81e7

commit r17-1032-ge9a576fd48fc74695cfa85fad073bc08e07f81e7
Author: Dhruv Chawla <[email protected]>
Date:   Thu May 14 09:19:21 2026 +0000

    libgomp: Fix typos in various files
    
    Signed-off-by: Dhruv Chawla <[email protected]>
    
    libgomp/ChangeLog:
    
            * configure: Regenerate.
            * acinclude.m4: Fix typos.
            * env.c (parse_places_var): Likewise.
            (parse_stacksize): Likewise.
            (parse_wait_policy): Likewise.
            (parse_affinity): Likewise.
            (initialize_env): Likewise.
            * libgomp.h (struct target_mem_desc): Likewise.
            * plugin/build-target-indirect-htab.h: Likewise.
            * plugin/plugin-gcn.c (struct hsa_runtime_fn_info): Likewise.
            (struct hip_runtime_fn_info): Likewise.
            (limit_worker_threads): Likewise.
            (max_isa_vgprs): Likewise.
            (GOMP_OFFLOAD_get_name): Likewise.
            * plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_name): Likewise.
            * target.c (gomp_map_vars_internal): Likewise.
            (GOMP_target_ext): Likewise.

Diff:
---
 libgomp/acinclude.m4                        |  2 +-
 libgomp/configure                           |  4 ++--
 libgomp/env.c                               | 10 +++++-----
 libgomp/libgomp.h                           |  2 +-
 libgomp/plugin/build-target-indirect-htab.h |  2 +-
 libgomp/plugin/plugin-gcn.c                 | 10 +++++-----
 libgomp/plugin/plugin-nvptx.c               |  2 +-
 libgomp/target.c                            |  6 +++---
 8 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/libgomp/acinclude.m4 b/libgomp/acinclude.m4
index a174ff5881a0..c75df4c374c1 100644
--- a/libgomp/acinclude.m4
+++ b/libgomp/acinclude.m4
@@ -252,7 +252,7 @@ if test x$enable_symvers = xsun ; then
     *)
       # Unlikely to work.
       AC_MSG_WARN([=== You have requested Sun symbol versioning, but])
-      AC_MSG_WARN([=== you are not targetting Solaris 2.])
+      AC_MSG_WARN([=== you are not targeting Solaris 2.])
       AC_MSG_WARN([=== Symbol versioning will be disabled.])
       enable_symvers=no
       ;;
diff --git a/libgomp/configure b/libgomp/configure
index 6d3f9922f060..87e7855ca3e6 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -16687,8 +16687,8 @@ if test x$enable_symvers = xsun ; then
       # Unlikely to work.
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested 
Sun symbol versioning, but" >&5
 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" 
>&2;}
-      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not 
targetting Solaris 2." >&5
-$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
+      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not 
targeting Solaris 2." >&5
+$as_echo "$as_me: WARNING: === you are not targeting Solaris 2." >&2;}
       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning 
will be disabled." >&5
 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
       enable_symvers=no
diff --git a/libgomp/env.c b/libgomp/env.c
index deb4f0bb431e..ff0044b42e20 100644
--- a/libgomp/env.c
+++ b/libgomp/env.c
@@ -923,7 +923,7 @@ parse_places_var (const char *name, bool ignore)
   return false;
 }
 
-/* Parse the OMP_STACKSIZE environment varible.  Return true if one was
+/* Parse the OMP_STACKSIZE environment variable.  Return true if one was
    present and it was successfully parsed.  */
 
 static bool
@@ -983,7 +983,7 @@ parse_stacksize (const char *env, const char *val, void 
*const params[])
   return false;
 }
 
-/* Parse the GOMP_SPINCOUNT environment varible.  Return true if one was
+/* Parse the GOMP_SPINCOUNT environment variable.  Return true if one was
    present and it was successfully parsed.  */
 
 static bool
@@ -1131,7 +1131,7 @@ parse_wait_policy (const char *env, const char *val, void 
*const params[])
   return false;
 }
 
-/* Parse the GOMP_CPU_AFFINITY environment varible.  Return true if one was
+/* Parse the GOMP_CPU_AFFINITY environment variable.  Return true if one was
    present and it was successfully parsed.  */
 
 static bool
@@ -1227,7 +1227,7 @@ parse_affinity (bool ignore)
   return true;
 
  invalid:
-  gomp_error ("Invalid value for enviroment variable GOMP_CPU_AFFINITY");
+  gomp_error ("Invalid value for environment variable GOMP_CPU_AFFINITY");
   return false;
 }
 
@@ -2434,7 +2434,7 @@ initialize_env (void)
     {
       /* Using a rough estimation of 100000 spins per msec,
         use 5 min blocking for OMP_WAIT_POLICY=active,
-        3 msec blocking when OMP_WAIT_POLICY is not specificed
+        3 msec blocking when OMP_WAIT_POLICY is not specified
         and 0 when OMP_WAIT_POLICY=passive.
         Depending on the CPU speed, this can be e.g. 5 times longer
         or 5 times shorter.  */
diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
index 42f324392957..41850d0f77de 100644
--- a/libgomp/libgomp.h
+++ b/libgomp/libgomp.h
@@ -1317,7 +1317,7 @@ struct target_mem_desc {
   reverse_splay_tree_node rev_array;
   /* Start of the target region.  */
   uintptr_t tgt_start;
-  /* End of the targer region.  */
+  /* End of the target region.  */
   uintptr_t tgt_end;
   /* Handle to free.  */
   void *to_free;
diff --git a/libgomp/plugin/build-target-indirect-htab.h 
b/libgomp/plugin/build-target-indirect-htab.h
index 319888fcf550..a13f9717bf7b 100644
--- a/libgomp/plugin/build-target-indirect-htab.h
+++ b/libgomp/plugin/build-target-indirect-htab.h
@@ -29,7 +29,7 @@
    to get use on the device - that's for the 'indirect' clause feature.
 
    In order to habe host initialization work, the pointer sizes must be
-   the same - and either the the endianess or the host-device memcopy
+   the same - and either the the endianness or the host-device memcopy
    has to take of it.  */
 
 typedef unsigned __int128 hash_entry_type;
diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c
index e47d8b2253b8..e415eea273df 100644
--- a/libgomp/plugin/plugin-gcn.c
+++ b/libgomp/plugin/plugin-gcn.c
@@ -244,7 +244,7 @@ struct hsa_runtime_fn_info
 
 /* As an HIP runtime is dlopened, following structure defines function
    pointers utilized by the interop feature of this plugin.
-   Add suffient type declarations to get this work.  */
+   Add sufficient type declarations to get this work.  */
 
 typedef int hipError_t;  /* Actually an enum; 0 == success. */
 typedef void* hipCtx_t;
@@ -262,7 +262,7 @@ struct hip_runtime_fn_info
 };
 
 /* Structure describing the run-time and grid properties of an HSA kernel
-   lauch.  This needs to match the format passed to GOMP_OFFLOAD_run.  */
+   launch.  This needs to match the format passed to GOMP_OFFLOAD_run.  */
 
 struct GOMP_kernel_launch_attributes
 {
@@ -1244,7 +1244,7 @@ get_cu_count (struct agent_info *agent)
 static int
 limit_worker_threads (int threads)
 {
-  /* FIXME Do something more inteligent here.
+  /* FIXME Do something more intelligent here.
      GCN can always run 4 threads within a Compute Unit, but
      more than that depends on register usage.  */
   if (threads > 16)
@@ -1831,7 +1831,7 @@ max_isa_vgprs (int isa)
    while setting up each team.  This is purely a performance optimization.
 
    The stack space is used by all kernels.  We must allocate it in such a
-   way that the reverse offload implmentation can access the data.
+   way that the reverse offload implementation can access the data.
 
    Allocating this memory costs performance, so this function will reuse an
    existing allocation if a large enough one is idle.
@@ -3603,7 +3603,7 @@ GOMP_OFFLOAD_get_name (void)
 }
 
 /* Return the UID; if not available return NULL.
-   Returns freshly allocated memoy.  */
+   Returns freshly allocated memory.  */
 
 const char *
 GOMP_OFFLOAD_get_uid (int ord)
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c
index e1c97a5fa2ed..377893e6b703 100644
--- a/libgomp/plugin/plugin-nvptx.c
+++ b/libgomp/plugin/plugin-nvptx.c
@@ -1277,7 +1277,7 @@ GOMP_OFFLOAD_get_name (void)
 }
 
 /* Return the UID; if not available return NULL.
-   Returns freshly allocated memoy.  */
+   Returns freshly allocated memory.  */
 
 const char *
 GOMP_OFFLOAD_get_uid (int ord)
diff --git a/libgomp/target.c b/libgomp/target.c
index d562b0493eac..7543065d1069 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -1617,7 +1617,7 @@ gomp_map_vars_internal (struct gomp_device_descr *devicep,
                gomp_copy_host2dev (devicep, aq,
                                    (void *) (tgt->tgt_start + tgt_size),
                                    (void *) hostaddrs[i], len, false, cbufp);
-               /* Save device address in hostaddr to permit latter availablity
+               /* Save device address in hostaddr to permit latter availability
                   when doing a deep-firstprivate with pointer attach.  */
                hostaddrs[i] = (void *) (tgt->tgt_start + tgt_size);
                tgt_size += len;
@@ -1795,7 +1795,7 @@ gomp_map_vars_internal (struct gomp_device_descr *devicep,
                         pointer members, the mapping and the attach can end up
                         in different sets; or the wrong mapping with the
                         attach. As there is no way to know whether a size
-                        zero like  'var->ptr[i][:0]' happend in the same
+                        zero like  'var->ptr[i][:0]' happened in the same
                         directive or not, the not-attached check is now
                         fully silenced for 'enter data'.  */
                      if (openmp_p && (pragma_kind & GOMP_MAP_VARS_ENTER_DATA))
@@ -3566,7 +3566,7 @@ GOMP_target_ext (int device, void (*fn) (void *), size_t 
mapnum,
 
 /* Reverse lookup (device addr -> host addr) for reverse offload.  We avoid
    keeping track of all variable handling - assuming that reverse offload 
occurs
-   ony very rarely.  Downside is that the reverse search is slow.  */
+   only very rarely.  Downside is that the reverse search is slow.  */
 
 struct gomp_splay_tree_rev_lookup_data {
   uintptr_t tgt_start;

Reply via email to