From: Dhruv Chawla Date: Wed, 20 May 2026 12:16:11 +0000 (+0000) Subject: rx: Fix typos in rx.cc and rx.md X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ab2a37a96749fdf4ff3514c7ed75dad2cd32bfe;p=thirdparty%2Fgcc.git rx: Fix typos in rx.cc and rx.md Signed-off-by: Dhruv Chawla gcc/ChangeLog: * config/rx/rx.cc (rx_print_operand): Fix typos. (rx_expand_epilogue): Likewise. * config/rx/rx.md: Likewise. --- diff --git a/gcc/config/rx/rx.cc b/gcc/config/rx/rx.cc index 4078580f6ad..038f93431f4 100644 --- a/gcc/config/rx/rx.cc +++ b/gcc/config/rx/rx.cc @@ -867,7 +867,7 @@ rx_print_operand (FILE * file, rtx op, int letter) rtx base = XEXP (op, 0); rtx index = XEXP (op, 1); - /* Check for a swaped index register and scaling factor. + /* Check for a swapped index register and scaling factor. Not sure if this can happen, but be prepared to handle it. */ if (CONST_INT_P (base) && REG_P (index)) { @@ -2081,7 +2081,7 @@ rx_expand_epilogue (bool is_sibcall) unsigned int reg; unsigned HOST_WIDE_INT total_size; - /* FIXME: We do not support indirect sibcalls at the moment becaause we + /* FIXME: We do not support indirect sibcalls at the moment because we cannot guarantee that the register holding the function address is a call-used register. If it is a call-saved register then the stack pop instructions generated in the epilogue will corrupt the address diff --git a/gcc/config/rx/rx.md b/gcc/config/rx/rx.md index b3398ab9fc5..1bd80fd3e2e 100644 --- a/gcc/config/rx/rx.md +++ b/gcc/config/rx/rx.md @@ -2064,7 +2064,7 @@ ;; combiner bridge patterns. Especially when the memory operands have a ;; displacement, the resulting patterns look too complex. ;; Instead we manually look around the matched insn to see if there is a -;; preceeding memory load and a following memory store of the modified register +;; preceding memory load and a following memory store of the modified register ;; which can be fused into the single *_in_memory insn. ;; Do that before register allocation, as it can eliminate one temporary ;; register that needs to be allocated.