diff options
author | Frolov Daniil <frolov.da@phystech.edu> | 2022-11-28 12:35:13 -0500 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2022-11-28 12:35:13 -0500 |
commit | aa353bd9a03b0d5ba92efe082b625d6c5ed6a79d (patch) | |
tree | 4dbe427a099ba4da21cf80504853c622aa6d4933 /libgcc | |
parent | 75e562d2c4303d3918be9d1563284b0c580c5e45 (diff) | |
download | gcc-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