[gcc r13-8216] AVR: Work around "sequence of 3 consecutive punctuation characters" warning.
Georg-Johann Lay
gjl@gcc.gnu.org
Fri Jan 12 13:48:11 GMT 2024
https://gcc.gnu.org/g:928c204030fe6c8856b76fd3d6f3583902389ad3
commit r13-8216-g928c204030fe6c8856b76fd3d6f3583902389ad3
Author: Georg-Johann Lay <avr@gjlay.de>
Date: Fri Jan 12 14:42:45 2024 +0100
AVR: Work around "sequence of 3 consecutive punctuation characters" warning.
gcc/
* config/avr/avr.cc (avr_handle_addr_attribute): Move "..." from
format string to %s argument.
(cherry picked from commit 549ea1487a534d0eef6a424075264ba542514c3d)
Diff:
---
gcc/config/avr/avr.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc
index 2d859540414..b50fe3b6bf5 100644
--- a/gcc/config/avr/avr.cc
+++ b/gcc/config/avr/avr.cc
@@ -10261,8 +10261,8 @@ avr_handle_addr_attribute (tree *node, tree name, tree args,
&& (!tree_fits_shwi_p (arg)
|| ! IN_RANGE (TREE_INT_CST_LOW (arg), io_start, io_end)))
{
- warning_at (loc, OPT_Wattributes, "%qE attribute address out of "
- "range 0x%x...0x%x", name, (int) io_start, (int) io_end);
+ warning_at (loc, OPT_Wattributes, "%qE attribute address out of range"
+ " 0x%x%s0x%x", name, (int) io_start, "...", (int) io_end);
*no_add = true;
}
else
More information about the Gcc-cvs
mailing list