https://gcc.gnu.org/g:83077438680471dcfcad9f83ef5a07cd4453b499
commit r17-1018-g83077438680471dcfcad9f83ef5a07cd4453b499 Author: Dhruv Chawla <[email protected]> Date: Wed May 13 11:19:47 2026 +0000 jit: Fix typos in various files Signed-off-by: Dhruv Chawla <[email protected]> gcc/jit/ChangeLog: * TODO.rst: Fix typos. * docs/cp/intro/tutorial03.rst: Likewise. * docs/cp/topics/functions.rst: Likewise. * docs/cp/topics/types.rst: Likewise. * docs/internals/index.rst: Likewise. * docs/intro/tutorial02.rst: Likewise. * docs/intro/tutorial03.rst: Likewise. * docs/topics/compatibility.rst: Likewise. * docs/topics/contexts.rst: Likewise. * docs/topics/functions.rst: Likewise. * docs/topics/performance.rst: Likewise. * docs/topics/types.rst: Likewise. * jit-builtins.cc (builtins_manager::make_type): Likewise. * jit-playback.cc (make_fake_args): Likewise. (get_source_file): Likewise. (get_source_line): Likewise. * jit-recording.h (types_kinda_same_internal): Likewise. * libgccjit.cc (gcc_jit_context_new_struct_constructor): Likewise. * libgccjit.h (gcc_jit_case_as_object): Likewise. Diff: --- gcc/jit/TODO.rst | 2 +- gcc/jit/docs/cp/intro/tutorial03.rst | 2 +- gcc/jit/docs/cp/topics/functions.rst | 2 +- gcc/jit/docs/cp/topics/types.rst | 2 +- gcc/jit/docs/internals/index.rst | 2 +- gcc/jit/docs/intro/tutorial02.rst | 2 +- gcc/jit/docs/intro/tutorial03.rst | 2 +- gcc/jit/docs/topics/compatibility.rst | 2 +- gcc/jit/docs/topics/contexts.rst | 2 +- gcc/jit/docs/topics/functions.rst | 2 +- gcc/jit/docs/topics/performance.rst | 2 +- gcc/jit/docs/topics/types.rst | 2 +- gcc/jit/jit-builtins.cc | 2 +- gcc/jit/jit-playback.cc | 6 +++--- gcc/jit/jit-recording.h | 2 +- gcc/jit/libgccjit.cc | 2 +- gcc/jit/libgccjit.h | 2 +- 17 files changed, 19 insertions(+), 19 deletions(-) diff --git a/gcc/jit/TODO.rst b/gcc/jit/TODO.rst index ca0ddbb821ed..12befc12fb8b 100644 --- a/gcc/jit/TODO.rst +++ b/gcc/jit/TODO.rst @@ -29,7 +29,7 @@ API gcc_jit_function_as_rvalue () -* expressing branch probabilies (like __builtin_expect):: +* expressing branch probabilities (like __builtin_expect):: extern gcc_jit_rvalue * gcc_jit_rvalue_likely (gcc_jit_rvalue *rvalue, diff --git a/gcc/jit/docs/cp/intro/tutorial03.rst b/gcc/jit/docs/cp/intro/tutorial03.rst index e1fe3991d320..57ba32cb92a9 100644 --- a/gcc/jit/docs/cp/intro/tutorial03.rst +++ b/gcc/jit/docs/cp/intro/tutorial03.rst @@ -111,7 +111,7 @@ an assignment: a value that can be computed somehow, and assigned *to* a storage area (such as a variable). It has a specific :type:`gccjit::type`. -Anothe important class is :type:`gccjit::lvalue`. +Another important class is :type:`gccjit::lvalue`. A :type:`gccjit::lvalue`. is something that can of the *left*-hand side of an assignment: a storage area (such as a variable). diff --git a/gcc/jit/docs/cp/topics/functions.rst b/gcc/jit/docs/cp/topics/functions.rst index 5e05ffb62d0b..196063e68a74 100644 --- a/gcc/jit/docs/cp/topics/functions.rst +++ b/gcc/jit/docs/cp/topics/functions.rst @@ -272,7 +272,7 @@ Statements std::vector <gccjit::case_> cases,\ gccjit::location loc) - Terminate a block by adding evalation of an rvalue, then performing + Terminate a block by adding evaluation of an rvalue, then performing a multiway branch. This is roughly equivalent to this C code: diff --git a/gcc/jit/docs/cp/topics/types.rst b/gcc/jit/docs/cp/topics/types.rst index 8e75aff3a06b..67742eef5f87 100644 --- a/gcc/jit/docs/cp/topics/types.rst +++ b/gcc/jit/docs/cp/topics/types.rst @@ -128,7 +128,7 @@ Structures and unions .. class:: gccjit::struct_ -A compound type analagous to a C `struct`. +A compound type analogous to a C `struct`. :class:`gccjit::struct_` is a subclass of :class:`gccjit::type` (and thus of :class:`gccjit::object` in turn). diff --git a/gcc/jit/docs/internals/index.rst b/gcc/jit/docs/internals/index.rst index ce8c94f22afb..e0e5833f9b71 100644 --- a/gcc/jit/docs/internals/index.rst +++ b/gcc/jit/docs/internals/index.rst @@ -229,7 +229,7 @@ environment variables need to be set up: For example, to run a binary that uses the library against a non-installed build of the library in LIBGCCJIT_BUILD_DIR you need an invocation of the -client code like this, to preprend the dir to each of the environment +client code like this, to prepend the dir to each of the environment variables: .. code-block:: console diff --git a/gcc/jit/docs/intro/tutorial02.rst b/gcc/jit/docs/intro/tutorial02.rst index 562fad4636a9..0535aa092899 100644 --- a/gcc/jit/docs/intro/tutorial02.rst +++ b/gcc/jit/docs/intro/tutorial02.rst @@ -260,7 +260,7 @@ away with having a single error-handling check in your code: } For more information, see the :ref:`error-handling guide <error-handling>` -within the Topic eference. +within the Topic reference. Options diff --git a/gcc/jit/docs/intro/tutorial03.rst b/gcc/jit/docs/intro/tutorial03.rst index af771ce55cea..15e68f77a5f3 100644 --- a/gcc/jit/docs/intro/tutorial03.rst +++ b/gcc/jit/docs/intro/tutorial03.rst @@ -104,7 +104,7 @@ an assignment: a value that can be computed somehow, and assigned *to* a storage area (such as a variable). It has a specific :c:expr:`gcc_jit_type *`. -Anothe important class is :c:expr:`gcc_jit_lvalue *`. +Another important class is :c:expr:`gcc_jit_lvalue *`. A :c:expr:`gcc_jit_lvalue *`. is something that can of the *left*-hand side of an assignment: a storage area (such as a variable). diff --git a/gcc/jit/docs/topics/compatibility.rst b/gcc/jit/docs/topics/compatibility.rst index 44410a738baf..6f85f51639bc 100644 --- a/gcc/jit/docs/topics/compatibility.rst +++ b/gcc/jit/docs/topics/compatibility.rst @@ -30,7 +30,7 @@ libgccjit.h. locked-down at this time. API compatibility is achieved by extending the API rather than changing -it. For ABI compatiblity, we avoid bumping the SONAME, and instead use +it. For ABI compatibility, we avoid bumping the SONAME, and instead use symbol versioning to tag each symbol, so that a binary linked against libgccjit.so is tagged according to the symbols that it uses. diff --git a/gcc/jit/docs/topics/contexts.rst b/gcc/jit/docs/topics/contexts.rst index 7b17780667b1..4bfe9ed8b00a 100644 --- a/gcc/jit/docs/topics/contexts.rst +++ b/gcc/jit/docs/topics/contexts.rst @@ -216,7 +216,7 @@ Debugging To contrast the above: :c:func:`gcc_jit_context_dump_to_file` dumps the current state of a context to the given path, whereas :c:func:`gcc_jit_context_set_logfile` enables on-going logging of -future activies on a context to the given `FILE *`. +future activities on a context to the given `FILE *`. .. function:: void\ diff --git a/gcc/jit/docs/topics/functions.rst b/gcc/jit/docs/topics/functions.rst index d2b528ad3a3a..66d4b6b2fdd4 100644 --- a/gcc/jit/docs/topics/functions.rst +++ b/gcc/jit/docs/topics/functions.rst @@ -502,7 +502,7 @@ Statements int num_cases,\ gcc_jit_case **cases) - Terminate a block by adding evalation of an rvalue, then performing + Terminate a block by adding evaluation of an rvalue, then performing a multiway branch. This is roughly equivalent to this C code: diff --git a/gcc/jit/docs/topics/performance.rst b/gcc/jit/docs/topics/performance.rst index f31e77142d35..827580ba1c74 100644 --- a/gcc/jit/docs/topics/performance.rst +++ b/gcc/jit/docs/topics/performance.rst @@ -32,7 +32,7 @@ of "timer items": as control flow moves through your code, you can push and pop named items relating to your code onto the stack, and the timer will account the time spent accordingly. -You can also asssociate a timer with a :c:type:`gcc_jit_context`, in +You can also associate a timer with a :c:type:`gcc_jit_context`, in which case the time spent inside compilation will be subdivided. For example, the following code uses a timer, recording client items diff --git a/gcc/jit/docs/topics/types.rst b/gcc/jit/docs/topics/types.rst index d9f7e7bf2bf0..f3b5b2945e53 100644 --- a/gcc/jit/docs/topics/types.rst +++ b/gcc/jit/docs/topics/types.rst @@ -257,7 +257,7 @@ Structures and unions .. c:type:: gcc_jit_struct -A compound type analagous to a C `struct`. +A compound type analogous to a C `struct`. .. c:type:: gcc_jit_field diff --git a/gcc/jit/jit-builtins.cc b/gcc/jit/jit-builtins.cc index 53407b744113..539ee132393d 100644 --- a/gcc/jit/jit-builtins.cc +++ b/gcc/jit/jit-builtins.cc @@ -347,7 +347,7 @@ builtins_manager::make_type (enum jit_builtin_type type_id) - similarly for DEF_FUNCTION_TYPE_VAR_n, but setting the "is_variadic" argument. - DEF_POINTER_TYPE is handled by make_ptr_type. - That should handle everything, but just in case we also suppy a + That should handle everything, but just in case we also supply a gcc_unreachable default clause. */ switch (type_id) { diff --git a/gcc/jit/jit-playback.cc b/gcc/jit/jit-playback.cc index 62aa5c2c0b98..56c9413f8c55 100644 --- a/gcc/jit/jit-playback.cc +++ b/gcc/jit/jit-playback.cc @@ -3262,7 +3262,7 @@ make_fake_args (vec <char *> *argvec, driver to expand (). For cc1 etc, the driver processes OPTION_DEFAULT_SPECS and, - if not overriden, injects the defaults as extra arguments to + if not overridden, injects the defaults as extra arguments to cc1 etc. For the jit case, we need to add these arguments here. The input format (using the specs language) means that we have to run @@ -4024,7 +4024,7 @@ playback::context:: get_source_file (const char *filename) { /* Locate the file. - For simplicitly, this is currently a linear search. + For simplicity, this is currently a linear search. Replace with a hash if this shows up in the profile. */ int i; source_file *file; @@ -4065,7 +4065,7 @@ playback::source_file:: get_source_line (int line_num) { /* Locate the line. - For simplicitly, this is currently a linear search. + For simplicity, this is currently a linear search. Replace with a hash if this shows up in the profile. */ int i; source_line *line; diff --git a/gcc/jit/jit-recording.h b/gcc/jit/jit-recording.h index ee1206731174..e3e96d77a0b1 100644 --- a/gcc/jit/jit-recording.h +++ b/gcc/jit/jit-recording.h @@ -2972,7 +2972,7 @@ types_kinda_same_internal (recording::type *a, if the types and pointer depth are the same, otherwise false. For array and vector types the number of element also - has to match, aswell as the element types themself. */ + has to match, as well as the element types themself. */ inline bool types_kinda_same (recording::type *a, recording::type *b) { diff --git a/gcc/jit/libgccjit.cc b/gcc/jit/libgccjit.cc index 98a5b56d7fe9..f45d2009263e 100644 --- a/gcc/jit/libgccjit.cc +++ b/gcc/jit/libgccjit.cc @@ -1502,7 +1502,7 @@ gcc_jit_context_new_struct_constructor (gcc_jit_context *ctxt, type->get_debug_string (), n_fields); - /* It is OK if fields are null here, indicating definiton order, + /* It is OK if fields are null here, indicating definition order, but there has to be a values array. */ RETURN_NULL_IF_FAIL (values, ctxt, loc, diff --git a/gcc/jit/libgccjit.h b/gcc/jit/libgccjit.h index 08ba5f666559..c749d2b8c028 100644 --- a/gcc/jit/libgccjit.h +++ b/gcc/jit/libgccjit.h @@ -1637,7 +1637,7 @@ gcc_jit_context_new_case (gcc_jit_context *ctxt, extern gcc_jit_object * gcc_jit_case_as_object (gcc_jit_case *case_); -/* Terminate a block by adding evalation of an rvalue, then performing +/* Terminate a block by adding evaluation of an rvalue, then performing a multiway branch. This is roughly equivalent to this C code:
