]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp: Fix typos in various files
authorDhruv Chawla <dhruvc@nvidia.com>
Thu, 14 May 2026 09:19:21 +0000 (09:19 +0000)
committerDhruv Chawla <dhruvc@nvidia.com>
Sat, 30 May 2026 14:19:37 +0000 (19:49 +0530)
Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
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.

libgomp/acinclude.m4
libgomp/configure
libgomp/env.c
libgomp/libgomp.h
libgomp/plugin/build-target-indirect-htab.h
libgomp/plugin/plugin-gcn.c
libgomp/plugin/plugin-nvptx.c
libgomp/target.c

index a174ff5881a0a6dc4ba70703aa31d15d9813c600..c75df4c374c13ef4c175577a554dcc985a478a68 100644 (file)
@@ -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
       ;;
index 6d3f9922f060ed2e52d9993a19d7d8c52f9704a5..87e7855ca3e6c400ed5b5a4494f1b8b930f264b4 100755 (executable)
@@ -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
index deb4f0bb431e886e00e05b10c84274317007c1a5..ff0044b42e20aa85bcced13ede5b832b6757e73f 100644 (file)
@@ -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.  */
index 42f3243929574dbbdc0100cc44d56e57a4d8ff05..41850d0f77de51072c1e6bb534fad18d564c73c8 100644 (file)
@@ -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;
index 319888fcf55077529738b69d39d00f4585e69296..a13f9717bf7bee628430cbfa97efe2470825cee7 100644 (file)
@@ -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;
index e47d8b2253b8e3a7f3043c79838b0068713e47a0..e415eea273dfdaf717abad94bc00f10d70f8e7ad 100644 (file)
@@ -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)
index e1c97a5fa2edf65b43d5694259cd93b24ca66385..377893e6b703b0e0dcc9a7aea4d2c65cb59db4f9 100644 (file)
@@ -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)
index d562b0493eacca01280e0526f885baa8b639d009..7543065d106980fdb6e4521b3f6e79f929681c20 100644 (file)
@@ -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;