[gcc r12-6728] Update on riscv -Wformat-diag string.
Martin Liska
marxin@gcc.gnu.org
Wed Jan 19 09:34:08 GMT 2022
https://gcc.gnu.org/g:fdf31ae25f66cd486e655d7ebda36826025b9d0e
commit r12-6728-gfdf31ae25f66cd486e655d7ebda36826025b9d0e
Author: Martin Liska <mliska@suse.cz>
Date: Wed Jan 19 10:32:13 2022 +0100
Update on riscv -Wformat-diag string.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_handle_type_attribute):
Update one -Wformat-diag string in warning message.
Diff:
---
gcc/config/riscv/riscv.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 8314864d5e7..6885b4bbad2 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;
}
}
More information about the Gcc-cvs
mailing list