re PR c/89495 (gcc/c-family/c-format.c:1272:20: runtime error: signed integer overflo...
authorJakub Jelinek <jakub@redhat.com>
Mon, 25 Feb 2019 23:43:51 +0000 (00:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 25 Feb 2019 23:43:51 +0000 (00:43 +0100)
commit7da73ba7ef0e48d756677d17b8addc4f4fe2a484
tree99997a3571b2eaa42b428daa7eefe58d3eb56296
parent796954501274027ac9ba69b8c7f8eb08339f51ac
re PR c/89495 (gcc/c-family/c-format.c:1272:20: runtime error: signed integer overflow: 214748365 * 10 cannot be represented in type 'int')

PR c/89495
* c-format.c (maybe_read_dollar_number): Compute nargnum in
HOST_WIDE_INT type to avoid overflows and change overflow_flag
checking.

From-SVN: r269198
gcc/c-family/ChangeLog
gcc/c-family/c-format.c