https://gcc.gnu.org/g:619a4139950845ab9172e93c8ec95fdb363541df

commit r16-9319-g619a4139950845ab9172e93c8ec95fdb363541df
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 99890a463d4c..361b82ccd82d 100644
--- a/gcc/config/aarch64/aarch64.cc
+++ b/gcc/config/aarch64/aarch64.cc
@@ -32406,7 +32406,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 5edddd7f36e1..2832a447e3ee 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -10696,8 +10696,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 a9fcce7850fb..11b358f4160f 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -7425,8 +7425,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.",

Reply via email to