projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aa4406
)
Avoid -Wformat-diag.
author
Martin Sebor
<msebor@redhat.com>
Wed, 5 Jan 2022 20:28:37 +0000
(13:28 -0700)
committer
Martin Sebor
<msebor@redhat.com>
Wed, 5 Jan 2022 20:32:24 +0000
(13:32 -0700)
gcc/ChangeLog:
* gimple-ssa-warn-access.cc (pass_waccess::maybe_warn_memmodel): Use
%qs to avoid -Wformat-diag.
gcc/gimple-ssa-warn-access.cc
patch
|
blob
|
history
diff --git
a/gcc/gimple-ssa-warn-access.cc
b/gcc/gimple-ssa-warn-access.cc
index
9f06ee8
..
e4c078a
100644
(file)
--- a/
gcc/gimple-ssa-warn-access.cc
+++ b/
gcc/gimple-ssa-warn-access.cc
@@
-2841,7
+2841,7
@@
pass_waccess::maybe_warn_memmodel (gimple *stmt, tree ord_sucs,
for (unsigned i = 0; valid[i] != UCHAR_MAX; ++i)
{
const char *modname = memory_models[valid[i]].modname;
- pp_printf (&pp, "%s%
<%s%>
", i ? ", " : "", modname);
+ pp_printf (&pp, "%s%
qs
", i ? ", " : "", modname);
}
inform (loc, "valid models are %s", pp_formatted_text (&pp));