https://gcc.gnu.org/g:6e6cc1deb9bf7ca7deac066f26c134b57ee50587

commit r16-2659-g6e6cc1deb9bf7ca7deac066f26c134b57ee50587
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Thu Jul 31 10:48:45 2025 +0200

    Fix comment typos - hanlde -> handle
    
    2025-07-31  Jakub Jelinek  <ja...@redhat.com>
    
            * gimple-ssa-store-merging.cc (find_bswap_or_nop): Fix comment 
typos,
            hanlde -> handle.
            * config/i386/i386.cc (ix86_gimple_fold_builtin, ix86_rtx_costs):
            Likewise.
            * config/i386/i386-features.cc (remove_partial_avx_dependency):
            Likewise.
    
            * gcc.target/i386/apx-1.c (apx_hanlder): Rename to ...
            (apx_handler): ... this.
            * gcc.target/i386/uintr-2.c (UINTR_hanlder): Rename to ...
            (UINTR_handler): ... this.
            * gcc.target/i386/uintr-5.c (UINTR_hanlder): Rename to ...
            (UINTR_handler): ... this.

Diff:
---
 gcc/config/i386/i386-features.cc        | 2 +-
 gcc/config/i386/i386.cc                 | 4 ++--
 gcc/gimple-ssa-store-merging.cc         | 4 ++--
 gcc/testsuite/gcc.target/i386/apx-1.c   | 2 +-
 gcc/testsuite/gcc.target/i386/uintr-2.c | 2 +-
 gcc/testsuite/gcc.target/i386/uintr-5.c | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/gcc/config/i386/i386-features.cc b/gcc/config/i386/i386-features.cc
index c131577805fa..53e86c8a4931 100644
--- a/gcc/config/i386/i386-features.cc
+++ b/gcc/config/i386/i386-features.cc
@@ -3226,7 +3226,7 @@ remove_partial_avx_dependency (void)
              break;
            }
 
-         /* Only hanlde conversion here.  */
+         /* Only handle conversion here.  */
          machine_mode src_mode
            = convert_p ? GET_MODE (XEXP (src, 0)) : VOIDmode;
          switch (src_mode)
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index 613f2b2139df..65e04d3760d5 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -20029,7 +20029,7 @@ ix86_gimple_fold_builtin (gimple_stmt_iterator *gsi)
        tree utype, ures, vce;
        utype = unsigned_type_for (TREE_TYPE (arg0));
        /* PABSB/W/D/Q store the unsigned result in dst, use ABSU_EXPR
-          instead of ABS_EXPR to hanlde overflow case(TYPE_MIN).  */
+          instead of ABS_EXPR to handle overflow case(TYPE_MIN).  */
        ures = gimple_build (&stmts, ABSU_EXPR, utype, arg0);
        gsi_insert_seq_before (gsi, stmts, GSI_SAME_STMT);
        loc = gimple_location (stmt);
@@ -23153,7 +23153,7 @@ ix86_rtx_costs (rtx x, machine_mode mode, int 
outer_code_i, int opno,
             So current solution is make constant disp as cheap as possible.  */
          if (GET_CODE (addr) == PLUS
              && x86_64_immediate_operand (XEXP (addr, 1), Pmode)
-             /* Only hanlde (reg + disp) since other forms of addr are mostly 
LEA,
+             /* Only handle (reg + disp) since other forms of addr are mostly 
LEA,
                 there's no additional cost for the plus of disp.  */
              && register_operand (XEXP (addr, 0), Pmode))
            {
diff --git a/gcc/gimple-ssa-store-merging.cc b/gcc/gimple-ssa-store-merging.cc
index ce56d97d4383..1c27c7b12d55 100644
--- a/gcc/gimple-ssa-store-merging.cc
+++ b/gcc/gimple-ssa-store-merging.cc
@@ -1033,7 +1033,7 @@ find_bswap_or_nop (gimple *stmt, struct symbolic_number 
*n, bool *bswap,
         source when rsize < range.  */
       if (n->range == orig_range
          /* There're case like 0x300000200 for uint32->uint64 cast,
-            Don't hanlde this.  */
+            Don't handle this.  */
          && n->range == TYPE_PRECISION (n->type)
          && ((orig_range == 32
               && optab_handler (rotl_optab, SImode) != CODE_FOR_nothing)
@@ -1043,7 +1043,7 @@ find_bswap_or_nop (gimple *stmt, struct symbolic_number 
*n, bool *bswap,
        {
          uint64_t range = (orig_range / BITS_PER_UNIT) * BITS_PER_MARKER;
          uint64_t count = (tmp_n & MARKER_MASK) * BITS_PER_MARKER;
-         /* .i.e. hanlde 0x203040506070800 when lower byte is zero.  */
+         /* .i.e. handle 0x203040506070800 when lower byte is zero.  */
          if (!count)
            {
              for (uint64_t i = 1; i != range / BITS_PER_MARKER; i++)
diff --git a/gcc/testsuite/gcc.target/i386/apx-1.c 
b/gcc/testsuite/gcc.target/i386/apx-1.c
index 4e580ecdf37d..b118928c3d54 100644
--- a/gcc/testsuite/gcc.target/i386/apx-1.c
+++ b/gcc/testsuite/gcc.target/i386/apx-1.c
@@ -3,6 +3,6 @@
 /* { dg-error "'-mapxf' is not supported for 32-bit code" "" { target ia32 } 0 
} */
 
 void
-apx_hanlder ()
+apx_handler ()
 {
 }
diff --git a/gcc/testsuite/gcc.target/i386/uintr-2.c 
b/gcc/testsuite/gcc.target/i386/uintr-2.c
index 0a83c662b949..a0d2514494e7 100644
--- a/gcc/testsuite/gcc.target/i386/uintr-2.c
+++ b/gcc/testsuite/gcc.target/i386/uintr-2.c
@@ -15,6 +15,6 @@ foo (void *frame, uword_t uirrv)
 
 void
 __attribute__((interrupt))
-UINTR_hanlder (struct __uintr_frame *frame, uword_t uirrv)
+UINTR_handler (struct __uintr_frame *frame, uword_t uirrv)
 {
 }
diff --git a/gcc/testsuite/gcc.target/i386/uintr-5.c 
b/gcc/testsuite/gcc.target/i386/uintr-5.c
index 49cb2ec8097c..7c7c12f43090 100644
--- a/gcc/testsuite/gcc.target/i386/uintr-5.c
+++ b/gcc/testsuite/gcc.target/i386/uintr-5.c
@@ -7,6 +7,6 @@
 typedef unsigned int uword_t __attribute__ ((mode (__word__)));
 
 void
-UINTR_hanlder (struct __uintr_frame *frame, uword_t uirrv)
+UINTR_handler (struct __uintr_frame *frame, uword_t uirrv)
 {
 }

Reply via email to