]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix comment typos - hanlde -> handle
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Jul 2025 08:48:45 +0000 (10:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Jul 2025 08:48:45 +0000 (10:48 +0200)
2025-07-31  Jakub Jelinek  <jakub@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.

gcc/config/i386/i386-features.cc
gcc/config/i386/i386.cc
gcc/gimple-ssa-store-merging.cc
gcc/testsuite/gcc.target/i386/apx-1.c
gcc/testsuite/gcc.target/i386/uintr-2.c
gcc/testsuite/gcc.target/i386/uintr-5.c

index c131577805faa9608d817e3aab7747299c1c18b7..53e86c8a4931c49eb717c1884bbe6d844403158b 100644 (file)
@@ -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)
index 613f2b2139dfa003b91dc935e0d6cb57c3774aed..65e04d3760d54355201b797fc417c4fa7941ff54 100644 (file)
@@ -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))
            {
index ce56d97d43836b4193b047cb413f22ecc3d5f735..1c27c7b12d55308af9b54a6ce6525ef8c723a31a 100644 (file)
@@ -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++)
index 4e580ecdf37dc4acb585d369b690ec1fdd2a100e..b118928c3d549903757bc1be18acdd689faba406 100644 (file)
@@ -3,6 +3,6 @@
 /* { dg-error "'-mapxf' is not supported for 32-bit code" "" { target ia32 } 0 } */
 
 void
-apx_hanlder ()
+apx_handler ()
 {
 }
index 0a83c662b949535b187469646afb1597e94188c4..a0d2514494e7ad32ec43403fb2eb8cdb8836957a 100644 (file)
@@ -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)
 {
 }
index 49cb2ec8097cc335158f880e1728679a310ea2f6..7c7c12f4309009cb48c3999c0ad942eb3476159c 100644 (file)
@@ -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)
 {
 }