public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] [committed] Use single quote rather than backquote in RISC-V diagnostic
@ 2023-07-25 18:34 Jeff Law
  0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-07-25 18:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5c271dde323ddc165dd3457164e06b2199c01cd0

commit 5c271dde323ddc165dd3457164e06b2199c01cd0
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.
    
    (cherry picked from commit d90e81af8052e96ae3262ed3ac42682537fc42c6)

Diff:
---
 gcc/common/config/riscv/riscv-common.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/common/config/riscv/riscv-common.cc b/gcc/common/config/riscv/riscv-common.cc
index 4e05e347377..89e82b87408 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-25 18:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-25 18:34 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] [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).