public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6685] xtensa: fix -Wformat-diag warnings.
@ 2022-01-18 16:26 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-01-18 16:26 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7e5baa7e6f4caced6bdaef6d866d19e7656d8a16
commit r12-6685-g7e5baa7e6f4caced6bdaef6d866d19e7656d8a16
Author: Martin Liska <mliska@suse.cz>
Date: Tue Jan 18 14:51:40 2022 +0100
xtensa: fix -Wformat-diag warnings.
gcc/ChangeLog:
* config/xtensa/xtensa.cc (print_operand): Fix warnings.
(print_operand_address): Likewise.
(xtensa_multibss_section_type_flags): Likewise.
Diff:
---
gcc/config/xtensa/xtensa.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc
index 198bd3c08a0..7023badf0e2 100644
--- a/gcc/config/xtensa/xtensa.cc
+++ b/gcc/config/xtensa/xtensa.cc
@@ -2392,7 +2392,7 @@ void
print_operand (FILE *file, rtx x, int letter)
{
if (!x)
- error ("PRINT_OPERAND null pointer");
+ error ("%<PRINT_OPERAND%> null pointer");
switch (letter)
{
@@ -2549,7 +2549,7 @@ void
print_operand_address (FILE *file, rtx addr)
{
if (!addr)
- error ("PRINT_OPERAND_ADDRESS, null pointer");
+ error ("%<PRINT_OPERAND_ADDRESS%>, null pointer");
switch (GET_CODE (addr))
{
@@ -3662,7 +3662,7 @@ xtensa_multibss_section_type_flags (tree decl, const char *name, int reloc)
flags |= SECTION_BSS; /* @nobits */
else
warning (0, "only uninitialized variables can be placed in a "
- ".bss section");
+ "%<.bss%> section");
}
return flags;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-18 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 16:26 [gcc r12-6685] xtensa: fix -Wformat-diag warnings Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).