From: Dhruv Chawla <[email protected]>
Signed-off-by: Dhruv Chawla <[email protected]>
include/ChangeLog:
* demangle.h (enum demangle_component_type): Fix typos.
* doubly-linked-list.h: Likewise.
* floatformat.h (struct floatformat): Likewise.
* gcc-cp-fe.def (GCC_METHOD1): Likewise.
(GCC_METHOD2): Likewise.
* gomp-constants.h (enum gomp_map_kind): Likewise.
(GOMP_TARGET_ARG_THREAD_LIMIT): Likewise.
* hsa.h: Likewise.
* hsa_ext_amd.h (hsa_amd_signal_value_pointer): Likewise.
(hsa_amd_memory_lock): Likewise.
(hsa_amd_pointer_info): Likewise.
(hsa_amd_ipc_memory_create): Likewise.
(hsa_amd_ipc_signal_create): Likewise.
* libiberty.h (PEX_STDOUT_APPEND): Likewise.
* longlong.h: Likewise.
* plugin-api.h (enum ld_plugin_status): Likewise.
* splay-tree.h (struct splay_tree_s): Likewise.
---
include/demangle.h | 2 +-
include/doubly-linked-list.h | 2 +-
include/floatformat.h | 2 +-
include/gcc-cp-fe.def | 4 ++--
include/gomp-constants.h | 4 ++--
include/hsa.h | 28 ++++++++++++++--------------
include/hsa_ext_amd.h | 16 ++++++++--------
include/libiberty.h | 4 ++--
include/longlong.h | 2 +-
include/plugin-api.h | 10 +++++-----
include/splay-tree.h | 2 +-
11 files changed, 38 insertions(+), 38 deletions(-)
diff --git a/include/demangle.h b/include/demangle.h
index e9165d6b083..db2d2f48530 100644
--- a/include/demangle.h
+++ b/include/demangle.h
@@ -314,7 +314,7 @@ enum demangle_component_type
/* C++11: An rvalue reference modifying a member function. The one
subtree is the type which is being referenced. */
DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS,
- /* C++23: A member function with explict object parameter. */
+ /* C++23: A member function with explicit object parameter. */
DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION,
/* A vendor qualifier. The left subtree is the type which is being
qualified, and the right subtree is the name of the
diff --git a/include/doubly-linked-list.h b/include/doubly-linked-list.h
index d46d773800b..88a6ea6530a 100644
--- a/include/doubly-linked-list.h
+++ b/include/doubly-linked-list.h
@@ -64,7 +64,7 @@
or as a whole via LINKED_LIST_MUTATIVE_OPS_PROTOTYPE for the prototypes, and
LINKED_LIST_MUTATIVE_OPS_DECL for the implementations. */
-/* Append the given node new_ to the exising list.
+/* Append the given node new_ to the existing list.
Precondition: prev and next of new_ must be NULL. */
#define LINKED_LIST_APPEND(LTYPE) LTYPE##_append
diff --git a/include/floatformat.h b/include/floatformat.h
index bf3190e805f..954033d625f 100644
--- a/include/floatformat.h
+++ b/include/floatformat.h
@@ -67,7 +67,7 @@ struct floatformat
unsigned int exp_start;
unsigned int exp_len;
/* Bias added to a "true" exponent to form the biased exponent. It
- is intentionally signed as, otherwize, -exp_bias can turn into a
+ is intentionally signed as, otherwise, -exp_bias can turn into a
very large number (e.g., given the exp_bias of 0x3fff and a 64
bit long, the equation (long)(1 - exp_bias) evaluates to
4294950914) instead of -16382). */
diff --git a/include/gcc-cp-fe.def b/include/gcc-cp-fe.def
index b3c3c7928ca..2561b75fe1b 100644
--- a/include/gcc-cp-fe.def
+++ b/include/gcc-cp-fe.def
@@ -138,7 +138,7 @@ GCC_METHOD1 (int /* bool */, push_function,
Then, as we set up the binding context to compile a code snippet at
point 3, we may choose to activate c_1, o_0 and p upfront,
declaring and discarding c, c_0 and o, and then reentering the
- funciton scope to declare c_1, o_0 and p; or we can wait for oracle
+ function scope to declare c_1, o_0 and p; or we can wait for oracle
lookups of c, o or p. If c is looked up, and the debugger resolves
c in the scope to c_1, it is expected to enter the function scope
from the top level, declare c, leave it, reenter it, declare c_0,
@@ -258,7 +258,7 @@ GCC_METHOD2 (int /* bool */, add_using_decl,
SYM_KIND, in addition to any other applicable flags, and pass as
NAME a string starting with the two-character mangling for operator
name: "ps" for unary plus, "mL" for multiply and assign, *=; etc.
- Use "cv" for type converstion operators (the target type portion
+ Use "cv" for type conversion operators (the target type portion
may be omitted, as it is taken from the return type in SYM_TYPE).
For operator"", use "li" followed by the identifier (the mangled
name mandates digits specifying the length of the identifier; if
diff --git a/include/gomp-constants.h b/include/gomp-constants.h
index 0a0761043f9..357b1ff82ac 100644
--- a/include/gomp-constants.h
+++ b/include/gomp-constants.h
@@ -160,7 +160,7 @@ enum gomp_map_kind
| GOMP_MAP_FLAG_SPECIAL_2
| GOMP_MAP_FLAG_SPECIAL | 0),
/* On a location of a pointer/reference that is assumed to be already
mapped
- earlier, store the translated address of the preceeding mapping.
+ earlier, store the translated address of the preceding mapping.
No refcount is bumped by this, and the store is done unconditionally.
*/
GOMP_MAP_ALWAYS_POINTER = (GOMP_MAP_FLAG_SPECIAL_2
| GOMP_MAP_FLAG_SPECIAL | 1),
@@ -381,7 +381,7 @@ enum gomp_map_kind
/* Target argument index of THREAD_LIMIT. */
#define GOMP_TARGET_ARG_THREAD_LIMIT (2 << 8)
-/* If the value is directly embeded in target argument, it should be a 16-bit
+/* If the value is directly embedded in target argument, it should be a 16-bit
at most and shifted by this many bits. */
#define GOMP_TARGET_ARG_VALUE_SHIFT 16
diff --git a/include/hsa.h b/include/hsa.h
index 28867a91a7c..a0aa0eddbb9 100644
--- a/include/hsa.h
+++ b/include/hsa.h
@@ -802,7 +802,7 @@ typedef enum {
*/
HSA_AGENT_INFO_FEATURE = 2,
/**
- * @deprecated Query ::HSA_ISA_INFO_MACHINE_MODELS for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_MACHINE_MODELS for a given instruction
set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
@@ -812,7 +812,7 @@ typedef enum {
*/
HSA_AGENT_INFO_MACHINE_MODEL = 3,
/**
- * @deprecated Query ::HSA_ISA_INFO_PROFILES for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_PROFILES for a given instruction set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
@@ -823,7 +823,7 @@ typedef enum {
HSA_AGENT_INFO_PROFILE = 4,
/**
* @deprecated Query ::HSA_ISA_INFO_DEFAULT_FLOAT_ROUNDING_MODES for a given
- * intruction set architecture supported by the agent instead. If more than
+ * instruction set architecture supported by the agent instead. If more than
* one ISA is supported by the agent, the returned value corresponds to the
* first ISA enumerated by ::hsa_agent_iterate_isas.
*
@@ -834,7 +834,7 @@ typedef enum {
HSA_AGENT_INFO_DEFAULT_FLOAT_ROUNDING_MODE = 5,
/**
* @deprecated Query ::HSA_ISA_INFO_BASE_PROFILE_DEFAULT_FLOAT_ROUNDING_MODES
- * for a given intruction set architecture supported by the agent instead.
If
+ * for a given instruction set architecture supported by the agent instead.
If
* more than one ISA is supported by the agent, the returned value
corresponds
* to the first ISA enumerated by ::hsa_agent_iterate_isas.
*
@@ -846,7 +846,7 @@ typedef enum {
*/
HSA_AGENT_INFO_BASE_PROFILE_DEFAULT_FLOAT_ROUNDING_MODES = 23,
/**
- * @deprecated Query ::HSA_ISA_INFO_FAST_F16_OPERATION for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_FAST_F16_OPERATION for a given
instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
@@ -859,7 +859,7 @@ typedef enum {
HSA_AGENT_INFO_FAST_F16_OPERATION = 24,
/**
* @deprecated Query ::HSA_WAVEFRONT_INFO_SIZE for a given wavefront and
- * intruction set architecture supported by the agent instead. If more than
+ * instruction set architecture supported by the agent instead. If more than
* one ISA is supported by the agent, the returned value corresponds to the
* first ISA enumerated by ::hsa_agent_iterate_isas and the first wavefront
* enumerated by ::hsa_isa_iterate_wavefronts for that ISA.
@@ -870,7 +870,7 @@ typedef enum {
*/
HSA_AGENT_INFO_WAVEFRONT_SIZE = 6,
/**
- * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_DIM for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_DIM for a given instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
@@ -883,7 +883,7 @@ typedef enum {
*/
HSA_AGENT_INFO_WORKGROUP_MAX_DIM = 7,
/**
- * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_SIZE for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_WORKGROUP_MAX_SIZE for a given
instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
@@ -894,7 +894,7 @@ typedef enum {
*/
HSA_AGENT_INFO_WORKGROUP_MAX_SIZE = 8,
/**
- * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_DIM for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_DIM for a given instruction set
* architecture supported by the agent instead.
*
* Maximum number of work-items of each dimension of a grid. Each maximum
must
@@ -906,7 +906,7 @@ typedef enum {
*/
HSA_AGENT_INFO_GRID_MAX_DIM = 9,
/**
- * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_SIZE for a given intruction set
+ * @deprecated Query ::HSA_ISA_INFO_GRID_MAX_SIZE for a given instruction set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
@@ -917,7 +917,7 @@ typedef enum {
*/
HSA_AGENT_INFO_GRID_MAX_SIZE = 10,
/**
- * @deprecated Query ::HSA_ISA_INFO_FBARRIER_MAX_SIZE for a given intruction
+ * @deprecated Query ::HSA_ISA_INFO_FBARRIER_MAX_SIZE for a given instruction
* set architecture supported by the agent instead. If more than one ISA is
* supported by the agent, the returned value corresponds to the first ISA
* enumerated by ::hsa_agent_iterate_isas.
@@ -1093,7 +1093,7 @@ typedef enum {
} hsa_exception_policy_t;
/**
- * @deprecated Use ::hsa_isa_get_exception_policies for a given intruction set
+ * @deprecated Use ::hsa_isa_get_exception_policies for a given instruction set
* architecture supported by the agent instead. If more than one ISA is
* supported by the agent, this function uses the first value returned by
* ::hsa_agent_iterate_isas.
@@ -3191,7 +3191,7 @@ typedef enum {
/**
* Updates to memory in this region can be performed by a single agent at
* a time. If a different agent in the system is allowed to access the
- * region, the application must explicitely invoke ::hsa_memory_assign_agent
+ * region, the application must explicitly invoke ::hsa_memory_assign_agent
* in order to transfer ownership to that agent for a particular buffer.
*/
HSA_REGION_GLOBAL_FLAG_COARSE_GRAINED = 4
@@ -3402,7 +3402,7 @@ hsa_status_t HSA_API hsa_memory_copy(
* @brief Change the ownership of a global, coarse-grained buffer.
*
* @details The contents of a coarse-grained buffer are visible to an agent
- * only after ownership has been explicitely transferred to that agent. Once
the
+ * only after ownership has been explicitly transferred to that agent. Once the
* operation completes, the previous owner cannot longer access the data in the
* buffer.
*
diff --git a/include/hsa_ext_amd.h b/include/hsa_ext_amd.h
index 16a6aa01d25..932589e1a61 100644
--- a/include/hsa_ext_amd.h
+++ b/include/hsa_ext_amd.h
@@ -634,7 +634,7 @@ hsa_status_t hsa_amd_signal_value_pointer(hsa_signal_t
signal,
volatile hsa_signal_value_t**
value_ptr);
/**
- * @brief Asyncronous signal handler function type.
+ * @brief Asynchronous signal handler function type.
*
* @details Type definition of callback function to be used with
* hsa_amd_signal_async_handler. This callback is invoked if the associated
@@ -1528,7 +1528,7 @@ hsa_status_t HSA_API hsa_amd_memory_lock(void* host_ptr,
size_t size,
* locked memory, then the overlap area is kept locked (i.e. multiple mappings
are permitted).
* In this case, the same input @p host_ptr may give different locked @p
agent_ptr and when it
* does, they are not necessarily coherent (i.e. accessing either @p agent_ptr
is not equivalent).
- * Acesses to the memory via @p agent_ptr have the same access properties as
memory allocated from
+ * Accesses to the memory via @p agent_ptr have the same access properties as
memory allocated from
* @p pool as determined by ::hsa_amd_memory_pool_get_info and
::hsa_amd_agent_memory_pool_get_info
* (ex. coarse/fine grain, platform atomic support, link info). Physical
composition and placement
* of the memory (ex. page size, NUMA binding) is not changed.
@@ -1814,10 +1814,10 @@ typedef struct hsa_amd_pointer_info_s {
* @param[in] alloc Function pointer to an allocator used to allocate the
* @p accessible array. If NULL @p accessible will not be returned.
*
- * @param[out] num_agents_accessible Recieves the count of agents in
+ * @param[out] num_agents_accessible Receives the count of agents in
* @p accessible. If NULL @p accessible will not be returned.
*
- * @param[out] accessible Recieves a pointer to the array, allocated by @p
alloc,
+ * @param[out] accessible Receives a pointer to the array, allocated by @p
alloc,
* holding the list of agents which may directly access the allocation.
* May be NULL.
*
@@ -1843,7 +1843,7 @@ hsa_status_t HSA_API hsa_amd_pointer_info(const void* ptr,
* @param[in] ptr Pointer to the first byte of an allocation known to ROCr
* with which to associate @p userdata.
*
- * @param[in] userdata Abitrary pointer to associate with the allocation.
+ * @param[in] userdata Arbitrary pointer to associate with the allocation.
*
* @retval HSA_STATUS_SUCCESS @p userdata successfully stored.
*
@@ -1915,7 +1915,7 @@ hsa_status_t HSA_API hsa_amd_ipc_memory_create(void* ptr,
size_t len,
* @param[in] mapping_agents List of agents to access the shared memory.
* Ignored if @p num_agents is zero.
*
- * @param[out] mapped_ptr Recieves a process local pointer to the shared
memory.
+ * @param[out] mapped_ptr Receives a process local pointer to the shared
memory.
*
* @retval HSA_STATUS_SUCCESS if memory is successfully imported.
*
@@ -1991,7 +1991,7 @@ hsa_status_t HSA_API
hsa_amd_ipc_signal_create(hsa_signal_t signal, hsa_amd_ipc_
*
* @param[in] handle Pointer to the identifier for the shared signal.
*
- * @param[out] signal Recieves a process local signal handle to the shared
signal.
+ * @param[out] signal Receives a process local signal handle to the shared
signal.
*
* @retval HSA_STATUS_SUCCESS if the signal is successfully imported.
*
@@ -2111,7 +2111,7 @@ typedef enum hsa_amd_queue_priority_s {
} hsa_amd_queue_priority_t;
/**
- * @brief Modifies the dispatch and wavefront scheduling prioirty for a
+ * @brief Modifies the dispatch and wavefront scheduling priority for a
* given compute queue. The default is HSA_AMD_QUEUE_PRIORITY_NORMAL.
*
* @param[in] queue Compute queue to apply new priority to.
diff --git a/include/libiberty.h b/include/libiberty.h
index 1af4fa86101..ae0e94bc4c5 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -3,7 +3,7 @@
Copyright (C) 1997-2026 Free Software Foundation, Inc.
Note - certain prototypes declared in this header file are for
- functions whoes implementation copyright does not belong to the
+ functions whose implementation copyright does not belong to the
FSF. Those prototypes are present in this file for reference
purposes only and their presence in this file should not construed
as an indication of ownership by the FSF of the implementation of
@@ -494,7 +494,7 @@ extern struct pex_obj *pex_init (int flags, const char
*pname,
/* Append stdout to existing file instead of truncating it. */
#define PEX_STDOUT_APPEND 0x100
-/* Thes same as PEX_STDOUT_APPEND, but for STDERR. */
+/* The same as PEX_STDOUT_APPEND, but for STDERR. */
#define PEX_STDERR_APPEND 0x200
/* Execute one program. Returns NULL on success. On error returns an
diff --git a/include/longlong.h b/include/longlong.h
index 0877267932f..213cbf4948a 100644
--- a/include/longlong.h
+++ b/include/longlong.h
@@ -1084,7 +1084,7 @@ extern UDItype __umulsidi3 (USItype, USItype);
#elif __riscv_xlen == 64
#define MULUW3 "call __muldi3"
#else
-#error unsupport xlen
+#error unsupported xlen
#endif /* __riscv_xlen */
/* We rely on the fact that MULUW3 doesn't clobber the t-registers.
It can get better register allocation result. */
diff --git a/include/plugin-api.h b/include/plugin-api.h
index ee5a63df561..60936228acd 100644
--- a/include/plugin-api.h
+++ b/include/plugin-api.h
@@ -37,7 +37,7 @@
#error cannot find uint64_t type
#endif
-/* Detect endianess based on gcc's (>=4.6.0) __BYTE_ORDER__ macro. */
+/* Detect endianness based on gcc's (>=4.6.0) __BYTE_ORDER__ macro. */
#if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \
defined(__ORDER_LITTLE_ENDIAN__) && defined(__ORDER_PDP_ENDIAN__)
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
@@ -64,7 +64,7 @@
#include <machine/endian.h>
#endif
-/* Detect endianess based on __BYTE_ORDER. */
+/* Detect endianness based on __BYTE_ORDER. */
#ifdef __BYTE_ORDER
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define PLUGIN_LITTLE_ENDIAN 1
@@ -72,7 +72,7 @@
#define PLUGIN_BIG_ENDIAN 1
#endif
-/* Detect endianess based on _BYTE_ORDER. */
+/* Detect endianness based on _BYTE_ORDER. */
#elif defined _BYTE_ORDER
#if _BYTE_ORDER == _LITTLE_ENDIAN
#define PLUGIN_LITTLE_ENDIAN 1
@@ -160,7 +160,7 @@ struct ld_plugin_symbol
char unused;
char section_kind;
#else
-#error "Could not detect architecture endianess"
+#error "Could not detect architecture endianness"
#endif
int visibility;
uint64_t size;
@@ -403,7 +403,7 @@ enum ld_plugin_status
size_t* len);
/* The linker's interface for specifying the desired order of sections.
- The sections should be specifed using the array SECTION_LIST in the
+ The sections should be specified using the array SECTION_LIST in the
order in which they should appear in the final layout. NUM_SECTIONS
specifies the number of entries in each array. This should be invoked
in the all_symbols_read handler. */
diff --git a/include/splay-tree.h b/include/splay-tree.h
index 96a8a6c97a3..19890ade9eb 100644
--- a/include/splay-tree.h
+++ b/include/splay-tree.h
@@ -105,7 +105,7 @@ struct splay_tree_s {
/* The root of the tree. */
splay_tree_node root;
- /* The comparision function. */
+ /* The comparison function. */
splay_tree_compare_fn comp;
/* The deallocate-key function. NULL if no cleanup is necessary. */
--
2.43.0