From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id E94EC385AC1F; Wed, 19 Jan 2022 09:34:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E94EC385AC1F MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-6728] Update on riscv -Wformat-diag string. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 53836c887a05db23ff3b9fc06f64e0ba78810ece X-Git-Newrev: fdf31ae25f66cd486e655d7ebda36826025b9d0e Message-Id: <20220119093408.E94EC385AC1F@sourceware.org> Date: Wed, 19 Jan 2022 09:34:08 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2022 09:34:09 -0000 https://gcc.gnu.org/g:fdf31ae25f66cd486e655d7ebda36826025b9d0e commit r12-6728-gfdf31ae25f66cd486e655d7ebda36826025b9d0e Author: Martin Liska 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 %, %, " - "or %", name); + "argument to %qE attribute is not %<\"user\"%>, %<\"supervisor\"%>, " + "or %<\"machine\"%>", name); *no_add_attrs = true; } }