aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-12 10:54:44 +0100
committerMartin Liska <mliska@suse.cz>2022-01-13 10:34:58 +0100
commited8b9b4f5b4a42491fb6a74fc57a64fafcc51d20 (patch)
tree942fcf7089b475f589f95df4f25120821c76c16b /gcc
parent5f19303ada7db92c155332e7ba317233ca05946b (diff)
downloadgcc-ed8b9b4f5b4a42491fb6a74fc57a64fafcc51d20.zip
gcc-ed8b9b4f5b4a42491fb6a74fc57a64fafcc51d20.tar.gz
gcc-ed8b9b4f5b4a42491fb6a74fc57a64fafcc51d20.tar.bz2
epiphany: fir -Wformat-diag.
gcc/ChangeLog: * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute): Use %qs format specifier. (epiphany_override_options): Wrap keyword in %<, %>.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/epiphany/epiphany.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/epiphany/epiphany.c b/gcc/config/epiphany/epiphany.c
index a274343..e19e61a 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;