public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Use single quote rather than backquote in RISC-V diagnostic
@ 2023-07-24 14:14 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-07-24 14:14 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

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

[-- Attachment #2: P --]
[-- Type: text/plain, Size: 2012 bytes --]

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.

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-24 14:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-24 14:14 [committed] Use single quote rather than backquote in RISC-V diagnostic Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).