From: Dhruv Chawla <[email protected]> Hi Jeff,
This patch undoes the change to docs/_build/texinfo/libgccjit.texi. I am honestly not sure where that file comes from as I cannot find the changed string anywhere in the source. --- >8 --- 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. --- 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 ca0ddbb821e..12befc12fb8 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 e1fe3991d32..57ba32cb92a 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 5e05ffb62d0..196063e68a7 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 8e75aff3a06..67742eef5f8 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 ce8c94f22af..e0e5833f9b7 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 562fad4636a..0535aa09289 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 af771ce55ce..15e68f77a5f 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 44410a738ba..6f85f51639b 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 7b17780667b..4bfe9ed8b00 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 d2b528ad3a3..66d4b6b2fdd 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 f31e77142d3..827580ba1c7 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 d9f7e7bf2bf..f3b5b2945e5 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 53407b74411..539ee132393 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 62aa5c2c0b9..56c9413f8c5 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 ee120673117..e3e96d77a0b 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 98a5b56d7fe..f45d2009263 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 08ba5f66655..c749d2b8c02 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: -- 2.43.0
