]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix some mode switching doc/comment typos
authorAlice Carlotti <alice.carlotti@arm.com>
Fri, 27 Mar 2026 15:21:58 +0000 (15:21 +0000)
committerAlice Carlotti <alice.carlotti@arm.com>
Wed, 22 Apr 2026 15:58:01 +0000 (16:58 +0100)
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.

gcc/config/aarch64/aarch64.cc
gcc/doc/tm.texi
gcc/target.def

index 693ce8b4d25cd8cef03e415ea1c033cb9311cb21..6afd79135608dc8fa92ef96f95f4df2e21a8a6c3 100644 (file)
@@ -32373,7 +32373,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,
index 5edddd7f36e17fd121a1dff6229d0ed7d5034760..2832a447e3ee1a8f6ea7880de2737ee8d1ed0949 100644 (file)
@@ -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.
index a9fcce7850fba9999d5961bf298ee4a7c93b411b..11b358f4160f0ec8d91dfdfe5c406e069ae9263c 100644 (file)
@@ -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.",