]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Use single quote rather than backquote in RISC-V diagnostic
authorJeff Law <jlaw@ventanamicro.com>
Mon, 24 Jul 2023 14:10:21 +0000 (08:10 -0600)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 24 Jul 2023 14:10:21 +0000 (08:10 -0600)
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.

gcc/common/config/riscv/riscv-common.cc

index 884d81c12aa0abe4c2d9194313c6299701b71fe2..5238877a82d918a218b1455375ed129413f59d5f 100644 (file)
@@ -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;