From: Alice Carlotti Date: Fri, 27 Mar 2026 15:21:58 +0000 (+0000) Subject: Fix some mode switching doc/comment typos X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fabd6595c67db22dd94f055f35dd15b4367a7625;p=thirdparty%2Fgcc.git 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 --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 693ce8b4d25..6afd7913560 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -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, diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 5edddd7f36e..2832a447e3e 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 a9fcce7850f..11b358f4160 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.",