Update on riscv -Wformat-diag string.
authorMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 09:32:13 +0000 (10:32 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 09:33:01 +0000 (10:33 +0100)
gcc/ChangeLog:

* config/riscv/riscv.cc (riscv_handle_type_attribute):
Update one -Wformat-diag string in warning message.

gcc/config/riscv/riscv.cc

index 8314864..6885b4b 100644 (file)
@@ -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;
            }
        }