[gcc r15-11405] Fix some mode switching doc/comment typos

Alice Carlotti via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:ea55aceb4828e0ed426a4076bfc1d1fd18f7229e

commit r15-11405-gea55aceb4828e0ed426a4076bfc1d1fd18f7229e
Author: Alice Carlotti <[email protected]>
Date:   Fri Mar 27 15:21:58 2026 +0000

    Fix some mode switching doc/comment typos
    
    I found a few typos and inconsistent variable names in mode switching
    comments and documentation.  Fix them.
    
    gcc/ChangeLog:
    
            * config/aarch64/aarch64.cc (aarch64_mode_confluence): Fix
            comment typo.
            * target.def (mode_switching): Fix incorrect variable names in
            documentation.
            * doc/tm.texi: Regenerate.

Diff:
---
 gcc/config/aarch64/aarch64.cc | 2 +-
 gcc/doc/tm.texi               | 4 ++--
 gcc/target.def                | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc
index 632cd440020d..75377626e70b 100644
--- a/gcc/config/aarch64/aarch64.cc
+++ b/gcc/config/aarch64/aarch64.cc
@@ -30880,7 +30880,7 @@ aarch64_mode_confluence (int entity, int mode1, int mode2)
 }
 
 /* Implement TARGET_MODE_BACKPROP for an entity that either stays
-   NO throughput, or makes one transition from NO to YES.  */
+   NO throughout, or makes one transition from NO to YES.  */
 
 static aarch64_tristate_mode
 aarch64_one_shot_backprop (aarch64_tristate_mode mode1,
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index a96700c0d38e..ca8cc38809f9 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -10637,8 +10637,8 @@ mode or ``no mode'', depending on context.
 
 @deftypefn {Target Hook} void TARGET_MODE_EMIT (int @var{entity}, int @var{mode}, int @var{prev_mode}, HARD_REG_SET @var{regs_live})
 Generate one or more insns to set @var{entity} to @var{mode}.
-@var{hard_reg_live} is the set of hard registers live at the point where
-the insn(s) are to be inserted. @var{prev_moxde} indicates the mode
+@var{regs_live} is the set of hard registers live at the point where
+the insn(s) are to be inserted. @var{prev_mode} indicates the mode
 to switch from, or is the number of modes if the previous mode is not
 known.  Sets of a lower numbered entity will be emitted before
 sets of a higher numbered entity to a mode of the same or lower priority.
diff --git a/gcc/target.def b/gcc/target.def
index 6c7cdc8126b2..8bc56113c06e 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -7325,8 +7325,8 @@ HOOK_VECTOR (TARGET_TOGGLE_, mode_switching)
 DEFHOOK
 (emit,
  "Generate one or more insns to set @var{entity} to @var{mode}.\n\
-@var{hard_reg_live} is the set of hard registers live at the point where\n\
-the insn(s) are to be inserted. @var{prev_moxde} indicates the mode\n\
+@var{regs_live} is the set of hard registers live at the point where\n\
+the insn(s) are to be inserted. @var{prev_mode} indicates the mode\n\
 to switch from, or is the number of modes if the previous mode is not\n\
 known.  Sets of a lower numbered entity will be emitted before\n\
 sets of a higher numbered entity to a mode of the same or lower priority.",
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.