aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorFrolov Daniil <frolov.da@phystech.edu>2022-11-28 12:35:13 -0500
committerJeff Law <jeffreyalaw@gmail.com>2022-11-28 12:35:13 -0500
commitaa353bd9a03b0d5ba92efe082b625d6c5ed6a79d (patch)
tree4dbe427a099ba4da21cf80504853c622aa6d4933 /libgcc
parent75e562d2c4303d3918be9d1563284b0c580c5e45 (diff)
downloadgcc-aa353bd9a03b0d5ba92efe082b625d6c5ed6a79d.zip
gcc-aa353bd9a03b0d5ba92efe082b625d6c5ed6a79d.tar.gz
gcc-aa353bd9a03b0d5ba92efe082b625d6c5ed6a79d.tar.bz2
Support %b, %B for -Wformat-overflow (sprintf, snprintf)
gcc/ChangeLog: * gimple-ssa-sprintf.cc (fmtresult::type_max_digits): Handle base == 2. (tree_digits): Likewise. (format_integer): Likewise. (parse_directive): Add cases for %b and %B directives. gcc/testsuite/ChangeLog: * gcc.dg/Wformat-overflow1.c: New test.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions