[committed] Use single quote rather than backquote in RISC-V diagnostic

Message ID 7ab38962-3068-cb94-f6b9-4331c7916898@gmail.com
State Unresolved
Headers
Series [committed] Use single quote rather than backquote in RISC-V diagnostic |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Jeff Law July 24, 2023, 2:14 p.m. UTC
  Similar to the other patch this morning, this fixes a warning that was 
causing the RISC-V bootstrap to fail.

In this case the diagnostic used a backquote.  This changes it to a 
simple single quote which the diagnostic framework won't complain about.

Committed to the trunk.

Jeff
commit d90e81af8052e96ae3262ed3ac42682537fc42c6
Author: Jeff Law <jlaw@ventanamicro.com>
Date:   Mon Jul 24 08:10:21 2023 -0600

    [committed] Use single quote rather than backquote in RISC-V diagnostic
    
    Similar to the other patch this morning, this fixes a warning that was causing
    the RISC-V bootstrap to fail.
    
    In this case the diagnostic used a backquote.  This changes it to a simple
    single quote which the diagnostic framework won't complain about.
    
    Committed to the trunk.
    
    gcc/
            * common/config/riscv/riscv-common.cc (riscv_subset_list::add): Use
            single quote rather than backquote in diagnostic.
  

Patch

diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc
index 884d81c12aa..5238877a82d 100644
--- a/gcc/common/config/riscv/riscv-common.cc
+++ b/gcc/common/config/riscv/riscv-common.cc
@@ -573,7 +573,7 @@  riscv_subset_list::add (const char *subset, int major_version,
   else if (subset[0] == 'z' && !standard_extensions_p (subset))
     {
       error_at (m_loc,
-		"%<-march=%s%>: extension %qs starts with `z` but is "
+		"%<-march=%s%>: extension %qs starts with 'z' but is "
 		"unsupported standard extension",
 		m_arch, subset);
       return;
@@ -581,7 +581,7 @@  riscv_subset_list::add (const char *subset, int major_version,
   else if (subset[0] == 's' && !standard_extensions_p (subset))
     {
       error_at (m_loc,
-		"%<-march=%s%>: extension %qs starts with `s` but is "
+		"%<-march=%s%>: extension %qs starts with 's' but is "
 		"unsupported standard supervisor extension",
 		m_arch, subset);
       return;
@@ -589,7 +589,7 @@  riscv_subset_list::add (const char *subset, int major_version,
   else if (subset[0] == 'x' && !standard_extensions_p (subset))
     {
       error_at (m_loc,
-		"%<-march=%s%>: extension %qs starts with `x` but is "
+		"%<-march=%s%>: extension %qs starts with 'x' but is "
 		"unsupported non-standard extension",
 		m_arch, subset);
       return;