From: Dhruv Chawla Date: Wed, 20 May 2026 11:39:12 +0000 (+0000) Subject: m68k: Fix typos in various files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b40dad5b6a0ecd7888f93eada98aed0918335b3d;p=thirdparty%2Fgcc.git m68k: Fix typos in various files Signed-off-by: Dhruv Chawla gcc/ChangeLog: * config/m68k/cf.md: Fix typos. * config/m68k/m68k.cc (m68k_unwrap_symbol): Likewise. (m68k_adjust_decorated_operand): Likewise. (m68k_call_tls_get_addr): Likewise. (m68k_call_m68k_read_tp): Likewise. (m68k_sched_attr_size): Likewise. (m68k_sched_dfa_post_advance_cycle): Likewise. (sched_mem_operand_p): Likewise. (m68k_sched_address_bypass_p): Likewise. * config/m68k/m68kelf.h: Likewise. * config/m68k/netbsd-elf.h (REGISTER_PREFIX): Likewise. --- diff --git a/gcc/config/m68k/cf.md b/gcc/config/m68k/cf.md index 241fb52907b..3a8d1bef18f 100644 --- a/gcc/config/m68k/cf.md +++ b/gcc/config/m68k/cf.md @@ -299,7 +299,7 @@ ;; Call instruction. ;; ??? It's not clear what reservation is best to use for calls. ;; ??? For now we use mem-write + return reservations to reflect the fact of -;; ??? pushing and poping return address to and from the stack. +;; ??? pushing and popping return address to and from the stack. ;; Takes 3 cycles. (define_reservation "cfv12_call" "cfv12_alu_01,cfv12_rts") ;; Takes 1/5 cycles. @@ -313,7 +313,7 @@ ;; Takes 1 cycles. (define_reservation "cfv3_bcc" "cfv123_alu_00") -;; Unconditional branch instruciton. +;; Unconditional branch instruction. ;; Takes 2 cycles. (define_reservation "cfv12_bra" "cfv12_alu_01") ;; Takes 1 cycles. diff --git a/gcc/config/m68k/m68k.cc b/gcc/config/m68k/m68k.cc index 18fc2cacf43..ee5210afedc 100644 --- a/gcc/config/m68k/m68k.cc +++ b/gcc/config/m68k/m68k.cc @@ -2521,7 +2521,7 @@ m68k_unwrap_symbol (rtx orig, bool unwrap_reloc32_p) return m68k_unwrap_symbol_1 (orig, unwrap_reloc32_p, NULL); } -/* Adjust decorated address operand before outputing assembler for it. */ +/* Adjust decorated address operand before outputting assembler for it. */ static void m68k_adjust_decorated_operand (rtx op) @@ -2580,7 +2580,7 @@ m68k_adjust_decorated_operand (rtx op) } } -/* Prescan insn before outputing assembler for it. */ +/* Prescan insn before outputting assembler for it. */ void m68k_final_prescan_insn (rtx_insn *insn ATTRIBUTE_UNUSED, @@ -2753,7 +2753,7 @@ m68k_call_tls_get_addr (rtx x, rtx eqv, enum m68k_reloc reloc) x = m68k_wrap_symbol (x, reloc, m68k_get_gp (), NULL_RTX); /* __tls_get_addr() is not a libcall, but emitting a libcall_value - is the simpliest way of generating a call. The difference between + is the simplest way of generating a call. The difference between __tls_get_addr() and libcall is that the result is returned in D0 instead of A0. To workaround this, we use m68k_libcall_value_in_a0_p which temporarily switches returning the result to A0. */ @@ -2800,7 +2800,7 @@ m68k_call_m68k_read_tp (void) start_sequence (); /* __m68k_read_tp() is not a libcall, but emitting a libcall_value - is the simpliest way of generating a call. The difference between + is the simplest way of generating a call. The difference between __m68k_read_tp() and libcall is that the result is returned in D0 instead of A0. To workaround this, we use m68k_libcall_value_in_a0_p which temporarily switches returning the result to A0. */ @@ -6359,7 +6359,7 @@ m68k_sched_attr_size (rtx_insn *insn) } /* Return operand X or Y (depending on OPX_P) of INSN, - if it is a MEM, or NULL overwise. */ + if it is a MEM, or NULL otherwise. */ static enum attr_op_type sched_get_opxy_mem_type (rtx_insn *insn, bool opx_p) { @@ -6900,7 +6900,7 @@ m68k_sched_dfa_post_advance_cycle (void) } /* Return X or Y (depending on OPX_P) operand of INSN, - if it is an integer register, or NULL overwise. */ + if it is an integer register, or NULL otherwise. */ static rtx sched_get_reg_operand (rtx_insn *insn, bool opx_p) { @@ -6949,7 +6949,7 @@ sched_mem_operand_p (rtx_insn *insn, bool opx_p) } /* Return X or Y (depending on OPX_P) operand of INSN, - if it is a MEM, or NULL overwise. */ + if it is a MEM, or NULL otherwise. */ static rtx sched_get_mem_operand (rtx_insn *insn, bool must_read_p, bool must_write_p) { @@ -7004,7 +7004,7 @@ m68k_sched_address_bypass_p (rtx_insn *pro, rtx_insn *con) /* Helper function for m68k_sched_indexed_address_bypass_p. if PRO modifies register used as index in CON, - return scale of indexed memory access in CON. Return zero overwise. */ + return scale of indexed memory access in CON. Return zero otherwise. */ static int sched_get_indexed_address_scale (rtx_insn *pro, rtx_insn *con) { diff --git a/gcc/config/m68k/m68kelf.h b/gcc/config/m68k/m68kelf.h index c9ed6e96d2c..7f48959f8ce 100644 --- a/gcc/config/m68k/m68kelf.h +++ b/gcc/config/m68k/m68kelf.h @@ -104,7 +104,7 @@ do { \ #define DEBUGGER_REGNO(REGNO) (REGNO) #if 0 -/* SVR4 m68k assembler is bitching on the `comm i,1,1' which askes for +/* SVR4 m68k assembler is bitching on the `comm i,1,1' which asks for 1 byte alignment. Don't generate alignment for COMMON seems to be safer until we the assembler is fixed. */ #undef ASM_OUTPUT_ALIGNED_COMMON diff --git a/gcc/config/m68k/netbsd-elf.h b/gcc/config/m68k/netbsd-elf.h index c85c366c047..0863b622866 100644 --- a/gcc/config/m68k/netbsd-elf.h +++ b/gcc/config/m68k/netbsd-elf.h @@ -104,7 +104,7 @@ while (0) #define REGISTER_PREFIX "%" -/* The prefix for local (compiler generated) lables. +/* The prefix for local (compiler generated) labels. These labels will not appear in the symbol table. */ #undef LOCAL_LABEL_PREFIX