From: Martin Liska Date: Wed, 19 Jan 2022 09:32:13 +0000 (+0100) Subject: Update on riscv -Wformat-diag string. X-Git-Tag: upstream/12.2.0~1969 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdf31ae25f66cd486e655d7ebda36826025b9d0e;p=platform%2Fupstream%2Fgcc.git 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 --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 %, %, " - "or %", name); + "argument to %qE attribute is not %<\"user\"%>, %<\"supervisor\"%>, " + "or %<\"machine\"%>", name); *no_add_attrs = true; } }