]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: Work around "sequence of 3 consecutive punctuation characters" warning.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 12 Jan 2024 13:42:45 +0000 (14:42 +0100)
committerGeorg-Johann Lay <avr@gjlay.de>
Fri, 12 Jan 2024 13:47:38 +0000 (14:47 +0100)
gcc/
* config/avr/avr.cc (avr_handle_addr_attribute): Move "..." from
format string to %s argument.

(cherry picked from commit 549ea1487a534d0eef6a424075264ba542514c3d)

gcc/config/avr/avr.cc

index 2d859540414d5efb2eb309ac60c32e103ec0e0dd..b50fe3b6bf5331d2b768079d33b35337fb18d745 100644 (file)
@@ -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