fold-const.c (pointer_may_wrap_p): New static function.
authorIan Lance Taylor <iant@google.com>
Fri, 18 Apr 2008 15:22:40 +0000 (15:22 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 18 Apr 2008 15:22:40 +0000 (15:22 +0000)
commit6e3c5c30e8f8ed26365689f4d5b51d51aeced1ea
tree1445e3ff80f2b0fb59f3e865b2d505a26ecc0254
parentb6baa67d7947f7e4fc1481c87fcb55d54c56f0cf
fold-const.c (pointer_may_wrap_p): New static function.

* fold-const.c (pointer_may_wrap_p): New static function.
(fold_comparison): Add another test for pointer overflow.  Use
pointer_may_wrap_p to disable some false positives.

From-SVN: r134440
gcc/ChangeLog
gcc/fold-const.c