public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-6539] epiphany: fir -Wformat-diag.
Date: Thu, 13 Jan 2022 09:35:28 +0000 (GMT)	[thread overview]
Message-ID: <20220113093528.8EBD13858029@sourceware.org> (raw)

https://gcc.gnu.org/g:ed8b9b4f5b4a42491fb6a74fc57a64fafcc51d20

commit r12-6539-ged8b9b4f5b4a42491fb6a74fc57a64fafcc51d20
Author: Martin Liska <mliska@suse.cz>
Date:   Wed Jan 12 10:54:44 2022 +0100

    epiphany: fir -Wformat-diag.
    
    gcc/ChangeLog:
    
            * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
            Use %qs format specifier.
            (epiphany_override_options): Wrap keyword in %<, %>.

Diff:
---
 gcc/config/epiphany/epiphany.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c
index a2743436f38..e19e61a4dde 100644
--- a/gcc/config/epiphany/epiphany.c
+++ b/gcc/config/epiphany/epiphany.c
@@ -520,8 +520,10 @@ epiphany_handle_interrupt_attribute (tree *node, tree name, tree args,
 	   && strcmp (TREE_STRING_POINTER (value), "swi"))
     {
       warning (OPT_Wattributes,
-	       "argument of %qE attribute is not \"reset\", \"software_exception\", \"page_miss\", \"timer0\", \"timer1\", \"message\", \"dma0\", \"dma1\", \"wand\" or \"swi\"",
-	       name);
+	       "argument of %qE attribute is not %qs, %qs %qs, %qs, %qs, "
+	       "%qs, %qs, %qs, %qs or %qs", name,
+	       "reset", "software_exception", "page_miss", "timer0", "timer1",
+	       "message", "dma0", "dma1", "wand", "swi");
       *no_add_attrs = true;
       return NULL_TREE;
     }
@@ -1538,9 +1540,9 @@ static void
 epiphany_override_options (void)
 {
   if (epiphany_stack_offset < 4)
-    error ("stack_offset must be at least 4");
+    error ("%<stack_offset%> must be at least 4");
   if (epiphany_stack_offset & 3)
-    error ("stack_offset must be a multiple of 4");
+    error ("%<stack_offset%> must be a multiple of 4");
   epiphany_stack_offset = (epiphany_stack_offset + 3) & -4;
  if (!TARGET_SOFT_CMPSF)
    flag_finite_math_only = 1;


                 reply	other threads:[~2022-01-13  9:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220113093528.8EBD13858029@sourceware.org \
    --to=marxin@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).