poly_int: pointer_may_wrap_p
commit2f048e66af377f8728bd30e4370bf28edd4445c7
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Dec 2017 12:56:05 +0000 (20 12:56 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Dec 2017 12:56:05 +0000 (20 12:56 +0000)
tree6c6f29b5b1b11d72e87525a16d917bc1d45fdc43
parent08454aa5f8a45ca419f01b97a4b2c76ba571065a
poly_int: pointer_may_wrap_p

This patch changes the bitpos argument to pointer_may_wrap_p from
HOST_WIDE_INT to poly_int64.  A later patch makes the callers track
polynomial offsets.

2017-12-20  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* fold-const.c (pointer_may_wrap_p): Take the offset as a
HOST_WIDE_INT rather than a poly_int64.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255890 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c