PR tree-optimization/80397 - missing -Wformat-overflow with arguments of enum types
authorMartin Sebor <msebor@redhat.com>
Mon, 10 Jul 2017 21:21:51 +0000 (21:21 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Mon, 10 Jul 2017 21:21:51 +0000 (15:21 -0600)
commit9c582dbb57486afa5675217dd0cccf3ba5bea4eb
treed47b7b5eae64ee6e43db31eb4bbc5d91b92de41b
parentb2221d2bc678887616b5517c2e935480528556f0
PR tree-optimization/80397 - missing -Wformat-overflow with arguments of enum types

gcc/ChangeLog:

PR tree-optimization/80397
* gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
instead of testing for equality to INTEGER_TYPE.

gcc/testsuite/ChangeLog:

PR tree-optimization/80397
* gcc.dg/tree-ssa/builtin-sprintf-warn-17.c: New test.

From-SVN: r250106
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-19.c [new file with mode: 0644]