RISC-V: Fix up some wording in the mcpu/mtune comment

Message ID 20221128213725.13926-1-palmer@rivosinc.com
State Committed
Commit 9bb7864877ab05bf951fad66c934845351b271ce
Headers
Series RISC-V: Fix up some wording in the mcpu/mtune comment |

Commit Message

Palmer Dabbelt Nov. 28, 2022, 9:37 p.m. UTC
  gcc/ChangeLog:

	* config/riscv/riscv.cc (riscv_option_override): Fix comment
	wording.
---
Just stumbled on this one looking at the output of that sed script.  The
script itself was fine, the original comment was to blame.
---
 gcc/config/riscv/riscv.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Palmer Dabbelt Dec. 16, 2022, 4:48 p.m. UTC | #1
On Mon, 28 Nov 2022 13:37:25 PST (-0800), Palmer Dabbelt wrote:
> gcc/ChangeLog:
>
> 	* config/riscv/riscv.cc (riscv_option_override): Fix comment
> 	wording.
> ---
> Just stumbled on this one looking at the output of that sed script.  The
> script itself was fine, the original comment was to blame.
> ---
>  gcc/config/riscv/riscv.cc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
> index 05bdba5ab4d..26c11507895 100644
> --- a/gcc/config/riscv/riscv.cc
> +++ b/gcc/config/riscv/riscv.cc
> @@ -5978,7 +5978,7 @@ riscv_option_override (void)
>      target_flags |= MASK_FDIV;
>
>    /* Handle -mtune, use -mcpu if -mtune is not given, and use default -mtune
> -     if -mtune and -mcpu both not given.  */
> +     if both -mtune and -mcpu are not given.  */
>    cpu = riscv_parse_tune (riscv_tune_string ? riscv_tune_string :
>  			  (riscv_cpu_string ? riscv_cpu_string :
>  			   RISCV_TUNE_STRING_DEFAULT));

Committed.
  

Patch

diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 05bdba5ab4d..26c11507895 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -5978,7 +5978,7 @@  riscv_option_override (void)
     target_flags |= MASK_FDIV;
 
   /* Handle -mtune, use -mcpu if -mtune is not given, and use default -mtune
-     if -mtune and -mcpu both not given.  */
+     if both -mtune and -mcpu are not given.  */
   cpu = riscv_parse_tune (riscv_tune_string ? riscv_tune_string :
 			  (riscv_cpu_string ? riscv_cpu_string :
 			   RISCV_TUNE_STRING_DEFAULT));