aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-19 10:32:13 +0100
committerMartin Liska <mliska@suse.cz>2022-01-19 10:33:01 +0100
commitfdf31ae25f66cd486e655d7ebda36826025b9d0e (patch)
tree37e3f74c8e2c7bb5a3948a78a11d28e4017fb919
parent53836c887a05db23ff3b9fc06f64e0ba78810ece (diff)
downloadgcc-fdf31ae25f66cd486e655d7ebda36826025b9d0e.zip
gcc-fdf31ae25f66cd486e655d7ebda36826025b9d0e.tar.gz
gcc-fdf31ae25f66cd486e655d7ebda36826025b9d0e.tar.bz2
Update on riscv -Wformat-diag string.
gcc/ChangeLog: * config/riscv/riscv.cc (riscv_handle_type_attribute): Update one -Wformat-diag string in warning message.
-rw-r--r--gcc/config/riscv/riscv.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 8314864..6885b4b 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -3309,8 +3309,8 @@ riscv_handle_type_attribute (tree *node ATTRIBUTE_UNUSED, tree name, tree args,
&& strcmp (string, "machine"))
{
warning (OPT_Wattributes,
- "argument to %qE attribute is not %<user%>, %<supervisor%>, "
- "or %<machine%>", name);
+ "argument to %qE attribute is not %<\"user\"%>, %<\"supervisor\"%>, "
+ "or %<\"machine\"%>", name);
*no_add_attrs = true;
}
}