gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Use offset_int::from...
authorMartin Sebor <msebor@redhat.com>
Wed, 3 Jan 2018 20:38:30 +0000 (20:38 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 3 Jan 2018 20:38:30 +0000 (13:38 -0700)
commita6fd2cd769c3bb446085e45794fcb22481eed400
tree8e3d75d5168c0b68ab7bdbbb2f7b0e8551b53fd9
parent830421fcd37719426fa8eb7f0d545c744db497b4
gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Use offset_int::from instead of wide_int::to_shwi.

gcc/ChangeLog:

* gimple-ssa-warn-restrict.c (builtin_memref::builtin_memref): Use
offset_int::from instead of wide_int::to_shwi.
(maybe_diag_overlap): Remove assertion.
Use HOST_WIDE_INT_PRINT_DEC instead of %lli.
* gimple-ssa-sprintf.c (format_directive): Same.
(parse_directive): Same.
(sprintf_dom_walker::compute_format_length): Same.
(try_substitute_return_value): Same.

gcc/testsuite/ChangeLog:

* gcc.dg/Wrestrict-3.c: New test.

From-SVN: r256187
gcc/ChangeLog
gcc/gimple-ssa-sprintf.c
gcc/gimple-ssa-warn-restrict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wrestrict-3.c [new file with mode: 0644]