]> git.ipfire.org Git - thirdparty/gcc.git/commit
flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define. prereleases/gcc-4.2.4-rc1
authorIan Lance Taylor <iant@google.com>
Mon, 12 May 2008 18:04:51 +0000 (18:04 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 12 May 2008 18:04:51 +0000 (18:04 +0000)
commit08c9b67abb3492666cbf2f26bb7777f318d07c80
treef91bc7ea5de431882167e85706d9084caba5de5d
parentb757d0317c249dea435ac8e7c0926da92088569b
flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.

./: * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
* fold-const.c (fold_overflow_warning): Remove assertion.
(pointer_may_wrap_p): New static function.
(fold_comparison): If appropriate, test
POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
(fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
reassociating a pointer type.
* doc/invoke.texi (Optimize Options): Document that
-fstrict-overflow applies to pointer wraparound.
testsuite/:
* gcc.dg/strict-overflow-6.c: New.
* gcc.dg/no-strict-overflow-7.c: New.
* gcc.dg/Wstrict-overflow-22.c: New.
* gcc.c-torture/compile/20080419-1.c: New.
* gcc.dg/tree-ssa/loop-17.c: Use -O2.

From-SVN: r135222
gcc/ChangeLog
gcc/doc/invoke.texi
gcc/flags.h
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20080419-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wstrict-overflow-22.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/no-strict-overflow-7.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/strict-overflow-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/loop-17.c